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
@@ -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
 
@@ -81,6 +81,7 @@ module Conekta
81
81
  # Show invalid properties with the reasons. Usually used together with valid?
82
82
  # @return Array for valid properties with the reasons
83
83
  def list_invalid_properties
84
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
84
85
  invalid_properties = Array.new
85
86
  invalid_properties
86
87
  end
@@ -88,6 +89,7 @@ module Conekta
88
89
  # Check to see if the all the properties in the model are valid
89
90
  # @return true if the model is valid
90
91
  def valid?
92
+ warn '[DEPRECATED] the `valid?` method is obsolete'
91
93
  true
92
94
  end
93
95
 
@@ -117,37 +119,30 @@ module Conekta
117
119
  # @param [Hash] attributes Model attributes in the form of hash
118
120
  # @return [Object] Returns the model itself
119
121
  def self.build_from_hash(attributes)
120
- new.build_from_hash(attributes)
121
- end
122
-
123
- # Builds the object from hash
124
- # @param [Hash] attributes Model attributes in the form of hash
125
- # @return [Object] Returns the model itself
126
- def build_from_hash(attributes)
127
122
  return nil unless attributes.is_a?(Hash)
128
123
  attributes = attributes.transform_keys(&:to_sym)
129
- self.class.openapi_types.each_pair do |key, type|
130
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
131
- self.send("#{key}=", nil)
124
+ transformed_hash = {}
125
+ openapi_types.each_pair do |key, type|
126
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
127
+ transformed_hash["#{key}"] = nil
132
128
  elsif type =~ /\AArray<(.*)>/i
133
129
  # check to ensure the input is an array given that the attribute
134
130
  # is documented as an array but the input is not
135
- if attributes[self.class.attribute_map[key]].is_a?(Array)
136
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
131
+ if attributes[attribute_map[key]].is_a?(Array)
132
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
137
133
  end
138
- elsif !attributes[self.class.attribute_map[key]].nil?
139
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
134
+ elsif !attributes[attribute_map[key]].nil?
135
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
140
136
  end
141
137
  end
142
-
143
- self
138
+ new(transformed_hash)
144
139
  end
145
140
 
146
141
  # Deserializes the data based on type
147
142
  # @param string type Data type
148
143
  # @param string value Value to be deserialized
149
144
  # @return [Object] Deserialized data
150
- def _deserialize(type, value)
145
+ def self._deserialize(type, value)
151
146
  case type.to_sym
152
147
  when :Time
153
148
  Time.parse(value)
@@ -182,7 +177,7 @@ module Conekta
182
177
  else # model
183
178
  # models (e.g. Pet) or oneOf
184
179
  klass = Conekta.const_get(type)
185
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
180
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
181
  end
187
182
  end
188
183
 
@@ -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.2.0
10
10
 
11
11
  =end
12
12
 
@@ -65,6 +65,7 @@ module Conekta
65
65
  # Show invalid properties with the reasons. Usually used together with valid?
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
68
69
  invalid_properties = Array.new
69
70
  invalid_properties
70
71
  end
@@ -72,6 +73,7 @@ module Conekta
72
73
  # Check to see if the all the properties in the model are valid
73
74
  # @return true if the model is valid
74
75
  def valid?
76
+ warn '[DEPRECATED] the `valid?` method is obsolete'
75
77
  true
76
78
  end
77
79
 
@@ -99,37 +101,30 @@ module Conekta
99
101
  # @param [Hash] attributes Model attributes in the form of hash
100
102
  # @return [Object] Returns the model itself
101
103
  def self.build_from_hash(attributes)
102
- new.build_from_hash(attributes)
103
- end
104
-
105
- # Builds the object from hash
106
- # @param [Hash] attributes Model attributes in the form of hash
107
- # @return [Object] Returns the model itself
108
- def build_from_hash(attributes)
109
104
  return nil unless attributes.is_a?(Hash)
110
105
  attributes = attributes.transform_keys(&:to_sym)
111
- self.class.openapi_types.each_pair do |key, type|
112
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
113
- self.send("#{key}=", nil)
106
+ transformed_hash = {}
107
+ openapi_types.each_pair do |key, type|
108
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
109
+ transformed_hash["#{key}"] = nil
114
110
  elsif type =~ /\AArray<(.*)>/i
