-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AI-64 update template by new attribute CustomerIpAddress (#119)
* AI-64 update template by new attribute CustomerIpAddress * AI-64 update template by new attribute CustomerIpAddress * AI-64 fix charge test * AI-64 fix charge test * AI-64 fix charge test
- Loading branch information
1 parent
4eb2f85
commit 453f765
Showing
43 changed files
with
1,073 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.0.3 | ||
6.0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,49 @@ | ||
# Conekta::ChargeRequestPaymentMethod | ||
|
||
## Properties | ||
## Class instance methods | ||
|
||
| Name | Type | Description | Notes | | ||
| ---- | ---- | ----------- | ----- | | ||
| **expires_at** | **Integer** | Method expiration date as unix timestamp | [optional] | | ||
| **monthly_installments** | **Integer** | How many months without interest to apply, it can be 3, 6, 9, 12 or 18 | [optional] | | ||
| **type** | **String** | | | | ||
| **token_id** | **String** | | [optional] | | ||
| **payment_source_id** | **String** | | [optional] | | ||
| **contract_id** | **String** | Optional id sent to indicate the bank contract for recurrent card charges. | [optional] | | ||
### `openapi_one_of` | ||
|
||
## Example | ||
Returns the list of classes defined in oneOf. | ||
|
||
#### Example | ||
|
||
```ruby | ||
require 'conekta' | ||
|
||
Conekta::ChargeRequestPaymentMethod.openapi_one_of | ||
# => | ||
# [ | ||
# :'PaymentMethodCardRequest', | ||
# :'PaymentMethodGeneralRequest' | ||
# ] | ||
``` | ||
|
||
### build | ||
|
||
Find the appropriate object from the `openapi_one_of` list and casts the data into it. | ||
|
||
#### Example | ||
|
||
```ruby | ||
require 'conekta' | ||
|
||
instance = Conekta::ChargeRequestPaymentMethod.new( | ||
expires_at: 1677196303, | ||
monthly_installments: null, | ||
type: card, | ||
token_id: tok_2897348234, | ||
payment_source_id: src_2tLkkyfMPh6v7pFry, | ||
contract_id: S781317595 | ||
) | ||
Conekta::ChargeRequestPaymentMethod.build(data) | ||
# => #<PaymentMethodCardRequest:0x00007fdd4aab02a0> | ||
|
||
Conekta::ChargeRequestPaymentMethod.build(data_that_doesnt_match) | ||
# => nil | ||
``` | ||
|
||
#### Parameters | ||
|
||
| Name | Type | Description | | ||
| ---- | ---- | ----------- | | ||
| **data** | **Mixed** | data to be matched against the list of oneOf items | | ||
|
||
#### Return type | ||
|
||
- `PaymentMethodCardRequest` | ||
- `PaymentMethodGeneralRequest` | ||
- `nil` (if no type matches) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.