conekta 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +9 -1
  3. data/README.md +17 -10
  4. data/VERSION +1 -1
  5. data/conekta.gemspec +4 -3
  6. data/config-ruby.json +32 -0
  7. data/docs/BalancesApi.md +1 -1
  8. data/docs/ChargeOrderResponse.md +0 -2
  9. data/docs/ChargeRequest.md +0 -2
  10. data/docs/ChargeRequestPaymentMethod.md +2 -0
  11. data/docs/ChargeResponse.md +0 -2
  12. data/docs/ChargeUpdateRequest.md +18 -0
  13. data/docs/ChargesApi.md +76 -0
  14. data/docs/ChargesDataResponse.md +0 -2
  15. data/docs/Checkout.md +2 -2
  16. data/docs/CheckoutOrderTemplate.md +1 -1
  17. data/docs/CheckoutRequest.md +2 -2
  18. data/docs/CheckoutResponse.md +3 -3
  19. data/docs/Customer.md +1 -1
  20. data/docs/CustomerAddress.md +3 -3
  21. data/docs/CustomerFiscalEntitiesRequestAddress.md +3 -3
  22. data/docs/CustomerResponse.md +11 -9
  23. data/docs/CustomerShippingContacts.md +4 -2
  24. data/docs/CustomerShippingContactsAddress.md +2 -2
  25. data/docs/CustomerShippingContactsDataResponse.md +3 -1
  26. data/docs/CustomerShippingContactsResponse.md +3 -1
  27. data/docs/CustomerShippingContactsResponseAddress.md +2 -2
  28. data/docs/CustomerUpdateShippingContacts.md +1 -1
  29. data/docs/CustomersApi.md +2 -2
  30. data/docs/EventResponse.md +1 -1
  31. data/docs/FiscalEntityAddress.md +30 -0
  32. data/docs/LogResponse.md +5 -5
  33. data/docs/LogsResponseData.md +5 -5
  34. data/docs/{CustomerInfoResponse.md → OrderCustomerInfoResponse.md} +4 -2
  35. data/docs/OrderFiscalEntityAddressResponse.md +32 -0
  36. data/docs/{OrderResponseFiscalEntityAddressAllOf.md → OrderFiscalEntityAddressResponseAllOf.md} +2 -2
  37. data/docs/OrderFiscalEntityRequest.md +28 -0
  38. data/docs/OrderFiscalEntityResponse.md +34 -0
  39. data/docs/OrderNextActionResponse.md +20 -0
  40. data/docs/OrderNextActionResponseRedirectToUrl.md +20 -0
  41. data/docs/OrderRequest.md +7 -1
  42. data/docs/OrderResponse.md +3 -1
  43. data/docs/OrderResponseCustomerInfo.md +2 -0
  44. data/docs/OrderResponseShippingContact.md +3 -1
  45. data/docs/OrderTaxRequest.md +1 -1
  46. data/docs/OrderUpdateFiscalEntityRequest.md +28 -0
  47. data/docs/OrderUpdateRequest.md +2 -0
  48. data/docs/PaymentLinkApi.md +1 -1
  49. data/docs/Product.md +3 -3
  50. data/docs/ShippingRequest.md +1 -1
  51. data/docs/TokenResponseCheckout.md +1 -1
  52. data/docs/TransactionsApi.md +9 -3
  53. data/docs/UpdateCustomer.md +1 -1
  54. data/docs/WebhookLog.md +1 -1
  55. data/docs/WebhookResponse.md +1 -1
  56. data/docs/WebhookUpdateRequest.md +2 -2
  57. data/lib/conekta/api/antifraud_api.rb +1 -1
  58. data/lib/conekta/api/api_keys_api.rb +1 -1
  59. data/lib/conekta/api/balances_api.rb +2 -2
  60. data/lib/conekta/api/charges_api.rb +83 -1
  61. data/lib/conekta/api/companies_api.rb +1 -1
  62. data/lib/conekta/api/customers_api.rb +1 -1
  63. data/lib/conekta/api/discounts_api.rb +1 -1
  64. data/lib/conekta/api/events_api.rb +1 -1
  65. data/lib/conekta/api/logs_api.rb +1 -1
  66. data/lib/conekta/api/orders_api.rb +1 -1
  67. data/lib/conekta/api/payment_link_api.rb +1 -1
  68. data/lib/conekta/api/payment_methods_api.rb +1 -1
  69. data/lib/conekta/api/plans_api.rb +1 -1
  70. data/lib/conekta/api/products_api.rb +1 -1
  71. data/lib/conekta/api/shipping_contacts_api.rb +1 -1
  72. data/lib/conekta/api/shippings_api.rb +1 -1
  73. data/lib/conekta/api/subscriptions_api.rb +1 -1
  74. data/lib/conekta/api/taxes_api.rb +1 -1
  75. data/lib/conekta/api/tokens_api.rb +1 -1
  76. data/lib/conekta/api/transactions_api.rb +13 -4
  77. data/lib/conekta/api/transfers_api.rb +1 -1
  78. data/lib/conekta/api/webhook_keys_api.rb +1 -1
  79. data/lib/conekta/api/webhooks_api.rb +1 -1
  80. data/lib/conekta/api_client.rb +39 -36
  81. data/lib/conekta/api_error.rb +1 -1
  82. data/lib/conekta/configuration.rb +13 -10
  83. data/lib/conekta/models/api_key_create_response.rb +14 -19
  84. data/lib/conekta/models/api_key_create_response_all_of.rb +14 -19
  85. data/lib/conekta/models/api_key_request.rb +16 -19
  86. data/lib/conekta/models/api_key_response.rb +14 -19
  87. data/lib/conekta/models/api_key_response_on_delete.rb +14 -19
  88. data/lib/conekta/models/api_key_update_request.rb +14 -19
  89. data/lib/conekta/models/balance_common_field.rb +14 -19
  90. data/lib/conekta/models/balance_response.rb +14 -19
  91. data/lib/conekta/models/blacklist_rule_response.rb +14 -19
  92. data/lib/conekta/models/charge_data_payment_method_bank_transfer_response.rb +14 -19
  93. data/lib/conekta/models/charge_data_payment_method_card_response.rb +14 -43
  94. data/lib/conekta/models/charge_data_payment_method_cash_response.rb +14 -19
  95. data/lib/conekta/models/charge_order_response.rb +15 -29
  96. data/lib/conekta/models/charge_order_response_payment_method.rb +1 -1
  97. data/lib/conekta/models/charge_request.rb +17 -30
  98. data/lib/conekta/models/charge_request_payment_method.rb +27 -44
  99. data/lib/conekta/models/charge_response.rb +15 -29
  100. data/lib/conekta/models/charge_response_channel.rb +14 -19
  101. data/lib/conekta/models/charge_response_payment_method.rb +1 -1
  102. data/lib/conekta/models/charge_response_refunds.rb +18 -19
  103. data/lib/conekta/models/charge_response_refunds_all_of.rb +14 -19
  104. data/lib/conekta/models/charge_response_refunds_data.rb +22 -19
  105. data/lib/conekta/models/charge_update_request.rb +216 -0
  106. data/lib/conekta/models/charges_data_response.rb +15 -29
  107. data/lib/conekta/models/checkout.rb +26 -19
  108. data/lib/conekta/models/checkout_order_template.rb +23 -20
  109. data/lib/conekta/models/checkout_order_template_customer_info.rb +2 -2
  110. data/lib/conekta/models/checkout_request.rb +16 -19
  111. data/lib/conekta/models/checkout_response.rb +22 -19
  112. data/lib/conekta/models/checkouts_response.rb +18 -19
  113. data/lib/conekta/models/checkouts_response_all_of.rb +14 -19
  114. data/lib/conekta/models/company_fiscal_info_address_response.rb +14 -19
  115. data/lib/conekta/models/company_fiscal_info_response.rb +14 -19
  116. data/lib/conekta/models/company_payout_destination_response.rb +14 -19
  117. data/lib/conekta/models/company_response.rb +14 -19
  118. data/lib/conekta/models/create_customer_fiscal_entities_response.rb +22 -19
  119. data/lib/conekta/models/create_customer_fiscal_entities_response_all_of.rb +20 -19
  120. data/lib/conekta/models/create_customer_payment_methods_request.rb +2 -2
  121. data/lib/conekta/models/create_customer_payment_methods_response.rb +1 -1
  122. data/lib/conekta/models/create_risk_rules_data.rb +20 -19
  123. data/lib/conekta/models/customer.rb +25 -20
  124. data/lib/conekta/models/customer_address.rb +22 -19
  125. data/lib/conekta/models/customer_antifraud_info.rb +14 -19
  126. data/lib/conekta/models/customer_antifraud_info_response.rb +14 -19
  127. data/lib/conekta/models/customer_fiscal_entities_data_response.rb +22 -19
  128. data/lib/conekta/models/customer_fiscal_entities_request.rb +16 -19
  129. data/lib/conekta/models/customer_fiscal_entities_request_address.rb +22 -19
  130. data/lib/conekta/models/customer_fiscal_entities_response.rb +18 -19
  131. data/lib/conekta/models/customer_fiscal_entities_response_all_of.rb +14 -19
  132. data/lib/conekta/models/customer_info.rb +20 -19
  133. data/lib/conekta/models/customer_info_just_customer_id.rb +16 -19
  134. data/lib/conekta/models/customer_info_just_customer_id_response.rb +14 -19
  135. data/lib/conekta/models/customer_payment_method_request.rb +16 -19
  136. data/lib/conekta/models/customer_payment_methods.rb +14 -19
  137. data/lib/conekta/models/customer_payment_methods_data.rb +1 -1
  138. data/lib/conekta/models/customer_payment_methods_request.rb +2 -2
  139. data/lib/conekta/models/customer_payment_methods_response.rb +18 -19
  140. data/lib/conekta/models/customer_response.rb +67 -20
  141. data/lib/conekta/models/customer_response_shipping_contacts.rb +18 -19
  142. data/lib/conekta/models/customer_response_shipping_contacts_all_of.rb +14 -19
  143. data/lib/conekta/models/customer_shipping_contacts.rb +52 -24
  144. data/lib/conekta/models/customer_shipping_contacts_address.rb +14 -19
  145. data/lib/conekta/models/customer_shipping_contacts_data_response.rb +54 -20
  146. data/lib/conekta/models/customer_shipping_contacts_data_response_all_of.rb +20 -19
  147. data/lib/conekta/models/customer_shipping_contacts_response.rb +46 -20
  148. data/lib/conekta/models/customer_shipping_contacts_response_address.rb +15 -19
  149. data/lib/conekta/models/customer_update_fiscal_entities_request.rb +14 -19
  150. data/lib/conekta/models/customer_update_shipping_contacts.rb +14 -19
  151. data/lib/conekta/models/customers_response.rb +18 -19
  152. data/lib/conekta/models/customers_response_all_of.rb +14 -19
  153. data/lib/conekta/models/delete_api_keys_response.rb +14 -19
  154. data/lib/conekta/models/delete_api_keys_response_all_of.rb +14 -19
  155. data/lib/conekta/models/deleted_blacklist_rule_response.rb +14 -19
  156. data/lib/conekta/models/deleted_whitelist_rule_response.rb +14 -19
  157. data/lib/conekta/models/details.rb +14 -19
  158. data/lib/conekta/models/details_error.rb +14 -19
  159. data/lib/conekta/models/discount_lines_data_response.rb +26 -19
  160. data/lib/conekta/models/discount_lines_response.rb +26 -19
  161. data/lib/conekta/models/discount_lines_response_all_of.rb +20 -19
  162. data/lib/conekta/models/email_checkout_request.rb +16 -19
  163. data/lib/conekta/models/error.rb +14 -19
  164. data/lib/conekta/models/error_all_of.rb +14 -19
  165. data/lib/conekta/models/event_response.rb +19 -20
  166. data/lib/conekta/models/events_resend_response.rb +19 -20
  167. data/lib/conekta/models/fiscal_entity_address.rb +312 -0
  168. data/lib/conekta/models/get_api_keys_response.rb +18 -19
  169. data/lib/conekta/models/get_api_keys_response_all_of.rb +14 -19
  170. data/lib/conekta/models/get_charges_response.rb +18 -19
  171. data/lib/conekta/models/get_charges_response_all_of.rb +14 -19
  172. data/lib/conekta/models/get_companies_response.rb +18 -19
  173. data/lib/conekta/models/get_companies_response_all_of.rb +14 -19
  174. data/lib/conekta/models/get_customer_payment_method_data_response.rb +1 -1
  175. data/lib/conekta/models/get_events_response.rb +18 -19
  176. data/lib/conekta/models/get_events_response_all_of.rb +14 -19
  177. data/lib/conekta/models/get_order_discount_lines_response.rb +18 -19
  178. data/lib/conekta/models/get_order_discount_lines_response_all_of.rb +14 -19
  179. data/lib/conekta/models/get_orders_response.rb +20 -19
  180. data/lib/conekta/models/get_payment_method_response.rb +18 -19
  181. data/lib/conekta/models/get_payment_method_response_all_of.rb +14 -19
  182. data/lib/conekta/models/get_plans_response.rb +18 -19
  183. data/lib/conekta/models/get_plans_response_all_of.rb +14 -19
  184. data/lib/conekta/models/get_transactions_response.rb +18 -19
  185. data/lib/conekta/models/get_transactions_response_all_of.rb +14 -19
  186. data/lib/conekta/models/get_transfers_response.rb +18 -19
  187. data/lib/conekta/models/get_transfers_response_all_of.rb +14 -19
  188. data/lib/conekta/models/get_webhook_keys_response.rb +18 -19
  189. data/lib/conekta/models/get_webhook_keys_response_all_of.rb +14 -19
  190. data/lib/conekta/models/get_webhooks_response.rb +18 -19
  191. data/lib/conekta/models/get_webhooks_response_all_of.rb +14 -19
  192. data/lib/conekta/models/log_response.rb +20 -19
  193. data/lib/conekta/models/logs_response.rb +14 -19
  194. data/lib/conekta/models/logs_response_data.rb +14 -19
  195. data/lib/conekta/models/order_capture_request.rb +16 -19
  196. data/lib/conekta/models/{customer_info_response.rb → order_customer_info_response.rb} +29 -23
  197. data/lib/conekta/models/order_discount_lines_request.rb +20 -19
  198. data/lib/conekta/models/{order_response_fiscal_entity_address.rb → order_fiscal_entity_address_response.rb} +48 -34
  199. data/lib/conekta/models/{order_response_fiscal_entity_address_all_of.rb → order_fiscal_entity_address_response_all_of.rb} +17 -22
  200. data/lib/conekta/models/order_fiscal_entity_request.rb +295 -0
  201. data/lib/conekta/models/order_fiscal_entity_response.rb +347 -0
  202. data/lib/conekta/models/{order_response_fiscal_entity.rb → order_next_action_response.rb} +32 -53
  203. data/lib/conekta/models/order_next_action_response_redirect_to_url.rb +226 -0
  204. data/lib/conekta/models/order_refund_request.rb +18 -19
  205. data/lib/conekta/models/order_request.rb +58 -24
  206. data/lib/conekta/models/order_request_customer_info.rb +2 -2
  207. data/lib/conekta/models/order_response.rb +31 -22
  208. data/lib/conekta/models/order_response_charges.rb +18 -19
  209. data/lib/conekta/models/order_response_charges_all_of.rb +14 -19
  210. data/lib/conekta/models/order_response_checkout.rb +19 -20
  211. data/lib/conekta/models/order_response_customer_info.rb +27 -21
  212. data/lib/conekta/models/order_response_customer_info_all_of.rb +14 -19
  213. data/lib/conekta/models/order_response_discount_lines.rb +18 -19
  214. data/lib/conekta/models/order_response_discount_lines_all_of.rb +14 -19
  215. data/lib/conekta/models/order_response_products.rb +18 -19
  216. data/lib/conekta/models/order_response_products_all_of.rb +14 -19
  217. data/lib/conekta/models/order_response_shipping_contact.rb +46 -20
  218. data/lib/conekta/models/order_response_shipping_contact_all_of.rb +14 -19
  219. data/lib/conekta/models/order_tax_request.rb +23 -20
  220. data/lib/conekta/models/order_update_fiscal_entity_request.rb +295 -0
  221. data/lib/conekta/models/order_update_request.rb +29 -21
  222. data/lib/conekta/models/order_update_request_customer_info.rb +2 -2
  223. data/lib/conekta/models/orders_response.rb +16 -19
  224. data/lib/conekta/models/page.rb +14 -19
  225. data/lib/conekta/models/pagination.rb +18 -19
  226. data/lib/conekta/models/payment_method.rb +16 -19
  227. data/lib/conekta/models/payment_method_bank_transfer.rb +16 -19
  228. data/lib/conekta/models/payment_method_card.rb +16 -43
  229. data/lib/conekta/models/payment_method_card_request.rb +18 -19
  230. data/lib/conekta/models/payment_method_card_request_all_of.rb +14 -19
  231. data/lib/conekta/models/payment_method_card_response.rb +22 -19
  232. data/lib/conekta/models/payment_method_card_response_all_of.rb +14 -19
  233. data/lib/conekta/models/payment_method_cash.rb +16 -19
  234. data/lib/conekta/models/payment_method_cash_request.rb +16 -19
  235. data/lib/conekta/models/payment_method_cash_request_all_of.rb +14 -19
  236. data/lib/conekta/models/payment_method_cash_response.rb +22 -19
  237. data/lib/conekta/models/payment_method_cash_response_all_of.rb +14 -19
  238. data/lib/conekta/models/payment_method_response.rb +22 -19
  239. data/lib/conekta/models/payment_method_spei_recurrent.rb +22 -19
  240. data/lib/conekta/models/payment_method_spei_recurrent_all_of.rb +14 -19
  241. data/lib/conekta/models/payment_method_spei_request.rb +16 -19
  242. data/lib/conekta/models/plan_request.rb +27 -20
  243. data/lib/conekta/models/plan_response.rb +19 -20
  244. data/lib/conekta/models/plan_update_request.rb +24 -21
  245. data/lib/conekta/models/product.rb +30 -21
  246. data/lib/conekta/models/product_data_response.rb +30 -21
  247. data/lib/conekta/models/product_data_response_all_of.rb +14 -19
  248. data/lib/conekta/models/product_order_response.rb +30 -21
  249. data/lib/conekta/models/product_order_response_all_of.rb +14 -19
  250. data/lib/conekta/models/risk_rules.rb +14 -19
  251. data/lib/conekta/models/risk_rules_data.rb +14 -19
  252. data/lib/conekta/models/risk_rules_list.rb +18 -19
  253. data/lib/conekta/models/shipping_order_response.rb +21 -20
  254. data/lib/conekta/models/shipping_request.rb +21 -20
  255. data/lib/conekta/models/sms_checkout_request.rb +16 -19
  256. data/lib/conekta/models/subscription_events_response.rb +18 -19
  257. data/lib/conekta/models/subscription_request.rb +16 -19
  258. data/lib/conekta/models/subscription_response.rb +14 -19
  259. data/lib/conekta/models/subscription_update_request.rb +14 -19
  260. data/lib/conekta/models/token.rb +14 -19
  261. data/lib/conekta/models/token_card.rb +24 -19
  262. data/lib/conekta/models/token_checkout.rb +14 -19
  263. data/lib/conekta/models/token_response.rb +22 -19
  264. data/lib/conekta/models/token_response_checkout.rb +14 -19
  265. data/lib/conekta/models/transaction_response.rb +36 -19
  266. data/lib/conekta/models/transfer_destination_response.rb +14 -19
  267. data/lib/conekta/models/transfer_method_response.rb +14 -19
  268. data/lib/conekta/models/transfer_response.rb +19 -20
  269. data/lib/conekta/models/transfers_response.rb +19 -20
  270. data/lib/conekta/models/update_customer.rb +19 -20
  271. data/lib/conekta/models/update_customer_antifraud_info.rb +14 -19
  272. data/lib/conekta/models/update_customer_fiscal_entities_response.rb +22 -19
  273. data/lib/conekta/models/update_customer_fiscal_entities_response_all_of.rb +20 -19
  274. data/lib/conekta/models/update_customer_payment_methods_response.rb +1 -1
  275. data/lib/conekta/models/update_order_discount_lines_request.rb +19 -20
  276. data/lib/conekta/models/update_order_tax_request.rb +29 -22
  277. data/lib/conekta/models/update_order_tax_response.rb +25 -20
  278. data/lib/conekta/models/update_order_tax_response_all_of.rb +14 -19
  279. data/lib/conekta/models/update_payment_methods.rb +14 -19
  280. data/lib/conekta/models/update_product.rb +29 -22
  281. data/lib/conekta/models/webhook_key_create_response.rb +14 -19
  282. data/lib/conekta/models/webhook_key_delete_response.rb +14 -19
  283. data/lib/conekta/models/webhook_key_request.rb +14 -19
  284. data/lib/conekta/models/webhook_key_response.rb +14 -19
  285. data/lib/conekta/models/webhook_key_update_request.rb +14 -19
  286. data/lib/conekta/models/webhook_log.rb +19 -20
  287. data/lib/conekta/models/webhook_request.rb +16 -19
  288. data/lib/conekta/models/webhook_response.rb +14 -19
  289. data/lib/conekta/models/webhook_update_request.rb +24 -27
  290. data/lib/conekta/models/whitelistlist_rule_response.rb +14 -19
  291. data/lib/conekta/version.rb +2 -2
  292. data/lib/conekta.rb +11 -5
  293. data/spec/api/orders_api_spec.rb +27 -1
  294. data/spec/api_client_spec.rb +1 -1
  295. data/spec/configuration_spec.rb +1 -1
  296. data/spec/spec_helper.rb +1 -8
  297. data/ssl_data/ca_bundle.crt +4039 -0
  298. data/templates/ruby/CUSTOM_VERSION.mustache +1 -0
  299. data/templates/ruby/api_client.mustache +256 -0
  300. data/templates/ruby/configuration.mustache +481 -0
  301. metadata +46 -29
  302. data/docs/OrderResponseFiscalEntity.md +0 -24
  303. data/docs/OrderResponseFiscalEntityAddress.md +0 -34