115
111
  # check to ensure the input is an array given that the attribute
116
112
  # is documented as an array but the input is not
117
- if attributes[self.class.attribute_map[key]].is_a?(Array)
118
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
+ if attributes[attribute_map[key]].is_a?(Array)
114
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
119
115
  end
120
- elsif !attributes[self.class.attribute_map[key]].nil?
121
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
116
+ elsif !attributes[attribute_map[key]].nil?
117
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
122
118
  end
123
119
  end
124
-
125
- self
120
+ new(transformed_hash)
126
121
  end
127
122
 
128
123
  # Deserializes the data based on type
129
124
  # @param string type Data type
130
125
  # @param string value Value to be deserialized
131
126
  # @return [Object] Deserialized data
132
- def _deserialize(type, value)
127
+ def self._deserialize(type, value)
133
128
  case type.to_sym
134
129
  when :Time
135
130
  Time.parse(value)
@@ -164,7 +159,7 @@ module Conekta
164
159
  else # model
165
160
  # models (e.g. Pet) or oneOf
166
161
  klass = Conekta.const_get(type)
167
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
162
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
163
  end
169
164
  end
170
165
 
@@ -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.2.0
10
10
 
11
11
  =end
12
12
 
@@ -135,6 +135,7 @@ module Conekta
135
135
  # Show invalid properties with the reasons. Usually used together with valid?
136
136
  # @return Array for valid properties with the reasons
137
137
  def list_invalid_properties
138
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
138
139
  invalid_properties = Array.new
139
140
  if !@description.nil? && @description.to_s.length > 250
140
141
  invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 250.')
@@ -154,6 +155,7 @@ module Conekta
154
155
  # Check to see if the all the properties in the model are valid
155
156
  # @return true if the model is valid
156
157
  def valid?
158
+ warn '[DEPRECATED] the `valid?` method is obsolete'
157
159
  return false if !@description.nil? && @description.to_s.length > 250
158
160
  return false if !@unit_price.nil? && @unit_price < 0
159
161
  return false if !@quantity.nil? && @quantity < 1
@@ -163,7 +165,11 @@ module Conekta
163
165
  # Custom attribute writer method with validation
164
166
  # @param [Object] description Value to be assigned
165
167
  def description=(description)
166
- if !description.nil? && description.to_s.length > 250
168
+ if description.nil?
169
+ fail ArgumentError, 'description cannot be nil'
170
+ end
171
+
172
+ if description.to_s.length > 250
167
173
  fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 250.'
168
174
  end
169
175
 
@@ -173,7 +179,11 @@ module Conekta
173
179
  # Custom attribute writer method with validation
174
180
  # @param [Object] unit_price Value to be assigned
175
181
  def unit_price=(unit_price)
176
- if !unit_price.nil? && unit_price < 0
182
+ if unit_price.nil?
183
+ fail ArgumentError, 'unit_price cannot be nil'
184
+ end
185
+
186
+ if unit_price < 0
177
187
  fail ArgumentError, 'invalid value for "unit_price", must be greater than or equal to 0.'
178
188
  end
179
189
 
@@ -183,7 +193,11 @@ module Conekta
183
193
  # Custom attribute writer method with validation
184
194
  # @param [Object] quantity Value to be assigned
185
195
  def quantity=(quantity)
186
- if !quantity.nil? && quantity < 1
196
+ if quantity.nil?
197
+ fail ArgumentError, 'quantity cannot be nil'
198
+ end
199
+
200
+ if quantity < 1
187
201
  fail ArgumentError, 'invalid value for "quantity", must be greater than or equal to 1.'
188
202
  end
189
203
 
@@ -222,37 +236,30 @@ module Conekta
222
236
  # @param [Hash] attributes Model attributes in the form of hash
223
237
  # @return [Object] Returns the model itself
224
238
  def self.build_from_hash(attributes)
225
- new.build_from_hash(attributes)
226
- end
227
-
228
- # Builds the object from hash
229
- # @param [Hash] attributes Model attributes in the form of hash
230
- # @return [Object] Returns the model itself
231
- def build_from_hash(attributes)
232
239
  return nil unless attributes.is_a?(Hash)
233
240
  attributes = attributes.transform_keys(&:to_sym)
