conekta 7.0.3 → 9.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 (430) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +3 -3
  3. data/README.md +52 -49
  4. data/VERSION +1 -1
  5. data/conekta.gemspec +2 -2
  6. data/config-ruby.json +4 -1
  7. data/docs/AntifraudApi.md +14 -14
  8. data/docs/ApiKeyCreateResponse.md +3 -3
  9. data/docs/ApiKeysApi.md +5 -5
  10. data/docs/{BalanceCommonField.md → BalanceCommonFielsResponse.md} +2 -2
  11. data/docs/BalanceResponse.md +9 -9
  12. data/docs/BalancesApi.md +1 -1
  13. data/docs/{PaymentMethodCashResponseAllOfAgreements.md → CashAgreementsResponse.md} +2 -2
  14. data/docs/ChargeOrderResponsePaymentMethod.md +1 -1
  15. data/docs/ChargeResponse.md +3 -1
  16. data/docs/ChargebackFileResponse.md +24 -0
  17. data/docs/ChargebackResponse.md +38 -0
  18. data/docs/ChargesApi.md +4 -4
  19. data/docs/ChargesDataResponse.md +3 -1
  20. data/docs/ChargesOrderResponse.md +5 -1
  21. data/docs/Checkout.md +13 -5
  22. data/docs/CheckoutOrderTemplate.md +5 -3
  23. data/docs/CheckoutOrderTemplateCustomerInfo.md +2 -2
  24. data/docs/CheckoutResponse.md +9 -7
  25. data/docs/CompaniesApi.md +80 -8
  26. data/docs/CompanyDocumentRequest.md +1 -1
  27. data/docs/CompanyResponse.md +6 -2
  28. data/docs/CreateCustomerFiscalEntitiesResponse.md +1 -1
  29. data/docs/CreateCustomerPaymentMethodsResponse.md +3 -3
  30. data/docs/{CreateRiskRulesData.md → CreateRuleWhitelistRequest.md} +2 -2
  31. data/docs/Customer.md +2 -2
  32. data/docs/CustomerDetails.md +24 -0
  33. data/docs/CustomerFiscalEntitiesDataResponse.md +1 -1
  34. data/docs/{CustomerInfoJustCustomerId.md → CustomerInfoCustomerId.md} +2 -2
  35. data/docs/CustomerPaymentMethodsData.md +3 -3
  36. data/docs/CustomerPortalResponse.md +40 -0
  37. data/docs/CustomerShippingContactsAddress.md +3 -1
  38. data/docs/CustomerShippingContactsDataResponse.md +1 -1
  39. data/docs/{CustomerShippingContacts.md → CustomerShippingContactsRequest.md} +3 -3
  40. data/docs/{CustomerShippingContactsResponseAddress.md → CustomerShippingContactsRequestAddress.md} +3 -5
  41. data/docs/CustomerShippingContactsResponse.md +1 -1
  42. data/docs/{CustomerUpdateShippingContacts.md → CustomerUpdateShippingContactsRequest.md} +3 -3
  43. data/docs/CustomersApi.md +19 -19
  44. data/docs/CustomersResponse.md +3 -3
  45. data/docs/DiscountsApi.md +5 -5
  46. data/docs/EventResponse.md +1 -1
  47. data/docs/EventsApi.md +9 -9
  48. data/docs/{CustomerFiscalEntitiesRequest.md → FiscalEntityRequest.md} +3 -3
  49. data/docs/{CustomerAddress.md → FiscalEntityRequestAddress.md} +2 -2
  50. data/docs/GetCustomerPaymentMethodDataResponse.md +3 -3
  51. data/docs/LogResponseForRequest.md +56 -0
  52. data/docs/LogsApi.md +10 -10
  53. data/docs/LogsResponseData.md +7 -7
  54. data/docs/{LogsResponse.md → LogsResponseForRequest.md} +2 -2
  55. data/docs/OrderChargesResponse.md +4 -0
  56. data/docs/OrderCheckoutRequest.md +46 -0
  57. data/docs/OrderRequest.md +9 -9
  58. data/docs/OrderRequestCustomerInfo.md +2 -2
  59. data/docs/OrderResponse.md +5 -1
  60. data/docs/OrderResponseCheckout.md +14 -10
  61. data/docs/OrderResponseCustomerInfo.md +2 -2
  62. data/docs/{OrderDiscountLinesResponse.md → OrderResponseDiscountLines.md} +6 -2
  63. data/docs/OrderResponseShippingContact.md +7 -7
  64. data/docs/OrderResponseShippingLines.md +26 -0
  65. data/docs/{Page.md → OrderResponseTaxLines.md} +9 -3
  66. data/docs/OrderTaxRequest.md +1 -1
  67. data/docs/{UpdateOrderTaxResponse.md → OrderTaxResponse.md} +2 -2
  68. data/docs/{OrderUpdateRequest.md → OrderUpdate.md} +9 -9
  69. data/docs/{OrderUpdateRequestCustomerInfo.md → OrderUpdateCustomerInfo.md} +6 -6
  70. data/docs/OrdersApi.md +17 -15
  71. data/docs/{UpdateOrderTaxRequest.md → OrdersUpdateTaxesRequest.md} +2 -2
  72. data/docs/PaymentLinkApi.md +7 -7
  73. data/docs/PaymentMethodBnplPayment.md +1 -1
  74. data/docs/PaymentMethodCardResponse.md +2 -0
  75. data/docs/PaymentMethodCashRecurrentResponse.md +1 -1
  76. data/docs/PaymentMethodCashResponse.md +1 -1
  77. data/docs/{PaymentMethodSpeiRecurrent.md → PaymentMethodSpeiRecurrentResponse.md} +2 -2
  78. data/docs/PaymentMethodTokenRequest.md +1 -1
  79. data/docs/PaymentMethodsApi.md +10 -10
  80. data/docs/{PayoutOrder.md → PayoutOrderRequest.md} +7 -5
  81. data/docs/{CustomerInfoJustCustomerIdResponse.md → PayoutOrderRequestCustomerInfo.md} +3 -3
  82. data/docs/PayoutOrderResponse.md +4 -4
  83. data/docs/PayoutOrderResponseCustomerInfo.md +3 -3
  84. data/docs/PayoutOrdersApi.md +10 -10
  85. data/docs/PayoutOrdersResponse.md +3 -3
  86. data/docs/PlansApi.md +16 -12
  87. data/docs/Product.md +3 -3
  88. data/docs/ProductsApi.md +3 -3
  89. data/docs/{ResendRequest.md → ResendEventRequest.md} +3 -3
  90. data/docs/RiskRulesData.md +1 -1
  91. data/docs/ShippingContactsApi.md +15 -15
  92. data/docs/ShippingLinesDataResponse.md +32 -0
  93. data/docs/ShippingRequest.md +1 -1
  94. data/docs/ShippingsApi.md +3 -3
  95. data/docs/SubscriptionDetails.md +36 -0
  96. data/docs/SubscriptionDetailsCard.md +40 -0
  97. data/docs/SubscriptionDetailsPlan.md +36 -0
  98. data/docs/SubscriptionsApi.md +28 -28
  99. data/docs/SubscriptionsCustomerPortalApi.md +159 -0
  100. data/docs/TaxLinesDataResponse.md +28 -0
  101. data/docs/TaxesApi.md +19 -19
  102. data/docs/TokenRequest.md +20 -0
  103. data/docs/{TokenCard.md → TokenRequestCard.md} +2 -2
  104. data/docs/{TokenCheckout.md → TokenRequestCheckout.md} +2 -2
  105. data/docs/TokenResponseCheckout.md +1 -1
  106. data/docs/TokensApi.md +8 -8
  107. data/docs/TransactionsApi.md +2 -2
  108. data/docs/TransfersApi.md +2 -2
  109. data/docs/UpdateCustomer.md +2 -2
  110. data/docs/UpdateCustomerFiscalEntitiesResponse.md +1 -1
  111. data/docs/UpdateCustomerPaymentMethodsResponse.md +3 -3
  112. data/docs/{CustomerUpdateFiscalEntitiesRequest.md → UpdateFiscalEntityRequest.md} +3 -3
  113. data/docs/{UpdatePaymentMethods.md → UpdatePaymentMethodsCard.md} +2 -2
  114. data/docs/{PlanUpdateRequest.md → UpdatePlan.md} +2 -2
  115. data/docs/{WebhookUpdateRequest.md → UpdateWebhook.md} +2 -2
  116. data/docs/{SubscriptionUpdateRequest.md → UpdatesASubscription.md} +2 -2
  117. data/docs/WebhookKeysApi.md +5 -5
  118. data/docs/WebhookLog.md +1 -1
  119. data/docs/WebhookResponse.md +1 -1
  120. data/docs/WebhooksApi.md +12 -12
  121. data/examples/one_time_charge_pbb.rb +23 -6
  122. data/lib/conekta/api/antifraud_api.rb +22 -22
  123. data/lib/conekta/api/api_keys_api.rb +10 -10
  124. data/lib/conekta/api/balances_api.rb +3 -3
  125. data/lib/conekta/api/charges_api.rb +9 -9
  126. data/lib/conekta/api/companies_api.rb +76 -12
  127. data/lib/conekta/api/customers_api.rb +32 -32
  128. data/lib/conekta/api/discounts_api.rb +12 -12
  129. data/lib/conekta/api/events_api.rb +16 -16
  130. data/lib/conekta/api/logs_api.rb +11 -11
  131. data/lib/conekta/api/orders_api.rb +28 -25
  132. data/lib/conekta/api/payment_link_api.rb +12 -12
  133. data/lib/conekta/api/payment_methods_api.rb +19 -19
  134. data/lib/conekta/api/payout_orders_api.rb +17 -17
  135. data/lib/conekta/api/plans_api.rb +25 -19
  136. data/lib/conekta/api/products_api.rb +8 -8
  137. data/lib/conekta/api/shipping_contacts_api.rb +26 -26
  138. data/lib/conekta/api/shippings_api.rb +8 -8
  139. data/lib/conekta/api/subscriptions_api.rb +52 -52
  140. data/lib/conekta/api/subscriptions_customer_portal_api.rb +168 -0
  141. data/lib/conekta/api/taxes_api.rb +26 -26
  142. data/lib/conekta/api/tokens_api.rb +14 -14
  143. data/lib/conekta/api/transactions_api.rb +5 -5
  144. data/lib/conekta/api/transfers_api.rb +5 -5
  145. data/lib/conekta/api/webhook_keys_api.rb +10 -10
  146. data/lib/conekta/api/webhooks_api.rb +21 -21
  147. data/lib/conekta/api_client.rb +31 -27
  148. data/lib/conekta/api_error.rb +2 -2
  149. data/lib/conekta/api_model_base.rb +88 -0
  150. data/lib/conekta/configuration.rb +2 -4
  151. data/lib/conekta/models/api_key_create_response.rb +26 -102
  152. data/lib/conekta/models/api_key_request.rb +22 -79
  153. data/lib/conekta/models/api_key_response.rb +12 -81
  154. data/lib/conekta/models/api_key_update_request.rb +12 -79
  155. data/lib/conekta/models/{balance_common_field.rb → balance_common_fiels_response.rb} +13 -80
  156. data/lib/conekta/models/balance_response.rb +21 -88
  157. data/lib/conekta/models/blacklist_rule_response.rb +12 -79
  158. data/lib/conekta/models/{payment_method_cash_response_all_of_agreements.rb → cash_agreements_response.rb} +13 -80
  159. data/lib/conekta/models/charge_order_response.rb +12 -83
  160. data/lib/conekta/models/charge_order_response_payment_method.rb +3 -3
  161. data/lib/conekta/models/charge_request.rb +22 -79
  162. data/lib/conekta/models/charge_request_payment_method.rb +4 -5
  163. data/lib/conekta/models/charge_response.rb +103 -84
  164. data/lib/conekta/models/charge_response_channel.rb +12 -79
  165. data/lib/conekta/models/charge_response_payment_method.rb +2 -2
  166. data/lib/conekta/models/charge_response_refunds.rb +32 -89
  167. data/lib/conekta/models/charge_response_refunds_data.rb +52 -79
  168. data/lib/conekta/models/charge_update_request.rb +12 -79
  169. data/lib/conekta/models/{risk_rules.rb → chargeback_file_response.rb} +48 -89
  170. data/lib/conekta/models/chargeback_response.rb +298 -0
  171. data/lib/conekta/models/charges_data_response.rb +103 -91
  172. data/lib/conekta/models/charges_order_response.rb +54 -88
  173. data/lib/conekta/models/checkout.rb +162 -91
  174. data/lib/conekta/models/checkout_order_template.rb +50 -95
  175. data/lib/conekta/models/checkout_order_template_customer_info.rb +5 -6
  176. data/lib/conekta/models/checkout_response.rb +89 -82
  177. data/lib/conekta/models/checkouts_response.rb +32 -89
  178. data/lib/conekta/models/company_document_request.rb +42 -79
  179. data/lib/conekta/models/company_document_response.rb +32 -79
  180. data/lib/conekta/models/company_response.rb +151 -85
  181. data/lib/conekta/models/create_company_request.rb +12 -79
  182. data/lib/conekta/models/create_company_request_bank_account_info.rb +12 -79
  183. data/lib/conekta/models/create_company_request_comercial_info.rb +12 -79
  184. data/lib/conekta/models/create_company_request_fiscal_info.rb +12 -79
  185. data/lib/conekta/models/create_customer_fiscal_entities_response.rb +54 -90
  186. data/lib/conekta/models/create_customer_payment_methods_request.rb +4 -5
  187. data/lib/conekta/models/create_customer_payment_methods_response.rb +4 -4
  188. data/lib/conekta/models/{create_risk_rules_data.rb → create_rule_whitelist_request.rb} +43 -80
  189. data/lib/conekta/models/customer.rb +44 -82
  190. data/lib/conekta/models/customer_antifraud_info.rb +12 -79
  191. data/lib/conekta/models/customer_antifraud_info_response.rb +12 -79
  192. data/lib/conekta/models/{product_order_response_all_of.rb → customer_details.rb} +30 -87
  193. data/lib/conekta/models/customer_fiscal_entities_data_response.rb +54 -90
  194. data/lib/conekta/models/customer_fiscal_entities_response.rb +32 -86
  195. data/lib/conekta/models/customer_info.rb +42 -79
  196. data/lib/conekta/models/{customer_info_just_customer_id.rb → customer_info_customer_id.rb} +23 -80
  197. data/lib/conekta/models/customer_payment_methods_data.rb +4 -4
  198. data/lib/conekta/models/customer_payment_methods_request.rb +4 -5
  199. data/lib/conekta/models/customer_payment_methods_response.rb +32 -89
  200. data/lib/conekta/models/{customer_shipping_contacts_data_response_all_of.rb → customer_portal_response.rb} +108 -105
  201. data/lib/conekta/models/customer_response.rb +62 -82
  202. data/lib/conekta/models/customer_response_shipping_contacts.rb +32 -86
  203. data/lib/conekta/models/customer_shipping_contacts_address.rb +22 -83
  204. data/lib/conekta/models/customer_shipping_contacts_data_response.rb +53 -89
  205. data/lib/conekta/models/{customer_shipping_contacts.rb → customer_shipping_contacts_request.rb} +25 -84
  206. data/lib/conekta/models/{customer_shipping_contacts_response_address.rb → customer_shipping_contacts_request_address.rb} +16 -91
  207. data/lib/conekta/models/customer_shipping_contacts_response.rb +13 -81
  208. data/lib/conekta/models/{customer_update_shipping_contacts.rb → customer_update_shipping_contacts_request.rb} +15 -84
  209. data/lib/conekta/models/customers_response.rb +47 -104
  210. data/lib/conekta/models/delete_api_keys_response.rb +12 -87
  211. data/lib/conekta/models/deleted_blacklist_rule_response.rb +12 -79
  212. data/lib/conekta/models/deleted_whitelist_rule_response.rb +12 -79
  213. data/lib/conekta/models/details_error.rb +12 -80
  214. data/lib/conekta/models/discount_lines_data_response.rb +62 -86
  215. data/lib/conekta/models/discount_lines_response.rb +62 -86
  216. data/lib/conekta/models/email_checkout_request.rb +22 -79
  217. data/lib/conekta/models/error.rb +12 -87
  218. data/lib/conekta/models/event_response.rb +12 -79
  219. data/lib/conekta/models/event_types.rb +2 -2
  220. data/lib/conekta/models/events_resend_response.rb +12 -79
  221. data/lib/conekta/models/fiscal_entity_address.rb +62 -80
  222. data/lib/conekta/models/{customer_fiscal_entities_request.rb → fiscal_entity_request.rb} +25 -84
  223. data/lib/conekta/models/{customer_address.rb → fiscal_entity_request_address.rb} +43 -80
  224. data/lib/conekta/models/get_api_keys_response.rb +32 -89
  225. data/lib/conekta/models/get_charges_response.rb +32 -89
  226. data/lib/conekta/models/get_companies_response.rb +32 -89
  227. data/lib/conekta/models/get_customer_payment_method_data_response.rb +4 -4
  228. data/lib/conekta/models/get_events_response.rb +32 -89
  229. data/lib/conekta/models/get_order_discount_lines_response.rb +32 -89
  230. data/lib/conekta/models/get_orders_response.rb +42 -90
  231. data/lib/conekta/models/get_payment_method_response.rb +32 -89
  232. data/lib/conekta/models/get_plans_response.rb +32 -89
  233. data/lib/conekta/models/get_transactions_response.rb +32 -89
  234. data/lib/conekta/models/get_transfers_response.rb +32 -89
  235. data/lib/conekta/models/get_webhook_keys_response.rb +32 -89
  236. data/lib/conekta/models/get_webhooks_response.rb +32 -89
  237. data/lib/conekta/models/{log_response.rb → log_response_for_request.rb} +45 -89
  238. data/lib/conekta/models/logs_response_data.rb +14 -88
  239. data/lib/conekta/models/{logs_response.rb → logs_response_for_request.rb} +13 -83
  240. data/lib/conekta/models/order_capture_request.rb +12 -79
  241. data/lib/conekta/models/order_channel_response.rb +12 -79
  242. data/lib/conekta/models/order_charges_response.rb +53 -87
  243. data/lib/conekta/models/{checkout_request.rb → order_checkout_request.rb} +81 -90
  244. data/lib/conekta/models/order_discount_lines_request.rb +32 -79
  245. data/lib/conekta/models/order_fiscal_entity_address_response.rb +62 -87
  246. data/lib/conekta/models/order_fiscal_entity_request.rb +22 -81
  247. data/lib/conekta/models/order_fiscal_entity_response.rb +52 -83
  248. data/lib/conekta/models/order_next_action_response.rb +12 -79
  249. data/lib/conekta/models/order_next_action_response_redirect_to_url.rb +12 -79
  250. data/lib/conekta/models/order_refund_request.rb +32 -79
  251. data/lib/conekta/models/order_request.rb +40 -89
  252. data/lib/conekta/models/order_request_customer_info.rb +5 -6
  253. data/lib/conekta/models/order_response.rb +32 -82
  254. data/lib/conekta/models/order_response_checkout.rb +146 -84
  255. data/lib/conekta/models/order_response_customer_info.rb +22 -98
  256. data/lib/conekta/models/order_response_discount_lines.rb +54 -87
  257. data/lib/conekta/models/order_response_products.rb +32 -89
  258. data/lib/conekta/models/order_response_shipping_contact.rb +41 -116
  259. data/lib/conekta/models/{order_discount_lines_response.rb → order_response_shipping_lines.rb} +56 -89
  260. data/lib/conekta/models/{order_response_charges.rb → order_response_tax_lines.rb} +56 -90
  261. data/lib/conekta/models/order_tax_request.rb +14 -81
  262. data/lib/conekta/models/{update_order_tax_response.rb → order_tax_response.rb} +25 -89
  263. data/lib/conekta/models/{order_update_request.rb → order_update.rb} +20 -91
  264. data/lib/conekta/models/{order_update_request_customer_info.rb → order_update_customer_info.rb} +6 -7
  265. data/lib/conekta/models/order_update_fiscal_entity_request.rb +22 -81
  266. data/lib/conekta/models/{update_order_tax_request.rb → orders_update_taxes_request.rb} +17 -90
  267. data/lib/conekta/models/payment_method_bank_transfer.rb +22 -96
  268. data/lib/conekta/models/payment_method_bnpl_payment.rb +66 -86
  269. data/lib/conekta/models/payment_method_bnpl_request.rb +64 -88
  270. data/lib/conekta/models/payment_method_card.rb +22 -86
  271. data/lib/conekta/models/payment_method_card_request.rb +48 -92
  272. data/lib/conekta/models/payment_method_card_response.rb +63 -87
  273. data/lib/conekta/models/payment_method_cash.rb +22 -89
  274. data/lib/conekta/models/payment_method_cash_recurrent_response.rb +53 -87
  275. data/lib/conekta/models/payment_method_cash_request.rb +22 -86
  276. data/lib/conekta/models/payment_method_cash_response.rb +53 -87
  277. data/lib/conekta/models/payment_method_general_request.rb +22 -79
  278. data/lib/conekta/models/payment_method_pbb_payment.rb +67 -91
  279. data/lib/conekta/models/payment_method_pbb_request.rb +22 -86
  280. data/lib/conekta/models/{payment_method_spei_recurrent.rb → payment_method_spei_recurrent_response.rb} +53 -87
  281. data/lib/conekta/models/payment_method_spei_request.rb +22 -86
  282. data/lib/conekta/models/payment_method_token_request.rb +33 -87
  283. data/lib/conekta/models/payout.rb +22 -79
  284. data/lib/conekta/models/payout_method.rb +22 -79
  285. data/lib/conekta/models/payout_order_payouts_item.rb +62 -79
  286. data/lib/conekta/models/{payout_order.rb → payout_order_request.rb} +102 -82
  287. data/lib/conekta/models/{customer_info_just_customer_id_response.rb → payout_order_request_customer_info.rb} +31 -80
  288. data/lib/conekta/models/payout_order_response.rb +146 -79
  289. data/lib/conekta/models/payout_order_response_customer_info.rb +38 -103
  290. data/lib/conekta/models/payout_orders_response.rb +47 -104
  291. data/lib/conekta/models/plan_request.rb +22 -79
  292. data/lib/conekta/models/plan_response.rb +12 -81
  293. data/lib/conekta/models/product.rb +22 -79
  294. data/lib/conekta/models/product_data_response.rb +22 -86
  295. data/lib/conekta/models/product_order_response.rb +22 -86
  296. data/lib/conekta/models/{resend_request.rb → resend_event_request.rb} +23 -80
  297. data/lib/conekta/models/risk_rules_data.rb +12 -79
  298. data/lib/conekta/models/risk_rules_list.rb +32 -89
  299. data/lib/conekta/models/{discount_lines_response_all_of.rb → shipping_lines_data_response.rb} +105 -99
  300. data/lib/conekta/models/shipping_order_response.rb +12 -86
  301. data/lib/conekta/models/shipping_request.rb +12 -79
  302. data/lib/conekta/models/sms_checkout_request.rb +22 -79
  303. data/lib/conekta/models/{order_response_shipping_contact_all_of.rb → subscription_details.rb} +87 -90
  304. data/lib/conekta/models/{payment_method_card_response_all_of.rb → subscription_details_card.rb} +68 -118
  305. data/lib/conekta/models/{product_data_response_all_of.rb → subscription_details_plan.rb} +83 -87
  306. data/lib/conekta/models/subscription_events_response.rb +32 -89
  307. data/lib/conekta/models/subscription_request.rb +22 -79
  308. data/lib/conekta/models/subscription_response.rb +12 -86
  309. data/lib/conekta/models/{payment_method_response.rb → tax_lines_data_response.rb} +118 -112
  310. data/lib/conekta/models/{token.rb → token_request.rb} +15 -84
  311. data/lib/conekta/models/{token_card.rb → token_request_card.rb} +33 -80
  312. data/lib/conekta/models/{token_checkout.rb → token_request_checkout.rb} +13 -80
  313. data/lib/conekta/models/token_response.rb +52 -80
  314. data/lib/conekta/models/token_response_checkout.rb +12 -79
  315. data/lib/conekta/models/transaction_response.rb +112 -79
  316. data/lib/conekta/models/transfer_destination_response.rb +12 -79
  317. data/lib/conekta/models/transfer_method_response.rb +12 -79
  318. data/lib/conekta/models/transfer_response.rb +12 -79
  319. data/lib/conekta/models/transfers_response.rb +12 -79
  320. data/lib/conekta/models/update_customer.rb +14 -82
  321. data/lib/conekta/models/update_customer_antifraud_info.rb +12 -79
  322. data/lib/conekta/models/update_customer_fiscal_entities_response.rb +54 -90
  323. data/lib/conekta/models/update_customer_payment_methods_response.rb +4 -4
  324. data/lib/conekta/models/{customer_update_fiscal_entities_request.rb → update_fiscal_entity_request.rb} +15 -84
  325. data/lib/conekta/models/update_order_discount_lines_request.rb +12 -79
  326. data/lib/conekta/models/{update_payment_methods.rb → update_payment_methods_card.rb} +13 -80
  327. data/lib/conekta/models/{plan_update_request.rb → update_plan.rb} +13 -80
  328. data/lib/conekta/models/update_product.rb +14 -85
  329. data/lib/conekta/models/{webhook_update_request.rb → update_webhook.rb} +13 -80
  330. data/lib/conekta/models/{subscription_update_request.rb → updates_a_subscription.rb} +13 -80
  331. data/lib/conekta/models/webhook_key_create_response.rb +12 -79
  332. data/lib/conekta/models/webhook_key_delete_response.rb +12 -79
  333. data/lib/conekta/models/webhook_key_request.rb +12 -79
  334. data/lib/conekta/models/webhook_key_response.rb +12 -80
  335. data/lib/conekta/models/webhook_key_update_request.rb +12 -79
  336. data/lib/conekta/models/webhook_log.rb +12 -79
  337. data/lib/conekta/models/webhook_request.rb +12 -79
  338. data/lib/conekta/models/webhook_response.rb +12 -79
  339. data/lib/conekta/models/whitelistlist_rule_response.rb +12 -79
  340. data/lib/conekta/version.rb +3 -3
  341. data/lib/conekta.rb +44 -42
  342. data/spec/api/antifraud_api_spec.rb +4 -4
  343. data/spec/api/api_keys_api_spec.rb +2 -2
  344. data/spec/api/balances_api_spec.rb +2 -2
  345. data/spec/api/charges_api_spec.rb +2 -2
  346. data/spec/api/companies_api_spec.rb +14 -2
  347. data/spec/api/customers_api_spec.rb +4 -4
  348. data/spec/api/discounts_api_spec.rb +2 -2
  349. data/spec/api/events_api_spec.rb +3 -3
  350. data/spec/api/logs_api_spec.rb +4 -4
  351. data/spec/api/orders_api_spec.rb +4 -3
  352. data/spec/api/payment_link_api_spec.rb +2 -2
  353. data/spec/api/payment_methods_api_spec.rb +3 -3
  354. data/spec/api/payout_orders_api_spec.rb +3 -3
  355. data/spec/api/plans_api_spec.rb +5 -3
  356. data/spec/api/products_api_spec.rb +2 -2
  357. data/spec/api/shipping_contacts_api_spec.rb +4 -4
  358. data/spec/api/shippings_api_spec.rb +2 -2
  359. data/spec/api/subscriptions_api_spec.rb +4 -4
  360. data/spec/api/subscriptions_customer_portal_api_spec.rb +63 -0
  361. data/spec/api/taxes_api_spec.rb +6 -6
  362. data/spec/api/tokens_api_spec.rb +4 -4
  363. data/spec/api/transactions_api_spec.rb +2 -2
  364. data/spec/api/transfers_api_spec.rb +2 -2
  365. data/spec/api/webhook_keys_api_spec.rb +2 -2
  366. data/spec/api/webhooks_api_spec.rb +3 -3
  367. data/spec/spec_helper.rb +2 -2
  368. metadata +104 -147
  369. data/docs/ApiKeyResponseOnDelete.md +0 -34
  370. data/docs/ChargesOrderResponseAllOfData.md +0 -52
  371. data/docs/CheckoutRequest.md +0 -40
  372. data/docs/CompanyResponseDocumentsInner.md +0 -22
  373. data/docs/CustomerPaymentMethodRequest.md +0 -18
  374. data/docs/Details.md +0 -18
  375. data/docs/LogResponse.md +0 -56
  376. data/docs/OrderCustomerInfoResponse.md +0 -28
  377. data/docs/OrdersResponse.md +0 -18
  378. data/docs/Pagination.md +0 -20
  379. data/docs/PaymentMethod.md +0 -20
  380. data/docs/PaymentMethodResponse.md +0 -26
  381. data/docs/Token.md +0 -20
  382. data/lib/conekta/models/api_key_create_response_all_of.rb +0 -215
  383. data/lib/conekta/models/api_key_response_on_delete.rb +0 -297
  384. data/lib/conekta/models/charge_data_payment_method_bank_transfer_response.rb +0 -362
  385. data/lib/conekta/models/charge_data_payment_method_card_response.rb +0 -308
  386. data/lib/conekta/models/charge_data_payment_method_cash_response.rb +0 -281
  387. data/lib/conekta/models/charge_response_refunds_all_of.rb +0 -217
  388. data/lib/conekta/models/charges_order_response_all_of_data.rb +0 -439
  389. data/lib/conekta/models/checkouts_response_all_of.rb +0 -216
  390. data/lib/conekta/models/company_fiscal_info_address_response.rb +0 -330
  391. data/lib/conekta/models/company_fiscal_info_response.rb +0 -309
  392. data/lib/conekta/models/company_payout_destination_response.rb +0 -312
  393. data/lib/conekta/models/company_response_documents_inner.rb +0 -270
  394. data/lib/conekta/models/create_customer_fiscal_entities_response_all_of.rb +0 -271
  395. data/lib/conekta/models/customer_fiscal_entities_request_address.rb +0 -308
  396. data/lib/conekta/models/customer_fiscal_entities_response_all_of.rb +0 -216
  397. data/lib/conekta/models/customer_payment_method_request.rb +0 -223
  398. data/lib/conekta/models/customer_payment_methods.rb +0 -216
  399. data/lib/conekta/models/customer_response_shipping_contacts_all_of.rb +0 -216
  400. data/lib/conekta/models/customers_response_all_of.rb +0 -216
  401. data/lib/conekta/models/delete_api_keys_response_all_of.rb +0 -214
  402. data/lib/conekta/models/details.rb +0 -216
  403. data/lib/conekta/models/error_all_of.rb +0 -234
  404. data/lib/conekta/models/get_api_keys_response_all_of.rb +0 -216
  405. data/lib/conekta/models/get_charges_response_all_of.rb +0 -216
  406. data/lib/conekta/models/get_companies_response_all_of.rb +0 -216
  407. data/lib/conekta/models/get_events_response_all_of.rb +0 -216
  408. data/lib/conekta/models/get_order_discount_lines_response_all_of.rb +0 -216
  409. data/lib/conekta/models/get_payment_method_response_all_of.rb +0 -216
  410. data/lib/conekta/models/get_plans_response_all_of.rb +0 -216
  411. data/lib/conekta/models/get_transactions_response_all_of.rb +0 -217
  412. data/lib/conekta/models/get_transfers_response_all_of.rb +0 -217
  413. data/lib/conekta/models/get_webhook_keys_response_all_of.rb +0 -216
  414. data/lib/conekta/models/get_webhooks_response_all_of.rb +0 -216
  415. data/lib/conekta/models/order_customer_info_response.rb +0 -263
  416. data/lib/conekta/models/order_fiscal_entity_address_response_all_of.rb +0 -214
  417. data/lib/conekta/models/order_response_charges_all_of.rb +0 -216
  418. data/lib/conekta/models/order_response_customer_info_all_of.rb +0 -214
  419. data/lib/conekta/models/order_response_discount_lines_all_of.rb +0 -216
  420. data/lib/conekta/models/order_response_products_all_of.rb +0 -216
  421. data/lib/conekta/models/orders_response.rb +0 -223
  422. data/lib/conekta/models/page.rb +0 -228
  423. data/lib/conekta/models/pagination.rb +0 -240
  424. data/lib/conekta/models/payment_method.rb +0 -230
  425. data/lib/conekta/models/payment_method_card_request_all_of.rb +0 -215
  426. data/lib/conekta/models/payment_method_cash_request_all_of.rb +0 -214
  427. data/lib/conekta/models/payment_method_cash_response_all_of.rb +0 -251
  428. data/lib/conekta/models/payment_method_spei_recurrent_all_of.rb +0 -224
  429. data/lib/conekta/models/update_customer_fiscal_entities_response_all_of.rb +0 -271
  430. data/lib/conekta/models/update_order_tax_response_all_of.rb +0 -232
