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
85 changes: 78 additions & 7 deletions _build/api.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: 3.1.0
openapi: 3.1.2
info:
contact:
email: engineering@conekta.com
Expand Down Expand Up @@ -18814,6 +18814,22 @@ components:
items:
type: string
type: array
excluded_payment_methods:
description: Payment methods excluded from the checkout. This field is only
returned when excluded_payment_methods is provided in the request.
example:
- cash
- bank_transfer
items:
enum:
- cash
- card
- bank_transfer
- bnpl
- pay_by_bank
type: string
title: order_response_excluded_payment_methods
type: array
can_not_expire:
example: false
type: boolean
Expand Down Expand Up @@ -18905,6 +18921,7 @@ components:
description: "Redirection url back to the site in case of successful payment,\
\ applies only to HostedPayment"
example: http://187.216.228.66:2222/SysVentasPagos/Acceso.aspx
format: uri
type: string
starts_at:
example: 1676354400
Expand All @@ -18924,10 +18941,11 @@ components:
description: "Indicate the url of the Conekta component to complete the\
\ payment. For HostedPayment, this will be a Conekta-hosted page"
example: https://pay.conekta.io/checkout/6fca054a85194c43971ecea35cc519bb
format: uri
type: string
required:
- allowed_payment_methods
- id
- livemode
- name
- object
- type
Expand Down Expand Up @@ -19396,6 +19414,13 @@ components:
example: 1676328434
format: int64
type: integer
required:
- amount
- created_at
- currency
- id
- livemode
- object
title: order_response
get_orders_response:
allOf:
Expand Down Expand Up @@ -19441,7 +19466,8 @@ components:
properties:
allowed_payment_methods:
description: "Are the payment methods available for this link. For subscriptions,\
\ only 'card' is allowed due to the recurring nature of the payments."
\ only 'card' is allowed due to the recurring nature of the payments.\
\ This field is mutually exclusive with excluded_payment_methods."
example:
- cash
- card
Expand All @@ -19457,6 +19483,22 @@ components:
- pay_by_bank
type: string
type: array
excluded_payment_methods:
description: Payment methods to be excluded from the checkout. This field
is mutually exclusive with allowed_payment_methods.
example:
- cash
- bank_transfer
items:
enum:
- cash
- card
- bank_transfer
- bnpl
- pay_by_bank
type: string
title: checkout_request_excluded_payment_methods
type: array
exclude_card_networks:
description: List of card networks to exclude from the checkout. This field
is only applicable for card payments.
Expand Down Expand Up @@ -19535,8 +19577,6 @@ components:
- Integration
- HostedPayment
type: string
required:
- allowed_payment_methods
title: order_checkout_request
customer_info:
properties:
Expand Down Expand Up @@ -20345,6 +20385,22 @@ components:
items:
type: string
type: array
excluded_payment_methods:
description: Payment methods excluded from the checkout. This field is only
returned when excluded_payment_methods is provided in the request.
example:
- cash
- bank_transfer
items:
enum:
- cash
- card
- bank_transfer
- bnpl
- pay_by_bank
type: string
title: checkout_response_excluded_payment_methods
type: array
plan_ids:
description: List of plan IDs that are available for subscription
example:
Expand Down Expand Up @@ -20544,7 +20600,7 @@ components:
properties:
allowed_payment_methods:
description: Those are the payment methods that will be available for the
link
link. This field is mutually exclusive with excluded_payment_methods.
example:
- cash
- card
Expand All @@ -20554,6 +20610,22 @@ components:
items:
type: string
type: array
excluded_payment_methods:
description: Payment methods to be excluded from the checkout. This field
is mutually exclusive with allowed_payment_methods.
example:
- cash
- bank_transfer
items:
enum:
- cash
- card
- bank_transfer
- bnpl
- pay_by_bank
type: string
title: checkout_excluded_payment_methods
type: array
exclude_card_networks:
description: List of card networks to exclude from the checkout. This field
is only applicable for card payments.
Expand Down Expand Up @@ -20641,7 +20713,6 @@ components:
example: PaymentLink
type: string
required:
- allowed_payment_methods
- expires_at
- name
- order_template
Expand Down
2 changes: 1 addition & 1 deletion api.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: "3.1.0"
openapi: "3.1.2"
servers:
- url: https://api.conekta.io
description: Conekta main server
Expand Down
11 changes: 9 additions & 2 deletions schemas/checkouts/checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ title: checkout
description: "It is a sub-resource of the Order model that can be stipulated in order to configure its corresponding checkout"
type: object
required:
- allowed_payment_methods
- name
- type
- order_template
Expand All @@ -14,7 +13,15 @@ properties:
items:
type: string
example: [ "cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]
description: "Those are the payment methods that will be available for the link"
description: "Those are the payment methods that will be available for the link. This field is mutually exclusive with excluded_payment_methods."
excluded_payment_methods:
title: checkout_excluded_payment_methods
type: array
description: "Payment methods to be excluded from the checkout. This field is mutually exclusive with allowed_payment_methods."
items:
type: string
enum: ["cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]
example: ["cash", "bank_transfer"]
exclude_card_networks:
title: checkout_exclude_card_networks
type: array
Expand Down
12 changes: 9 additions & 3 deletions schemas/checkouts/checkout_request.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
title: order_checkout_request
description: |
[Checkout](https://developers.conekta.com/v2.3.0/reference/payment-link) details
required:
- allowed_payment_methods
properties:
allowed_payment_methods:
type: array
description: "Are the payment methods available for this link. For subscriptions, only 'card' is allowed due to the recurring nature of the payments."
description: "Are the payment methods available for this link. For subscriptions, only 'card' is allowed due to the recurring nature of the payments. This field is mutually exclusive with excluded_payment_methods."
items:
type: string
enum: ["cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]
example: [ "cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]
excluded_payment_methods:
title: checkout_request_excluded_payment_methods
type: array
description: "Payment methods to be excluded from the checkout. This field is mutually exclusive with allowed_payment_methods."
items:
type: string
enum: ["cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]
example: ["cash", "bank_transfer"]
exclude_card_networks:
title: checkout_request_exclude_card_networks
type: array
Expand Down
8 changes: 8 additions & 0 deletions schemas/checkouts/checkout_response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ properties:
type: string
example: [ "cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]
description: "Are the payment methods available for this link"
excluded_payment_methods:
title: checkout_response_excluded_payment_methods
type: array
items:
type: string
enum: ["cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]
example: ["cash", "bank_transfer"]
description: "Payment methods excluded from the checkout. This field is only returned when excluded_payment_methods is provided in the request."
plan_ids:
type: array
description: "List of plan IDs that are available for subscription"
Expand Down
19 changes: 18 additions & 1 deletion schemas/orders/order_response.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
title: order_response
description: "order response"
required:
- amount
- created_at
- currency
- id
- livemode
- object
properties:
amount:
type: integer
Expand Down Expand Up @@ -42,8 +49,8 @@ properties:
checkout:
type: object
required:
- allowed_payment_methods
- id
- livemode
- name
- object
- type
Expand All @@ -54,6 +61,14 @@ properties:
description: "Are the payment methods available for this link"
items:
type: string
excluded_payment_methods:
title: order_response_excluded_payment_methods
type: array
items:
type: string
enum: ["cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]
example: ["cash", "bank_transfer"]
description: "Payment methods excluded from the checkout. This field is only returned when excluded_payment_methods is provided in the request."
can_not_expire:
type: boolean
example: false
Expand Down Expand Up @@ -139,6 +154,7 @@ properties:
type: string
description: "Redirection url back to the site in case of successful payment, applies only to HostedPayment"
example: "http://187.216.228.66:2222/SysVentasPagos/Acceso.aspx"
format: uri
starts_at:
type: integer
example: 1676354400
Expand All @@ -153,6 +169,7 @@ properties:
type: string
description: "Indicate the url of the Conekta component to complete the payment. For HostedPayment, this will be a Conekta-hosted page"
example: "https://pay.conekta.io/checkout/6fca054a85194c43971ecea35cc519bb"
format: uri
created_at:
type: integer
example: 1676328434
Expand Down
Loading