234
- self.class.openapi_types.each_pair do |key, type|
235
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
236
- self.send("#{key}=", nil)
241
+ transformed_hash = {}
242
+ openapi_types.each_pair do |key, type|
243
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
244
+ transformed_hash["#{key}"] = nil
237
245
  elsif type =~ /\AArray<(.*)>/i
238
246
  # check to ensure the input is an array given that the attribute
239
247
  # is documented as an array but the input is not
240
- if attributes[self.class.attribute_map[key]].is_a?(Array)
241
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
248
+ if attributes[attribute_map[key]].is_a?(Array)
249
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
242
250
  end
243
- elsif !attributes[self.class.attribute_map[key]].nil?
244
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
251
+ elsif !attributes[attribute_map[key]].nil?
252
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
245
253
  end
246
254
  end
247
-
248
- self
255
+ new(transformed_hash)
249
256
  end
250
257
 
251
258
  # Deserializes the data based on type
252
259
  # @param string type Data type
253
260
  # @param string value Value to be deserialized
254
261
  # @return [Object] Deserialized data
255
- def _deserialize(type, value)
262
+ def self._deserialize(type, value)
256
263
  case type.to_sym
257
264
  when :Time
258
265
  Time.parse(value)
@@ -287,7 +294,7 @@ module Conekta
287
294
  else # model
288
295
  # models (e.g. Pet) or oneOf
289
296
  klass = Conekta.const_get(type)
290
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
297
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
291
298
  end
292
299
  end
293
300
 
@@ -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.2.0
10
10
 
11
11
  =end
12
12
 
@@ -112,6 +112,7 @@ module Conekta
112
112
  # Show invalid properties with the reasons. Usually used together with valid?
113
113
  # @return Array for valid properties with the reasons
114
114
  def list_invalid_properties
115
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
115
116
  invalid_properties = Array.new
116
117
  invalid_properties
117
118
  end
@@ -119,6 +120,7 @@ module Conekta
119
120
  # Check to see if the all the properties in the model are valid
120
121
  # @return true if the model is valid
121
122
  def valid?
123
+ warn '[DEPRECATED] the `valid?` method is obsolete'
122
124
  true
123
125
  end
124
126
 
@@ -151,37 +153,30 @@ module Conekta
151
153
  # @param [Hash] attributes Model attributes in the form of hash
152
154
  # @return [Object] Returns the model itself
153
155
  def self.build_from_hash(attributes)
154
- new.build_from_hash(attributes)
155
- end
156
-
157
- # Builds the object from hash
158
- # @param [Hash] attributes Model attributes in the form of hash
159
- # @return [Object] Returns the model itself
160
- def build_from_hash(attributes)
161
156
  return nil unless attributes.is_a?(Hash)
162
157
  attributes = attributes.transform_keys(&:to_sym)
163
- self.class.openapi_types.each_pair do |key, type|
164
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
165
- self.send("#{key}=", nil)
158
+ transformed_hash = {}
159
+ openapi_types.each_pair do |key, type|
160
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
161
+ transformed_hash["#{key}"] = nil
166
162
  elsif type =~ /\AArray<(.*)>/i
167
163
  # check to ensure the input is an array given that the attribute
168
164
  # is documented as an array but the input is not
169
- if attributes[self.class.attribute_map[key]].is_a?(Array)
170
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
165
+ if attributes[attribute_map[key]].is_a?(Array)
166
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
171
167
  end
172
- elsif !attributes[self.class.attribute_map[key]].nil?
173
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
168
+ elsif !attributes[attribute_map[key]].nil?
169
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
174
170
  end
175
171
  end
176
-
177
- self
172
+ new(transformed_hash)
178
173
  end
179
174
 
180
175
  # Deserializes the data based on type
181
176
  # @param string type Data type
182
177
  # @param string value Value to be deserialized
183
178
  # @return [Object] Deserialized data
184
- def _deserialize(type, value)
179
+ def self._deserialize(type, value)
185
180
  case type.to_sym
186
181
  when :Time
187
182
  Time.parse(value)
@@ -216,7 +211,7 @@ module Conekta
216
211
  else # model
217
212
  # models (e.g. Pet) or oneOf
218
213
  klass = Conekta.const_get(type)
