conekta 6.0.5 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +2 -2
  3. data/README.md +30 -16
  4. data/VERSION +1 -1
  5. data/conekta.gemspec +1 -1
  6. data/config-ruby.json +1 -1
  7. data/docs/AntifraudApi.md +6 -6
  8. data/docs/ApiKeyCreateResponse.md +2 -2
  9. data/docs/ApiKeyResponse.md +2 -2
  10. data/docs/ApiKeyResponseOnDelete.md +2 -2
  11. data/docs/ApiKeysApi.md +5 -5
  12. data/docs/BalancesApi.md +1 -1
  13. data/docs/ChargeOrderResponsePaymentMethod.md +3 -0
  14. data/docs/ChargeRequestPaymentMethod.md +3 -1
  15. data/docs/ChargeResponse.md +8 -8
  16. data/docs/ChargeResponsePaymentMethod.md +3 -0
  17. data/docs/ChargesApi.md +6 -6
  18. data/docs/ChargesDataResponse.md +8 -8
  19. data/docs/ChargesOrderResponseAllOfData.md +8 -8
  20. data/docs/Checkout.md +1 -1
  21. data/docs/CheckoutOrderTemplate.md +2 -0
  22. data/docs/CheckoutRequest.md +4 -2
  23. data/docs/CheckoutResponse.md +4 -2
  24. data/docs/CompaniesApi.md +2 -2
  25. data/docs/CreateCustomerPaymentMethodsResponse.md +1 -0
  26. data/docs/CustomerPaymentMethodRequest.md +1 -1
  27. data/docs/CustomerPaymentMethodsData.md +1 -0
  28. data/docs/CustomersApi.md +7 -7
  29. data/docs/DeleteApiKeysResponse.md +5 -3
  30. data/docs/DiscountsApi.md +5 -5
  31. data/docs/EventsApi.md +12 -12
  32. data/docs/GetCustomerPaymentMethodDataResponse.md +1 -0
  33. data/docs/LogResponse.md +3 -3
  34. data/docs/LogsApi.md +2 -2
  35. data/docs/LogsResponseData.md +3 -3
  36. data/docs/OrderChannelResponse.md +24 -0
  37. data/docs/{OrderResponseCharges.md → OrderChargesResponse.md} +2 -2
  38. data/docs/{OrderResponseDiscountLines.md → OrderDiscountLinesResponse.md} +2 -2
  39. data/docs/OrderRequest.md +5 -5
  40. data/docs/OrderResponse.md +3 -3
  41. data/docs/OrderResponseCheckout.md +2 -2
  42. data/docs/OrderUpdateRequest.md +3 -3
  43. data/docs/OrdersApi.md +8 -8
  44. data/docs/PaymentLinkApi.md +7 -7
  45. data/docs/PaymentMethodBankTransfer.md +1 -1
  46. data/docs/PaymentMethodBnplPayment.md +32 -0
  47. data/docs/PaymentMethodBnplRequest.md +28 -0
  48. data/docs/PaymentMethodCardRequest.md +1 -1
  49. data/docs/PaymentMethodCash.md +3 -3
  50. data/docs/PaymentMethodCashRequest.md +1 -1
  51. data/docs/PaymentMethodCashResponse.md +6 -4
  52. data/docs/PaymentMethodCashResponseAllOfAgreements.md +20 -0
  53. data/docs/PaymentMethodSpeiRequest.md +1 -1
  54. data/docs/PaymentMethodTokenRequest.md +2 -2
  55. data/docs/PaymentMethodsApi.md +5 -5
  56. data/docs/PayoutOrdersApi.md +4 -4
  57. data/docs/PlanRequest.md +5 -1
  58. data/docs/PlanResponse.md +5 -1
  59. data/docs/PlansApi.md +5 -5
  60. data/docs/ProductsApi.md +3 -3
  61. data/docs/ResendRequest.md +18 -0
  62. data/docs/ShippingContactsApi.md +3 -3
  63. data/docs/ShippingsApi.md +3 -3
  64. data/docs/SubscriptionsApi.md +793 -73
  65. data/docs/TaxesApi.md +3 -3
  66. data/docs/TokensApi.md +1 -1
  67. data/docs/TransactionsApi.md +2 -2
  68. data/docs/TransfersApi.md +2 -2
  69. data/docs/UpdateCustomerPaymentMethodsResponse.md +1 -0
  70. data/docs/WebhookKeysApi.md +5 -5
  71. data/docs/WebhookRequest.md +2 -2
  72. data/docs/WebhookResponse.md +10 -14
  73. data/docs/WebhookUpdateRequest.md +5 -5
  74. data/docs/WebhooksApi.md +8 -8
  75. data/lib/conekta/api/antifraud_api.rb +7 -7
  76. data/lib/conekta/api/api_keys_api.rb +6 -6
  77. data/lib/conekta/api/balances_api.rb +2 -2
  78. data/lib/conekta/api/charges_api.rb +5 -5
  79. data/lib/conekta/api/companies_api.rb +3 -3
  80. data/lib/conekta/api/customers_api.rb +8 -8
  81. data/lib/conekta/api/discounts_api.rb +6 -6
  82. data/lib/conekta/api/events_api.rb +21 -16
  83. data/lib/conekta/api/logs_api.rb +3 -3
  84. data/lib/conekta/api/orders_api.rb +9 -9
  85. data/lib/conekta/api/payment_link_api.rb +7 -7
  86. data/lib/conekta/api/payment_methods_api.rb +5 -5
  87. data/lib/conekta/api/payout_orders_api.rb +5 -5
  88. data/lib/conekta/api/plans_api.rb +6 -6
  89. data/lib/conekta/api/products_api.rb +4 -4
  90. data/lib/conekta/api/shipping_contacts_api.rb +4 -4
  91. data/lib/conekta/api/shippings_api.rb +4 -4
  92. data/lib/conekta/api/subscriptions_api.rb +826 -63
  93. data/lib/conekta/api/taxes_api.rb +4 -4
  94. data/lib/conekta/api/tokens_api.rb +2 -2
  95. data/lib/conekta/api/transactions_api.rb +3 -3
  96. data/lib/conekta/api/transfers_api.rb +3 -3
  97. data/lib/conekta/api/webhook_keys_api.rb +6 -6
  98. data/lib/conekta/api/webhooks_api.rb +7 -7
  99. data/lib/conekta/api_client.rb +1 -1
  100. data/lib/conekta/api_error.rb +1 -1
  101. data/lib/conekta/configuration.rb +1 -1
  102. data/lib/conekta/models/api_key_create_response.rb +13 -12
  103. data/lib/conekta/models/api_key_request.rb +1 -1
  104. data/lib/conekta/models/api_key_response.rb +13 -12
  105. data/lib/conekta/models/api_key_response_on_delete.rb +10 -9
  106. data/lib/conekta/models/api_key_update_request.rb +1 -1
  107. data/lib/conekta/models/balance_common_field.rb +1 -1
  108. data/lib/conekta/models/balance_response.rb +1 -1
  109. data/lib/conekta/models/blacklist_rule_response.rb +1 -1
  110. data/lib/conekta/models/charge_order_response.rb +1 -1
  111. data/lib/conekta/models/charge_order_response_payment_method.rb +3 -1
  112. data/lib/conekta/models/charge_request.rb +1 -1
  113. data/lib/conekta/models/charge_request_payment_method.rb +2 -1
  114. data/lib/conekta/models/charge_response.rb +58 -1
  115. data/lib/conekta/models/charge_response_channel.rb +1 -1
  116. data/lib/conekta/models/charge_response_payment_method.rb +3 -1
  117. data/lib/conekta/models/charge_response_refunds.rb +1 -1
  118. data/lib/conekta/models/charge_response_refunds_data.rb +1 -1
  119. data/lib/conekta/models/charge_update_request.rb +1 -1
  120. data/lib/conekta/models/charges_data_response.rb +58 -1
  121. data/lib/conekta/models/charges_order_response.rb +1 -1
  122. data/lib/conekta/models/charges_order_response_all_of_data.rb +58 -1
  123. data/lib/conekta/models/checkout.rb +1 -1
  124. data/lib/conekta/models/checkout_order_template.rb +14 -2
  125. data/lib/conekta/models/checkout_order_template_customer_info.rb +1 -1
  126. data/lib/conekta/models/checkout_request.rb +38 -4
  127. data/lib/conekta/models/checkout_response.rb +15 -2
  128. data/lib/conekta/models/checkouts_response.rb +1 -1
  129. data/lib/conekta/models/company_fiscal_info_address_response.rb +1 -1
  130. data/lib/conekta/models/company_fiscal_info_response.rb +1 -1
  131. data/lib/conekta/models/company_payout_destination_response.rb +1 -1
  132. data/lib/conekta/models/company_response.rb +1 -1
  133. data/lib/conekta/models/create_customer_fiscal_entities_response.rb +1 -1
  134. data/lib/conekta/models/create_customer_payment_methods_request.rb +1 -1
  135. data/lib/conekta/models/create_customer_payment_methods_response.rb +2 -1
  136. data/lib/conekta/models/create_risk_rules_data.rb +1 -1
  137. data/lib/conekta/models/customer.rb +1 -1
  138. data/lib/conekta/models/customer_address.rb +1 -1
  139. data/lib/conekta/models/customer_antifraud_info.rb +1 -1
  140. data/lib/conekta/models/customer_antifraud_info_response.rb +1 -1
  141. data/lib/conekta/models/customer_fiscal_entities_data_response.rb +1 -1
  142. data/lib/conekta/models/customer_fiscal_entities_request.rb +1 -1
  143. data/lib/conekta/models/customer_fiscal_entities_response.rb +1 -1
  144. data/lib/conekta/models/customer_info.rb +1 -1
  145. data/lib/conekta/models/customer_info_just_customer_id.rb +1 -1
  146. data/lib/conekta/models/customer_info_just_customer_id_response.rb +1 -1
  147. data/lib/conekta/models/customer_payment_method_request.rb +1 -1
  148. data/lib/conekta/models/customer_payment_methods_data.rb +2 -1
  149. data/lib/conekta/models/customer_payment_methods_request.rb +1 -1
  150. data/lib/conekta/models/customer_payment_methods_response.rb +1 -1
  151. data/lib/conekta/models/customer_response.rb +1 -1
  152. data/lib/conekta/models/customer_response_shipping_contacts.rb +1 -1
  153. data/lib/conekta/models/customer_shipping_contacts.rb +2 -2
  154. data/lib/conekta/models/customer_shipping_contacts_address.rb +1 -1
  155. data/lib/conekta/models/customer_shipping_contacts_data_response.rb +1 -1
  156. data/lib/conekta/models/customer_shipping_contacts_response.rb +1 -1
  157. data/lib/conekta/models/customer_shipping_contacts_response_address.rb +1 -1
  158. data/lib/conekta/models/customer_update_fiscal_entities_request.rb +1 -1
  159. data/lib/conekta/models/customer_update_shipping_contacts.rb +2 -2
  160. data/lib/conekta/models/customers_response.rb +1 -1
  161. data/lib/conekta/models/delete_api_keys_response.rb +22 -11
  162. data/lib/conekta/models/deleted_blacklist_rule_response.rb +1 -1
  163. data/lib/conekta/models/deleted_whitelist_rule_response.rb +1 -1
  164. data/lib/conekta/models/details.rb +1 -1
  165. data/lib/conekta/models/details_error.rb +1 -1
  166. data/lib/conekta/models/discount_lines_data_response.rb +1 -1
  167. data/lib/conekta/models/discount_lines_response.rb +1 -1
  168. data/lib/conekta/models/email_checkout_request.rb +1 -1
  169. data/lib/conekta/models/error.rb +1 -1
  170. data/lib/conekta/models/event_response.rb +1 -1
  171. data/lib/conekta/models/event_types.rb +1 -1
  172. data/lib/conekta/models/events_resend_response.rb +1 -1
  173. data/lib/conekta/models/fiscal_entity_address.rb +1 -1
  174. data/lib/conekta/models/get_api_keys_response.rb +1 -1
  175. data/lib/conekta/models/get_charges_response.rb +1 -1
  176. data/lib/conekta/models/get_companies_response.rb +1 -1
  177. data/lib/conekta/models/get_customer_payment_method_data_response.rb +2 -1
  178. data/lib/conekta/models/get_events_response.rb +1 -1
  179. data/lib/conekta/models/get_order_discount_lines_response.rb +1 -1
  180. data/lib/conekta/models/get_orders_response.rb +1 -1
  181. data/lib/conekta/models/get_payment_method_response.rb +1 -1
  182. data/lib/conekta/models/get_plans_response.rb +1 -1
  183. data/lib/conekta/models/get_transactions_response.rb +1 -1
  184. data/lib/conekta/models/get_transfers_response.rb +1 -1
  185. data/lib/conekta/models/get_webhook_keys_response.rb +1 -1
  186. data/lib/conekta/models/get_webhooks_response.rb +1 -1
  187. data/lib/conekta/models/log_response.rb +1 -1
  188. data/lib/conekta/models/logs_response.rb +1 -1
  189. data/lib/conekta/models/logs_response_data.rb +1 -1
  190. data/lib/conekta/models/order_capture_request.rb +1 -1
  191. data/lib/conekta/models/order_channel_response.rb +241 -0
  192. data/lib/conekta/models/order_charges_response.rb +258 -0
  193. data/lib/conekta/models/order_customer_info_response.rb +1 -1
  194. data/lib/conekta/models/order_discount_lines_request.rb +1 -1
  195. data/lib/conekta/models/order_discount_lines_response.rb +257 -0
  196. data/lib/conekta/models/order_fiscal_entity_address_response.rb +1 -1
  197. data/lib/conekta/models/order_fiscal_entity_request.rb +1 -1
  198. data/lib/conekta/models/order_fiscal_entity_response.rb +1 -1
  199. data/lib/conekta/models/order_next_action_response.rb +1 -1
  200. data/lib/conekta/models/order_next_action_response_redirect_to_url.rb +1 -1
  201. data/lib/conekta/models/order_refund_request.rb +1 -1
  202. data/lib/conekta/models/order_request.rb +6 -6
  203. data/lib/conekta/models/order_request_customer_info.rb +1 -1
  204. data/lib/conekta/models/order_response.rb +4 -4
  205. data/lib/conekta/models/order_response_checkout.rb +2 -1
  206. data/lib/conekta/models/order_response_customer_info.rb +1 -1
  207. data/lib/conekta/models/order_response_products.rb +1 -1
  208. data/lib/conekta/models/order_response_shipping_contact.rb +1 -1
  209. data/lib/conekta/models/order_tax_request.rb +1 -1
  210. data/lib/conekta/models/order_update_fiscal_entity_request.rb +1 -1
  211. data/lib/conekta/models/order_update_request.rb +4 -4
  212. data/lib/conekta/models/order_update_request_customer_info.rb +1 -1
  213. data/lib/conekta/models/orders_response.rb +1 -1
  214. data/lib/conekta/models/page.rb +1 -1
  215. data/lib/conekta/models/pagination.rb +1 -1
  216. data/lib/conekta/models/payment_method.rb +1 -1
  217. data/lib/conekta/models/payment_method_bank_transfer.rb +2 -2
  218. data/lib/conekta/models/payment_method_bnpl_payment.rb +311 -0
  219. data/lib/conekta/models/payment_method_bnpl_request.rb +348 -0
  220. data/lib/conekta/models/payment_method_card.rb +1 -1
  221. data/lib/conekta/models/payment_method_card_request.rb +1 -1
  222. data/lib/conekta/models/payment_method_card_response.rb +1 -1
  223. data/lib/conekta/models/payment_method_cash.rb +1 -1
  224. data/lib/conekta/models/payment_method_cash_request.rb +1 -1
  225. data/lib/conekta/models/payment_method_cash_response.rb +14 -2
  226. data/lib/conekta/models/payment_method_cash_response_all_of_agreements.rb +225 -0
  227. data/lib/conekta/models/payment_method_general_request.rb +1 -1
  228. data/lib/conekta/models/payment_method_response.rb +1 -1
  229. data/lib/conekta/models/payment_method_spei_recurrent.rb +1 -1
  230. data/lib/conekta/models/payment_method_spei_request.rb +1 -1
  231. data/lib/conekta/models/payment_method_token_request.rb +2 -2
  232. data/lib/conekta/models/payout.rb +1 -1
  233. data/lib/conekta/models/payout_method.rb +1 -1
  234. data/lib/conekta/models/payout_order.rb +1 -1
  235. data/lib/conekta/models/payout_order_payouts_item.rb +1 -1
  236. data/lib/conekta/models/payout_order_response.rb +1 -1
  237. data/lib/conekta/models/payout_order_response_customer_info.rb +1 -1
  238. data/lib/conekta/models/payout_orders_response.rb +1 -1
  239. data/lib/conekta/models/plan_request.rb +63 -5
  240. data/lib/conekta/models/plan_response.rb +24 -6
  241. data/lib/conekta/models/plan_update_request.rb +1 -1
  242. data/lib/conekta/models/product.rb +1 -1
  243. data/lib/conekta/models/product_data_response.rb +1 -1
  244. data/lib/conekta/models/product_order_response.rb +1 -1
  245. data/lib/conekta/models/resend_request.rb +224 -0
  246. data/lib/conekta/models/risk_rules_data.rb +1 -1
  247. data/lib/conekta/models/risk_rules_list.rb +1 -1
  248. data/lib/conekta/models/shipping_order_response.rb +1 -1
  249. data/lib/conekta/models/shipping_request.rb +1 -1
  250. data/lib/conekta/models/sms_checkout_request.rb +1 -1
  251. data/lib/conekta/models/subscription_events_response.rb +1 -1
  252. data/lib/conekta/models/subscription_request.rb +1 -1
  253. data/lib/conekta/models/subscription_response.rb +1 -1
  254. data/lib/conekta/models/subscription_update_request.rb +1 -1
  255. data/lib/conekta/models/token.rb +1 -1
  256. data/lib/conekta/models/token_card.rb +1 -1
  257. data/lib/conekta/models/token_checkout.rb +1 -1
  258. data/lib/conekta/models/token_response.rb +1 -1
  259. data/lib/conekta/models/token_response_checkout.rb +1 -1
  260. data/lib/conekta/models/transaction_response.rb +1 -1
  261. data/lib/conekta/models/transfer_destination_response.rb +1 -1
  262. data/lib/conekta/models/transfer_method_response.rb +1 -1
  263. data/lib/conekta/models/transfer_response.rb +1 -1
  264. data/lib/conekta/models/transfers_response.rb +1 -1
  265. data/lib/conekta/models/update_customer.rb +1 -1
  266. data/lib/conekta/models/update_customer_antifraud_info.rb +1 -1
  267. data/lib/conekta/models/update_customer_fiscal_entities_response.rb +1 -1
  268. data/lib/conekta/models/update_customer_payment_methods_response.rb +2 -1
  269. data/lib/conekta/models/update_order_discount_lines_request.rb +1 -1
  270. data/lib/conekta/models/update_order_tax_request.rb +1 -1
  271. data/lib/conekta/models/update_order_tax_response.rb +1 -1
  272. data/lib/conekta/models/update_payment_methods.rb +1 -1
  273. data/lib/conekta/models/update_product.rb +1 -1
  274. data/lib/conekta/models/webhook_key_create_response.rb +1 -1
  275. data/lib/conekta/models/webhook_key_delete_response.rb +1 -1
  276. data/lib/conekta/models/webhook_key_request.rb +1 -1
  277. data/lib/conekta/models/webhook_key_response.rb +1 -1
  278. data/lib/conekta/models/webhook_key_update_request.rb +1 -1
  279. data/lib/conekta/models/webhook_log.rb +1 -1
  280. data/lib/conekta/models/webhook_request.rb +11 -16
  281. data/lib/conekta/models/webhook_response.rb +28 -39
  282. data/lib/conekta/models/webhook_update_request.rb +20 -28
  283. data/lib/conekta/models/whitelistlist_rule_response.rb +1 -1
  284. data/lib/conekta/version.rb +2 -2
  285. data/lib/conekta.rb +8 -3
  286. data/spec/api/antifraud_api_spec.rb +8 -65
  287. data/spec/api/api_keys_api_spec.rb +7 -51
  288. data/spec/api/balances_api_spec.rb +3 -12
  289. data/spec/api/charges_api_spec.rb +30 -83
  290. data/spec/api/companies_api_spec.rb +5 -13
  291. data/spec/api/customers_api_spec.rb +13 -184
  292. data/spec/api/discounts_api_spec.rb +7 -46
  293. data/spec/api/events_api_spec.rb +7 -24
  294. data/spec/api/logs_api_spec.rb +3 -15
  295. data/spec/api/orders_api_spec.rb +19 -247
  296. data/spec/api/payment_link_api_spec.rb +9 -82
  297. data/spec/api/payment_methods_api_spec.rb +6 -41
  298. data/spec/api/payout_orders_api_spec.rb +14 -1
  299. data/spec/api/plans_api_spec.rb +7 -42
  300. data/spec/api/products_api_spec.rb +5 -30
  301. data/spec/api/shipping_contacts_api_spec.rb +5 -41
  302. data/spec/api/shippings_api_spec.rb +5 -32
  303. data/spec/api/subscriptions_api_spec.rb +168 -68
  304. data/spec/api/taxes_api_spec.rb +5 -34
  305. data/spec/api/tokens_api_spec.rb +3 -31
  306. data/spec/api/transactions_api_spec.rb +8 -21
  307. data/spec/api/transfers_api_spec.rb +4 -34
  308. data/spec/api/webhook_keys_api_spec.rb +7 -49
  309. data/spec/api/webhooks_api_spec.rb +9 -42
  310. data/spec/spec_helper.rb +1 -1
  311. metadata +34 -24
  312. data/spec/api/base_test.rb +0 -9
