conekta 6.0.0 → 6.0.2

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 (350) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/Makefile +10 -1
  4. data/README.md +16 -52
  5. data/VERSION +1 -1
  6. data/conekta.gemspec +4 -3
  7. data/config-ruby.json +32 -0
  8. data/docs/ApiKeyCreateResponse.md +3 -3
  9. data/docs/BalancesApi.md +1 -1
  10. data/docs/ChargeOrderResponse.md +0 -2
  11. data/docs/ChargeRequest.md +0 -2
  12. data/docs/ChargeRequestPaymentMethod.md +2 -0
  13. data/docs/ChargeResponse.md +0 -2
  14. data/docs/ChargeUpdateRequest.md +18 -0
  15. data/docs/ChargesApi.md +76 -0
  16. data/docs/ChargesDataResponse.md +0 -2
  17. data/docs/Checkout.md +2 -2
  18. data/docs/CheckoutOrderTemplate.md +1 -1
  19. data/docs/CheckoutRequest.md +2 -2
  20. data/docs/CheckoutResponse.md +3 -3
  21. data/docs/CreateCustomerFiscalEntitiesResponse.md +1 -1
  22. data/docs/CustomerAddress.md +3 -3
  23. data/docs/CustomerFiscalEntitiesDataResponse.md +1 -1
  24. data/docs/CustomerFiscalEntitiesRequest.md +1 -1
  25. data/docs/CustomerResponse.md +10 -8
  26. data/docs/CustomerShippingContacts.md +3 -1
  27. data/docs/CustomerShippingContactsAddress.md +2 -2
  28. data/docs/CustomerShippingContactsDataResponse.md +2 -0
  29. data/docs/CustomerShippingContactsResponse.md +2 -0
  30. data/docs/CustomerShippingContactsResponseAddress.md +2 -2
  31. data/docs/CustomerUpdateFiscalEntitiesRequest.md +1 -1
  32. data/docs/CustomersApi.md +1 -1
  33. data/docs/CustomersResponse.md +3 -3
  34. data/docs/EventResponse.md +1 -1
  35. data/docs/FiscalEntityAddress.md +30 -0
  36. data/docs/LogResponse.md +5 -5
  37. data/docs/LogsResponseData.md +5 -5
  38. data/docs/{CustomerInfoResponse.md → OrderCustomerInfoResponse.md} +4 -2
  39. data/docs/OrderFiscalEntityAddressResponse.md +32 -0
  40. data/docs/OrderFiscalEntityRequest.md +28 -0
  41. data/docs/OrderFiscalEntityResponse.md +34 -0
  42. data/docs/OrderNextActionResponse.md +20 -0
  43. data/docs/OrderNextActionResponseRedirectToUrl.md +20 -0
  44. data/docs/OrderRequest.md +7 -1
  45. data/docs/OrderResponse.md +3 -1
  46. data/docs/OrderResponseCustomerInfo.md +4 -2
  47. data/docs/OrderResponseShippingContact.md +8 -6
  48. data/docs/OrderTaxRequest.md +1 -1
  49. data/docs/OrderUpdateFiscalEntityRequest.md +28 -0
  50. data/docs/OrderUpdateRequest.md +2 -0
  51. data/docs/PaymentLinkApi.md +1 -1
  52. data/docs/Product.md +3 -3
  53. data/docs/ShippingRequest.md +1 -1
  54. data/docs/TokenResponseCheckout.md +1 -1
  55. data/docs/TransactionsApi.md +9 -3
  56. data/docs/UpdateCustomerFiscalEntitiesResponse.md +1 -1
  57. data/docs/WebhookLog.md +1 -1
  58. data/docs/WebhookResponse.md +1 -1
  59. data/docs/WebhookUpdateRequest.md +2 -2
  60. data/lib/conekta/api/antifraud_api.rb +1 -1
  61. data/lib/conekta/api/api_keys_api.rb +1 -1
  62. data/lib/conekta/api/balances_api.rb +2 -2
  63. data/lib/conekta/api/charges_api.rb +83 -1
  64. data/lib/conekta/api/companies_api.rb +1 -1
  65. data/lib/conekta/api/customers_api.rb +1 -1
  66. data/lib/conekta/api/discounts_api.rb +1 -1
  67. data/lib/conekta/api/events_api.rb +1 -1
  68. data/lib/conekta/api/logs_api.rb +1 -1
  69. data/lib/conekta/api/orders_api.rb +1 -1
  70. data/lib/conekta/api/payment_link_api.rb +1 -1
  71. data/lib/conekta/api/payment_methods_api.rb +1 -1
  72. data/lib/conekta/api/plans_api.rb +1 -1
  73. data/lib/conekta/api/products_api.rb +1 -1
  74. data/lib/conekta/api/shipping_contacts_api.rb +1 -1
  75. data/lib/conekta/api/shippings_api.rb +1 -1
  76. data/lib/conekta/api/subscriptions_api.rb +1 -1
  77. data/lib/conekta/api/taxes_api.rb +1 -1
  78. data/lib/conekta/api/tokens_api.rb +1 -1
  79. data/lib/conekta/api/transactions_api.rb +13 -4
  80. data/lib/conekta/api/transfers_api.rb +1 -1
  81. data/lib/conekta/api/webhook_keys_api.rb +1 -1
  82. data/lib/conekta/api/webhooks_api.rb +1 -1
  83. data/lib/conekta/api_client.rb +40 -37
  84. data/lib/conekta/api_error.rb +1 -1
  85. data/lib/conekta/configuration.rb +13 -10
  86. data/lib/conekta/models/api_key_create_response.rb +28 -34
  87. data/lib/conekta/models/api_key_create_response_all_of.rb +14 -19
  88. data/lib/conekta/models/api_key_request.rb +16 -19
  89. data/lib/conekta/models/api_key_response.rb +14 -19
  90. data/lib/conekta/models/api_key_response_on_delete.rb +14 -19
  91. data/lib/conekta/models/api_key_update_request.rb +14 -19
  92. data/lib/conekta/models/balance_common_field.rb +14 -19
  93. data/lib/conekta/models/balance_response.rb +14 -19
  94. data/lib/conekta/models/blacklist_rule_response.rb +14 -19
  95. data/lib/conekta/models/charge_data_payment_method_bank_transfer_response.rb +14 -19
  96. data/lib/conekta/models/charge_data_payment_method_card_response.rb +14 -43
  97. data/lib/conekta/models/charge_data_payment_method_cash_response.rb +14 -19
  98. data/lib/conekta/models/charge_order_response.rb +15 -29
  99. data/lib/conekta/models/charge_order_response_payment_method.rb +1 -1
  100. data/lib/conekta/models/charge_request.rb +17 -30
  101. data/lib/conekta/models/charge_request_payment_method.rb +27 -44
  102. data/lib/conekta/models/charge_response.rb +15 -29
  103. data/lib/conekta/models/charge_response_channel.rb +14 -19
  104. data/lib/conekta/models/charge_response_payment_method.rb +1 -1
  105. data/lib/conekta/models/charge_response_refunds.rb +18 -20
  106. data/lib/conekta/models/charge_response_refunds_all_of.rb +14 -19
  107. data/lib/conekta/models/charge_response_refunds_data.rb +22 -19
  108. data/lib/conekta/models/charge_update_request.rb +216 -0
  109. data/lib/conekta/models/charges_data_response.rb +15 -29
  110. data/lib/conekta/models/checkout.rb +26 -19
  111. data/lib/conekta/models/checkout_order_template.rb +23 -20
  112. data/lib/conekta/models/checkout_order_template_customer_info.rb +2 -2
  113. data/lib/conekta/models/checkout_request.rb +16 -19
  114. data/lib/conekta/models/checkout_response.rb +22 -19
  115. data/lib/conekta/models/checkouts_response.rb +18 -20
  116. data/lib/conekta/models/checkouts_response_all_of.rb +14 -19
  117. data/lib/conekta/models/company_fiscal_info_address_response.rb +14 -19
  118. data/lib/conekta/models/company_fiscal_info_response.rb +14 -19
  119. data/lib/conekta/models/company_payout_destination_response.rb +14 -19
  120. data/lib/conekta/models/company_response.rb +14 -19
  121. data/lib/conekta/models/create_customer_fiscal_entities_response.rb +23 -21
  122. data/lib/conekta/models/create_customer_fiscal_entities_response_all_of.rb +20 -19
  123. data/lib/conekta/models/create_customer_payment_methods_request.rb +2 -2
  124. data/lib/conekta/models/create_customer_payment_methods_response.rb +1 -1
  125. data/lib/conekta/models/create_risk_rules_data.rb +20 -19
  126. data/lib/conekta/models/customer.rb +25 -20
  127. data/lib/conekta/models/customer_address.rb +22 -19
  128. data/lib/conekta/models/customer_antifraud_info.rb +14 -19
  129. data/lib/conekta/models/customer_antifraud_info_response.rb +14 -19
  130. data/lib/conekta/models/customer_fiscal_entities_data_response.rb +23 -21
  131. data/lib/conekta/models/customer_fiscal_entities_request.rb +17 -20
  132. data/lib/conekta/models/customer_fiscal_entities_request_address.rb +22 -19
  133. data/lib/conekta/models/customer_fiscal_entities_response.rb +18 -20
  134. data/lib/conekta/models/customer_fiscal_entities_response_all_of.rb +14 -19
  135. data/lib/conekta/models/customer_info.rb +20 -19
  136. data/lib/conekta/models/customer_info_just_customer_id.rb +16 -19
  137. data/lib/conekta/models/customer_info_just_customer_id_response.rb +14 -19
  138. data/lib/conekta/models/customer_payment_method_request.rb +16 -19
  139. data/lib/conekta/models/customer_payment_methods.rb +14 -19
  140. data/lib/conekta/models/customer_payment_methods_data.rb +1 -1
  141. data/lib/conekta/models/customer_payment_methods_request.rb +2 -2
  142. data/lib/conekta/models/customer_payment_methods_response.rb +18 -20
  143. data/lib/conekta/models/customer_response.rb +67 -20
  144. data/lib/conekta/models/customer_response_shipping_contacts.rb +18 -20
  145. data/lib/conekta/models/customer_response_shipping_contacts_all_of.rb +14 -19
  146. data/lib/conekta/models/customer_shipping_contacts.rb +52 -24
  147. data/lib/conekta/models/customer_shipping_contacts_address.rb +14 -19
  148. data/lib/conekta/models/customer_shipping_contacts_data_response.rb +55 -22
  149. data/lib/conekta/models/customer_shipping_contacts_data_response_all_of.rb +20 -19
  150. data/lib/conekta/models/customer_shipping_contacts_response.rb +46 -20
  151. data/lib/conekta/models/customer_shipping_contacts_response_address.rb +15 -19
  152. data/lib/conekta/models/customer_update_fiscal_entities_request.rb +15 -20
  153. data/lib/conekta/models/customer_update_shipping_contacts.rb +14 -19
  154. data/lib/conekta/models/customers_response.rb +34 -36
  155. data/lib/conekta/models/customers_response_all_of.rb +14 -19
  156. data/lib/conekta/models/delete_api_keys_response.rb +15 -21
  157. data/lib/conekta/models/delete_api_keys_response_all_of.rb +14 -19
  158. data/lib/conekta/models/deleted_blacklist_rule_response.rb +14 -19
  159. data/lib/conekta/models/deleted_whitelist_rule_response.rb +14 -19
  160. data/lib/conekta/models/details.rb +14 -19
  161. data/lib/conekta/models/details_error.rb +14 -19
  162. data/lib/conekta/models/discount_lines_data_response.rb +26 -19
  163. data/lib/conekta/models/discount_lines_response.rb +26 -20
  164. data/lib/conekta/models/discount_lines_response_all_of.rb +20 -19
  165. data/lib/conekta/models/email_checkout_request.rb +16 -19
  166. data/lib/conekta/models/error.rb +15 -21
  167. data/lib/conekta/models/error_all_of.rb +14 -19
  168. data/lib/conekta/models/event_response.rb +19 -20
  169. data/lib/conekta/models/events_resend_response.rb +19 -20
  170. data/lib/conekta/models/fiscal_entity_address.rb +312 -0
  171. data/lib/conekta/models/get_api_keys_response.rb +18 -20
  172. data/lib/conekta/models/get_api_keys_response_all_of.rb +14 -19
  173. data/lib/conekta/models/get_charges_response.rb +18 -20
  174. data/lib/conekta/models/get_charges_response_all_of.rb +14 -19
  175. data/lib/conekta/models/get_companies_response.rb +18 -20
  176. data/lib/conekta/models/get_companies_response_all_of.rb +14 -19
  177. data/lib/conekta/models/get_customer_payment_method_data_response.rb +1 -1
  178. data/lib/conekta/models/get_events_response.rb +18 -20
  179. data/lib/conekta/models/get_events_response_all_of.rb +14 -19
  180. data/lib/conekta/models/get_order_discount_lines_response.rb +18 -20
  181. data/lib/conekta/models/get_order_discount_lines_response_all_of.rb +14 -19
  182. data/lib/conekta/models/get_orders_response.rb +20 -19
  183. data/lib/conekta/models/get_payment_method_response.rb +18 -20
  184. data/lib/conekta/models/get_payment_method_response_all_of.rb +14 -19
  185. data/lib/conekta/models/get_plans_response.rb +18 -20
  186. data/lib/conekta/models/get_plans_response_all_of.rb +14 -19
  187. data/lib/conekta/models/get_transactions_response.rb +18 -20
  188. data/lib/conekta/models/get_transactions_response_all_of.rb +14 -19
  189. data/lib/conekta/models/get_transfers_response.rb +18 -20
  190. data/lib/conekta/models/get_transfers_response_all_of.rb +14 -19
  191. data/lib/conekta/models/get_webhook_keys_response.rb +18 -20
  192. data/lib/conekta/models/get_webhook_keys_response_all_of.rb +14 -19
  193. data/lib/conekta/models/get_webhooks_response.rb +18 -20
  194. data/lib/conekta/models/get_webhooks_response_all_of.rb +14 -19
  195. data/lib/conekta/models/log_response.rb +20 -19
  196. data/lib/conekta/models/logs_response.rb +14 -19
  197. data/lib/conekta/models/logs_response_data.rb +14 -19
  198. data/lib/conekta/models/order_capture_request.rb +16 -19
  199. data/lib/conekta/models/{customer_info_response.rb → order_customer_info_response.rb} +29 -23
  200. data/lib/conekta/models/order_discount_lines_request.rb +20 -19
  201. data/lib/conekta/models/{order_response_fiscal_entity_address.rb → order_fiscal_entity_address_response.rb} +47 -34
  202. data/lib/conekta/models/{order_response_fiscal_entity_address_all_of.rb → order_fiscal_entity_address_response_all_of.rb} +17 -22
  203. data/lib/conekta/models/order_fiscal_entity_request.rb +295 -0
  204. data/lib/conekta/models/order_fiscal_entity_response.rb +347 -0
  205. data/lib/conekta/models/{order_response_fiscal_entity.rb → order_next_action_response.rb} +32 -53
  206. data/lib/conekta/models/order_next_action_response_redirect_to_url.rb +226 -0
  207. data/lib/conekta/models/order_refund_request.rb +18 -19
  208. data/lib/conekta/models/order_request.rb +58 -24
  209. data/lib/conekta/models/order_request_customer_info.rb +2 -2
  210. data/lib/conekta/models/order_response.rb +31 -22
  211. data/lib/conekta/models/order_response_charges.rb +18 -20
  212. data/lib/conekta/models/order_response_charges_all_of.rb +14 -19
  213. data/lib/conekta/models/order_response_checkout.rb +19 -20
  214. data/lib/conekta/models/order_response_customer_info.rb +33 -28
  215. data/lib/conekta/models/order_response_customer_info_all_of.rb +14 -19
  216. data/lib/conekta/models/order_response_discount_lines.rb +18 -20
  217. data/lib/conekta/models/order_response_discount_lines_all_of.rb +14 -19
  218. data/lib/conekta/models/order_response_products.rb +18 -20
  219. data/lib/conekta/models/order_response_products_all_of.rb +14 -19
  220. data/lib/conekta/models/order_response_shipping_contact.rb +74 -49
  221. data/lib/conekta/models/order_response_shipping_contact_all_of.rb +14 -19
  222. data/lib/conekta/models/order_tax_request.rb +23 -20
  223. data/lib/conekta/models/order_update_fiscal_entity_request.rb +295 -0
  224. data/lib/conekta/models/order_update_request.rb +29 -21
  225. data/lib/conekta/models/order_update_request_customer_info.rb +2 -2
  226. data/lib/conekta/models/orders_response.rb +16 -19
  227. data/lib/conekta/models/page.rb +14 -19
  228. data/lib/conekta/models/pagination.rb +18 -19
  229. data/lib/conekta/models/payment_method.rb +16 -19
  230. data/lib/conekta/models/payment_method_bank_transfer.rb +16 -20
  231. data/lib/conekta/models/payment_method_card.rb +16 -44
  232. data/lib/conekta/models/payment_method_card_request.rb +19 -21
  233. data/lib/conekta/models/payment_method_card_request_all_of.rb +14 -19
  234. data/lib/conekta/models/payment_method_card_response.rb +22 -20
  235. data/lib/conekta/models/payment_method_card_response_all_of.rb +14 -19
  236. data/lib/conekta/models/payment_method_cash.rb +16 -20
  237. data/lib/conekta/models/payment_method_cash_request.rb +17 -21
  238. data/lib/conekta/models/payment_method_cash_request_all_of.rb +14 -19
  239. data/lib/conekta/models/payment_method_cash_response.rb +22 -20
  240. data/lib/conekta/models/payment_method_cash_response_all_of.rb +14 -19
  241. data/lib/conekta/models/payment_method_response.rb +22 -19
  242. data/lib/conekta/models/payment_method_spei_recurrent.rb +23 -21
  243. data/lib/conekta/models/payment_method_spei_recurrent_all_of.rb +14 -19
  244. data/lib/conekta/models/payment_method_spei_request.rb +17 -21
  245. data/lib/conekta/models/plan_request.rb +27 -20
  246. data/lib/conekta/models/plan_response.rb +19 -20
  247. data/lib/conekta/models/plan_update_request.rb +24 -21
  248. data/lib/conekta/models/product.rb +30 -21
  249. data/lib/conekta/models/product_data_response.rb +31 -23
  250. data/lib/conekta/models/product_data_response_all_of.rb +14 -19
  251. data/lib/conekta/models/product_order_response.rb +31 -23
  252. data/lib/conekta/models/product_order_response_all_of.rb +14 -19
  253. data/lib/conekta/models/risk_rules.rb +14 -19
  254. data/lib/conekta/models/risk_rules_data.rb +14 -19
  255. data/lib/conekta/models/risk_rules_list.rb +19 -21
  256. data/lib/conekta/models/shipping_order_response.rb +21 -21
  257. data/lib/conekta/models/shipping_request.rb +21 -20
  258. data/lib/conekta/models/sms_checkout_request.rb +16 -19
  259. data/lib/conekta/models/subscription_events_response.rb +18 -20
  260. data/lib/conekta/models/subscription_request.rb +16 -19
  261. data/lib/conekta/models/subscription_response.rb +14 -19
  262. data/lib/conekta/models/subscription_update_request.rb +14 -19
  263. data/lib/conekta/models/token.rb +14 -19
  264. data/lib/conekta/models/token_card.rb +24 -19
  265. data/lib/conekta/models/token_checkout.rb +14 -19
  266. data/lib/conekta/models/token_response.rb +22 -19
  267. data/lib/conekta/models/token_response_checkout.rb +14 -19
  268. data/lib/conekta/models/transaction_response.rb +36 -19
  269. data/lib/conekta/models/transfer_destination_response.rb +14 -19
  270. data/lib/conekta/models/transfer_method_response.rb +14 -19
  271. data/lib/conekta/models/transfer_response.rb +19 -20
  272. data/lib/conekta/models/transfers_response.rb +19 -20
  273. data/lib/conekta/models/update_customer.rb +19 -20
  274. data/lib/conekta/models/update_customer_antifraud_info.rb +14 -19
  275. data/lib/conekta/models/update_customer_fiscal_entities_response.rb +24 -22
  276. data/lib/conekta/models/update_customer_fiscal_entities_response_all_of.rb +20 -19
  277. data/lib/conekta/models/update_customer_payment_methods_response.rb +1 -1
  278. data/lib/conekta/models/update_order_discount_lines_request.rb +19 -20
  279. data/lib/conekta/models/update_order_tax_request.rb +29 -22
  280. data/lib/conekta/models/update_order_tax_response.rb +26 -22
  281. data/lib/conekta/models/update_order_tax_response_all_of.rb +14 -19
  282. data/lib/conekta/models/update_payment_methods.rb +14 -19
  283. data/lib/conekta/models/update_product.rb +29 -22
  284. data/lib/conekta/models/webhook_key_create_response.rb +14 -19
  285. data/lib/conekta/models/webhook_key_delete_response.rb +14 -19
  286. data/lib/conekta/models/webhook_key_request.rb +14 -19
  287. data/lib/conekta/models/webhook_key_response.rb +14 -19
  288. data/lib/conekta/models/webhook_key_update_request.rb +14 -19
  289. data/lib/conekta/models/webhook_log.rb +19 -20
  290. data/lib/conekta/models/webhook_request.rb +16 -19
  291. data/lib/conekta/models/webhook_response.rb +14 -19
  292. data/lib/conekta/models/webhook_update_request.rb +24 -27
  293. data/lib/conekta/models/whitelistlist_rule_response.rb +14 -19
  294. data/lib/conekta/version.rb +2 -2
  295. data/lib/conekta.rb +10 -47
  296. data/spec/api/customers_api_spec.rb +2 -2
  297. data/spec/api/orders_api_spec.rb +27 -1
  298. data/spec/api_client_spec.rb +1 -1
  299. data/spec/configuration_spec.rb +1 -1
  300. data/spec/spec_helper.rb +1 -8
  301. data/ssl_data/ca_bundle.crt +4039 -0
  302. data/templates/ruby/CUSTOM_VERSION.mustache +1 -0
  303. data/templates/ruby/api_client.mustache +256 -0
  304. data/templates/ruby/configuration.mustache +481 -0
  305. metadata +45 -71
  306. data/docs/ApiKeyCreateResponseAllOf.md +0 -18
  307. data/docs/ChargeDataPaymentMethodBankTransferResponse.md +0 -48
  308. data/docs/ChargeDataPaymentMethodCardResponse.md +0 -38
  309. data/docs/ChargeDataPaymentMethodCashResponse.md +0 -32
  310. data/docs/ChargeResponseRefundsAllOf.md +0 -18
  311. data/docs/CheckoutsResponseAllOf.md +0 -18
  312. data/docs/CreateCustomerFiscalEntitiesResponseAllOf.md +0 -26
  313. data/docs/CustomerFiscalEntitiesRequestAddress.md +0 -32
  314. data/docs/CustomerFiscalEntitiesResponseAllOf.md +0 -18
  315. data/docs/CustomerPaymentMethods.md +0 -18
  316. data/docs/CustomerResponseShippingContactsAllOf.md +0 -18
  317. data/docs/CustomerShippingContactsDataResponseAllOf.md +0 -22
  318. data/docs/CustomersResponseAllOf.md +0 -18
  319. data/docs/DeleteApiKeysResponseAllOf.md +0 -18
  320. data/docs/DiscountLinesResponseAllOf.md +0 -22
  321. data/docs/ErrorAllOf.md +0 -22
  322. data/docs/GetApiKeysResponseAllOf.md +0 -18
  323. data/docs/GetChargesResponseAllOf.md +0 -18
  324. data/docs/GetCompaniesResponseAllOf.md +0 -18
  325. data/docs/GetEventsResponseAllOf.md +0 -18
  326. data/docs/GetOrderDiscountLinesResponseAllOf.md +0 -18
  327. data/docs/GetPaymentMethodResponseAllOf.md +0 -18
  328. data/docs/GetPlansResponseAllOf.md +0 -18
  329. data/docs/GetTransactionsResponseAllOf.md +0 -18
  330. data/docs/GetTransfersResponseAllOf.md +0 -18
  331. data/docs/GetWebhookKeysResponseAllOf.md +0 -18
  332. data/docs/GetWebhooksResponseAllOf.md +0 -18
  333. data/docs/OrderResponseChargesAllOf.md +0 -18
  334. data/docs/OrderResponseCustomerInfoAllOf.md +0 -18
  335. data/docs/OrderResponseDiscountLinesAllOf.md +0 -18
  336. data/docs/OrderResponseFiscalEntity.md +0 -24
  337. data/docs/OrderResponseFiscalEntityAddress.md +0 -34
  338. data/docs/OrderResponseFiscalEntityAddressAllOf.md +0 -18
  339. data/docs/OrderResponseProductsAllOf.md +0 -18
  340. data/docs/OrderResponseShippingContactAllOf.md +0 -22
  341. data/docs/PaymentMethodCardRequestAllOf.md +0 -18
  342. data/docs/PaymentMethodCardResponseAllOf.md +0 -36
  343. data/docs/PaymentMethodCashRequestAllOf.md +0 -18
  344. data/docs/PaymentMethodCashResponseAllOf.md +0 -26
  345. data/docs/PaymentMethodSpeiRecurrentAllOf.md +0 -20
  346. data/docs/ProductDataResponseAllOf.md +0 -22
  347. data/docs/ProductOrderResponseAllOf.md +0 -22
  348. data/docs/RiskRules.md +0 -18
  349. data/docs/UpdateCustomerFiscalEntitiesResponseAllOf.md +0 -26
  350. data/docs/UpdateOrderTaxResponseAllOf.md +0 -22
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **address** | [**CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | |
7
+ | **address** | [**CustomerAddress**](CustomerAddress.md) | | |
8
8
  | **tax_id** | **String** | | [optional] |
9
9
  | **email** | **String** | | [optional] |
10
10
  | **phone** | **String** | | [optional] |
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **address** | [**CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | |
7
+ | **address** | [**CustomerAddress**](CustomerAddress.md) | | |
8
8
  | **tax_id** | **String** | | [optional] |
9
9
  | **email** | **String** | | [optional] |
10
10
  | **phone** | **String** | | [optional] |
@@ -5,20 +5,21 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **antifraud_info** | [**CustomerAntifraudInfoResponse**](CustomerAntifraudInfoResponse.md) | | [optional] |
8
- | **corporate** | **Boolean** | | [optional] |
9
- | **created_at** | **Integer** | | |
10
- | **custom_reference** | **String** | | [optional] |
8
+ | **corporate** | **Boolean** | true if the customer is a company | [optional] |
9
+ | **created_at** | **Integer** | Creation date of the object | |
10
+ | **custom_reference** | **String** | Custom reference | [optional] |
11
11
  | **default_fiscal_entity_id** | **String** | | [optional] |
12
12
  | **default_shipping_contact_id** | **String** | | [optional] |
13
13
  | **default_payment_source_id** | **String** | | [optional] |
14
14
  | **email** | **String** | | [optional] |
15
15
  | **fiscal_entities** | [**CustomerFiscalEntitiesResponse**](CustomerFiscalEntitiesResponse.md) | | [optional] |
16
- | **id** | **String** | | |
17
- | **livemode** | **Boolean** | | |
18
- | **name** | **String** | | [optional] |
16
+ | **id** | **String** | Customer's ID | |
17
+ | **livemode** | **Boolean** | true if the object exists in live mode or the value false if the object exists in test mode | |
18
+ | **name** | **String** | Customer's name | |
19
+ | **metadata** | **Hash<String, Object>** | | [optional] |
19
20
  | **object** | **String** | | |
20
21
  | **payment_sources** | [**CustomerPaymentMethodsResponse**](CustomerPaymentMethodsResponse.md) | | [optional] |
21
- | **phone** | **String** | | [optional] |
22
+ | **phone** | **String** | Customer's phone number | [optional] |
22
23
  | **shipping_contacts** | [**CustomerResponseShippingContacts**](CustomerResponseShippingContacts.md) | | [optional] |
23
24
  | **subscription** | [**SubscriptionResponse**](SubscriptionResponse.md) | | [optional] |
24
25
 
@@ -31,7 +32,7 @@ instance = Conekta::CustomerResponse.new(
31
32
  antifraud_info: null,
32
33
  corporate: null,
33
34
  created_at: 1485151007,
34
- custom_reference: null,
35
+ custom_reference: custom_reference,
35
36
  default_fiscal_entity_id: fis_ent_2tKqqAfqPi21oCmEJ,
36
37
  default_shipping_contact_id: ship_cont_2tKZsTYcsryyu7Ah8,
37
38
  default_payment_source_id: src_2tHJfJ79KyUwpxTio,
@@ -40,6 +41,7 @@ instance = Conekta::CustomerResponse.new(
40
41
  id: cus_2tHJfJ79KyUwpxTik,
41
42
  livemode: true,
42
43
  name: Felipe,
44
+ metadata: null,
43
45
  object: customer,
44
46
  payment_sources: null,
45
47
  phone: +5215555555555,
@@ -11,6 +11,7 @@
11
11
  | **parent_id** | **String** | | [optional] |
12
12
  | **default** | **Boolean** | | [optional] |
13
13
  | **deleted** | **Boolean** | | [optional] |
14
+ | **metadata** | **Hash<String, Object>** | Metadata associated with the shipping contact | [optional] |
14
15
 
15
16
  ## Example
16
17
 
@@ -24,7 +25,8 @@ instance = Conekta::CustomerShippingContacts.new(
24
25
  address: null,
25
26
  parent_id: null,
26
27
  default: null,
27
- deleted: null
28
+ deleted: null,
29
+ metadata: null
28
30
  )
29
31
  ```
30
32
 
@@ -18,8 +18,8 @@
18
18
  require 'conekta'
19
19
 
20
20
  instance = Conekta::CustomerShippingContactsAddress.new(
21
- street1: avenida siempre viva,
22
- street2: fake street,
21
+ street1: Nuevo Leon 254,
22
+ street2: Departamento 404,
23
23
  postal_code: 06100,
24
24
  city: Ciudad de Mexico,
25
25
  state: Ciudad de Mexico,
@@ -11,6 +11,7 @@
11
11
  | **parent_id** | **String** | | [optional] |
12
12
  | **default** | **Boolean** | | [optional] |
13
13
  | **deleted** | **Boolean** | | [optional] |
14
+ | **metadata** | **Hash<String, Object>** | Metadata associated with the shipping contact | [optional] |
14
15
  | **id** | **String** | | |
15
16
  | **object** | **String** | | |
16
17
  | **created_at** | **Integer** | | |
@@ -28,6 +29,7 @@ instance = Conekta::CustomerShippingContactsDataResponse.new(
28
29
  parent_id: null,
29
30
  default: null,
30
31
  deleted: null,
32
+ metadata: null,
31
33
  id: ship_cont_2tKZsTYcsryyu7Ah8,
32
34
  object: shipping_contact,
33
35
  created_at: 1675715413
@@ -12,6 +12,7 @@
12
12
  | **default** | **Boolean** | | [optional] |
13
13
  | **id** | **String** | | [optional] |
14
14
  | **created_at** | **Integer** | | [optional] |
15
+ | **metadata** | **Hash<String, Object>** | Metadata associated with the shipping contact | [optional] |
15
16
  | **object** | **String** | | [optional] |
16
17
  | **deleted** | **Boolean** | | [optional] |
17
18
 
@@ -29,6 +30,7 @@ instance = Conekta::CustomerShippingContactsResponse.new(
29
30
  default: false,
30
31
  id: adr_1234567890,
31
32
  created_at: 1675715413,
33
+ metadata: null,
32
34
  object: shipping_contact,
33
35
  deleted: false
34
36
  )
@@ -20,8 +20,8 @@ require 'conekta'
20
20
 
21
21
  instance = Conekta::CustomerShippingContactsResponseAddress.new(
22
22
  object: shipping_address,
23
- street1: avenida siempre viva,
24
- street2: fake street,
23
+ street1: Nuevo Leon 254,
24
+ street2: Departamento 404,
25
25
  postal_code: 06100,
26
26
  city: Ciudad de Mexico,
27
27
  state: Ciudad de Mexico,
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **address** | [**CustomerFiscalEntitiesRequestAddress**](CustomerFiscalEntitiesRequestAddress.md) | | [optional] |
7
+ | **address** | [**CustomerAddress**](CustomerAddress.md) | | [optional] |
8
8
  | **tax_id** | **String** | | [optional] |
9
9
  | **email** | **String** | | [optional] |
10
10
  | **phone** | **String** | | [optional] |
data/docs/CustomersApi.md CHANGED
@@ -109,7 +109,7 @@ end
109
109
 
110
110
  api_instance = Conekta::CustomersApi.new
111
111
  id = '6307a60c41de27127515a575' # String | Identifier of the resource
112
- customer_fiscal_entities_request = Conekta::CustomerFiscalEntitiesRequest.new({address: Conekta::CustomerFiscalEntitiesRequestAddress.new({street1: 'avenida siempre viva', postal_code: '06100', city: 'Ciudad de Mexico'})}) # CustomerFiscalEntitiesRequest | requested field for customer fiscal entities
112
+ customer_fiscal_entities_request = Conekta::CustomerFiscalEntitiesRequest.new({address: Conekta::CustomerAddress.new({street1: 'Nuevo Leon 254', postal_code: '06100', city: 'Ciudad de Mexico'})}) # CustomerFiscalEntitiesRequest | requested field for customer fiscal entities
113
113
  opts = {
114
114
  accept_language: 'es', # String | Use for knowing which language to use
115
115
  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.
@@ -4,11 +4,11 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **data** | [**Array<CustomerResponse>**](CustomerResponse.md) | | [optional] |
8
7
  | **has_more** | **Boolean** | Indicates if there are more pages to be requested | |
9
8
  | **object** | **String** | Object type, in this case is list | |
10
9
  | **next_page_url** | **String** | URL of the next page. | [optional] |
11
10
  | **previous_page_url** | **String** | Url of the previous page. | [optional] |
11
+ | **data** | [**Array<CustomerResponse>**](CustomerResponse.md) | | [optional] |
12
12
 
13
13
  ## Example
14
14
 
@@ -16,11 +16,11 @@
16
16
  require 'conekta'
17
17
 
18
18
  instance = Conekta::CustomersResponse.new(
19
- data: null,
20
19
  has_more: false,
21
20
  object: list,
22
21
  next_page_url: https://api.conekta.io/resources?limit=10&next=chrg_1,
23
- 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
24
24
  )
25
25
  ```
26
26
 
@@ -20,7 +20,7 @@ require 'conekta'
20
20
 
21
21
  instance = Conekta::EventResponse.new(
22
22
  created_at: 1661445644,
23
- data: {action=ping, livemode=true},
23
+ data: {"action":"ping","livemode":true},
24
24
  id: 6307a60c41de27127515a575,
25
25
  livemode: true,
26
26
  object: event,
@@ -0,0 +1,30 @@
1
+ # Conekta::FiscalEntityAddress
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **street1** | **String** | Street name and number | |
8
+ | **street2** | **String** | Street name and number | [optional] |
9
+ | **postal_code** | **String** | Postal code | |
10
+ | **city** | **String** | City | |
11
+ | **state** | **String** | State | [optional] |
12
+ | **country** | **String** | this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | |
13
+ | **external_number** | **String** | External number | |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'conekta'
19
+
20
+ instance = Conekta::FiscalEntityAddress.new(
21
+ street1: Nuevo Leon 254,
22
+ street2: Departamento 404,
23
+ postal_code: 06100,
24
+ city: Ciudad de Mexico,
25
+ state: Ciudad de Mexico,
26
+ country: MX,
27
+ external_number: 123
28
+ )
29
+ ```
30
+
data/docs/LogResponse.md CHANGED
@@ -39,13 +39,13 @@ instance = Conekta::LogResponse.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.1.0+json, Accept-Encoding=gzip, deflate, br, Accept-Language=es-419, es; q=0.9, en; q=0.8, Activitypermission=orders:read, Apiversion=2.1.0},
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.1.0+json","Accept-Encoding":"gzip, deflate, br","Accept-Language":"es-419, es; q=0.9, en; q=0.8","Activitypermission":"orders:read","Apiversion":"2.1.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.1.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.1.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
50
  updated_at: 2022-08-25T16:40:44.887Z,
51
51
  url: /filter_resource,
@@ -39,13 +39,13 @@ 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.1.0+json, Accept-Encoding=gzip, deflate, br, Accept-Language=es-419, es; q=0.9, en; q=0.8, Activitypermission=orders:read, Apiversion=2.1.0},
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.1.0+json","Accept-Encoding":"gzip, deflate, br","Accept-Language":"es-419, es; q=0.9, en; q=0.8","Activitypermission":"orders:read","Apiversion":"2.1.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.1.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.1.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
50
  updated_at: 2022-08-25T16:40:44.887Z,
51
51
  url: /filter_resource,
@@ -1,9 +1,10 @@
1
- # Conekta::CustomerInfoResponse
1
+ # Conekta::OrderCustomerInfoResponse
2
2
 
3
3
  ## Properties
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **customer_custom_reference** | **String** | Custom reference | [optional] |
7
8
  | **name** | **String** | | [optional] |
8
9
  | **email** | **String** | | [optional] |
9
10
  | **phone** | **String** | | [optional] |
@@ -15,7 +16,8 @@
15
16
  ```ruby
16
17
  require 'conekta'
17
18
 
18
- instance = Conekta::CustomerInfoResponse.new(
19
+ instance = Conekta::OrderCustomerInfoResponse.new(
20
+ customer_custom_reference: custom_reference,
19
21
  name: DevTest,
20
22
  email: test@conekta.com,
21
23
  phone: 5522997233,
@@ -0,0 +1,32 @@
1
+ # Conekta::OrderFiscalEntityAddressResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **street1** | **String** | Street name and number | |
8
+ | **street2** | **String** | Street name and number | [optional] |
9
+ | **postal_code** | **String** | Postal code | |
10
+ | **city** | **String** | City | |
11
+ | **state** | **String** | State | [optional] |
12
+ | **country** | **String** | this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | |
13
+ | **external_number** | **String** | External number | |
14
+ | **object** | **String** | | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'conekta'
20
+
21
+ instance = Conekta::OrderFiscalEntityAddressResponse.new(
22
+ street1: Nuevo Leon 254,
23
+ street2: Departamento 404,
24
+ postal_code: 06100,
25
+ city: Ciudad de Mexico,
26
+ state: Ciudad de Mexico,
27
+ country: MX,
28
+ external_number: 123,
29
+ object: fiscal_entity_address
30
+ )
31
+ ```
32
+
@@ -0,0 +1,28 @@
1
+ # Conekta::OrderFiscalEntityRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **address** | [**FiscalEntityAddress**](FiscalEntityAddress.md) | | |
8
+ | **email** | **String** | Email of the fiscal entity | [optional] |
9
+ | **metadata** | **Hash<String, Object>** | Metadata associated with the fiscal entity | [optional] |
10
+ | **name** | **String** | Name of the fiscal entity | [optional] |
11
+ | **phone** | **String** | Phone of the fiscal entity | [optional] |
12
+ | **tax_id** | **String** | Tax ID of the fiscal entity | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'conekta'
18
+
19
+ instance = Conekta::OrderFiscalEntityRequest.new(
20
+ address: null,
21
+ email: test@gmail.com,
22
+ metadata: null,
23
+ name: Conekta Inc,
24
+ phone: +525511223344,
25
+ tax_id: AAA010101AAA
26
+ )
27
+ ```
28
+
@@ -0,0 +1,34 @@
1
+ # Conekta::OrderFiscalEntityResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **address** | [**OrderFiscalEntityAddressResponse**](OrderFiscalEntityAddressResponse.md) | | |
8
+ | **email** | **String** | Email of the fiscal entity | [optional] |
9
+ | **metadata** | **Hash<String, Object>** | Metadata associated with the fiscal entity | [optional] |
10
+ | **name** | **String** | Name of the fiscal entity | [optional] |
11
+ | **tax_id** | **String** | Tax ID of the fiscal entity | [optional] |
12
+ | **id** | **String** | ID of the fiscal entity | |
13
+ | **created_at** | **Integer** | The time at which the object was created in seconds since the Unix epoch | |
14
+ | **object** | **String** | | |
15
+ | **phone** | **String** | Phone of the fiscal entity | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'conekta'
21
+
22
+ instance = Conekta::OrderFiscalEntityResponse.new(
23
+ address: null,
24
+ email: test@gmail.com,
25
+ metadata: null,
26
+ name: Conekta Inc,
27
+ tax_id: 324234234,
28
+ id: fis_ent_2tN85VYaSMyDvjB3M,
29
+ created_at: 1676328434,
30
+ object: fiscal_entity,
31
+ phone: +525511223344
32
+ )
33
+ ```
34
+
@@ -0,0 +1,20 @@
1
+ # Conekta::OrderNextActionResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **redirect_to_url** | [**OrderNextActionResponseRedirectToUrl**](OrderNextActionResponseRedirectToUrl.md) | | [optional] |
8
+ | **type** | **String** | Indicates the type of action to be taken | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'conekta'
14
+
15
+ instance = Conekta::OrderNextActionResponse.new(
16
+ redirect_to_url: null,
17
+ type: redirect_to_url
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Conekta::OrderNextActionResponseRedirectToUrl
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **url** | **String** | pay.conekta.com/{id} Indicates the url of the Conekta component to authenticate the flow through 3DS2. | [optional] |
8
+ | **return_url** | **String** | Indicates the url to which the 3DS2 flow returns at the end, when the integration is redirected. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'conekta'
14
+
15
+ instance = Conekta::OrderNextActionResponseRedirectToUrl.new(
16
+ url: https://pay.conekta.com/6fca054a85194c43971ecea35cc519bb,
17
+ return_url: https://my-website.com"
18
+ )
19
+ ```
20
+
data/docs/OrderRequest.md CHANGED
@@ -9,14 +9,17 @@
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
11
  | **discount_lines** | [**Array<OrderDiscountLinesRequest>**](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] |
12
+ | **fiscal_entity** | [**OrderFiscalEntityRequest**](OrderFiscalEntityRequest.md) | | [optional] |
12
13
  | **line_items** | [**Array<Product>**](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
14
  | **metadata** | **Hash<String, Object>** | Metadata associated with the order | [optional] |
14
15
  | **needs_shipping_contact** | **Boolean** | Allows you to fill out the shipping information at checkout | [optional] |
15
16
  | **pre_authorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional][default to false] |
16
17
  | **processing_mode** | **String** | Indicates the processing mode for the order, either ecommerce, recurrent or validation. | [optional] |
18
+ | **return_url** | **String** | Indicates the redirection callback upon completion of the 3DS2 flow. | [optional] |
17
19
  | **shipping_contact** | [**CustomerShippingContacts**](CustomerShippingContacts.md) | | [optional] |
18
20
  | **shipping_lines** | [**Array<ShippingRequest>**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.1.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] |
19
21
  | **tax_lines** | [**Array<OrderTaxRequest>**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.1.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] |
20
23
 
21
24
  ## Example
22
25
 
@@ -29,14 +32,17 @@ instance = Conekta::OrderRequest.new(
29
32
  currency: MXN,
30
33
  customer_info: null,
31
34
  discount_lines: null,
35
+ fiscal_entity: null,
32
36
  line_items: null,
33
37
  metadata: null,
34
38
  needs_shipping_contact: false,
35
39
  pre_authorize: null,
36
40
  processing_mode: ecommerce,
41
+ return_url: https://my-website.com,
37
42
  shipping_contact: null,
38
43
  shipping_lines: null,
39
- tax_lines: null
44
+ tax_lines: null,
45
+ three_ds_mode: null
40
46
  )
41
47
  ```
42
48
 
@@ -13,12 +13,13 @@
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
15
  | **discount_lines** | [**OrderResponseDiscountLines**](OrderResponseDiscountLines.md) | | [optional] |
16
- | **fiscal_entity** | [**OrderResponseFiscalEntity**](OrderResponseFiscalEntity.md) | | [optional] |
16
+ | **fiscal_entity** | [**OrderFiscalEntityResponse**](OrderFiscalEntityResponse.md) | | [optional] |
17
17
  | **id** | **String** | | [optional] |
18
18
  | **is_refundable** | **Boolean** | | [optional] |
19
19
  | **line_items** | [**OrderResponseProducts**](OrderResponseProducts.md) | | [optional] |
20
20
  | **livemode** | **Boolean** | Whether the object exists in live mode or test mode | [optional] |
21
21
  | **metadata** | **Hash<String, Object>** | Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | [optional] |
22
+ | **next_action** | [**OrderNextActionResponse**](OrderNextActionResponse.md) | | [optional] |
22
23
  | **object** | **String** | String representing the object’s type. Objects of the same type share the same value. | [optional] |
23
24
  | **payment_status** | **String** | The payment status of the order. | [optional] |
24
25
  | **processing_mode** | **String** | Indicates the processing mode for the order, either ecommerce, recurrent or validation. | [optional] |
@@ -46,6 +47,7 @@ instance = Conekta::OrderResponse.new(
46
47
  line_items: null,
47
48
  livemode: false,
48
49
  metadata: null,
50
+ next_action: null,
49
51
  object: order,
50
52
  payment_status: paid,
51
53
  processing_mode: ecommerce,
@@ -4,11 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **object** | **String** | | [optional] |
7
+ | **customer_custom_reference** | **String** | Custom reference | [optional] |
8
8
  | **name** | **String** | | [optional] |
9
9
  | **email** | **String** | | [optional] |
10
10
  | **phone** | **String** | | [optional] |
11
11
  | **corporate** | **Boolean** | | [optional][default to false] |
12
+ | **object** | **String** | | [optional] |
12
13
  | **customer_id** | **String** | | [optional] |
13
14
 
14
15
  ## Example
@@ -17,11 +18,12 @@
17
18
  require 'conekta'
18
19
 
19
20
  instance = Conekta::OrderResponseCustomerInfo.new(
20
- object: customer_info,
21
+ customer_custom_reference: custom_reference,
21
22
  name: DevTest,
22
23
  email: test@conekta.com,
23
24
  phone: 5522997233,
24
25
  corporate: null,
26
+ object: customer_info,
25
27
  customer_id: cus_23874283647
26
28
  )
27
29
  ```
@@ -4,15 +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] |
10
7
  | **phone** | **String** | | [optional] |
11
8
  | **receiver** | **String** | | [optional] |
12
9
  | **between_streets** | **String** | | [optional] |
13
10
  | **address** | [**CustomerShippingContactsResponseAddress**](CustomerShippingContactsResponseAddress.md) | | [optional] |
14
11
  | **parent_id** | **String** | | [optional] |
15
12
  | **default** | **Boolean** | | [optional] |
13
+ | **id** | **String** | | [optional] |
14
+ | **created_at** | **Integer** | | [optional] |
15
+ | **metadata** | **Hash<String, Object>** | Metadata associated with the shipping contact | [optional] |
16
+ | **object** | **String** | | [optional] |
16
17
  | **deleted** | **Boolean** | | [optional] |
17
18
 
18
19
  ## Example
@@ -21,15 +22,16 @@
21
22
  require 'conekta'
22
23
 
23
24
  instance = Conekta::OrderResponseShippingContact.new(
24
- created_at: 1675715413,
25
- id: adr_1234567890,
26
- object: shipping_contact,
27
25
  phone: +525511223344,
28
26
  receiver: Marvin Fuller,
29
27
  between_streets: Ackerman Crescent,
30
28
  address: null,
31
29
  parent_id: null,
32
30
  default: false,
31
+ id: null,
32
+ created_at: null,
33
+ metadata: null,
34
+ object: null,
33
35
  deleted: false
34
36
  )
35
37
  ```
@@ -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
 
@@ -0,0 +1,28 @@
1
+ # Conekta::OrderUpdateFiscalEntityRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **address** | [**FiscalEntityAddress**](FiscalEntityAddress.md) | | |
8
+ | **email** | **String** | Email of the fiscal entity | [optional] |
9
+ | **name** | **String** | Name of the fiscal entity | [optional] |
10
+ | **metadata** | **Hash<String, Object>** | Metadata associated with the fiscal entity | [optional] |
11
+ | **phone** | **String** | Phone of the fiscal entity | [optional] |
12
+ | **tax_id** | **String** | Tax ID of the fiscal entity | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'conekta'
18
+
19
+ instance = Conekta::OrderUpdateFiscalEntityRequest.new(
20
+ address: null,
21
+ email: test@gmail.com,
22
+ name: Conekta Inc,
23
+ metadata: null,
24
+ phone: +525511223344,
25
+ tax_id: AAA010101AAA
26
+ )
27
+ ```
28
+
@@ -9,6 +9,7 @@
9
9
  | **currency** | **String** | Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) | [optional] |
10
10
  | **customer_info** | [**OrderUpdateRequestCustomerInfo**](OrderUpdateRequestCustomerInfo.md) | | [optional] |
11
11
  | **discount_lines** | [**Array<OrderDiscountLinesRequest>**](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] |
12
+ | **fiscal_entity** | [**OrderUpdateFiscalEntityRequest**](OrderUpdateFiscalEntityRequest.md) | | [optional] |
12
13
  | **line_items** | [**Array<Product>**](Product.md) | List of [products](https://developers.conekta.com/v2.1.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | [optional] |
13
14
  | **metadata** | **Hash<String, String>** | | [optional] |
14
15
  | **pre_authorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional][default to false] |
@@ -27,6 +28,7 @@ instance = Conekta::OrderUpdateRequest.new(
27
28
  currency: MXN,
28
29
  customer_info: null,
29
30
  discount_lines: null,
31
+ fiscal_entity: null,
30
32
  line_items: null,
31
33
  metadata: null,
32
34
  pre_authorize: null,