219
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
214
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
220
215
  end
221
216
  end
222
217
 
@@ -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.2.0
10
10
 
11
11
  =end
12
12
 
@@ -112,6 +112,7 @@ module Conekta
112
112
  # Show invalid properties with the reasons. Usually used together with valid?
113
113
  # @return Array for valid properties with the reasons
114
114
  def list_invalid_properties
115
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
115
116
  invalid_properties = Array.new
116
117
  invalid_properties
117
118
  end
@@ -119,6 +120,7 @@ module Conekta
119
120
  # Check to see if the all the properties in the model are valid
120
121
  # @return true if the model is valid
121
122
  def valid?
123
+ warn '[DEPRECATED] the `valid?` method is obsolete'
122
124
  true
123
125
  end
124
126
 
@@ -151,37 +153,30 @@ module Conekta
151
153
  # @param [Hash] attributes Model attributes in the form of hash
152
154
  # @return [Object] Returns the model itself
153
155
  def self.build_from_hash(attributes)
154
- new.build_from_hash(attributes)
155
- end
156
-
157
- # Builds the object from hash
158
- # @param [Hash] attributes Model attributes in the form of hash
159
- # @return [Object] Returns the model itself
160
- def build_from_hash(attributes)
161
156
  return nil unless attributes.is_a?(Hash)
162
157
  attributes = attributes.transform_keys(&:to_sym)
163
- self.class.openapi_types.each_pair do |key, type|
164
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
165
- self.send("#{key}=", nil)
158
+ transformed_hash = {}
159
+ openapi_types.each_pair do |key, type|
160
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
161
+ transformed_hash["#{key}"] = nil
166
162
  elsif type =~ /\AArray<(.*)>/i
167
163
  # check to ensure the input is an array given that the attribute
168
164
  # is documented as an array but the input is not
169
- if attributes[self.class.attribute_map[key]].is_a?(Array)
170
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
165
+ if attributes[attribute_map[key]].is_a?(Array)
166
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
171
167
  end
172
- elsif !attributes[self.class.attribute_map[key]].nil?
173
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
168
+ elsif !attributes[attribute_map[key]].nil?
169
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
174
170
  end
175
171
  end
176
-
177
- self
172
+ new(transformed_hash)
178
173
  end
179
174
 
180
175
  # Deserializes the data based on type
181
176
  # @param string type Data type
182
177
  # @param string value Value to be deserialized
183
178
  # @return [Object] Deserialized data
184
- def _deserialize(type, value)
179
+ def self._deserialize(type, value)
185
180
  case type.to_sym
186
181
  when :Time
187
182
  Time.parse(value)
@@ -216,7 +211,7 @@ module Conekta
216
211
  else # model
217
212
  # models (e.g. Pet) or oneOf
218
213
  klass = Conekta.const_get(type)
219
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
214
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
220
215
  end
221
216
  end
222
217
 
@@ -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.2.0
10
10
 
11
11
  =end
12
12
 
@@ -68,6 +68,7 @@ module Conekta
68
68
  # Show invalid properties with the reasons. Usually used together with valid?
69
69
  # @return Array for valid properties with the reasons
70
70
  def list_invalid_properties
71
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
71
72
  invalid_properties = Array.new
72
73
  invalid_properties
73
74
  end
@@ -75,6 +76,7 @@ module Conekta
75
76
  # Check to see if the all the properties in the model are valid
76
77
  # @return true if the model is valid
77
78
  def valid?
79
+ warn '[DEPRECATED] the `valid?` method is obsolete'
78
80
  true
79
81
  end
80
82
 
@@ -102,37 +104,30 @@ module Conekta
102
104
  # @param [Hash] attributes Model attributes in the form of hash
103
105
  # @return [Object] Returns the model itself
104
106
  def self.build_from_hash(attributes)
105
- new.build_from_hash(attributes)
106
- end
107
-
108
- # Builds the object from hash
109
- # @param [Hash] attributes Model attributes in the form of hash
110
- # @return [Object] Returns the model itself
111
- def build_from_hash(attributes)
112
107
  return nil unless attributes.is_a?(Hash)
113
108
  attributes = attributes.transform_keys(&:to_sym)