data/docs/CompaniesApi.md CHANGED
@@ -84,7 +84,7 @@ end
84
84
  ### HTTP request headers
85
85
 
86
86
  - **Content-Type**: Not defined
87
- - **Accept**: application/vnd.conekta-v2.1.0+json
87
+ - **Accept**: application/vnd.conekta-v2.2.0+json
88
88
 
89
89
 
90
90
  ## get_company
@@ -155,5 +155,5 @@ end
155
155
  ### HTTP request headers
156
156
 
157
157
  - **Content-Type**: Not defined
158
- - **Accept**: application/vnd.conekta-v2.1.0+json
158
+ - **Accept**: application/vnd.conekta-v2.2.0+json
159
159
 
@@ -47,6 +47,7 @@ Conekta::CreateCustomerPaymentMethodsResponse.openapi_discriminator_mapping
47
47
  # {
48
48
  # :'card' => :'PaymentMethodCardResponse',
49
49
  # :'cash' => :'PaymentMethodCashResponse',
50
+ # :'cash_recurrent' => :'PaymentMethodCashResponse',
50
51
  # :'oxxo_recurrent' => :'PaymentMethodCashResponse',
51
52
  # :'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
52
53
  # }
@@ -12,7 +12,7 @@
12
12
  require 'conekta'