data/docs/CustomersApi.md CHANGED
@@ -33,7 +33,7 @@ Conekta.configure do |config|
33
33
  end
34
34
 
35
35
  api_instance = Conekta::CustomersApi.new
36
- customer = Conekta::Customer.new({email: 'miguel@gmail.com', name: 'miguel', phone: '+5215555555555'}) # Customer | requested field for customer
36
+ customer = Conekta::Customer.new({email: 'miguel@gmail.com', name: 'miguel', phone: '5215555555555'}) # Customer | requested field for customer
37
37
  opts = {
38
38
  accept_language: 'es', # String | Use for knowing which language to use
39
39
  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.
@@ -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::CustomerFiscalEntitiesRequestAddress.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.
@@ -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
+
@@ -1,4 +1,4 @@
1
- # Conekta::OrderResponseFiscalEntityAddressAllOf
1
+ # Conekta::OrderFiscalEntityAddressResponseAllOf
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'conekta'
13
13
 
14
- instance = Conekta::OrderResponseFiscalEntityAddressAllOf.new(
14
+ instance = Conekta::OrderFiscalEntityAddressResponseAllOf.new(
15
15
  object: fiscal_entity_address
16
16
  )
17
17
  ```
@@ -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,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **object** | **String** | | [optional] |
8
+ | **customer_custom_reference** | **String** | Custom reference | [optional] |
8
9
  | **name** | **String** | | [optional] |
9
10
  | **email** | **String** | | [optional] |
10
11
  | **phone** | **String** | | [optional] |
@@ -18,6 +19,7 @@ require 'conekta'
18
19
 
19
20
  instance = Conekta::OrderResponseCustomerInfo.new(
20
21
  object: customer_info,
22
+ customer_custom_reference: custom_reference,
21
23
  name: DevTest,
22
24
  email: test@conekta.com,
23
25
  phone: 5522997233,
@@ -13,6 +13,7 @@
13
13
  | **address** | [**CustomerShippingContactsResponseAddress**](CustomerShippingContactsResponseAddress.md) | | [optional] |
14
14
  | **parent_id** | **String** | | [optional] |
15
15
  | **default** | **Boolean** | | [optional] |
16
+ | **metadata** | **Hash<String, Object>** | Metadata associated with the shipping contact | [optional] |
16
17
  | **deleted** | **Boolean** | | [optional] |
17
18
 
18
19
  ## Example
@@ -24,12 +25,13 @@ instance = Conekta::OrderResponseShippingContact.new(
24
25
  created_at: 1675715413,
25
26
  id: adr_1234567890,
26
27
  object: shipping_contact,
27
- phone: +525511223344,
28
+ phone: 525511223344,
28
29
  receiver: Marvin Fuller,
29
30
  between_streets: Ackerman Crescent,
30
31
  address: null,
31
32
  parent_id: null,
32
33
  default: false,
34
+ metadata: 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,
@@ -103,7 +103,7 @@ Conekta.configure do |config|
103
103
  end
104
104
 
105
105
  api_instance = Conekta::PaymentLinkApi.new
106
- checkout = Conekta::Checkout.new({allowed_payment_methods: [cash, card, bank_transfer], expires_at: 1680397724, name: 'Payment Link Name 1594138857', order_template: Conekta::CheckoutOrderTemplate.new({currency: 'MXN', line_items: [Conekta::Product.new({name: 'Box of Cohiba S1s', quantity: 1, unit_price: 20000})]}), recurrent: false, type: 'PaymentLink'}) # Checkout | requested field for checkout
106
+ checkout = Conekta::Checkout.new({allowed_payment_methods: ["cash", "card", "bank_transfer"], expires_at: 1680397724, name: 'Payment Link Name 1594138857', order_template: Conekta::CheckoutOrderTemplate.new({currency: 'MXN', line_items: [Conekta::Product.new({name: 'Box of Cohiba S1s', quantity: 1, unit_price: 20000})]}), recurrent: false, type: 'PaymentLink'}) # Checkout | requested field for checkout
107
107
  opts = {
108
108
  accept_language: 'es', # String | Use for knowing which language to use
109
109
  x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
data/docs/Product.md CHANGED
@@ -20,14 +20,14 @@
20
20
  require 'conekta'
21
21
 
22
22
  instance = Conekta::Product.new(
23
- antifraud_info: {key=value},
23
+ antifraud_info: {"key":"value"},
24
24
  brand: Cohiba,
25
25
  description: Imported From Mex.,
26
- metadata: {key=value},
26
+ metadata: {"key":"value"},
27
27
  name: Box of Cohiba S1s,
28
28
  quantity: 1,
29
29
  sku: XYZ12345,
30
- tags: [food, mexican food],
30
+ tags: ["food","mexican food"],
31
31
  unit_price: 20000
32
32
  )
33
33
  ```
@@ -20,7 +20,7 @@ instance = Conekta::ShippingRequest.new(
20
20
  carrier: FEDEX,
21
21
  tracking_number: TRACK123,
22
22
  method: Same day,
23
- metadata: {key=value}
23
+ metadata: {"key":"value"}
24
24
  )
25
25
  ```
26
26
 
@@ -43,7 +43,7 @@ instance = Conekta::TokenResponseCheckout.new(
43
43
  force_3ds_flow: false,
44
44
  id: 524f9d2f-8c2e-4e64-a33d-6006711a91bd,
45
45
  livemode: true,
46
- metadata: {key=value},
46
+ metadata: {"key":"value"},
47
47
  monthly_installments_enabled: false,
48
48
  monthly_installments_options: null,
49
49
  name: tok-2toNoPZpJgRU4PvgZ,
@@ -107,9 +107,12 @@ opts = {
107
107
  accept_language: 'es', # String | Use for knowing which language to use
108
108
  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.
109
109
  limit: 56, # Integer | The numbers of items to return, the maximum value is 250
110
- search: 'search_example', # String | General order search, e.g. by mail, reference etc.
111
110
  _next: '_next_example', # String | next page
112
- previous: 'previous_example' # String | previous page
111
+ previous: 'previous_example', # String | previous page
112
+ id: '65412a893cd69a0001c25892', # String | id of the object to be retrieved
113
+ charge_id: '65412a893cd69a0001c25892', # String | id of the charge used for filtering
114
+ type: 'capture', # String | type of the object to be retrieved
115
+ currency: 'MXN' # String | currency of the object to be retrieved
113
116
  }
114
117
 
115
118
  begin
@@ -146,9 +149,12 @@ end
146
149
  | **accept_language** | **String** | Use for knowing which language to use | [optional][default to 'es'] |
147
150
  | **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] |
148
151
  | **limit** | **Integer** | The numbers of items to return, the maximum value is 250 | [optional][default to 20] |
149
- | **search** | **String** | General order search, e.g. by mail, reference etc. | [optional] |
150
152
  | **_next** | **String** | next page | [optional] |
151
153
  | **previous** | **String** | previous page | [optional] |
154
+ | **id** | **String** | id of the object to be retrieved | [optional] |
155
+ | **charge_id** | **String** | id of the charge used for filtering | [optional] |
156
+ | **type** | **String** | type of the object to be retrieved | [optional] |
157
+ | **currency** | **String** | currency of the object to be retrieved | [optional] |
152
158
 
153
159
  ### Return type
154
160
 
@@ -29,7 +29,7 @@ instance = Conekta::UpdateCustomer.new(
29
29
  default_payment_source_id: src_1a2b3c4d5e6f7g8h,
30
30
  email: miguel@gmail.com,
31
31
  name: miguel,
32
- phone: +5215555555555,
32
+ phone: 5215555555555,
33
33
  plan_id: plan_987234823,
34
34
  default_shipping_contact_id: ship_cont_1a2b3c4d5e6f7g8h,
35
35
  corporate: false,
data/docs/WebhookLog.md CHANGED
@@ -23,7 +23,7 @@ instance = Conekta::WebhookLog.new(
23
23
  last_attempted_at: 1669651274,
24
24
  last_http_response_status: 200,
25
25
  object: webhook_log,
26
- response_data: {amount=3000, payable=true},
26
+ response_data: {"amount":3000,"payable":true},
27
27
  url: https://username:password@mockoon.stg.conekta.io/payments-api/cash/merchant_approval
28
28
  )
29
29
  ```
@@ -28,7 +28,7 @@ instance = Conekta::WebhookResponse.new(
28
28
  object: event,
29
29
  production_enabled: true,
30
30
  status: listening,
31
- subscribed_events: [charge.created, charge.paid, charge.under_fraud_review, charge.fraudulent, charge.refunded, charge.preauthorized, charge.declined, charge.canceled, charge.reversed, charge.pending_confirmation],
31
+ subscribed_events: ["charge.created","charge.paid","charge.under_fraud_review","charge.fraudulent","charge.refunded","charge.preauthorized","charge.declined","charge.canceled","charge.reversed","charge.pending_confirmation"],
32
32
  synchronous: false,
33
33
  url: https://username:password@mockoon.stg.conekta.io/payments-api/cash/merchant_approval
34
34
  )
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **url** | **String** | Here you must place the URL of your Webhook remember that you must program what you will do with the events received. Also do not forget to handle the HTTPS protocol for greater security. | |
8
8
  | **synchronous** | **Boolean** | It is a value that allows to decide if the events will be synchronous or asynchronous. We recommend asynchronous = false | [optional][default to false] |
9
- | **subscribed_events** | **Array<String>** | | [optional] |
9
+ | **events** | **Array<String>** | | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -16,7 +16,7 @@ require 'conekta'
16
16
  instance = Conekta::WebhookUpdateRequest.new(
17
17
  url: https://webhook.site/89277eaa-a8e4-4306-8dc5-f55c80703dc8,
18
18
  synchronous: false,
19
- subscribed_events: customer.created
19
+ events: customer.created
20
20
  )
21
21
  ```
22
22
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2.1.0
7
7
  Contact: engineering@conekta.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.6.0
9
+ OpenAPI Generator version: 7.1.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2.1.0
7
7
  Contact: engineering@conekta.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.6.0
9
+ OpenAPI Generator version: 7.1.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2.1.0
7
7
  Contact: engineering@conekta.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.6.0
9
+ OpenAPI Generator version: 7.1.0
10
10
 
11
11
  =end
12
12
 
@@ -43,7 +43,7 @@ module Conekta
43
43
  fail ArgumentError, "invalid value for \"accept_language\", must be one of #{allowable_values}"
44
44
  end
45
45
  # resource path
46
- local_var_path = '/balances'
46
+ local_var_path = '/balance'
47
47
 
48
48
  # query parameters
49
49
  query_params = opts[:query_params] || {}