conekta 6.0.4 → 7.0.0

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 (315) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +2 -2
  3. data/README.md +34 -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 +82 -4
  18. data/docs/ChargesDataResponse.md +8 -8
  19. data/docs/ChargesOrderResponse.md +22 -0
  20. data/docs/ChargesOrderResponseAllOfData.md +52 -0
  21. data/docs/Checkout.md +1 -1
  22. data/docs/CheckoutRequest.md +3 -1
  23. data/docs/CheckoutResponse.md +2 -2
  24. data/docs/CompaniesApi.md +2 -2
  25. data/docs/CreateCustomerPaymentMethodsResponse.md +1 -0
  26. data/docs/Customer.md +4 -0
  27. data/docs/CustomerPaymentMethodRequest.md +1 -1
  28. data/docs/CustomerPaymentMethodsData.md +1 -0
  29. data/docs/CustomerResponse.md +4 -0
  30. data/docs/CustomersApi.md +7 -7
  31. data/docs/DeleteApiKeysResponse.md +5 -3
  32. data/docs/DiscountsApi.md +5 -5
  33. data/docs/EventsApi.md +12 -12
  34. data/docs/GetCustomerPaymentMethodDataResponse.md +1 -0
  35. data/docs/LogResponse.md +3 -3
  36. data/docs/LogsApi.md +2 -2
  37. data/docs/LogsResponseData.md +3 -3
  38. data/docs/OrderChannelResponse.md +24 -0
  39. data/docs/{OrderResponseCharges.md → OrderChargesResponse.md} +2 -2
  40. data/docs/{OrderResponseDiscountLines.md → OrderDiscountLinesResponse.md} +2 -2
  41. data/docs/OrderRequest.md +5 -5
  42. data/docs/OrderResponse.md +3 -3
  43. data/docs/OrderResponseCheckout.md +4 -2
  44. data/docs/OrderUpdateRequest.md +3 -3
  45. data/docs/OrdersApi.md +8 -8
  46. data/docs/PaymentLinkApi.md +7 -7
  47. data/docs/PaymentMethodBankTransfer.md +1 -1
  48. data/docs/PaymentMethodBnplPayment.md +32 -0
  49. data/docs/PaymentMethodBnplRequest.md +28 -0
  50. data/docs/PaymentMethodCardRequest.md +1 -1
  51. data/docs/PaymentMethodCash.md +7 -3
  52. data/docs/PaymentMethodCashRequest.md +1 -1
  53. data/docs/PaymentMethodCashResponse.md +6 -4
  54. data/docs/PaymentMethodCashResponseAllOfAgreements.md +20 -0
  55. data/docs/PaymentMethodSpeiRequest.md +1 -1
  56. data/docs/PaymentMethodTokenRequest.md +3 -3
  57. data/docs/PaymentMethodsApi.md +5 -5
  58. data/docs/PayoutOrdersApi.md +77 -3
  59. data/docs/PlanRequest.md +5 -1
  60. data/docs/PlanResponse.md +5 -1
  61. data/docs/PlansApi.md +5 -5
  62. data/docs/ProductsApi.md +3 -3
  63. data/docs/ResendRequest.md +18 -0
  64. data/docs/ShippingContactsApi.md +3 -3
  65. data/docs/ShippingsApi.md +3 -3
  66. data/docs/SubscriptionsApi.md +793 -73
  67. data/docs/TaxesApi.md +3 -3
  68. data/docs/TokensApi.md +1 -1
  69. data/docs/TransactionsApi.md +2 -2
  70. data/docs/TransfersApi.md +2 -2
  71. data/docs/UpdateCustomer.md +4 -0
  72. data/docs/UpdateCustomerPaymentMethodsResponse.md +1 -0
  73. data/docs/WebhookKeysApi.md +5 -5
  74. data/docs/WebhookRequest.md +2 -2
  75. data/docs/WebhookResponse.md +10 -14
  76. data/docs/WebhookUpdateRequest.md +5 -5
  77. data/docs/WebhooksApi.md +8 -8
  78. data/lib/conekta/api/antifraud_api.rb +7 -7
  79. data/lib/conekta/api/api_keys_api.rb +6 -6
  80. data/lib/conekta/api/balances_api.rb +2 -2
  81. data/lib/conekta/api/charges_api.rb +88 -4
  82. data/lib/conekta/api/companies_api.rb +3 -3
  83. data/lib/conekta/api/customers_api.rb +8 -8
  84. data/lib/conekta/api/discounts_api.rb +6 -6
  85. data/lib/conekta/api/events_api.rb +21 -16
  86. data/lib/conekta/api/logs_api.rb +3 -3
  87. data/lib/conekta/api/orders_api.rb +9 -9
  88. data/lib/conekta/api/payment_link_api.rb +7 -7
  89. data/lib/conekta/api/payment_methods_api.rb +5 -5
  90. data/lib/conekta/api/payout_orders_api.rb +74 -4
  91. data/lib/conekta/api/plans_api.rb +6 -6
  92. data/lib/conekta/api/products_api.rb +4 -4
  93. data/lib/conekta/api/shipping_contacts_api.rb +4 -4
  94. data/lib/conekta/api/shippings_api.rb +4 -4
  95. data/lib/conekta/api/subscriptions_api.rb +826 -63
  96. data/lib/conekta/api/taxes_api.rb +4 -4
  97. data/lib/conekta/api/tokens_api.rb +2 -2
  98. data/lib/conekta/api/transactions_api.rb +3 -3
  99. data/lib/conekta/api/transfers_api.rb +3 -3
  100. data/lib/conekta/api/webhook_keys_api.rb +6 -6
  101. data/lib/conekta/api/webhooks_api.rb +7 -7
  102. data/lib/conekta/api_client.rb +1 -1
  103. data/lib/conekta/api_error.rb +1 -1
  104. data/lib/conekta/configuration.rb +1 -1
  105. data/lib/conekta/models/api_key_create_response.rb +13 -12
  106. data/lib/conekta/models/api_key_request.rb +1 -1
  107. data/lib/conekta/models/api_key_response.rb +13 -12
  108. data/lib/conekta/models/api_key_response_on_delete.rb +10 -9
  109. data/lib/conekta/models/api_key_update_request.rb +1 -1
  110. data/lib/conekta/models/balance_common_field.rb +1 -1
  111. data/lib/conekta/models/balance_response.rb +1 -1
  112. data/lib/conekta/models/blacklist_rule_response.rb +1 -1
  113. data/lib/conekta/models/charge_order_response.rb +1 -1
  114. data/lib/conekta/models/charge_order_response_payment_method.rb +3 -1
  115. data/lib/conekta/models/charge_request.rb +1 -1
  116. data/lib/conekta/models/charge_request_payment_method.rb +2 -1
  117. data/lib/conekta/models/charge_response.rb +58 -1
  118. data/lib/conekta/models/charge_response_channel.rb +1 -1
  119. data/lib/conekta/models/charge_response_payment_method.rb +3 -1
  120. data/lib/conekta/models/charge_response_refunds.rb +1 -1
  121. data/lib/conekta/models/charge_response_refunds_data.rb +1 -1
  122. data/lib/conekta/models/charge_update_request.rb +1 -1
  123. data/lib/conekta/models/charges_data_response.rb +58 -1
  124. data/lib/conekta/models/charges_order_response.rb +258 -0
  125. data/lib/conekta/models/charges_order_response_all_of_data.rb +439 -0
  126. data/lib/conekta/models/checkout.rb +1 -1
  127. data/lib/conekta/models/checkout_order_template.rb +1 -1
  128. data/lib/conekta/models/checkout_order_template_customer_info.rb +1 -1
  129. data/lib/conekta/models/checkout_request.rb +13 -3
  130. data/lib/conekta/models/checkout_response.rb +2 -1
  131. data/lib/conekta/models/checkouts_response.rb +1 -1
  132. data/lib/conekta/models/company_fiscal_info_address_response.rb +1 -1
  133. data/lib/conekta/models/company_fiscal_info_response.rb +1 -1
  134. data/lib/conekta/models/company_payout_destination_response.rb +1 -1
  135. data/lib/conekta/models/company_response.rb +1 -1
  136. data/lib/conekta/models/create_customer_fiscal_entities_response.rb +1 -1
  137. data/lib/conekta/models/create_customer_payment_methods_request.rb +1 -1
  138. data/lib/conekta/models/create_customer_payment_methods_response.rb +2 -1
  139. data/lib/conekta/models/create_risk_rules_data.rb +1 -1
  140. data/lib/conekta/models/customer.rb +22 -2
  141. data/lib/conekta/models/customer_address.rb +1 -1
  142. data/lib/conekta/models/customer_antifraud_info.rb +1 -1
  143. data/lib/conekta/models/customer_antifraud_info_response.rb +1 -1
  144. data/lib/conekta/models/customer_fiscal_entities_data_response.rb +1 -1
  145. data/lib/conekta/models/customer_fiscal_entities_request.rb +1 -1
  146. data/lib/conekta/models/customer_fiscal_entities_response.rb +1 -1
  147. data/lib/conekta/models/customer_info.rb +1 -1
  148. data/lib/conekta/models/customer_info_just_customer_id.rb +1 -1
  149. data/lib/conekta/models/customer_info_just_customer_id_response.rb +1 -1
  150. data/lib/conekta/models/customer_payment_method_request.rb +1 -1
  151. data/lib/conekta/models/customer_payment_methods_data.rb +2 -1
  152. data/lib/conekta/models/customer_payment_methods_request.rb +1 -1
  153. data/lib/conekta/models/customer_payment_methods_response.rb +1 -1
  154. data/lib/conekta/models/customer_response.rb +22 -2
  155. data/lib/conekta/models/customer_response_shipping_contacts.rb +1 -1
  156. data/lib/conekta/models/customer_shipping_contacts.rb +2 -2
  157. data/lib/conekta/models/customer_shipping_contacts_address.rb +1 -1
  158. data/lib/conekta/models/customer_shipping_contacts_data_response.rb +1 -1
  159. data/lib/conekta/models/customer_shipping_contacts_response.rb +1 -1
  160. data/lib/conekta/models/customer_shipping_contacts_response_address.rb +1 -1
  161. data/lib/conekta/models/customer_update_fiscal_entities_request.rb +1 -1
  162. data/lib/conekta/models/customer_update_shipping_contacts.rb +2 -2
  163. data/lib/conekta/models/customers_response.rb +1 -1
  164. data/lib/conekta/models/delete_api_keys_response.rb +22 -11
  165. data/lib/conekta/models/deleted_blacklist_rule_response.rb +1 -1
  166. data/lib/conekta/models/deleted_whitelist_rule_response.rb +1 -1
  167. data/lib/conekta/models/details.rb +1 -1
  168. data/lib/conekta/models/details_error.rb +1 -1
  169. data/lib/conekta/models/discount_lines_data_response.rb +1 -1
  170. data/lib/conekta/models/discount_lines_response.rb +1 -1
  171. data/lib/conekta/models/email_checkout_request.rb +1 -1
  172. data/lib/conekta/models/error.rb +1 -1
  173. data/lib/conekta/models/event_response.rb +1 -1
  174. data/lib/conekta/models/event_types.rb +1 -1
  175. data/lib/conekta/models/events_resend_response.rb +1 -1
  176. data/lib/conekta/models/fiscal_entity_address.rb +1 -1
  177. data/lib/conekta/models/get_api_keys_response.rb +1 -1
  178. data/lib/conekta/models/get_charges_response.rb +1 -1
  179. data/lib/conekta/models/get_companies_response.rb +1 -1
  180. data/lib/conekta/models/get_customer_payment_method_data_response.rb +2 -1
  181. data/lib/conekta/models/get_events_response.rb +1 -1
  182. data/lib/conekta/models/get_order_discount_lines_response.rb +1 -1
  183. data/lib/conekta/models/get_orders_response.rb +1 -1
  184. data/lib/conekta/models/get_payment_method_response.rb +1 -1
  185. data/lib/conekta/models/get_plans_response.rb +1 -1
  186. data/lib/conekta/models/get_transactions_response.rb +1 -1
  187. data/lib/conekta/models/get_transfers_response.rb +1 -1
  188. data/lib/conekta/models/get_webhook_keys_response.rb +1 -1
  189. data/lib/conekta/models/get_webhooks_response.rb +1 -1
  190. data/lib/conekta/models/log_response.rb +1 -1
  191. data/lib/conekta/models/logs_response.rb +1 -1
  192. data/lib/conekta/models/logs_response_data.rb +1 -1
  193. data/lib/conekta/models/order_capture_request.rb +1 -1
  194. data/lib/conekta/models/order_channel_response.rb +241 -0
  195. data/lib/conekta/models/order_charges_response.rb +258 -0
  196. data/lib/conekta/models/order_customer_info_response.rb +1 -1
  197. data/lib/conekta/models/order_discount_lines_request.rb +1 -1
  198. data/lib/conekta/models/order_discount_lines_response.rb +257 -0
  199. data/lib/conekta/models/order_fiscal_entity_address_response.rb +1 -1
  200. data/lib/conekta/models/order_fiscal_entity_request.rb +1 -1
  201. data/lib/conekta/models/order_fiscal_entity_response.rb +1 -1
  202. data/lib/conekta/models/order_next_action_response.rb +1 -1
  203. data/lib/conekta/models/order_next_action_response_redirect_to_url.rb +1 -1
  204. data/lib/conekta/models/order_refund_request.rb +1 -2
  205. data/lib/conekta/models/order_request.rb +6 -6
  206. data/lib/conekta/models/order_request_customer_info.rb +1 -1
  207. data/lib/conekta/models/order_response.rb +4 -4
  208. data/lib/conekta/models/order_response_checkout.rb +14 -2
  209. data/lib/conekta/models/order_response_customer_info.rb +1 -1
  210. data/lib/conekta/models/order_response_products.rb +1 -1
  211. data/lib/conekta/models/order_response_shipping_contact.rb +1 -1
  212. data/lib/conekta/models/order_tax_request.rb +1 -1
  213. data/lib/conekta/models/order_update_fiscal_entity_request.rb +1 -1
  214. data/lib/conekta/models/order_update_request.rb +4 -4
  215. data/lib/conekta/models/order_update_request_customer_info.rb +1 -1
  216. data/lib/conekta/models/orders_response.rb +1 -1
  217. data/lib/conekta/models/page.rb +1 -1
  218. data/lib/conekta/models/pagination.rb +1 -1
  219. data/lib/conekta/models/payment_method.rb +1 -1
  220. data/lib/conekta/models/payment_method_bank_transfer.rb +2 -2
  221. data/lib/conekta/models/payment_method_bnpl_payment.rb +311 -0
  222. data/lib/conekta/models/payment_method_bnpl_request.rb +348 -0
  223. data/lib/conekta/models/payment_method_card.rb +1 -1
  224. data/lib/conekta/models/payment_method_card_request.rb +1 -1
  225. data/lib/conekta/models/payment_method_card_response.rb +1 -1
  226. data/lib/conekta/models/payment_method_cash.rb +22 -2
  227. data/lib/conekta/models/payment_method_cash_request.rb +1 -1
  228. data/lib/conekta/models/payment_method_cash_response.rb +14 -2
  229. data/lib/conekta/models/payment_method_cash_response_all_of_agreements.rb +225 -0
  230. data/lib/conekta/models/payment_method_general_request.rb +1 -1
  231. data/lib/conekta/models/payment_method_response.rb +1 -1
  232. data/lib/conekta/models/payment_method_spei_recurrent.rb +1 -1
  233. data/lib/conekta/models/payment_method_spei_request.rb +1 -1
  234. data/lib/conekta/models/payment_method_token_request.rb +2 -2
  235. data/lib/conekta/models/payout.rb +1 -1
  236. data/lib/conekta/models/payout_method.rb +1 -1
  237. data/lib/conekta/models/payout_order.rb +1 -1
  238. data/lib/conekta/models/payout_order_payouts_item.rb +1 -1
  239. data/lib/conekta/models/payout_order_response.rb +1 -1
  240. data/lib/conekta/models/payout_order_response_customer_info.rb +1 -1
  241. data/lib/conekta/models/payout_orders_response.rb +1 -1
  242. data/lib/conekta/models/plan_request.rb +63 -5
  243. data/lib/conekta/models/plan_response.rb +24 -6
  244. data/lib/conekta/models/plan_update_request.rb +1 -1
  245. data/lib/conekta/models/product.rb +1 -1
  246. data/lib/conekta/models/product_data_response.rb +1 -1
  247. data/lib/conekta/models/product_order_response.rb +1 -1
  248. data/lib/conekta/models/resend_request.rb +224 -0
  249. data/lib/conekta/models/risk_rules_data.rb +1 -1
  250. data/lib/conekta/models/risk_rules_list.rb +1 -1
  251. data/lib/conekta/models/shipping_order_response.rb +1 -1
  252. data/lib/conekta/models/shipping_request.rb +1 -1
  253. data/lib/conekta/models/sms_checkout_request.rb +1 -1
  254. data/lib/conekta/models/subscription_events_response.rb +1 -1
  255. data/lib/conekta/models/subscription_request.rb +1 -1
  256. data/lib/conekta/models/subscription_response.rb +1 -1
  257. data/lib/conekta/models/subscription_update_request.rb +1 -1
  258. data/lib/conekta/models/token.rb +1 -1
  259. data/lib/conekta/models/token_card.rb +1 -1
  260. data/lib/conekta/models/token_checkout.rb +1 -1
  261. data/lib/conekta/models/token_response.rb +1 -1
  262. data/lib/conekta/models/token_response_checkout.rb +1 -1
  263. data/lib/conekta/models/transaction_response.rb +1 -1
  264. data/lib/conekta/models/transfer_destination_response.rb +1 -1
  265. data/lib/conekta/models/transfer_method_response.rb +1 -1
  266. data/lib/conekta/models/transfer_response.rb +1 -1
  267. data/lib/conekta/models/transfers_response.rb +1 -1
  268. data/lib/conekta/models/update_customer.rb +22 -2
  269. data/lib/conekta/models/update_customer_antifraud_info.rb +1 -1
  270. data/lib/conekta/models/update_customer_fiscal_entities_response.rb +1 -1
  271. data/lib/conekta/models/update_customer_payment_methods_response.rb +2 -1
  272. data/lib/conekta/models/update_order_discount_lines_request.rb +1 -1
  273. data/lib/conekta/models/update_order_tax_request.rb +1 -1
  274. data/lib/conekta/models/update_order_tax_response.rb +1 -1
  275. data/lib/conekta/models/update_payment_methods.rb +1 -1
  276. data/lib/conekta/models/update_product.rb +1 -1
  277. data/lib/conekta/models/webhook_key_create_response.rb +1 -1
  278. data/lib/conekta/models/webhook_key_delete_response.rb +1 -1
  279. data/lib/conekta/models/webhook_key_request.rb +1 -1
  280. data/lib/conekta/models/webhook_key_response.rb +1 -1
  281. data/lib/conekta/models/webhook_key_update_request.rb +1 -1
  282. data/lib/conekta/models/webhook_log.rb +1 -1
  283. data/lib/conekta/models/webhook_request.rb +11 -16
  284. data/lib/conekta/models/webhook_response.rb +28 -39
  285. data/lib/conekta/models/webhook_update_request.rb +20 -28
  286. data/lib/conekta/models/whitelistlist_rule_response.rb +1 -1
  287. data/lib/conekta/version.rb +2 -2
  288. data/lib/conekta.rb +10 -3
  289. data/spec/api/antifraud_api_spec.rb +8 -65
  290. data/spec/api/api_keys_api_spec.rb +7 -51
  291. data/spec/api/balances_api_spec.rb +3 -12
  292. data/spec/api/charges_api_spec.rb +30 -83
  293. data/spec/api/companies_api_spec.rb +5 -13
  294. data/spec/api/customers_api_spec.rb +13 -184
  295. data/spec/api/discounts_api_spec.rb +7 -46
  296. data/spec/api/events_api_spec.rb +7 -24
  297. data/spec/api/logs_api_spec.rb +3 -15
  298. data/spec/api/orders_api_spec.rb +19 -247
  299. data/spec/api/payment_link_api_spec.rb +9 -82
  300. data/spec/api/payment_methods_api_spec.rb +6 -41
  301. data/spec/api/payout_orders_api_spec.rb +14 -1
  302. data/spec/api/plans_api_spec.rb +7 -42
  303. data/spec/api/products_api_spec.rb +5 -30
  304. data/spec/api/shipping_contacts_api_spec.rb +5 -41
  305. data/spec/api/shippings_api_spec.rb +5 -32
  306. data/spec/api/subscriptions_api_spec.rb +168 -68
  307. data/spec/api/taxes_api_spec.rb +5 -34
  308. data/spec/api/tokens_api_spec.rb +3 -31
  309. data/spec/api/transactions_api_spec.rb +8 -21
  310. data/spec/api/transfers_api_spec.rb +4 -34
  311. data/spec/api/webhook_keys_api_spec.rb +7 -49
  312. data/spec/api/webhooks_api_spec.rb +9 -42
  313. data/spec/spec_helper.rb +1 -1
  314. metadata +36 -22
  315. data/spec/api/base_test.rb +0 -9