114
- self.class.openapi_types.each_pair do |key, type|
115
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
116
- self.send("#{key}=", nil)
109
+ transformed_hash = {}
110
+ openapi_types.each_pair do |key, type|
111
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
112
+ transformed_hash["#{key}"] = nil
117
113
  elsif type =~ /\AArray<(.*)>/i
118
114
  # check to ensure the input is an array given that the attribute
119
115
  # is documented as an array but the input is not
120
- if attributes[self.class.attribute_map[key]].is_a?(Array)
121
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
116
+ if attributes[attribute_map[key]].is_a?(Array)
117
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
122
118
  end
123
- elsif !attributes[self.class.attribute_map[key]].nil?
124
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
+ elsif !attributes[attribute_map[key]].nil?
120
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
125
121
  end
126
122
  end
127
-
128
- self
123
+ new(transformed_hash)
129
124
  end
130
125
 
131
126
  # Deserializes the data based on type
132
127
  # @param string type Data type
133
128
  # @param string value Value to be deserialized
134
129
  # @return [Object] Deserialized data
135
- def _deserialize(type, value)
130
+ def self._deserialize(type, value)
136
131
  case type.to_sym
137
132
  when :Time
138
133
  Time.parse(value)
@@ -167,7 +162,7 @@ module Conekta
167
162
  else # model
168
163
  # models (e.g. Pet) or oneOf
169
164
  klass = Conekta.const_get(type)
170
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
165
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
171
166
  end
172
167
  end
173
168
 
@@ -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.2.0
10
10
 
11
11
  =end
12
12
 
@@ -122,6 +122,7 @@ module Conekta
122
122
  # Show invalid properties with the reasons. Usually used together with valid?
123
123
  # @return Array for valid properties with the reasons
124
124
  def list_invalid_properties
125
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
125
126
  invalid_properties = Array.new
126
127
  invalid_properties
127
128
  end
@@ -129,6 +130,7 @@ module Conekta
129
130
  # Check to see if the all the properties in the model are valid
130
131
  # @return true if the model is valid
131
132
  def valid?
133
+ warn '[DEPRECATED] the `valid?` method is obsolete'
132
134
  true
133
135
  end
134
136
 
@@ -162,37 +164,30 @@ module Conekta
162
164
  # @param [Hash] attributes Model attributes in the form of hash
163
165
  # @return [Object] Returns the model itself
164
166
  def self.build_from_hash(attributes)
165
- new.build_from_hash(attributes)
166
- end
167
-
168
- # Builds the object from hash
169
- # @param [Hash] attributes Model attributes in the form of hash
170
- # @return [Object] Returns the model itself
171
- def build_from_hash(attributes)
172
167
  return nil unless attributes.is_a?(Hash)
173
168
  attributes = attributes.transform_keys(&:to_sym)
174
- self.class.openapi_types.each_pair do |key, type|
175
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
176
- self.send("#{key}=", nil)
169
+ transformed_hash = {}
170
+ openapi_types.each_pair do |key, type|
171
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
172
+ transformed_hash["#{key}"] = nil
177
173
  elsif type =~ /\AArray<(.*)>/i
178
174
  # check to ensure the input is an array given that the attribute
179
175
  # is documented as an array but the input is not
180
- if attributes[self.class.attribute_map[key]].is_a?(Array)
181
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
176
+ if attributes[attribute_map[key]].is_a?(Array)
177
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
182
178
  end
183
- elsif !attributes[self.class.attribute_map[key]].nil?
184
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
179
+ elsif !attributes[attribute_map[key]].nil?
180
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
185
181
  end
186
182
  end
187
-
188
- self
183
+ new(transformed_hash)
189
184
  end
190
185
 
191
186
  # Deserializes the data based on type
192
187
  # @param string type Data type
193
188
  # @param string value Value to be deserialized
194
189
  # @return [Object] Deserialized data
195
- def _deserialize(type, value)
190
+ def self._deserialize(type, value)
196
191
  case type.to_sym
197
192
  when :Time
198
193
  Time.parse(value)
@@ -227,7 +222,7 @@ module Conekta
227
222
  else # model
228
223
  # models (e.g. Pet) or oneOf
229
224
  klass = Conekta.const_get(type)
230
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
225
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
231
226
  end
232
227
  end
233
228