13
13
 
14
14
  instance = Conekta::CustomerPaymentMethodRequest.new(
15
- type: card | cash | spei
15
+ type: card | cash | spei | bnpl
16
16
  )
17
17
  ```
18
18
 
@@ -47,6 +47,7 @@ Conekta::CustomerPaymentMethodsData.openapi_discriminator_mapping
47
47
  # {
48
48
  # :'card' => :'PaymentMethodCardResponse',
49
49
  # :'cash' => :'PaymentMethodCashResponse',
50
+ # :'cash_recurrent' => :'PaymentMethodCashResponse',
50
51
  # :'oxxo_recurrent' => :'PaymentMethodCashResponse',
51
52
  # :'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
52
53
  # }
data/docs/CustomersApi.md CHANGED
@@ -85,7 +85,7 @@ end
85
85
  ### HTTP request headers
86
86
 
87
87
  - **Content-Type**: application/json
88
- - **Accept**: application/vnd.conekta-v2.1.0+json
88
+ - **Accept**: application/vnd.conekta-v2.2.0+json
89
89
 
90
90
 
91
91
  ## create_customer_fiscal_entities
@@ -162,7 +162,7 @@ end
162
162
  ### HTTP request headers
163
163
 
164
164
  - **Content-Type**: application/json
165
- - **Accept**: application/vnd.conekta-v2.1.0+json
165
+ - **Accept**: application/vnd.conekta-v2.2.0+json
166
166
 
167
167
 
168
168
  ## delete_customer_by_id
@@ -237,7 +237,7 @@ end
237
237
  ### HTTP request headers
238
238
 
239
239
  - **Content-Type**: Not defined
240
- - **Accept**: application/vnd.conekta-v2.1.0+json
240
+ - **Accept**: application/vnd.conekta-v2.2.0+json
241
241
 
242
242
 
243
243
  ## get_customer_by_id
@@ -312,7 +312,7 @@ end
312
312
  ### HTTP request headers
313
313
 
314
314
  - **Content-Type**: Not defined
315
- - **Accept**: application/vnd.conekta-v2.1.0+json
315
+ - **Accept**: application/vnd.conekta-v2.2.0+json
316
316
 
317
317
 
318
318
  ## get_customers
@@ -393,7 +393,7 @@ end
393
393
  ### HTTP request headers
394
394
 
395
395
  - **Content-Type**: Not defined
396
- - **Accept**: application/vnd.conekta-v2.1.0+json
396
+ - **Accept**: application/vnd.conekta-v2.2.0+json
397
397
 
398
398
 
399
399
  ## update_customer
@@ -470,7 +470,7 @@ end
470
470
  ### HTTP request headers
471
471
 
472
472
  - **Content-Type**: application/json
473
- - **Accept**: application/vnd.conekta-v2.1.0+json
473
+ - **Accept**: application/vnd.conekta-v2.2.0+json
474
474
 
475
475
 
476
476
  ## update_customer_fiscal_entities
@@ -549,5 +549,5 @@ end
549
549
  ### HTTP request headers
550
550
 
551
551
  - **Content-Type**: application/json
552
- - **Accept**: application/vnd.conekta-v2.1.0+json
552
+ - **Accept**: application/vnd.conekta-v2.2.0+json
553
553
 
@@ -11,8 +11,9 @@
11
11
  | **prefix** | **String** | The first few characters of the authentication_token | [optional] |
12
12
  | **id** | **String** | Unique identifier of the api key | [optional] |
13
13
  | **object** | **String** | Object name, value is 'api_key' | [optional] |
14
- | **deleted** | **Boolean** | | [optional] |
14
+ | **last_used_at** | **Integer** | Unix timestamp in seconds with the api key was used | [optional] |
15
15
  | **role** | **String** | Indicates if the api key is private or public | [optional] |
16
+ | **deleted** | **Boolean** | | [optional] |
16
17
 
17
18
  ## Example
18
19
 
@@ -27,8 +28,9 @@ instance = Conekta::DeleteApiKeysResponse.new(
27
28
  prefix: key_rp,
28
29
  id: 64625cc9f3e02c00163f5e4d,
29
30
  object: api_key,
30
- deleted: true,
31
- role: private
31
+ last_used_at: null,
32
+ role: private,
33
+ deleted: true
32
34
  )
33
35
  ```