@@ -0,0 +1,52 @@
1
+ # Conekta::ChargesOrderResponseAllOfData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **amount** | **Integer** | | |
8
+ | **channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] |
9
+ | **created_at** | **Integer** | | |
10
+ | **currency** | **String** | | |
11
+ | **customer_id** | **String** | | [optional] |
12
+ | **description** | **String** | | [optional] |
13
+ | **device_fingerprint** | **String** | | [optional] |
14
+ | **failure_code** | **String** | | [optional] |
15
+ | **failure_message** | **String** | | [optional] |
16
+ | **id** | **String** | Charge ID | |
17
+ | **livemode** | **Boolean** | Whether the charge was made in live mode or not | |
18
+ | **object** | **String** | | |
19
+ | **order_id** | **String** | Order ID | |
20
+ | **paid_at** | **Integer** | Payment date | [optional] |
21
+ | **payment_method** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] |
22
+ | **reference_id** | **String** | Reference ID of the charge | [optional] |
23
+ | **refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] |
24
+ | **status** | **String** | Charge status | |
25
+
26
+ ## Example
27
+
28
+ ```ruby
29
+ require 'conekta'
30
+
31
+ instance = Conekta::ChargesOrderResponseAllOfData.new(
32
+ amount: 4321,
33
+ channel: null,
34
+ created_at: 1676386026,
35
+ currency: MXN,
36
+ customer_id: null,
37
+ description: Payment from order,
38
+ device_fingerprint: 6FR3chaU4Y1nGAW5NAGd1rcjAKa142Ba,
39
+ failure_code: suspected_fraud,
40
+ failure_message: Este cargo ha sido declinado porque el comportamiento del comprador es sospechoso.,
41
+ id: 63efa757cf65380001aec040,
42
+ livemode: false,
43
+ object: charge,
44
+ order_id: ord_2tN73UdUSNrYRPD9r,
45
+ paid_at: 1676390742,
46
+ payment_method: null,
47
+ reference_id: ref_2tN73UdUSNrYRPD9r,
48
+ refunds: null,
49
+ status: pending_payment
50
+ )
51
+ ```
52
+
data/docs/Checkout.md CHANGED
@@ -23,7 +23,7 @@
23
23
  require 'conekta'
