Skip to content

Commit

Permalink
AI-64 update template by new attribute CustomerIpAddress (#113)
Browse files Browse the repository at this point in the history
* AI-64 update template by new attribute CustomerIpAddress

* AI-64 fix test

* AI-64 fix test

* AI-64 fix test

* AI-64 fix test

* AI-64 fix test

* AI-64 fix test

* AI-64 fix test orderaptest

* AI-64 fix test orderaptest
  • Loading branch information
jalozanot-conekta authored Oct 11, 2024
1 parent b23acf6 commit 7f94f8c
Show file tree
Hide file tree
Showing 42 changed files with 1,020 additions and 249 deletions.
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ docs/PaymentMethodCardResponse.md
docs/PaymentMethodCash.md
docs/PaymentMethodCashRequest.md
docs/PaymentMethodCashResponse.md
docs/PaymentMethodGeneralRequest.md
docs/PaymentMethodResponse.md
docs/PaymentMethodSpeiRecurrent.md
docs/PaymentMethodSpeiRequest.md
docs/PaymentMethodTokenRequest.md
docs/PaymentMethodsApi.md
docs/Payout.md
docs/PayoutMethod.md
Expand Down Expand Up @@ -366,9 +368,11 @@ src/Conekta.net/Model/PaymentMethodCardResponse.cs
src/Conekta.net/Model/PaymentMethodCash.cs
src/Conekta.net/Model/PaymentMethodCashRequest.cs
src/Conekta.net/Model/PaymentMethodCashResponse.cs
src/Conekta.net/Model/PaymentMethodGeneralRequest.cs
src/Conekta.net/Model/PaymentMethodResponse.cs
src/Conekta.net/Model/PaymentMethodSpeiRecurrent.cs
src/Conekta.net/Model/PaymentMethodSpeiRequest.cs
src/Conekta.net/Model/PaymentMethodTokenRequest.cs
src/Conekta.net/Model/Payout.cs
src/Conekta.net/Model/PayoutMethod.cs
src/Conekta.net/Model/PayoutOrder.cs
Expand Down
10 changes: 5 additions & 5 deletions Conekta.net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net", "src\Conekta.net\Conekta.net.csproj", "{F7CF1CA4-FB32-4B79-929C-55DA32E75F20}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net", "src\Conekta.net\Conekta.net.csproj", "{F4EEE3F4-00D1-4376-A5E8-0ADD0FFDCB95}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net.Test", "src\Conekta.net.Test\Conekta.net.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F7CF1CA4-FB32-4B79-929C-55DA32E75F20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F7CF1CA4-FB32-4B79-929C-55DA32E75F20}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F7CF1CA4-FB32-4B79-929C-55DA32E75F20}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F7CF1CA4-FB32-4B79-929C-55DA32E75F20}.Release|Any CPU.Build.0 = Release|Any CPU
{F4EEE3F4-00D1-4376-A5E8-0ADD0FFDCB95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F4EEE3F4-00D1-4376-A5E8-0ADD0FFDCB95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F4EEE3F4-00D1-4376-A5E8-0ADD0FFDCB95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F4EEE3F4-00D1-4376-A5E8-0ADD0FFDCB95}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.10
6.0.11
113 changes: 106 additions & 7 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12071,6 +12071,7 @@ components:
expires_at: 1656634070
store_name: OXXO
reference: 98000013217610
customer_ip_address: 0.0.0.0
object: charge
description: Payment from order
status: paid
Expand Down Expand Up @@ -12133,6 +12134,7 @@ components:
type: card
token_id: tok_2897348234
payment_source_id: src_2tLkkyfMPh6v7pFry
customer_ip_address: 0.0.0.0
reference_id: string
currency: MXN
customer_info:
Expand Down Expand Up @@ -13318,17 +13320,24 @@ components:
es sospechoso.
type: string
id:
description: Charge ID
example: 63efa757cf65380001aec040
type: string
livemode:
description: Whether the charge was made in live mode or not
example: false
type: boolean
object:
example: charge
type: string
order_id:
description: Order ID
example: ord_2tN73UdUSNrYRPD9r
type: string
paid_at:
description: Payment date
example: 1676390742
format: int64
nullable: true
type: integer
payment_method:
Expand Down Expand Up @@ -14245,6 +14254,11 @@ components:
format: int64
nullable: true
type: integer
canceled_reason:
description: Reason for cancellation. This field appears when the subscription
status is 'canceled'.
example: user_cancelation
type: string
card_id:
example: src_2tKcHxhTz7xU5SymL
type: string
Expand Down Expand Up @@ -14689,6 +14703,7 @@ components:
description: The charges to be made
properties:
amount:
description: Amount to be charged in cents
example: 40000
type: integer
payment_method:
Expand Down Expand Up @@ -14953,7 +14968,7 @@ components:
type: string
return_url:
description: Indicates the redirection callback upon completion of the 3DS2
flow.
flow. Do not use this parameter if your order has a checkout parameter
example: https://my-website.com
format: uri
type: string
Expand Down Expand Up @@ -15210,6 +15225,9 @@ components:
format: int8
type: integer
type: array
three_ds_mode:
description: "Indicates the 3DS2 mode for the order, either smart or strict."
type: string
name:
description: Reason for charge
example: Payment Link Name 1594138857
Expand Down Expand Up @@ -15249,7 +15267,7 @@ components:
- type
title: checkout_request
type: object
payment_method_card_request:
payment_method_token_request:
allOf:
- $ref: '#/components/schemas/customer_payment_method_request'
- properties:
Expand All @@ -15262,7 +15280,7 @@ components:
required:
- token_id
type: object
title: payment_method_card_request
title: payment_method_token_request
payment_method_cash_request:
allOf:
- $ref: '#/components/schemas/customer_payment_method_request'
Expand Down Expand Up @@ -15652,6 +15670,9 @@ components:
store_name:
example: OXXO
type: string
customer_ip_address:
example: 0.0.0.0
type: string
title: charge_data_payment_method_cash_response
type: object
payment_method_card:
Expand All @@ -15660,39 +15681,52 @@ components:
- description: use for card responses
properties:
account_type:
description: Account type of the card
example: Credit
type: string
auth_code:
example: "867372"
type: string
brand:
description: Brand of the card
example: visa
type: string
contract_id:
description: Id sent for recurrent charges.
example: S781317595
type: string
country:
description: Country of the card
example: MX
type: string
exp_month:
description: Expiration month of the card
example: "02"
type: string
exp_year:
example: "30"
description: Expiration year of the card
example: "2026"
type: string
fraud_indicators:
items: {}
type: array
issuer:
description: Issuer of the card
example: BANAMEX
type: string
last4:
description: Last 4 digits of the card
example: "4242"
type: string
name:
description: Name of the cardholder
example: Fulanito Perez
type: string
customer_ip_address:
description: Optional field used to capture the customer's IP address
for fraud prevention and security monitoring purposes
example: 0.0.0.0
type: string
title: charge_data_payment_method_card_response
type: object
payment_method_bank_transfer:
Expand Down Expand Up @@ -15749,6 +15783,9 @@ components:
tracking_code:
nullable: true
type: string
customer_ip_address:
example: 0.0.0.0
type: string
title: charge_data_payment_method_bank_transfer_response
type: object
company_payout_destination_response:
Expand Down Expand Up @@ -15940,6 +15977,49 @@ components:
- object
- type
type: object
payment_method_card_request:
allOf:
- $ref: '#/components/schemas/customer_payment_method_request'
- properties:
cvc:
description: Card security code
example: "198"
maxLength: 4
minLength: 3
type: string
exp_month:
description: Card expiration month
example: "12"
maxLength: 2
minLength: 2
type: string
exp_year:
description: Card expiration year
example: "2025"
maxLength: 4
minLength: 4
type: string
name:
description: Cardholder name
example: John Doe
type: string
number:
description: Card number
example: "4242424242424242"
type: string
customer_ip_address:
description: Optional field used to capture the customer's IP address
for fraud prevention and security monitoring purposes
example: 0.0.0.0
type: string
required:
- cvc
- exp_month
- exp_year
- name
- number
type: object
title: payment_method_card_request
checkout_request:
description: |
[Checkout](https://developers.conekta.com/v2.1.0/reference/payment-link) details
Expand Down Expand Up @@ -16344,6 +16424,7 @@ components:
orderRefund_request:
properties:
amount:
description: Amount to be refunded in cents
example: 500
type: integer
expires_at:
Expand All @@ -16352,6 +16433,7 @@ components:
nullable: true
type: integer
reason:
description: Reason for the refund
example: suspected_fraud
type: string
required:
Expand Down Expand Up @@ -16426,7 +16508,7 @@ components:
description: Contains details of the payment methods that the customer has active
or has used in Conekta
oneOf:
- $ref: '#/components/schemas/payment_method_card_request'
- $ref: '#/components/schemas/payment_method_token_request'
- $ref: '#/components/schemas/payment_method_cash_request'
- $ref: '#/components/schemas/payment_method_spei_request'
create_customer_payment_methods_response:
Expand Down Expand Up @@ -17420,7 +17502,7 @@ components:
type: string
title: transfer_destination_response
type: object
charge_request_payment_method:
payment_method_general_request:
description: |
Payment method used in the charge. Go to the [payment methods](https://developers.conekta.com/reference/m%C3%A9todos-de-pago) section for more details
properties:
Expand All @@ -17435,6 +17517,7 @@ components:
format: int8
type: integer
type:
description: Type of payment method
example: card
type: string
token_id:
Expand All @@ -17443,14 +17526,30 @@ components:
payment_source_id:
example: src_2tLkkyfMPh6v7pFry
type: string
cvc:
description: "Optional, It is a value that allows identifying the security\
\ code of the card. Only for PCI merchants"
example: "123"
type: string
contract_id:
description: Optional id sent to indicate the bank contract for recurrent
card charges.
example: S781317595
type: string
customer_ip_address:
description: Optional field used to capture the customer's IP address for
fraud prevention and security monitoring purposes
example: 0.0.0.0
type: string
required:
- type
title: payment_method_general_request
type: object
charge_request_payment_method:
oneOf:
- $ref: '#/components/schemas/payment_method_card_request'
- $ref: '#/components/schemas/payment_method_general_request'
title: charge_request_payment_method
customer_antifraud_info:
nullable: true
properties:
Expand All @@ -17465,7 +17564,7 @@ components:
type: object
customer_payment_methods_request:
oneOf:
- $ref: '#/components/schemas/payment_method_card_request'
- $ref: '#/components/schemas/payment_method_token_request'
- $ref: '#/components/schemas/payment_method_cash_request'
- $ref: '#/components/schemas/payment_method_spei_request'
title: customer_payment_methods_request
Expand Down
2 changes: 1 addition & 1 deletion config-netcore.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"packageCopyright" : "Conekta",
"PackageReleaseNotes" : "add support for payout orders",
"releaseNote" : "update entity webhook, nuget config",
"packageVersion" : "6.0.10"
"packageVersion" : "6.0.11"
}
17 changes: 9 additions & 8 deletions docs/ChargeOrderResponsePaymentMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ Name | Type | Description | Notes
**ServiceName** | **string** | | [optional]
**Store** | **string** | | [optional]
**StoreName** | **string** | | [optional]
**AccountType** | **string** | | [optional]
**Brand** | **string** | | [optional]
**CustomerIpAddress** | **string** | | [optional]
**AccountType** | **string** | Account type of the card | [optional]
**Brand** | **string** | Brand of the card | [optional]
**ContractId** | **string** | Id sent for recurrent charges. | [optional]
**Country** | **string** | | [optional]
**ExpMonth** | **string** | | [optional]
**ExpYear** | **string** | | [optional]
**Country** | **string** | Country of the card | [optional]
**ExpMonth** | **string** | Expiration month of the card | [optional]
**ExpYear** | **string** | Expiration year of the card | [optional]
**FraudIndicators** | **List<Object>** | | [optional]
**Issuer** | **string** | | [optional]
**Last4** | **string** | | [optional]
**Name** | **string** | | [optional]
**Issuer** | **string** | Issuer of the card | [optional]
**Last4** | **string** | Last 4 digits of the card | [optional]
**Name** | **string** | Name of the cardholder | [optional]
**Bank** | **string** | | [optional]
**Clabe** | **string** | | [optional]
**Description** | **string** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ChargeRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The charges to be made

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Amount** | **int** | | [optional]
**Amount** | **int** | Amount to be charged in cents | [optional]
**PaymentMethod** | [**ChargeRequestPaymentMethod**](ChargeRequestPaymentMethod.md) | |
**ReferenceId** | **string** | Custom reference to add to the charge | [optional]

Expand Down
Loading

0 comments on commit 7f94f8c

Please sign in to comment.