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

Adds new charge type and contract id fields #42

Merged
merged 2 commits into from
Jun 13, 2023
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
23 changes: 23 additions & 0 deletions _build/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11618,6 +11618,11 @@ components:
description: The payment status of the order.
example: paid
type: string
processing_mode:
description: "Indicates the processing mode for the order, either ecommerce,\
\ recurrent or validation."
example: ecommerce
type: string
shipping_contact:
$ref: '#/components/schemas/order_response_shipping_contact'
updated_at:
Expand Down Expand Up @@ -12538,6 +12543,11 @@ components:
default: false
description: Indicates whether the order charges must be preauthorized
type: boolean
processing_mode:
description: "Indicates the processing mode for the order, either ecommerce,\
\ recurrent or validation."
example: ecommerce
type: string
shipping_contact:
$ref: '#/components/schemas/customer_shipping_contacts'
shipping_lines:
Expand Down Expand Up @@ -14777,6 +14787,13 @@ components:
payment_source_id:
example: src_2tLkkyfMPh6v7pFry
type: string
contract_id:
description: Optional id sent to indicate the bank contract for recurrent
card charges.
example: S781317595
maxLength: 10
minLength: 10
type: string
required:
- type
type: object
Expand Down Expand Up @@ -15007,6 +15024,12 @@ components:
brand:
example: visa
type: string
contract_id:
description: Id sent for recurrent charges.
example: S781317595
maxLength: 10
minLength: 10
type: string
country:
example: MX
type: string
Expand Down
6 changes: 6 additions & 0 deletions schemas/charges/charge_payment_method_card_response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ payment_method_card:
brand:
type: string
example: "visa"
contract_id:
type: string
description: "Id sent for recurrent charges."
example: "S781317595"
maxLength: 10
minLength: 10
country:
type: string
example: "MX"
Expand Down
6 changes: 6 additions & 0 deletions schemas/charges/charge_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ properties:
payment_source_id:
type: string
example: "src_2tLkkyfMPh6v7pFry"
contract_id:
type: string
description: "Optional id sent to indicate the bank contract for recurrent card charges."
example: "S781317595"
maxLength: 10
minLength: 10
reference_id:
description: "Custom reference to add to the charge"
type: string
Expand Down
4 changes: 4 additions & 0 deletions schemas/orders/order_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ properties:
type: boolean
description: "Indicates whether the order charges must be preauthorized"
default: false
processing_mode:
fcarrero marked this conversation as resolved.
Show resolved Hide resolved
type: string
description: "Indicates the processing mode for the order, either ecommerce, recurrent or validation."
example: "ecommerce"
shipping_contact:
$ref: ../../schemas/customers/customer_shipping_contacts.yml
shipping_lines:
Expand Down
4 changes: 4 additions & 0 deletions schemas/orders/order_response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ properties:
type: string
example: "paid"
description: "The payment status of the order."
processing_mode:
type: string
description: "Indicates the processing mode for the order, either ecommerce, recurrent or validation."
example: "ecommerce"
shipping_contact:
allOf:
- type: object
Expand Down