24
24
 
25
25
  instance = Conekta::Checkout.new(
26
- allowed_payment_methods: ["cash","card","bank_transfer"],
26
+ allowed_payment_methods: ["cash","card","bank_transfer","bnpl"],
27
27
  expires_at: 1680397724,
28
28
  monthly_installments_enabled: true,
29
29
  monthly_installments_options: [3,6,12],
@@ -9,6 +9,7 @@
9
9
  | **failure_url** | **String** | Redirection url back to the site in case of failed payment, applies only to HostedPayment. | [optional] |
10
10
  | **monthly_installments_enabled** | **Boolean** | | [optional] |
11
11
  | **monthly_installments_options** | **Array<Integer>** | | [optional] |
12
+ | **max_failed_retries** | **Integer** | Number of retries allowed before the checkout is marked as failed | [optional] |
12
13
  | **name** | **String** | Reason for payment | [optional] |
13
14
  | **on_demand_enabled** | **Boolean** | | [optional] |
14
15
  | **redirection_time** | **Integer** | number of seconds to wait before redirecting to the success_url | [optional] |
@@ -21,11 +22,12 @@
21
22
  require 'conekta'
22
23
 
23
24
  instance = Conekta::CheckoutRequest.new(
24
- allowed_payment_methods: ["cash","card","bank_transfer"],
25
+ allowed_payment_methods: ["cash","card","bank_transfer","bnpl"],
25
26
  expires_at: null,
26
27
  failure_url: null,
27
28
  monthly_installments_enabled: false,
28
29
  monthly_installments_options: [3,6,12],
30
+ max_failed_retries: 3,
29
31
  name: null,
30
32
  on_demand_enabled: true,
31
33
  redirection_time: 10,
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **allowed_payment_methods** | **Array<String>** | | [optional] |
7
+ | **allowed_payment_methods** | **Array<String>** | 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<Object>** | | [optional] |
@@ -36,7 +36,7 @@
36
36
  require 'conekta'
37
37
 
38
38
  instance = Conekta::CheckoutResponse.new(
39
- allowed_payment_methods: ["cash","card","bank_transfer"],
39
+ allowed_payment_methods: ["cash","card","bank_transfer","bnpl"],
40
40
  can_not_expire: false,
41
41
  emails_sent: 0,
42
42
  exclude_card_networks: null,
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
  # }
data/docs/Customer.md CHANGED
@@ -7,12 +7,14 @@
7
7
  | **antifraud_info** | [**CustomerAntifraudInfo**](CustomerAntifraudInfo.md) | | [optional] |
8
8
  | **corporate** | **Boolean** | It is a value that allows identifying if the email is corporate or not. | [optional][default to false] |
9
9
  | **custom_reference** | **String** | It is an undefined value. | [optional] |
10
+ | **date_of_birth** | **String** | It is a parameter that allows to identify the date of birth of the client. | [optional] |
10
11
  | **email** | **String** | An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). | |
11
12
  | **default_payment_source_id** | **String** | It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id) | [optional] |
12
13
  | **default_shipping_contact_id** | **String** | It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact) | [optional] |
