Skip to content
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
174 changes: 65 additions & 109 deletions _build/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13398,15 +13398,15 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/a_order_tax_lines_inner"
$ref: "#/components/schemas/order_tax_request"
description: requested field for a taxes
required: true
responses:
"200":
content:
application/vnd.conekta-v2.2.0+json:
schema:
$ref: "#/components/schemas/ordersCreateTaxes_200_response"
$ref: "#/components/schemas/order_tax_response"
description: successful
"401":
content:
Expand Down Expand Up @@ -13517,7 +13517,7 @@ paths:
content:
application/vnd.conekta-v2.2.0+json:
schema:
$ref: "#/components/schemas/ordersCreateTaxes_200_response"
$ref: "#/components/schemas/order_tax_response"
description: successful
"401":
content:
Expand Down Expand Up @@ -13649,7 +13649,7 @@ paths:
content:
application/vnd.conekta-v2.2.0+json:
schema:
$ref: "#/components/schemas/ordersCreateTaxes_200_response"
$ref: "#/components/schemas/order_tax_response"
description: successful
"401":
content:
Expand Down Expand Up @@ -19198,73 +19198,45 @@ components:
example: cus_23874283647
type: string
title: customer_info_response
discount_lines_data_response:
order_tax_response:
allOf:
- allOf:
- description: List of discounts that apply to the order.
properties:
amount:
description: "The amount to be deducted from the total sum of all payments,\
\ in cents."
example: 500
format: int64
minimum: 0
type: integer
code:
description: Discount code.
example: "123"
type: string
type:
description: "It can be 'loyalty', 'campaign', 'coupon' o 'sign'"
example: loyalty
type: string
required:
- amount
- code
- type
title: order_discount_lines_request
name: order_discount_lines_request
- properties:
id:
description: The discount line id
example: dis_lin_2tQQ58HPgPw7StE8z
type: string
object:
description: The object name
example: discount_line
type: string
parent_id:
description: The order id
example: ord_2tPAmKCEJqh8RE6nY
type: string
required:
- id
- object
- parent_id
title: discount_lines_order_response
title: discount_lines_data_response
order_discount_lines_response:
allOf:
- description: pagination metadata
- description: create new taxes for an existing order
properties:
has_more:
description: Indicates if there are more pages to be requested
example: false
type: boolean
object:
description: "Object type, in this case is list"
example: list
amount:
description: The amount to be collected for tax in cents
example: 100
format: int64
minimum: 0
type: integer
description:
description: description or tax's name
example: testing
minLength: 2
type: string
metadata:
additionalProperties: true
example:
key: value
maxProperties: 100
type: object
required:
- has_more
- object
title: pagination metadata
- amount
- description
title: order_tax_request
- properties:
data:
items:
$ref: "#/components/schemas/discount_lines_data_response"
type: array
title: order_discount_lines_response
id:
example: tax_lin_2tQ8dC5mg1UADmVPo
type: string
object:
example: tax_line
type: string
parent_id:
example: ord_2tPAmKCEJqh8RE6nY
type: string
description: create new taxes for an existing order response
required:
- id
title: order_tax_response
order_fiscal_entity_address_response:
allOf:
- description: Address of the fiscal entity
Expand Down Expand Up @@ -19599,7 +19571,15 @@ components:
customer_info:
$ref: "#/components/schemas/order_response_customer_info"
discount_lines:
$ref: "#/components/schemas/order_discount_lines_response"
description: List of discounts that are applied to the order
items:
$ref: "#/components/schemas/discount_lines_order_response"
type: array
tax_lines:
description: List of taxes that are applied to the order
items:
$ref: "#/components/schemas/order_tax_response"
type: array
fiscal_entity:
$ref: "#/components/schemas/order_fiscal_entity_response"
id:
Expand Down Expand Up @@ -19973,7 +19953,7 @@ components:
required:
- amount
title: shipping_request
a_order_tax_lines_inner:
order_tax_request:
description: create new taxes for an existing order
properties:
amount:
Expand All @@ -19996,6 +19976,7 @@ components:
required:
- amount
- description
title: order_tax_request
a_order:
description: a order
properties:
Expand All @@ -20017,7 +19998,7 @@ components:
$ref: "#/components/schemas/a_order_customer_info"
discount_lines:
description: "List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline)\
\ that are applied to the order. You must have at least one discount."
\ that are applied to the order."
items:
$ref: "#/components/schemas/order_discount_lines_request"
type: array
Expand Down Expand Up @@ -20065,7 +20046,7 @@ components:
description: "List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes)\
\ that are applied to the order."
items:
$ref: "#/components/schemas/a_order_tax_lines_inner"
$ref: "#/components/schemas/order_tax_request"
type: array
three_ds_mode:
description: "Indicates the 3DS2 mode for the order, either smart or strict.\
Expand Down Expand Up @@ -20133,7 +20114,7 @@ components:
$ref: "#/components/schemas/order_update_customer_info"
discount_lines:
description: "List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline)\
\ that are applied to the order. You must have at least one discount."
\ that are applied to the order."
items:
$ref: "#/components/schemas/order_discount_lines_request"
type: array
Expand Down Expand Up @@ -20162,7 +20143,7 @@ components:
type: array
tax_lines:
items:
$ref: "#/components/schemas/a_order_tax_lines_inner"
$ref: "#/components/schemas/order_tax_request"
type: array
title: order_update
order_capture_request:
Expand Down Expand Up @@ -20747,6 +20728,18 @@ components:
key: value
maxProperties: 100
type: object
tax_lines:
description: "List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes)\
\ that are applied to the order."
items:
$ref: "#/components/schemas/order_tax_request"
type: array
discount_lines:
description: "List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline)\
\ that are applied to the order."
items:
$ref: "#/components/schemas/order_discount_lines_request"
type: array
required:
- currency
- line_items
Expand Down Expand Up @@ -21624,43 +21617,6 @@ components:
format: uri
type: string
title: customer_portal_response
ordersCreateTaxes_200_response:
allOf:
- description: create new taxes for an existing order
properties:
amount:
description: The amount to be collected for tax in cents
example: 100
format: int64
minimum: 0
type: integer
description:
description: description or tax's name
example: testing
minLength: 2
type: string
metadata:
additionalProperties: true
example:
key: value
maxProperties: 100
type: object
required:
- amount
- description
- properties:
id:
example: tax_lin_2tQ8dC5mg1UADmVPo
type: string
object:
example: tax_line
type: string
parent_id:
example: ord_2tPAmKCEJqh8RE6nY
type: string
description: create new taxes for an existing order response
required:
- id
ordersUpdateTaxes_request:
description: create new taxes for an existing order
properties:
Expand Down
10 changes: 10 additions & 0 deletions schemas/checkouts/checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ properties:
example: { "key": "value" }
maxProperties: 100
description: "It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format."
tax_lines:
description: "List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes) that are applied to the order."
type: array
items:
$ref: ../../schemas/orders/order_tax_request.yml
discount_lines:
description: "List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order."
type: array
items:
$ref: ../../schemas/orders/order_discount_lines_request.yml
payments_limit_count:
type: integer
format: int8
Expand Down
2 changes: 1 addition & 1 deletion schemas/orders/order_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ properties:
- $ref: ../customers/customer_info.yml
- $ref: ../customers/customer_info_just_customer_id.yml
discount_lines:
description: "List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order. You must have at least one discount."
description: "List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order."
type: array
items:
$ref: order_discount_lines_request.yml
Expand Down
20 changes: 10 additions & 10 deletions schemas/orders/order_response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,17 @@ properties:
- $ref: order_customer_info_response.yml
- $ref: ../customers/customer_info_just_customer_id_response.yml
discount_lines:
type: array
title: order_discount_lines_response
allOf:
- $ref: ../pagination/pagination.yml
- type: object
properties:
data:
type: array
items:
title: discount_lines_data_response
allOf:
- $ref: ../../schemas/orders/discount_lines_response.yml
description: "List of discounts that are applied to the order"
items:
$ref: ../../schemas/orders/discount_lines_response.yml
tax_lines:
type: array
title: order_tax_lines_response
description: "List of taxes that are applied to the order"
items:
$ref: ../../schemas/orders/update_order_tax_response.yml
fiscal_entity:
type: object
title: order_fiscal_entity_response
Expand Down
1 change: 1 addition & 0 deletions schemas/orders/order_tax_request.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
title: order_tax_request
description: "create new taxes for an existing order"
type: object
required:
Expand Down
2 changes: 1 addition & 1 deletion schemas/orders/order_update_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ properties:
- $ref: ../customers/customer_info.yml
- $ref: ../customers/customer_info_just_customer_id.yml
discount_lines:
description: "List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order. You must have at least one discount."
description: "List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order."
type: array
items:
$ref: order_discount_lines_request.yml
Expand Down
1 change: 1 addition & 0 deletions schemas/orders/update_order_tax_response.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
title: order_tax_response
description: "create new taxes for an existing order response"
required:
- id
Expand Down