34
36
 
data/docs/DiscountsApi.md CHANGED
@@ -85,7 +85,7 @@ end
85
85
  ### HTTP request headers
86
86
 
87
87
  - **Content-Type**: application/json
88
- - **Accept**: application/vnd.conekta-v2.1.0+json
88
+ - **Accept**: application/vnd.conekta-v2.2.0+json
89
89
 
90
90
 
91
91
  ## orders_delete_discount_lines
@@ -162,7 +162,7 @@ end
162
162
  ### HTTP request headers
163
163
 
164
164
  - **Content-Type**: Not defined
165
- - **Accept**: application/vnd.conekta-v2.1.0+json
165
+ - **Accept**: application/vnd.conekta-v2.2.0+json
166
166
 
167
167
 
168
168
  ## orders_get_discount_line
@@ -239,7 +239,7 @@ end
239
239
  ### HTTP request headers
240
240
 
241
241
  - **Content-Type**: Not defined
242
- - **Accept**: application/vnd.conekta-v2.1.0+json
242
+ - **Accept**: application/vnd.conekta-v2.2.0+json
243
243
 
244
244
 
245
245
  ## orders_get_discount_lines
@@ -322,7 +322,7 @@ end
322
322
  ### HTTP request headers
323
323
 
324
324
  - **Content-Type**: Not defined
325
- - **Accept**: application/vnd.conekta-v2.1.0+json
325
+ - **Accept**: application/vnd.conekta-v2.2.0+json
326
326
 
327
327
 
328
328
  ## orders_update_discount_lines
@@ -401,5 +401,5 @@ end
401
401
  ### HTTP request headers
402
402
 
403
403
  - **Content-Type**: application/json
404
- - **Accept**: application/vnd.conekta-v2.1.0+json
404
+ - **Accept**: application/vnd.conekta-v2.2.0+json
405
405
 