13
14
  | **fiscal_entities** | [**Array<CustomerFiscalEntitiesRequest>**](CustomerFiscalEntitiesRequest.md) | | [optional] |
14
15
  | **metadata** | **Hash<String, Object>** | | [optional] |
15
16
  | **name** | **String** | Client's name | |
17
+ | **national_id** | **String** | It is a parameter that allows to identify the national identification number of the client. | [optional] |
16
18
  | **payment_sources** | [**Array<CustomerPaymentMethodsRequest>**](CustomerPaymentMethodsRequest.md) | Contains details of the payment methods that the customer has active or has used in Conekta | [optional] |
17
19
  | **phone** | **String** | Is the customer's phone number | |
18
20
  | **plan_id** | **String** | Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription | [optional] |
@@ -28,12 +30,14 @@ instance = Conekta::Customer.new(
28
30
  antifraud_info: null,
29
31
  corporate: false,
30
32
  custom_reference: null,
33
+ date_of_birth: 24/07/1992,
31
34
  email: miguel@gmail.com,
32
35
  default_payment_source_id: src_1a2b3c4d5e6f7g8h,
33
36
  default_shipping_contact_id: ship_cont_1a2b3c4d5e6f7g8h,
34
37
  fiscal_entities: null,
35
38
  metadata: null,
36
39
  name: miguel,
40
+ national_id: HEGG560427MVZRRL04,
37
41
  payment_sources: null,
38
42
  phone: +5215555555555,
39
43
  plan_id: plan_987234823,
@@ -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
  # }
@@ -8,6 +8,7 @@
8
8
  | **corporate** | **Boolean** | true if the customer is a company | [optional] |
9
9
  | **created_at** | **Integer** | Creation date of the object | |
10
10
  | **custom_reference** | **String** | Custom reference | [optional] |
11
+ | **date_of_birth** | **String** | It is a parameter that allows to identify the date of birth of the client. | [optional] |
11
12
  | **default_fiscal_entity_id** | **String** | | [optional] |
12
13
  | **default_shipping_contact_id** | **String** | | [optional] |
13
14
  | **default_payment_source_id** | **String** | | [optional] |
@@ -16,6 +17,7 @@
16
17
  | **id** | **String** | Customer's ID | |
17
18
  | **livemode** | **Boolean** | true if the object exists in live mode or the value false if the object exists in test mode | |
18
19
  | **name** | **String** | Customer's name | |
20
+ | **national_id** | **String** | It is a parameter that allows to identify the national identification number of the client. | [optional] |
19
21
  | **metadata** | **Hash<String, Object>** | | [optional] |
20
22
  | **object** | **String** | | |
21
23
  | **payment_sources** | [**CustomerPaymentMethodsResponse**](CustomerPaymentMethodsResponse.md) | | [optional] |
@@ -33,6 +35,7 @@ instance = Conekta::CustomerResponse.new(
33
35
  corporate: null,
34
36
  created_at: 1485151007,
35
37
  custom_reference: custom_reference,
38
+ date_of_birth: 24/07/1992,
36
39
  default_fiscal_entity_id: fis_ent_2tKqqAfqPi21oCmEJ,
37
40
  default_shipping_contact_id: ship_cont_2tKZsTYcsryyu7Ah8,
38
41
  default_payment_source_id: src_2tHJfJ79KyUwpxTio,
@@ -41,6 +44,7 @@ instance = Conekta::CustomerResponse.new(
41
44
  id: cus_2tHJfJ79KyUwpxTik,
42
45
  livemode: true,
43
46
  name: Felipe,
47
+ national_id: HEGG560427MVZRRL04,
44
48
  metadata: null,
45
49
  object: customer,
46
50
  payment_sources: null,
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] |
@@ -14,6 +14,7 @@
14
14
  | **id** | **String** | | [optional] |
15
15
  | **is_redirect_on_failure** | **Boolean** | | [optional] |
16
16
  | **livemode** | **Boolean** | | [optional] |
17
+ | **max_failed_retries** | **Integer** | Number of retries allowed before the checkout is marked as failed | [optional] |
17
18
  | **metadata** | **Hash&lt;String, Object&gt;** | | [optional] |
18
19
  | **monthly_installments_enabled** | **Boolean** | | [optional] |
19
20
  | **monthly_installments_options** | **Array&lt;Integer&gt;** | | [optional] |
@@ -38,7 +39,7 @@
38
39
  require 'conekta'
39
40
 
40
41
  instance = Conekta::OrderResponseCheckout.new(
41
- allowed_payment_methods: null,
42
+ allowed_payment_methods: [&quot;cash&quot;,&quot;card&quot;,&quot;bank_transfer&quot;,&quot;bnpl&quot;],
42
43
  can_not_expire: false,
43
44
  emails_sent: 0,
44
45
  exclude_card_networks: null,
@@ -48,6 +49,7 @@ instance = Conekta::OrderResponseCheckout.new(
48
49
  id: 6fca054a-8519-4c43-971e-cea35cc519bb,
49
50
  is_redirect_on_failure: false,
50
51
  livemode: false,
52
+ max_failed_retries: 3,
51
53
  metadata: null,
52
54
  monthly_installments_enabled: false,
53
55
  monthly_installments_options: null,