Skip to content

Commit

Permalink
Adds new charge type and contract id fields (#42)
Browse files Browse the repository at this point in the history
* Adds new charge type and contract id fields

* Updating _build.yml
  • Loading branch information
leofischer authored Jun 13, 2023
1 parent 321798b commit 90a845f
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
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:
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

0 comments on commit 90a845f

Please sign in to comment.