Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI-64 update template by new attribute CustomerIpAddress #68

Merged
merged 2 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,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 @@ -346,9 +348,11 @@ model_payment_method_card_response.go
model_payment_method_cash.go
model_payment_method_cash_request.go
model_payment_method_cash_response.go
model_payment_method_general_request.go
model_payment_method_response.go
model_payment_method_spei_recurrent.go
model_payment_method_spei_request.go
model_payment_method_token_request.go
model_payout.go
model_payout_method.go
model_payout_order.go
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,11 @@ Class | Method | HTTP request | Description
- [PaymentMethodCash](docs/PaymentMethodCash.md)
- [PaymentMethodCashRequest](docs/PaymentMethodCashRequest.md)
- [PaymentMethodCashResponse](docs/PaymentMethodCashResponse.md)
- [PaymentMethodGeneralRequest](docs/PaymentMethodGeneralRequest.md)
- [PaymentMethodResponse](docs/PaymentMethodResponse.md)
- [PaymentMethodSpeiRecurrent](docs/PaymentMethodSpeiRecurrent.md)
- [PaymentMethodSpeiRequest](docs/PaymentMethodSpeiRequest.md)
- [PaymentMethodTokenRequest](docs/PaymentMethodTokenRequest.md)
- [Payout](docs/Payout.md)
- [PayoutMethod](docs/PayoutMethod.md)
- [PayoutOrder](docs/PayoutOrder.md)
Expand Down
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
42 changes: 34 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** | Pointer to **string** | | [optional]
**Store** | Pointer to **NullableString** | | [optional]
**StoreName** | Pointer to **string** | | [optional]
**AccountType** | Pointer to **string** | | [optional]
**Brand** | Pointer to **string** | | [optional]
**CustomerIpAddress** | Pointer to **string** | | [optional]
**AccountType** | Pointer to **string** | Account type of the card | [optional]
**Brand** | Pointer to **string** | Brand of the card | [optional]
**ContractId** | Pointer to **string** | Id sent for recurrent charges. | [optional]
**Country** | Pointer to **string** | | [optional]
**ExpMonth** | Pointer to **string** | | [optional]
**ExpYear** | Pointer to **string** | | [optional]
**Country** | Pointer to **string** | Country of the card | [optional]
**ExpMonth** | Pointer to **string** | Expiration month of the card | [optional]
**ExpYear** | Pointer to **string** | Expiration year of the card | [optional]
**FraudIndicators** | Pointer to **[]map[string]interface{}** | | [optional]
**Issuer** | Pointer to **string** | | [optional]
**Last4** | Pointer to **string** | | [optional]
**Name** | Pointer to **string** | | [optional]
**Issuer** | Pointer to **string** | Issuer of the card | [optional]
**Last4** | Pointer to **string** | Last 4 digits of the card | [optional]
**Name** | Pointer to **string** | Name of the cardholder | [optional]
**Bank** | Pointer to **string** | | [optional]
**Clabe** | Pointer to **string** | | [optional]
**Description** | Pointer to **NullableString** | | [optional]
Expand Down Expand Up @@ -324,6 +325,31 @@ SetStoreName sets StoreName field to given value.

HasStoreName returns a boolean if a field has been set.

### GetCustomerIpAddress

`func (o *ChargeOrderResponsePaymentMethod) GetCustomerIpAddress() string`

GetCustomerIpAddress returns the CustomerIpAddress field if non-nil, zero value otherwise.

### GetCustomerIpAddressOk

`func (o *ChargeOrderResponsePaymentMethod) GetCustomerIpAddressOk() (*string, bool)`

GetCustomerIpAddressOk returns a tuple with the CustomerIpAddress field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCustomerIpAddress

`func (o *ChargeOrderResponsePaymentMethod) SetCustomerIpAddress(v string)`

SetCustomerIpAddress sets CustomerIpAddress field to given value.

### HasCustomerIpAddress

`func (o *ChargeOrderResponsePaymentMethod) HasCustomerIpAddress() bool`

HasCustomerIpAddress returns a boolean if a field has been set.

### GetAccountType

`func (o *ChargeOrderResponsePaymentMethod) GetAccountType() string`
Expand Down
Loading
Loading