@@ -39,18 +39,18 @@ instance = Conekta::LogsResponseData.new(
39
39
  loggable_type: order,
40
40
  method: POST,
41
41
  oauth_token_id: null,
42
- query_string: {"amount":3000,"payable":true},
42
+ query_string: {amount=3000, payable=true},
43
43
  related: FilterResource,
44
- request_body: {"filters":{"amount":{"amount_from":0,"amount_to":0},"created_at":{"date_from":1653627600,"date_to":1661489999},"filterName":"Payments","search_term":null,"sort_by":"created_at","sort_direction":"desc","status":[],"type":[]},"id":"78e65162-0f37-4942-847c-9bf7081d54c2","page":"0","report_type":"charges","testMode":false},
45
- request_headers: {"Accept":"application/vnd.conekta-v2.2.0+json","Accept-Encoding":"gzip, deflate, br","Accept-Language":"es-419, es; q=0.9, en; q=0.8","Activitypermission":"orders:read","Apiversion":"2.2.0"},
44
+ request_body: {filters={amount={amount_from=0, amount_to=0}, created_at={date_from=1653627600, date_to=1661489999}, filterName=Payments, sort_by=created_at, sort_direction=desc, status=[], type=[]}, id=78e65162-0f37-4942-847c-9bf7081d54c2, page=0, report_type=charges, testMode=false},
45
+ request_headers: {Accept=application/vnd.conekta-v2.3.0+json, Accept-Encoding=gzip, deflate, br, Accept-Language=es-419, es; q=0.9, en; q=0.8, Activitypermission=orders:read, Apiversion=2.3.0},
46
46
  response_body: null,
47
- response_headers: {"Access-Control-Allow-Headers":"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","Access-Control-Allow-Methods":"POST, GET, PUT, OPTIONS","Access-Control-Allow-Origin":"*","Access-Control-Max-Age":"1728000","Conekta-Media-Type":"conekta-v2.2.0; format=application/json","Content-Type":"application/json; charset=utf-8","Referrer-Policy":"strict-origin-when-cross-origin","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","X-Download-Options":"noopen","X-Frame-Options":"SAMEORIGIN","X-Permitted-Cross-Domain-Policies":"none","X-XSS-Protection":"1; mode=block"},
48
- searchable_tags: ["6307a60c41de27127515a575","6307a60c41de27127515a571"],
47
+ response_headers: {Access-Control-Allow-Headers=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, Access-Control-Allow-Methods=POST, GET, PUT, OPTIONS, Access-Control-Allow-Origin=*, Access-Control-Max-Age=1728000, Conekta-Media-Type=conekta-v2.3.0; format=application/json, Content-Type=application/json; charset=utf-8, Referrer-Policy=strict-origin-when-cross-origin, Strict-Transport-Security=max-age=31536000; includeSubDomains, X-Content-Type-Options=nosniff, X-Download-Options=noopen, X-Frame-Options=SAMEORIGIN, X-Permitted-Cross-Domain-Policies=none, X-XSS-Protection=1; mode=block},
48
+ searchable_tags: [6307a60c41de27127515a575, 6307a60c41de27127515a571],
49
49
  status: 200,
50
- updated_at: 2022-08-25T16:40:44.887Z,
50
+ updated_at: 2022-08-25T16:40:44.887+00:00,
51
51
  url: /filter_resource,
52
52
  user_account_id: 5a0b7001edbb6e1725b0b2c6,
53
- version: 2.2.0
53
+ version: 2.3.0
54
54
  )