data/docs/EventsApi.md CHANGED
@@ -6,7 +6,7 @@ All URIs are relative to *https://api.conekta.io*
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**get_event**](EventsApi.md#get_event) | **GET** /events/{id} | Get Event |
8
8
  | [**get_events**](EventsApi.md#get_events) | **GET** /events | Get list of Events |
9
- | [**resend_event**](EventsApi.md#resend_event) | **POST** /events/{event_id}/webhook_logs/{webhook_log_id}/resend | Resend Event |
9
+ | [**resend_event**](EventsApi.md#resend_event) | **POST** /events/{event_id}/resend | Resend Event |
10
10
 
11
11
 
12
12
  ## get_event
@@ -81,7 +81,7 @@ end
81
81
  ### HTTP request headers
82
82
 
83
83
  - **Content-Type**: Not defined
84
- - **Accept**: application/vnd.conekta-v2.1.0+json
84
+ - **Accept**: application/vnd.conekta-v2.2.0+json
85
85
 
86
86
 
87
87
  ## get_events
@@ -160,16 +160,16 @@ end
160
160
  ### HTTP request headers
161
161
 
162
162
  - **Content-Type**: Not defined
163
- - **Accept**: application/vnd.conekta-v2.1.0+json
163
+ - **Accept**: application/vnd.conekta-v2.2.0+json
164
164
 
165
165
 
166
166
  ## resend_event
167
167
 
168
- > <EventsResendResponse> resend_event(event_id, webhook_log_id, opts)
168
+ > <EventsResendResponse> resend_event(event_id, resend_request, opts)
169
169
 
170
170
  Resend Event
171
171
 
172
- Try to send an event
172
+ Resend event to selected webhooks
173
173
 
174
174
  ### Examples
175
175
 
@@ -184,14 +184,14 @@ end
184
184
 
185
185
  api_instance = Conekta::EventsApi.new
186
186
  event_id = '6463d6e35a4c3e001819e760' # String | event identifier
187
- webhook_log_id = 'webhl_2tsv6NzWJHBWCkqGt' # String | webhook log identifier
187
+ resend_request = Conekta::ResendRequest.new({webhooks_ids: ["6307a60c41de27127515a575", "6307a60c41de27127515a571"]}) # ResendRequest | requested fields for resend an event
188
188
  opts = {
189
189
  accept_language: 'es' # String | Use for knowing which language to use
190
190
  }
191
191
 
192
192
  begin
193
193
  # Resend Event
194
- result = api_instance.resend_event(event_id, webhook_log_id, opts)
194
+ result = api_instance.resend_event(event_id, resend_request, opts)
195
195
  p result
196
196
  rescue Conekta::ApiError => e
197
197
  puts "Error when calling EventsApi->resend_event: #{e}"
@@ -202,12 +202,12 @@ end
202
202
 
203
203
  This returns an Array which contains the response data, status code and headers.
204
204
 
205
- > <Array(<EventsResendResponse>, Integer, Hash)> resend_event_with_http_info(event_id, webhook_log_id, opts)
205
+ > <Array(<EventsResendResponse>, Integer, Hash)> resend_event_with_http_info(event_id, resend_request, opts)
206
206
 
207
207
  ```ruby
208
208
  begin
209
209
  # Resend Event
210
- data, status_code, headers = api_instance.resend_event_with_http_info(event_id, webhook_log_id, opts)
210
+ data, status_code, headers = api_instance.resend_event_with_http_info(event_id, resend_request, opts)
211
211
  p status_code # => 2xx
212
212
  p headers # => { ... }
213
213
  p data # => <EventsResendResponse>
@@ -221,7 +221,7 @@ end
221
221
  | Name | Type | Description | Notes |
222
222
  | ---- | ---- | ----------- | ----- |
223
223
  | **event_id** | **String** | event identifier | |
224
- | **webhook_log_id** | **String** | webhook log identifier | |
224
+ | **resend_request** | [**ResendRequest**](ResendRequest.md) | requested fields for resend an event | |
225
225
  | **accept_language** | **String** | Use for knowing which language to use | [optional][default to &#39;es&#39;] |
226
226
 
227
227
  ### Return type
@@ -234,6 +234,6 @@ end
234
234
 
235
235
  ### HTTP request headers
236
236
 
237
- - **Content-Type**: Not defined
238
- - **Accept**: application/vnd.conekta-v2.1.0+json
237
+ - **Content-Type**: application/json
238
+ - **Accept**: application/vnd.conekta-v2.2.0+json
239
239
 
@@ -47,6 +47,7 @@ Conekta::GetCustomerPaymentMethodDataResponse.openapi_discriminator_mapping
47
47
  # {
48
48
  # :'card' => :'PaymentMethodCardResponse',
49
49
  # :'cash' => :'PaymentMethodCashResponse',
50
+ # :'cash_recurrent' => :'PaymentMethodCashResponse',
50
51
  # :'oxxo_recurrent' => :'PaymentMethodCashResponse',
51
52
  # :'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
52
53
  # }
data/docs/LogResponse.md CHANGED
@@ -42,15 +42,15 @@ instance = Conekta::LogResponse.new(
42
42
  query_string: {&quot;amount&quot;:3000,&quot;payable&quot;:true},
43
43
  related: FilterResource,
44
44
  request_body: {&quot;filters&quot;:{&quot;amount&quot;:{&quot;amount_from&quot;:0,&quot;amount_to&quot;:0},&quot;created_at&quot;:{&quot;date_from&quot;:1653627600,&quot;date_to&quot;:1661489999},&quot;filterName&quot;:&quot;Payments&quot;,&quot;search_term&quot;:null,&quot;sort_by&quot;:&quot;created_at&quot;,&quot;sort_direction&quot;:&quot;desc&quot;,&quot;status&quot;:[],&quot;type&quot;:[]},&quot;id&quot;:&quot;78e65162-0f37-4942-847c-9bf7081d54c2&quot;,&quot;page&quot;:&quot;0&quot;,&quot;report_type&quot;:&quot;charges&quot;,&quot;testMode&quot;:false},
45
- request_headers: {&quot;Accept&quot;:&quot;application/vnd.conekta-v2.1.0+json&quot;,&quot;Accept-Encoding&quot;:&quot;gzip, deflate, br&quot;,&quot;Accept-Language&quot;:&quot;es-419, es; q&#x3D;0.9, en; q&#x3D;0.8&quot;,&quot;Activitypermission&quot;:&quot;orders:read&quot;,&quot;Apiversion&quot;:&quot;2.1.0&quot;},
45
+ request_headers: {&quot;Accept&quot;:&quot;application/vnd.conekta-v2.2.0+json&quot;,&quot;Accept-Encoding&quot;:&quot;gzip, deflate, br&quot;,&quot;Accept-Language&quot;:&quot;es-419, es; q&#x3D;0.9, en; q&#x3D;0.8&quot;,&quot;Activitypermission&quot;:&quot;orders:read&quot;,&quot;Apiversion&quot;:&quot;2.2.0&quot;},
46
46
  response_body: null,
47
- response_headers: {&quot;Access-Control-Allow-Headers&quot;:&quot;Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Prototype-Version, Authorization, Accept, Date, Version, X-Forwarded-For, Host, Connection, X-Forwarded-Proto, X-Forwarded-Port, X-Amzn-Trace-Id, Accept-Encoding, Accept-Language, Referer, Origin, Activitypermission, Apiversion, Entityid, Livemode, Sec-Ch-Ua, Sec-Ch-Ua-Mobile, Sec-Ch-Ua-Platform, Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, X-Datadog-Parent-Id, X-Datadog-Sampling-Priority, X-Datadog-Trace-Id, X-Forwarded-Host, X-Forwarded-Server, X-Real-Ip&quot;,&quot;Access-Control-Allow-Methods&quot;:&quot;POST, GET, PUT, OPTIONS&quot;,&quot;Access-Control-Allow-Origin&quot;:&quot;*&quot;,&quot;Access-Control-Max-Age&quot;:&quot;1728000&quot;,&quot;Conekta-Media-Type&quot;:&quot;conekta-v2.1.0; format&#x3D;application/json&quot;,&quot;Content-Type&quot;:&quot;application/json; charset&#x3D;utf-8&quot;,&quot;Referrer-Policy&quot;:&quot;strict-origin-when-cross-origin&quot;,&quot;Strict-Transport-Security&quot;:&quot;max-age&#x3D;31536000; includeSubDomains&quot;,&quot;X-Content-Type-Options&quot;:&quot;nosniff&quot;,&quot;X-Download-Options&quot;:&quot;noopen&quot;,&quot;X-Frame-Options&quot;:&quot;SAMEORIGIN&quot;,&quot;X-Permitted-Cross-Domain-Policies&quot;:&quot;none&quot;,&quot;X-XSS-Protection&quot;:&quot;1; mode&#x3D;block&quot;},
47
+ response_headers: {&quot;Access-Control-Allow-Headers&quot;:&quot;Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Prototype-Version, Authorization, Accept, Date, Version, X-Forwarded-For, Host, Connection, X-Forwarded-Proto, X-Forwarded-Port, X-Amzn-Trace-Id, Accept-Encoding, Accept-Language, Referer, Origin, Activitypermission, Apiversion, Entityid, Livemode, Sec-Ch-Ua, Sec-Ch-Ua-Mobile, Sec-Ch-Ua-Platform, Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, X-Datadog-Parent-Id, X-Datadog-Sampling-Priority, X-Datadog-Trace-Id, X-Forwarded-Host, X-Forwarded-Server, X-Real-Ip&quot;,&quot;Access-Control-Allow-Methods&quot;:&quot;POST, GET, PUT, OPTIONS&quot;,&quot;Access-Control-Allow-Origin&quot;:&quot;*&quot;,&quot;Access-Control-Max-Age&quot;:&quot;1728000&quot;,&quot;Conekta-Media-Type&quot;:&quot;conekta-v2.2.0; format&#x3D;application/json&quot;,&quot;Content-Type&quot;:&quot;application/json; charset&#x3D;utf-8&quot;,&quot;Referrer-Policy&quot;:&quot;strict-origin-when-cross-origin&quot;,&quot;Strict-Transport-Security&quot;:&quot;max-age&#x3D;31536000; includeSubDomains&quot;,&quot;X-Content-Type-Options&quot;:&quot;nosniff&quot;,&quot;X-Download-Options&quot;:&quot;noopen&quot;,&quot;X-Frame-Options&quot;:&quot;SAMEORIGIN&quot;,&quot;X-Permitted-Cross-Domain-Policies&quot;:&quot;none&quot;,&quot;X-XSS-Protection&quot;:&quot;1; mode&#x3D;block&quot;},
48
48
  searchable_tags: [&quot;6307a60c41de27127515a575&quot;,&quot;6307a60c41de27127515a571&quot;],
49
49
  status: 200,
50
50
  updated_at: 2022-08-25T16:40:44.887Z,
51
51
  url: /filter_resource,
52
52
  user_account_id: 5a0b7001edbb6e1725b0b2c6,
53
- version: 2.1.0
53
+ version: 2.2.0
54
54
  )
55
55
  ```
56
56
 
data/docs/LogsApi.md CHANGED
@@ -80,7 +80,7 @@ end
80
80
  ### HTTP request headers
81
81
 
82
82
  - **Content-Type**: Not defined
83
- - **Accept**: application/vnd.conekta-v2.1.0+json
83
+ - **Accept**: application/vnd.conekta-v2.2.0+json
84
84
 
85
85
 
86
86
  ## get_logs
@@ -161,5 +161,5 @@ end
161
161
  ### HTTP request headers
162
162
 
163
163
  - **Content-Type**: Not defined
164
- - **Accept**: application/vnd.conekta-v2.1.0+json
164
+ - **Accept**: application/vnd.conekta-v2.2.0+json
165
165
 
@@ -42,15 +42,15 @@ instance = Conekta::LogsResponseData.new(
42
42
  query_string: {&quot;amount&quot;:3000,&quot;payable&quot;:true},
43
43
  related: FilterResource,
44
44
  request_body: {&quot;filters&quot;:{&quot;amount&quot;:{&quot;amount_from&quot;:0,&quot;amount_to&quot;:0},&quot;created_at&quot;:{&quot;date_from&quot;:1653627600,&quot;date_to&quot;:1661489999},&quot;filterName&quot;:&quot;Payments&quot;,&quot;search_term&quot;:null,&quot;sort_by&quot;:&quot;created_at&quot;,&quot;sort_direction&quot;:&quot;desc&quot;,&quot;status&quot;:[],&quot;type&quot;:[]},&quot;id&quot;:&quot;78e65162-0f37-4942-847c-9bf7081d54c2&quot;,&quot;page&quot;:&quot;0&quot;,&quot;report_type&quot;:&quot;charges&quot;,&quot;testMode&quot;:false},
45
- request_headers: {&quot;Accept&quot;:&quot;application/vnd.conekta-v2.1.0+json&quot;,&quot;Accept-Encoding&quot;:&quot;gzip, deflate, br&quot;,&quot;Accept-Language&quot;:&quot;es-419, es; q&#x3D;0.9, en; q&#x3D;0.8&quot;,&quot;Activitypermission&quot;:&quot;orders:read&quot;,&quot;Apiversion&quot;:&quot;2.1.0&quot;},
45
+ request_headers: {&quot;Accept&quot;:&quot;application/vnd.conekta-v2.2.0+json&quot;,&quot;Accept-Encoding&quot;:&quot;gzip, deflate, br&quot;,&quot;Accept-Language&quot;:&quot;es-419, es; q&#x3D;0.9, en; q&#x3D;0.8&quot;,&quot;Activitypermission&quot;:&quot;orders:read&quot;,&quot;Apiversion&quot;:&quot;2.2.0&quot;},
46
46
  response_body: null,
47
- response_headers: {&quot;Access-Control-Allow-Headers&quot;:&quot;Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Prototype-Version, Authorization, Accept, Date, Version, X-Forwarded-For, Host, Connection, X-Forwarded-Proto, X-Forwarded-Port, X-Amzn-Trace-Id, Accept-Encoding, Accept-Language, Referer, Origin, Activitypermission, Apiversion, Entityid, Livemode, Sec-Ch-Ua, Sec-Ch-Ua-Mobile, Sec-Ch-Ua-Platform, Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, X-Datadog-Parent-Id, X-Datadog-Sampling-Priority, X-Datadog-Trace-Id, X-Forwarded-Host, X-Forwarded-Server, X-Real-Ip&quot;,&quot;Access-Control-Allow-Methods&quot;:&quot;POST, GET, PUT, OPTIONS&quot;,&quot;Access-Control-Allow-Origin&quot;:&quot;*&quot;,&quot;Access-Control-Max-Age&quot;:&quot;1728000&quot;,&quot;Conekta-Media-Type&quot;:&quot;conekta-v2.1.0; format&#x3D;application/json&quot;,&quot;Content-Type&quot;:&quot;application/json; charset&#x3D;utf-8&quot;,&quot;Referrer-Policy&quot;:&quot;strict-origin-when-cross-origin&quot;,&quot;Strict-Transport-Security&quot;:&quot;max-age&#x3D;31536000; includeSubDomains&quot;,&quot;X-Content-Type-Options&quot;:&quot;nosniff&quot;,&quot;X-Download-Options&quot;:&quot;noopen&quot;,&quot;X-Frame-Options&quot;:&quot;SAMEORIGIN&quot;,&quot;X-Permitted-Cross-Domain-Policies&quot;:&quot;none&quot;,&quot;X-XSS-Protection&quot;:&quot;1; mode&#x3D;block&quot;},
47
+ response_headers: {&quot;Access-Control-Allow-Headers&quot;:&quot;Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Prototype-Version, Authorization, Accept, Date, Version, X-Forwarded-For, Host, Connection, X-Forwarded-Proto, X-Forwarded-Port, X-Amzn-Trace-Id, Accept-Encoding, Accept-Language, Referer, Origin, Activitypermission, Apiversion, Entityid, Livemode, Sec-Ch-Ua, Sec-Ch-Ua-Mobile, Sec-Ch-Ua-Platform, Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, X-Datadog-Parent-Id, X-Datadog-Sampling-Priority, X-Datadog-Trace-Id, X-Forwarded-Host, X-Forwarded-Server, X-Real-Ip&quot;,&quot;Access-Control-Allow-Methods&quot;:&quot;POST, GET, PUT, OPTIONS&quot;,&quot;Access-Control-Allow-Origin&quot;:&quot;*&quot;,&quot;Access-Control-Max-Age&quot;:&quot;1728000&quot;,&quot;Conekta-Media-Type&quot;:&quot;conekta-v2.2.0; format&#x3D;application/json&quot;,&quot;Content-Type&quot;:&quot;application/json; charset&#x3D;utf-8&quot;,&quot;Referrer-Policy&quot;:&quot;strict-origin-when-cross-origin&quot;,&quot;Strict-Transport-Security&quot;:&quot;max-age&#x3D;31536000; includeSubDomains&quot;,&quot;X-Content-Type-Options&quot;:&quot;nosniff&quot;,&quot;X-Download-Options&quot;:&quot;noopen&quot;,&quot;X-Frame-Options&quot;:&quot;SAMEORIGIN&quot;,&quot;X-Permitted-Cross-Domain-Policies&quot;:&quot;none&quot;,&quot;X-XSS-Protection&quot;:&quot;1; mode&#x3D;block&quot;},
48
48
  searchable_tags: [&quot;6307a60c41de27127515a575&quot;,&quot;6307a60c41de27127515a571&quot;],
49
49
  status: 200,
50
50
  updated_at: 2022-08-25T16:40:44.887Z,
51
51
  url: /filter_resource,
52
52
  user_account_id: 5a0b7001edbb6e1725b0b2c6,
53
- version: 2.1.0
53
+ version: 2.2.0
54
54
  )
55
55
  ```
56
56
 
@@ -0,0 +1,24 @@
1
+ # Conekta::OrderChannelResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **segment** | **String** | | [optional] |
8
+ | **checkout_request_id** | **String** | | [optional] |
9
+ | **checkout_request_type** | **String** | | [optional] |
10
+ | **id** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'conekta'
16
+
17
+ instance = Conekta::OrderChannelResponse.new(
18
+ segment: Checkout,
19
+ checkout_request_id: 6fca054a-8519-4c43-971e-cea35cc519bb,
20
+ checkout_request_type: HostedPayment,
21
+ id: channel_2tNDzhA4Akmzj11AU
22
+ )
23
+ ```
24
+
@@ -1,4 +1,4 @@
1
- # Conekta::OrderResponseCharges
1
+ # Conekta::OrderChargesResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@
13
13
  ```ruby
14
14
  require 'conekta'
15
15
 
16
- instance = Conekta::OrderResponseCharges.new(
16
+ instance = Conekta::OrderChargesResponse.new(
17
17
  has_more: false,
18
18
  object: list,
19
19
  data: null
@@ -1,4 +1,4 @@
1
- # Conekta::OrderResponseDiscountLines
1
+ # Conekta::OrderDiscountLinesResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@
13
13
  ```ruby
14
14
  require 'conekta'
15
15
 
16
- instance = Conekta::OrderResponseDiscountLines.new(
16
+ instance = Conekta::OrderDiscountLinesResponse.new(
17
17
  has_more: false,
18
18
  object: list,
19
19
  data: null
data/docs/OrderRequest.md CHANGED
@@ -4,21 +4,21 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **charges** | [**Array&lt;ChargeRequest&gt;**](ChargeRequest.md) | List of [charges](https://developers.conekta.com/v2.1.0/reference/orderscreatecharge) that are applied to the order | [optional] |
7
+ | **charges** | [**Array&lt;ChargeRequest&gt;**](ChargeRequest.md) | List of [charges](https://developers.conekta.com/v2.2.0/reference/orderscreatecharge) that are applied to the order | [optional] |
8
8
  | **checkout** | [**CheckoutRequest**](CheckoutRequest.md) | | [optional] |
9
9
  | **currency** | **String** | Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) | |
10
10
  | **customer_info** | [**OrderRequestCustomerInfo**](OrderRequestCustomerInfo.md) | | |
11
- | **discount_lines** | [**Array&lt;OrderDiscountLinesRequest&gt;**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.1.0/reference/orderscreatediscountline) that are applied to the order. You must have at least one discount. | [optional] |
11
+ | **discount_lines** | [**Array&lt;OrderDiscountLinesRequest&gt;**](OrderDiscountLinesRequest.md) | 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. | [optional] |
12
12
  | **fiscal_entity** | [**OrderFiscalEntityRequest**](OrderFiscalEntityRequest.md) | | [optional] |
13
- | **line_items** | [**Array&lt;Product&gt;**](Product.md) | List of [products](https://developers.conekta.com/v2.1.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | |
13
+ | **line_items** | [**Array&lt;Product&gt;**](Product.md) | List of [products](https://developers.conekta.com/v2.2.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | |
14
14
  | **metadata** | **Hash&lt;String, Object&gt;** | Metadata associated with the order | [optional] |
15
15
  | **needs_shipping_contact** | **Boolean** | Allows you to fill out the shipping information at checkout | [optional] |
16
16
  | **pre_authorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional][default to false] |
17
17
  | **processing_mode** | **String** | Indicates the processing mode for the order, either ecommerce, recurrent or validation. | [optional] |
18
18
  | **return_url** | **String** | Indicates the redirection callback upon completion of the 3DS2 flow. Do not use this parameter if your order has a checkout parameter | [optional] |
19
19
  | **shipping_contact** | [**CustomerShippingContacts**](CustomerShippingContacts.md) | | [optional] |
20
- | **shipping_lines** | [**Array&lt;ShippingRequest&gt;**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.1.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] |
21
- | **tax_lines** | [**Array&lt;OrderTaxRequest&gt;**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.1.0/reference/orderscreatetaxes) that are applied to the order. | [optional] |
20
+ | **shipping_lines** | [**Array&lt;ShippingRequest&gt;**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.2.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] |
21
+ | **tax_lines** | [**Array&lt;OrderTaxRequest&gt;**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes) that are applied to the order. | [optional] |
22
22
  | **three_ds_mode** | **String** | Indicates the 3DS2 mode for the order, either smart or strict. | [optional] |
23
23
 
24
24
  ## Example
@@ -6,13 +6,13 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **amount** | **Integer** | The total amount to be collected in cents | [optional] |
8
8
  | **amount_refunded** | **Integer** | The total amount refunded in cents | [optional] |
9
- | **channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] |
10
- | **charges** | [**OrderResponseCharges**](OrderResponseCharges.md) | | [optional] |
9
+ | **channel** | [**OrderChannelResponse**](OrderChannelResponse.md) | | [optional] |
10
+ | **charges** | [**OrderChargesResponse**](OrderChargesResponse.md) | | [optional] |
11
11
  | **checkout** | [**OrderResponseCheckout**](OrderResponseCheckout.md) | | [optional] |
12
12
  | **created_at** | **Integer** | The time at which the object was created in seconds since the Unix epoch | [optional] |
13
13
  | **currency** | **String** | The three-letter ISO 4217 currency code. The currency of the order. | [optional] |
14
14
  | **customer_info** | [**OrderResponseCustomerInfo**](OrderResponseCustomerInfo.md) | | [optional] |
15
- | **discount_lines** | [**OrderResponseDiscountLines**](OrderResponseDiscountLines.md) | | [optional] |
15
+ | **discount_lines** | [**OrderDiscountLinesResponse**](OrderDiscountLinesResponse.md) | | [optional] |
16
16
  | **fiscal_entity** | [**OrderFiscalEntityResponse**](OrderFiscalEntityResponse.md) | | [optional] |
17
17
  | **id** | **String** | | [optional] |
18
18
  | **is_refundable** | **Boolean** | | [optional] |
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **allowed_payment_methods** | **Array&lt;String&gt;** | | [optional] |
7
+ | **allowed_payment_methods** | **Array&lt;String&gt;** | Are the payment methods available for this link | [optional] |
8
8
  | **can_not_expire** | **Boolean** | | [optional] |
9
9
  | **emails_sent** | **Integer** | | [optional] |
10
10
  | **exclude_card_networks** | **Array&lt;Object&gt;** | | [optional] |
@@ -39,7 +39,7 @@
39
39
  require 'conekta'
40
40
 
41
41
  instance = Conekta::OrderResponseCheckout.new(
42
- allowed_payment_methods: null,
42
+ allowed_payment_methods: [&quot;cash&quot;,&quot;card&quot;,&quot;bank_transfer&quot;,&quot;bnpl&quot;],
43
43
  can_not_expire: false,
44
44
  emails_sent: 0,
45
45
  exclude_card_networks: null,
@@ -8,13 +8,13 @@
8
8
  | **checkout** | [**CheckoutRequest**](CheckoutRequest.md) | | [optional] |
9
9
  | **currency** | **String** | Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) | [optional] |
10
10
  | **customer_info** | [**OrderUpdateRequestCustomerInfo**](OrderUpdateRequestCustomerInfo.md) | | [optional] |
11
- | **discount_lines** | [**Array&lt;OrderDiscountLinesRequest&gt;**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.1.0/reference/orderscreatediscountline) that are applied to the order. You must have at least one discount. | [optional] |
11
+ | **discount_lines** | [**Array&lt;OrderDiscountLinesRequest&gt;**](OrderDiscountLinesRequest.md) | 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. | [optional] |
12
12
  | **fiscal_entity** | [**OrderUpdateFiscalEntityRequest**](OrderUpdateFiscalEntityRequest.md) | | [optional] |
13
- | **line_items** | [**Array&lt;Product&gt;**](Product.md) | List of [products](https://developers.conekta.com/v2.1.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | [optional] |
13
+ | **line_items** | [**Array&lt;Product&gt;**](Product.md) | List of [products](https://developers.conekta.com/v2.2.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | [optional] |
14
14
  | **metadata** | **Hash&lt;String, String&gt;** | | [optional] |
15
15
  | **pre_authorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional][default to false] |
16
16
  | **shipping_contact** | [**CustomerShippingContacts**](CustomerShippingContacts.md) | | [optional] |
17
- | **shipping_lines** | [**Array&lt;ShippingRequest&gt;**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.1.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] |
17
+ | **shipping_lines** | [**Array&lt;ShippingRequest&gt;**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.2.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] |
18
18
  | **tax_lines** | [**Array&lt;OrderTaxRequest&gt;**](OrderTaxRequest.md) | | [optional] |
19
19
 
20
20
  ## Example
data/docs/OrdersApi.md CHANGED
@@ -86,7 +86,7 @@ end
86
86
  ### HTTP request headers
87
87
 
88
88
  - **Content-Type**: Not defined
89
- - **Accept**: application/vnd.conekta-v2.1.0+json
89
+ - **Accept**: application/vnd.conekta-v2.2.0+json
90
90
 
91
91
 
92
92
  ## create_order
@@ -161,7 +161,7 @@ end
161
161
  ### HTTP request headers
162
162
 
163
163
  - **Content-Type**: application/json
164
- - **Accept**: application/vnd.conekta-v2.1.0+json
164
+ - **Accept**: application/vnd.conekta-v2.2.0+json
165
165
 
166
166
 
167
167
  ## get_order_by_id
@@ -236,7 +236,7 @@ end
236
236
  ### HTTP request headers
237
237
 
238
238
  - **Content-Type**: Not defined
239
- - **Accept**: application/vnd.conekta-v2.1.0+json
239
+ - **Accept**: application/vnd.conekta-v2.2.0+json
240
240
 
241
241
 
242
242
  ## get_orders
@@ -331,7 +331,7 @@ end
331
331
  ### HTTP request headers
332
332
 
333
333
  - **Content-Type**: Not defined
334
- - **Accept**: application/vnd.conekta-v2.1.0+json
334
+ - **Accept**: application/vnd.conekta-v2.2.0+json
335
335
 
336
336
 
337
337
  ## order_cancel_refund
@@ -408,7 +408,7 @@ end
408
408
  ### HTTP request headers
409
409
 
410
410
  - **Content-Type**: Not defined
411
- - **Accept**: application/vnd.conekta-v2.1.0+json
411
+ - **Accept**: application/vnd.conekta-v2.2.0+json
412
412
 
413
413
 
414
414
  ## order_refund
@@ -485,7 +485,7 @@ end
485
485
  ### HTTP request headers
486
486
 
487
487
  - **Content-Type**: application/json
488
- - **Accept**: application/vnd.conekta-v2.1.0+json
488
+ - **Accept**: application/vnd.conekta-v2.2.0+json
489
489
 
490
490
 
491
491
  ## orders_create_capture
@@ -562,7 +562,7 @@ end
562
562
  ### HTTP request headers
563
563
 
564
564
  - **Content-Type**: application/json
565
- - **Accept**: application/vnd.conekta-v2.1.0+json
565
+ - **Accept**: application/vnd.conekta-v2.2.0+json
566
566
 
567
567
 
568
568
  ## update_order
@@ -637,5 +637,5 @@ end
637
637
  ### HTTP request headers
638
638
 
639
639
  - **Content-Type**: application/json
640
- - **Accept**: application/vnd.conekta-v2.1.0+json
640
+ - **Accept**: application/vnd.conekta-v2.2.0+json
641
641
 
@@ -82,7 +82,7 @@ end
82
82
  ### HTTP request headers
83
83
 
84
84
  - **Content-Type**: Not defined
85
- - **Accept**: application/vnd.conekta-v2.1.0+json
85
+ - **Accept**: application/vnd.conekta-v2.2.0+json
86
86
 
87
87
 
88
88
  ## create_checkout
@@ -103,7 +103,7 @@ Conekta.configure do |config|
103
103
  end
104
104
 
105
105
  api_instance = Conekta::PaymentLinkApi.new
106
- checkout = Conekta::Checkout.new({allowed_payment_methods: ["cash", "card", "bank_transfer"], expires_at: 1680397724, name: 'Payment Link Name 1594138857', order_template: Conekta::CheckoutOrderTemplate.new({currency: 'MXN', line_items: [Conekta::Product.new({name: 'Box of Cohiba S1s', quantity: 1, unit_price: 20000})]}), recurrent: false, type: 'PaymentLink'}) # Checkout | requested field for checkout
106
+ checkout = Conekta::Checkout.new({allowed_payment_methods: ["cash", "card", "bank_transfer", "bnpl"], expires_at: 1680397724, name: 'Payment Link Name 1594138857', order_template: Conekta::CheckoutOrderTemplate.new({currency: 'MXN', line_items: [Conekta::Product.new({name: 'Box of Cohiba S1s', quantity: 1, unit_price: 20000})]}), recurrent: false, type: 'PaymentLink'}) # Checkout | requested field for checkout
107
107
  opts = {
108
108
  accept_language: 'es', # String | Use for knowing which language to use
109
109
  x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
@@ -155,7 +155,7 @@ end
155
155
  ### HTTP request headers
156
156
 
157
157
  - **Content-Type**: application/json
158
- - **Accept**: application/vnd.conekta-v2.1.0+json
158
+ - **Accept**: application/vnd.conekta-v2.2.0+json
159
159
 
160
160
 
161
161
  ## email_checkout
@@ -230,7 +230,7 @@ end
230
230
  ### HTTP request headers
231
231
 
232
232
  - **Content-Type**: application/json
233
- - **Accept**: application/vnd.conekta-v2.1.0+json
233
+ - **Accept**: application/vnd.conekta-v2.2.0+json
234
234
 
235
235
 
236
236
  ## get_checkout
@@ -303,7 +303,7 @@ end
303
303
  ### HTTP request headers
304
304
 
305
305
  - **Content-Type**: Not defined
306
- - **Accept**: application/vnd.conekta-v2.1.0+json
306
+ - **Accept**: application/vnd.conekta-v2.2.0+json
307
307
 
308
308
 
309
309
  ## get_checkouts
@@ -384,7 +384,7 @@ end
384
384
  ### HTTP request headers
385
385
 
386
386
  - **Content-Type**: Not defined
387
- - **Accept**: application/vnd.conekta-v2.1.0+json
387
+ - **Accept**: application/vnd.conekta-v2.2.0+json
388
388
 
389
389
 
390
390
  ## sms_checkout
@@ -459,5 +459,5 @@ end
459
459
  ### HTTP request headers
460
460
 
461
461
  - **Content-Type**: application/json
462
- - **Accept**: application/vnd.conekta-v2.1.0+json
462
+ - **Accept**: application/vnd.conekta-v2.2.0+json
463
463
 
@@ -9,7 +9,7 @@
9
9
  | **bank** | **String** | | [optional] |
10
10
  | **clabe** | **String** | | [optional] |
11
11
  | **description** | **String** | | [optional] |
12
- | **executed_at** | **Integer** | | [optional] |
12
+ | **executed_at** | **String** | | [optional] |
13
13
  | **expires_at** | **Integer** | | [optional] |
14
14
  | **issuing_account_bank** | **String** | | [optional] |
15
15
  | **issuing_account_number** | **String** | | [optional] |
@@ -0,0 +1,32 @@
1
+ # Conekta::PaymentMethodBnplPayment
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | [optional] |
8
+ | **object** | **String** | | |
9
+ | **cancel_url** | **String** | URL to redirect the customer after a canceled payment | [optional] |
10
+ | **expires_at** | **Integer** | Expiration date of the charge | |
11
+ | **failure_url** | **String** | URL to redirect the customer after a failed payment | [optional] |
12
+ | **product_type** | **String** | Product type of the charge | |
13
+ | **redirect_url** | **String** | URL to redirect the customer to complete the payment | [optional] |
14
+ | **success_url** | **String** | URL to redirect the customer after a successful payment | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'conekta'
20
+
21
+ instance = Conekta::PaymentMethodBnplPayment.new(
22
+ type: null,
23
+ object: payment_source,
24
+ cancel_url: https://example.com/cancel,
25
+ expires_at: 1683053729,
26
+ failure_url: https://example.com/failure,
27
+ product_type: null,
28
+ redirect_url: https://example.com/redirect,
29
+ success_url: https://example.com/success
30
+ )
31
+ ```
32
+