55
55
  ```
56
56
 
@@ -1,4 +1,4 @@
1
- # Conekta::LogsResponse
1
+ # Conekta::LogsResponseForRequest
2
2
 
3
3
  ## Properties
4
4
 
@@ -15,7 +15,7 @@
15
15
  ```ruby
16
16
  require 'conekta'
17
17
 
18
- instance = Conekta::LogsResponse.new(
18
+ instance = Conekta::LogsResponseForRequest.new(
19
19
  has_more: null,
20
20
  object: null,
21
21
  next_page_url: null,
@@ -6,6 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **has_more** | **Boolean** | Indicates if there are more pages to be requested | |
8
8
  | **object** | **String** | Object type, in this case is list | |
9
+ | **next_page_url** | **String** | URL of the next page. | [optional] |
10
+ | **previous_page_url** | **String** | Url of the previous page. | [optional] |
9
11
  | **data** | [**Array<ChargesDataResponse>**](ChargesDataResponse.md) | | [optional] |
10
12
 
11
13
  ## Example
@@ -16,6 +18,8 @@ require 'conekta'
16
18
  instance = Conekta::OrderChargesResponse.new(
17
19
  has_more: false,
18
20
  object: list,
21
+ next_page_url: https://api.conekta.io/resources?limit=10&next=chrg_1,
22
+ previous_page_url: https://api.conekta.io/resources?limit=10&previous=chrg_1,
19
23
  data: null
20
24
  )
21
25
  ```
@@ -0,0 +1,46 @@
1
+ # Conekta::OrderCheckoutRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **allowed_payment_methods** | **Array<String>** | Are the payment methods available for this link. For subscriptions, only 'card' is allowed due to the recurring nature of the payments. This field is mutually exclusive with excluded_payment_methods. | [optional] |
8
+ | **excluded_payment_methods** | **Array<String>** | Payment methods to be excluded from the checkout. This field is mutually exclusive with allowed_payment_methods. | [optional] |
9
+ | **exclude_card_networks** | **Array<String>** | List of card networks to exclude from the checkout. This field is only applicable for card payments. | [optional] |
10
+ | **plan_ids** | **Array<String>** | List of plan IDs that will be available for subscription. This field is required for subscription payments. | [optional] |
11
+ | **expires_at** | **Integer** | It is the time when the link will expire. It is expressed in seconds since the Unix epoch. The valid range is from 5 minutes to 365 days from the creation date. | [optional] |
12
+ | **failure_url** | **String** | Redirection url back to the site in case of failed payment, applies only to HostedPayment. | [optional] |
13
+ | **force_save_card** | **Boolean** | Indicates whether the card used for the payment should be saved for future purchases. This field is only applicable for card payments. | [optional] |
14
+ | **monthly_installments_enabled** | **Boolean** | | [optional] |
15
+ | **monthly_installments_options** | **Array<Integer>** | | [optional] |
16
+ | **max_failed_retries** | **Integer** | Number of retries allowed before the checkout is marked as failed | [optional] |
17
+ | **name** | **String** | Reason for payment | [optional] |
18
+ | **on_demand_enabled** | **Boolean** | | [optional] |
19
+ | **redirection_time** | **Integer** | number of seconds to wait before redirecting to the success_url | [optional] |
20
+ | **success_url** | **String** | Redirection url back to the site in case of successful payment, applies only to HostedPayment | [optional] |
21
+ | **type** | **String** | Required. This field represents the type of checkout, which determines the user experience during the payment process. 'HostedPayment' will redirect the customer to a Conekta-hosted page to complete the payment, while 'Integration' allows the payment process to be handled entirely on your site using Conekta's APIs and SDKs. | [optional] |
22
+
23
+ ## Example
24
+
25
+ ```ruby
26
+ require 'conekta'
27
+
28
+ instance = Conekta::OrderCheckoutRequest.new(
29
+ allowed_payment_methods: [cash, card, bank_transfer, bnpl, pay_by_bank, apple, google],
30
+ excluded_payment_methods: [cash, bank_transfer],
31
+ exclude_card_networks: [visa, amex],
32
+ plan_ids: [plan_123, plan_456],
33
+ expires_at: null,
34
+ failure_url: https://www.mysite.com/failure,
35
+ force_save_card: false,
36
+ monthly_installments_enabled: false,
37
+ monthly_installments_options: [3, 6, 12],
38
+ max_failed_retries: 3,
39
+ name: null,
40
+ on_demand_enabled: true,
41
+ redirection_time: 10,
42
+ success_url: https://www.mysite.com/success,
43
+ type: null
44
+ )
45
+ ```
46
+
data/docs/OrderRequest.md CHANGED
@@ -4,22 +4,22 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **charges** | [**Array<ChargeRequest>**](ChargeRequest.md) | List of [charges](https://developers.conekta.com/v2.2.0/reference/orderscreatecharge) that are applied to the order | [optional] |
8
- | **checkout** | [**CheckoutRequest**](CheckoutRequest.md) | | [optional] |
7
+ | **charges** | [**Array<ChargeRequest>**](ChargeRequest.md) | List of [charges](https://developers.conekta.com/v2.3.0/reference/orderscreatecharge) that are applied to the order | [optional] |
8
+ | **checkout** | [**OrderCheckoutRequest**](OrderCheckoutRequest.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<OrderDiscountLinesRequest>**](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] |
11
+ | **discount_lines** | [**Array<OrderDiscountLinesRequest>**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order. | [optional] |
12
12
  | **fiscal_entity** | [**OrderFiscalEntityRequest**](OrderFiscalEntityRequest.md) | | [optional] |
13
- | **line_items** | [**Array<Product>**](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. | |
13
+ | **line_items** | [**Array<Product>**](Product.md) | List of [products](https://developers.conekta.com/v2.3.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | |
14
14
  | **metadata** | **Hash<String, Object>** | Metadata associated with the order | [optional] |
15
15
  | **needs_shipping_contact** | **Boolean** | Allows you to fill out the shipping information at checkout | [optional] |
16
- | **pre_authorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional][default to false] |
16
+ | **pre_authorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional] |
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
- | **shipping_contact** | [**CustomerShippingContacts**](CustomerShippingContacts.md) | | [optional] |
20
- | **shipping_lines** | [**Array<ShippingRequest>**](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<OrderTaxRequest>**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes) that are applied to the order. | [optional] |
22
- | **three_ds_mode** | **String** | Indicates the 3DS2 mode for the order, either smart or strict. | [optional] |
19
+ | **shipping_contact** | [**CustomerShippingContactsRequest**](CustomerShippingContactsRequest.md) | | [optional] |
20
+ | **shipping_lines** | [**Array<ShippingRequest>**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.3.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] |
21
+ | **tax_lines** | [**Array<OrderTaxRequest>**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.3.0/reference/orderscreatetaxes) that are applied to the order. | [optional] |
22
+ | **three_ds_mode** | **String** | Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null. | [optional] |
23
23
 
24
24
  ## Example
25
25
 
@@ -15,7 +15,7 @@ Conekta::OrderRequestCustomerInfo.openapi_one_of
15
15
  # =>
16
16
  # [
17
17
  # :'CustomerInfo',
18
- # :'CustomerInfoJustCustomerId'
18
+ # :'CustomerInfoCustomerId'
19
19
  # ]
20
20
  ```
21
21
 
@@ -44,6 +44,6 @@ Conekta::OrderRequestCustomerInfo.build(data_that_doesnt_match)
44
44
  #### Return type
45
45
 
46
46
  - `CustomerInfo`
47
- - `CustomerInfoJustCustomerId`
47
+ - `CustomerInfoCustomerId`
48
48
  - `nil` (if no type matches)
49
49
 
@@ -12,7 +12,9 @@
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** | [**OrderDiscountLinesResponse**](OrderDiscountLinesResponse.md) | | [optional] |
15
+ | **discount_lines** | [**OrderResponseDiscountLines**](OrderResponseDiscountLines.md) | | [optional] |
16
+ | **tax_lines** | [**OrderResponseTaxLines**](OrderResponseTaxLines.md) | | [optional] |
17
+ | **shipping_lines** | [**OrderResponseShippingLines**](OrderResponseShippingLines.md) | | [optional] |
16
18
  | **fiscal_entity** | [**OrderFiscalEntityResponse**](OrderFiscalEntityResponse.md) | | [optional] |
17
19
  | **id** | **String** | | [optional] |
18
20
  | **is_refundable** | **Boolean** | | [optional] |
@@ -41,6 +43,8 @@ instance = Conekta::OrderResponse.new(
41
43
  currency: MXN,
42
44
  customer_info: null,
43
45
  discount_lines: null,
46
+ tax_lines: null,
47
+ shipping_lines: null,
44
48
  fiscal_entity: null,
45
49
  id: ord_2tMtQQpDvfnNjiuFG,
46
50
  is_refundable: false,
@@ -5,33 +5,35 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **allowed_payment_methods** | **Array<String>** | Are the payment methods available for this link | [optional] |
8
+ | **excluded_payment_methods** | **Array<String>** | Payment methods excluded from the checkout. This field is only returned when excluded_payment_methods is provided in the request. | [optional] |
8
9
  | **can_not_expire** | **Boolean** | | [optional] |
9
10
  | **emails_sent** | **Integer** | | [optional] |
10
- | **exclude_card_networks** | **Array<Object>** | | [optional] |
11
+ | **exclude_card_networks** | **Array<String>** | | [optional] |
11
12
  | **expires_at** | **Integer** | | [optional] |
12
13
  | **failure_url** | **String** | | [optional] |
13
14
  | **force_3ds_flow** | **Boolean** | | [optional] |
14
- | **id** | **String** | | [optional] |
15
+ | **force_save_card** | **Boolean** | Indicates whether the card used for the payment should be saved for future purchases. This field is only applicable for card payments. | [optional] |
16
+ | **id** | **String** | | |
15
17
  | **is_redirect_on_failure** | **Boolean** | | [optional] |
16
- | **livemode** | **Boolean** | | [optional] |
18
+ | **livemode** | **Boolean** | | |
17
19
  | **max_failed_retries** | **Integer** | Number of retries allowed before the checkout is marked as failed | [optional] |
18
20
  | **metadata** | **Hash<String, Object>** | | [optional] |
19
21
  | **monthly_installments_enabled** | **Boolean** | | [optional] |
20
22
  | **monthly_installments_options** | **Array<Integer>** | | [optional] |
21
- | **name** | **String** | | [optional] |
23
+ | **name** | **String** | | |
22
24
  | **needs_shipping_contact** | **Boolean** | | [optional] |
23
- | **object** | **String** | | [optional] |
25
+ | **object** | **String** | | |
24
26
  | **on_demand_enabled** | **Boolean** | | [optional] |
25
27
  | **paid_payments_count** | **Integer** | | [optional] |
26
28
  | **recurrent** | **Boolean** | | [optional] |
27
29
  | **redirection_time** | **Integer** | number of seconds to wait before redirecting to the success_url | [optional] |
28
30
  | **slug** | **String** | | [optional] |
29
31
  | **sms_sent** | **Integer** | | [optional] |
30
- | **success_url** | **String** | | [optional] |
32
+ | **success_url** | **String** | Redirection url back to the site in case of successful payment, applies only to HostedPayment | [optional] |
31
33
  | **starts_at** | **Integer** | | [optional] |
32
34
  | **status** | **String** | | [optional] |
33
- | **type** | **String** | | [optional] |
34
- | **url** | **String** | | [optional] |
35
+ | **type** | **String** | This field represents the type of checkout, which determines the user experience during the payment process. 'HostedPayment' will redirect the customer to a Conekta-hosted page to complete the payment, while 'Integration' allows the payment process to be handled entirely on your site using Conekta's APIs and SDKs. | |
36
+ | **url** | **String** | Indicate the url of the Conekta component to complete the payment. For HostedPayment, this will be a Conekta-hosted page | [optional] |
35
37
 
36
38
  ## Example
37
39
 
@@ -39,13 +41,15 @@
39
41
  require 'conekta'
40
42
 
41
43
  instance = Conekta::OrderResponseCheckout.new(
42
- allowed_payment_methods: ["cash","card","bank_transfer","bnpl"],
44
+ allowed_payment_methods: [cash, card, bank_transfer, bnpl, pay_by_bank, apple, google],
45
+ excluded_payment_methods: [cash, bank_transfer],
43
46
  can_not_expire: false,
44
47
  emails_sent: 0,
45
- exclude_card_networks: null,
48
+ exclude_card_networks: [visa, amex],
46
49
  expires_at: 1676613599,
47
50
  failure_url: http://187.216.228.66:2222/SysVentasPagos/Acceso.aspx,
48
51
  force_3ds_flow: false,
52
+ force_save_card: false,
49
53
  id: 6fca054a-8519-4c43-971e-cea35cc519bb,
50
54
  is_redirect_on_failure: false,
51
55
  livemode: false,
@@ -4,12 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **object** | **String** | | [optional] |
7
8
  | **customer_custom_reference** | **String** | Custom reference | [optional] |
8
9
  | **name** | **String** | | [optional] |
9
10
  | **email** | **String** | | [optional] |
10
11
  | **phone** | **String** | | [optional] |
11
12
  | **corporate** | **Boolean** | | [optional][default to false] |
12
- | **object** | **String** | | [optional] |
13
13
  | **customer_id** | **String** | | [optional] |
14
14
 
15
15
  ## Example
@@ -18,12 +18,12 @@
18
18
  require 'conekta'
19
19
 
20
20
  instance = Conekta::OrderResponseCustomerInfo.new(
21
+ object: customer_info,
21
22
  customer_custom_reference: custom_reference,
22
23
  name: DevTest,
23
24
  email: test@conekta.com,
24
25
  phone: 5522997233,
25
26
  corporate: null,
26
- object: customer_info,
27
27
  customer_id: cus_23874283647
28
28
  )
29
29
  ```
@@ -1,4 +1,4 @@
1
- # Conekta::OrderDiscountLinesResponse
1
+ # Conekta::OrderResponseDiscountLines
2
2
 
3
3
  ## Properties
4
4
 
@@ -6,6 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **has_more** | **Boolean** | Indicates if there are more pages to be requested | |
8
8
  | **object** | **String** | Object type, in this case is list | |
9
+ | **next_page_url** | **String** | URL of the next page. | [optional] |
10
+ | **previous_page_url** | **String** | Url of the previous page. | [optional] |
9
11
  | **data** | [**Array<DiscountLinesDataResponse>**](DiscountLinesDataResponse.md) | | [optional] |
10
12
 
11
13
  ## Example
@@ -13,9 +15,11 @@
13
15
  ```ruby
14
16
  require 'conekta'
15
17
 
16
- instance = Conekta::OrderDiscountLinesResponse.new(
18
+ instance = Conekta::OrderResponseDiscountLines.new(
17
19
  has_more: false,
18
20
  object: list,
21
+ next_page_url: https://api.conekta.io/resources?limit=10&next=chrg_1,
22
+ previous_page_url: https://api.conekta.io/resources?limit=10&previous=chrg_1,
19
23
  data: null
20
24
  )
21
25
  ```
@@ -4,16 +4,16 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **created_at** | **Integer** | | [optional] |
8
+ | **id** | **String** | | [optional] |
9
+ | **object** | **String** | | [optional] |
7
10
  | **phone** | **String** | | [optional] |
8
11
  | **receiver** | **String** | | [optional] |
9
12
  | **between_streets** | **String** | | [optional] |
10
- | **address** | [**CustomerShippingContactsResponseAddress**](CustomerShippingContactsResponseAddress.md) | | [optional] |
13
+ | **address** | [**CustomerShippingContactsAddress**](CustomerShippingContactsAddress.md) | | [optional] |
11
14
  | **parent_id** | **String** | | [optional] |
12
15
  | **default** | **Boolean** | | [optional] |
13
- | **id** | **String** | | [optional] |
14
- | **created_at** | **Integer** | | [optional] |
15
16
  | **metadata** | **Hash<String, Object>** | Metadata associated with the shipping contact | [optional] |
16
- | **object** | **String** | | [optional] |
17
17
  | **deleted** | **Boolean** | | [optional] |
18
18
 
19
19
  ## Example
@@ -22,16 +22,16 @@
22
22
  require 'conekta'
23
23
 
24
24
  instance = Conekta::OrderResponseShippingContact.new(
25
+ created_at: 1675715413,
26
+ id: adr_1234567890,
27
+ object: shipping_contact,
25
28
  phone: +525511223344,
26
29
  receiver: Marvin Fuller,
27
30
  between_streets: Ackerman Crescent,
28
31
  address: null,
29
32
  parent_id: null,
30
33
  default: false,
31
- id: null,
32
- created_at: null,
33
34
  metadata: null,
34
- object: null,
35
35
  deleted: false
36
36
  )
37
37
  ```
@@ -0,0 +1,26 @@
1
+ # Conekta::OrderResponseShippingLines
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **has_more** | **Boolean** | Indicates if there are more pages to be requested | |
8
+ | **object** | **String** | Object type, in this case is list | |
9
+ | **next_page_url** | **String** | URL of the next page. | [optional] |
10
+ | **previous_page_url** | **String** | Url of the previous page. | [optional] |
11
+ | **data** | [**Array<ShippingLinesDataResponse>**](ShippingLinesDataResponse.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'conekta'
17
+
18
+ instance = Conekta::OrderResponseShippingLines.new(
19
+ has_more: false,
20
+ object: list,
21
+ next_page_url: https://api.conekta.io/resources?limit=10&next=chrg_1,
22
+ previous_page_url: https://api.conekta.io/resources?limit=10&previous=chrg_1,
23
+ data: null
24
+ )
25
+ ```
26
+
@@ -1,20 +1,26 @@
1
- # Conekta::Page
1
+ # Conekta::OrderResponseTaxLines
2
2
 
3
3
  ## Properties
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **has_more** | **Boolean** | Indicates if there are more pages to be requested | |
8
+ | **object** | **String** | Object type, in this case is list | |
7
9
  | **next_page_url** | **String** | URL of the next page. | [optional] |
8
10
  | **previous_page_url** | **String** | Url of the previous page. | [optional] |
11
+ | **data** | [**Array<TaxLinesDataResponse>**](TaxLinesDataResponse.md) | | [optional] |
9
12
 
10
13
  ## Example
11
14
 
12
15
  ```ruby
13
16
  require 'conekta'
14
17
 
15
- instance = Conekta::Page.new(
18
+ instance = Conekta::OrderResponseTaxLines.new(
19
+ has_more: false,
20
+ object: list,
16
21
  next_page_url: https://api.conekta.io/resources?limit=10&next=chrg_1,
17
- previous_page_url: https://api.conekta.io/resources?limit=10&previous=chrg_1
22
+ previous_page_url: https://api.conekta.io/resources?limit=10&previous=chrg_1,
23
+ data: null
18
24
  )
19
25
  ```
20
26
 
@@ -16,7 +16,7 @@ require 'conekta'
16
16
  instance = Conekta::OrderTaxRequest.new(
17
17
  amount: 100,
18
18
  description: testing,
19
- metadata: {"key":"value"}
19
+ metadata: {key=value}
20
20
  )
21
21
  ```
22
22
 
@@ -1,4 +1,4 @@
1
- # Conekta::UpdateOrderTaxResponse
1
+ # Conekta::OrderTaxResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -16,7 +16,7 @@
16
16
  ```ruby
17
17
  require 'conekta'
18
18
 
19
- instance = Conekta::UpdateOrderTaxResponse.new(
19
+ instance = Conekta::OrderTaxResponse.new(
20
20
  amount: 100,
21
21
  description: testing,
22
22
  metadata: {key=value},
@@ -1,20 +1,20 @@
1
- # Conekta::OrderUpdateRequest
1
+ # Conekta::OrderUpdate
2
2
 
3
3
  ## Properties
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **charges** | [**Array<ChargeRequest>**](ChargeRequest.md) | | [optional] |
8
- | **checkout** | [**CheckoutRequest**](CheckoutRequest.md) | | [optional] |
8
+ | **checkout** | [**OrderCheckoutRequest**](OrderCheckoutRequest.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
- | **customer_info** | [**OrderUpdateRequestCustomerInfo**](OrderUpdateRequestCustomerInfo.md) | | [optional] |
11
- | **discount_lines** | [**Array<OrderDiscountLinesRequest>**](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] |
10
+ | **customer_info** | [**OrderUpdateCustomerInfo**](OrderUpdateCustomerInfo.md) | | [optional] |
11
+ | **discount_lines** | [**Array<OrderDiscountLinesRequest>**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order. | [optional] |
12
12
  | **fiscal_entity** | [**OrderUpdateFiscalEntityRequest**](OrderUpdateFiscalEntityRequest.md) | | [optional] |
13
- | **line_items** | [**Array<Product>**](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] |
13
+ | **line_items** | [**Array<Product>**](Product.md) | List of [products](https://developers.conekta.com/v2.3.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | [optional] |
14
14
  | **metadata** | **Hash<String, String>** | | [optional] |
15
- | **pre_authorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional][default to false] |
16
- | **shipping_contact** | [**CustomerShippingContacts**](CustomerShippingContacts.md) | | [optional] |
17
- | **shipping_lines** | [**Array<ShippingRequest>**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.2.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] |
15
+ | **pre_authorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional] |
16
+ | **shipping_contact** | [**CustomerShippingContactsRequest**](CustomerShippingContactsRequest.md) | | [optional] |
17
+ | **shipping_lines** | [**Array<ShippingRequest>**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.3.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] |
18
18
  | **tax_lines** | [**Array<OrderTaxRequest>**](OrderTaxRequest.md) | | [optional] |
19
19
 
20
20
  ## Example
@@ -22,7 +22,7 @@
22
22
  ```ruby
23
23
  require 'conekta'
24
24
 
25
- instance = Conekta::OrderUpdateRequest.new(
25
+ instance = Conekta::OrderUpdate.new(
26
26
  charges: null,
27
27
  checkout: null,
28
28
  currency: MXN,
@@ -1,4 +1,4 @@
1
- # Conekta::OrderUpdateRequestCustomerInfo
1
+ # Conekta::OrderUpdateCustomerInfo
2
2
 
3
3
  ## Class instance methods
4
4
 
@@ -11,11 +11,11 @@ Returns the list of classes defined in oneOf.
11
11
  ```ruby
12
12
  require 'conekta'
13
13
 
14
- Conekta::OrderUpdateRequestCustomerInfo.openapi_one_of
14
+ Conekta::OrderUpdateCustomerInfo.openapi_one_of
15
15
  # =>
16
16
  # [
17
17
  # :'CustomerInfo',
18
- # :'CustomerInfoJustCustomerId'
18
+ # :'CustomerInfoCustomerId'
19
19
  # ]
20
20
  ```
21
21
 
@@ -28,10 +28,10 @@ Find the appropriate object from the `openapi_one_of` list and casts the data in
28
28
  ```ruby
29
29
  require 'conekta'
30
30
 
31
- Conekta::OrderUpdateRequestCustomerInfo.build(data)
31
+ Conekta::OrderUpdateCustomerInfo.build(data)
32
32
  # => #<CustomerInfo:0x00007fdd4aab02a0>
33
33
 
34
- Conekta::OrderUpdateRequestCustomerInfo.build(data_that_doesnt_match)
34
+ Conekta::OrderUpdateCustomerInfo.build(data_that_doesnt_match)
35
35
  # => nil
36
36
  ```
37
37
 
@@ -44,6 +44,6 @@ Conekta::OrderUpdateRequestCustomerInfo.build(data_that_doesnt_match)
44
44
  #### Return type
45
45
 
46
46
  - `CustomerInfo`
47
- - `CustomerInfoJustCustomerId`
47
+ - `CustomerInfoCustomerId`
48
48
  - `nil` (if no type matches)
49
49
 
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.2.0+json
89
+ - **Accept**: application/vnd.conekta-v2.3.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.2.0+json
164
+ - **Accept**: application/vnd.conekta-v2.3.0+json
165
165
 
166
166
 
167
167
  ## get_order_by_id
@@ -187,7 +187,8 @@ api_instance = Conekta::OrdersApi.new
187
187
  id = '6307a60c41de27127515a575' # String | Identifier of the resource
188
188
  opts = {
189
189
  accept_language: 'es', # String | Use for knowing which language to use
190
- 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.
190
+ 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.
191
+ client: 'checkout' # String | client of the object to be retrieved
191
192
  }
192
193
 
193
194
  begin
@@ -224,6 +225,7 @@ end
224
225
  | **id** | **String** | Identifier of the resource | |
225
226
  | **accept_language** | **String** | Use for knowing which language to use | [optional][default to &#39;es&#39;] |
226
227
  | **x_child_company_id** | **String** | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
228
+ | **client** | **String** | client of the object to be retrieved | [optional] |
227
229
 
228
230
  ### Return type
229
231
 
@@ -236,7 +238,7 @@ end
236
238
  ### HTTP request headers
237
239
 
238
240
  - **Content-Type**: Not defined
239
- - **Accept**: application/vnd.conekta-v2.2.0+json
241
+ - **Accept**: application/vnd.conekta-v2.3.0+json
240
242
 
241
243
 
242
244
  ## get_orders
@@ -331,7 +333,7 @@ end
331
333
  ### HTTP request headers
332
334
 
333
335
  - **Content-Type**: Not defined
334
- - **Accept**: application/vnd.conekta-v2.2.0+json
336
+ - **Accept**: application/vnd.conekta-v2.3.0+json
335
337
 
336
338
 
337
339
  ## order_cancel_refund
@@ -408,7 +410,7 @@ end
408
410
  ### HTTP request headers
409
411
 
410
412
  - **Content-Type**: Not defined
411
- - **Accept**: application/vnd.conekta-v2.2.0+json
413
+ - **Accept**: application/vnd.conekta-v2.3.0+json
412
414
 
413
415
 
414
416
  ## order_refund
@@ -485,7 +487,7 @@ end
485
487
  ### HTTP request headers
486
488
 
487
489
  - **Content-Type**: application/json
488
- - **Accept**: application/vnd.conekta-v2.2.0+json
490
+ - **Accept**: application/vnd.conekta-v2.3.0+json
489
491
 
490
492
 
491
493
  ## orders_create_capture
@@ -562,12 +564,12 @@ end
562
564
  ### HTTP request headers
563
565
 
564
566
  - **Content-Type**: application/json
565
- - **Accept**: application/vnd.conekta-v2.2.0+json
567
+ - **Accept**: application/vnd.conekta-v2.3.0+json
566
568
 
567
569
 
568
570
  ## update_order
569
571
 
570
- > <OrderResponse> update_order(id, order_update_request, opts)
572
+ > <OrderResponse> update_order(id, order_update, opts)
571
573
 
572
574
  Update Order
573
575
 
@@ -586,14 +588,14 @@ end
586
588
 
587
589
  api_instance = Conekta::OrdersApi.new
588
590
  id = '6307a60c41de27127515a575' # String | Identifier of the resource
589
- order_update_request = Conekta::OrderUpdateRequest.new # OrderUpdateRequest | requested field for an order
591
+ order_update = Conekta::OrderUpdate.new # OrderUpdate | requested field for an order
590
592
  opts = {
591
593
  accept_language: 'es' # String | Use for knowing which language to use
592
594
  }
593
595
 
594
596
  begin
595
597
  # Update Order
596
- result = api_instance.update_order(id, order_update_request, opts)
598
+ result = api_instance.update_order(id, order_update, opts)
597
599
  p result
598
600
  rescue Conekta::ApiError => e
599
601
  puts "Error when calling OrdersApi->update_order: #{e}"
@@ -604,12 +606,12 @@ end
604
606
 
605
607
  This returns an Array which contains the response data, status code and headers.
606
608
 
607
- > <Array(<OrderResponse>, Integer, Hash)> update_order_with_http_info(id, order_update_request, opts)
609
+ > <Array(<OrderResponse>, Integer, Hash)> update_order_with_http_info(id, order_update, opts)
608
610
 
609
611
  ```ruby
610
612
  begin
611
613
  # Update Order
612
- data, status_code, headers = api_instance.update_order_with_http_info(id, order_update_request, opts)
614
+ data, status_code, headers = api_instance.update_order_with_http_info(id, order_update, opts)
613
615
  p status_code # => 2xx
614
616
  p headers # => { ... }
615
617
  p data # => <OrderResponse>
@@ -623,7 +625,7 @@ end
623
625
  | Name | Type | Description | Notes |
624
626
  | ---- | ---- | ----------- | ----- |
625
627
  | **id** | **String** | Identifier of the resource | |
626
- | **order_update_request** | [**OrderUpdateRequest**](OrderUpdateRequest.md) | requested field for an order | |
628
+ | **order_update** | [**OrderUpdate**](OrderUpdate.md) | requested field for an order | |
627
629
  | **accept_language** | **String** | Use for knowing which language to use | [optional][default to &#39;es&#39;] |
628
630
 
629
631
  ### Return type
@@ -637,5 +639,5 @@ end
637
639
  ### HTTP request headers
638
640
 
639
641
  - **Content-Type**: application/json
640
- - **Accept**: application/vnd.conekta-v2.2.0+json
642
+ - **Accept**: application/vnd.conekta-v2.3.0+json
641
643