conekta 7.0.2 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Makefile +3 -3
- data/README.md +55 -49
- data/VERSION +1 -1
- data/conekta.gemspec +2 -2
- data/config-ruby.json +4 -1
- data/docs/AntifraudApi.md +14 -14
- data/docs/ApiKeyCreateResponse.md +3 -3
- data/docs/ApiKeysApi.md +5 -5
- data/docs/{BalanceCommonField.md → BalanceCommonFielsResponse.md} +2 -2
- data/docs/BalanceResponse.md +9 -9
- data/docs/BalancesApi.md +1 -1
- data/docs/{PaymentMethodCashResponseAllOfAgreements.md → CashAgreementsResponse.md} +2 -2
- data/docs/ChargeOrderResponsePaymentMethod.md +5 -2
- data/docs/ChargeRequestPaymentMethod.md +3 -1
- data/docs/ChargeResponse.md +3 -1
- data/docs/ChargeResponsePaymentMethod.md +5 -2
- data/docs/ChargebackFileResponse.md +24 -0
- data/docs/ChargebackResponse.md +38 -0
- data/docs/ChargesApi.md +4 -4
- data/docs/ChargesDataResponse.md +3 -1
- data/docs/ChargesOrderResponse.md +5 -1
- data/docs/Checkout.md +13 -5
- data/docs/CheckoutOrderTemplate.md +5 -3
- data/docs/CheckoutOrderTemplateCustomerInfo.md +2 -2
- data/docs/CheckoutResponse.md +9 -7
- data/docs/CompaniesApi.md +80 -8
- data/docs/CompanyDocumentRequest.md +1 -1
- data/docs/CompanyResponse.md +6 -2
- data/docs/CreateCustomerFiscalEntitiesResponse.md +1 -1
- data/docs/CreateCustomerPaymentMethodsResponse.md +6 -5
- data/docs/{CreateRiskRulesData.md → CreateRuleWhitelistRequest.md} +2 -2
- data/docs/Customer.md +2 -2
- data/docs/CustomerDetails.md +24 -0
- data/docs/CustomerFiscalEntitiesDataResponse.md +1 -1
- data/docs/{CustomerInfoJustCustomerId.md → CustomerInfoCustomerId.md} +2 -2
- data/docs/CustomerPaymentMethodsData.md +6 -5
- data/docs/CustomerPortalResponse.md +40 -0
- data/docs/CustomerShippingContactsAddress.md +3 -1
- data/docs/CustomerShippingContactsDataResponse.md +1 -1
- data/docs/{CustomerShippingContacts.md → CustomerShippingContactsRequest.md} +3 -3
- data/docs/{CustomerShippingContactsResponseAddress.md → CustomerShippingContactsRequestAddress.md} +3 -5
- data/docs/CustomerShippingContactsResponse.md +1 -1
- data/docs/{CustomerUpdateShippingContacts.md → CustomerUpdateShippingContactsRequest.md} +3 -3
- data/docs/CustomersApi.md +19 -19
- data/docs/CustomersResponse.md +3 -3
- data/docs/DiscountsApi.md +5 -5
- data/docs/EventResponse.md +1 -1
- data/docs/EventsApi.md +9 -9
- data/docs/EventsResendResponse.md +1 -1
- data/docs/{CustomerFiscalEntitiesRequest.md → FiscalEntityRequest.md} +3 -3
- data/docs/{CustomerAddress.md → FiscalEntityRequestAddress.md} +2 -2
- data/docs/GetCustomerPaymentMethodDataResponse.md +6 -5
- data/docs/LogResponseForRequest.md +56 -0
- data/docs/LogsApi.md +10 -10
- data/docs/LogsResponseData.md +7 -7
- data/docs/{LogsResponse.md → LogsResponseForRequest.md} +2 -2
- data/docs/OrderChargesResponse.md +4 -0
- data/docs/OrderCheckoutRequest.md +46 -0
- data/docs/OrderRequest.md +9 -9
- data/docs/OrderRequestCustomerInfo.md +2 -2
- data/docs/OrderResponse.md +5 -1
- data/docs/OrderResponseCheckout.md +15 -11
- data/docs/OrderResponseCustomerInfo.md +2 -2
- data/docs/{OrderDiscountLinesResponse.md → OrderResponseDiscountLines.md} +6 -2
- data/docs/OrderResponseShippingContact.md +7 -7
- data/docs/OrderResponseShippingLines.md +26 -0
- data/docs/{Page.md → OrderResponseTaxLines.md} +9 -3
- data/docs/OrderTaxRequest.md +1 -1
- data/docs/{UpdateOrderTaxResponse.md → OrderTaxResponse.md} +2 -2
- data/docs/{OrderUpdateRequest.md → OrderUpdate.md} +9 -9
- data/docs/{OrderUpdateRequestCustomerInfo.md → OrderUpdateCustomerInfo.md} +6 -6
- data/docs/OrdersApi.md +17 -15
- data/docs/{UpdateOrderTaxRequest.md → OrdersUpdateTaxesRequest.md} +2 -2
- data/docs/PaymentLinkApi.md +7 -7
- data/docs/PaymentMethodBnplPayment.md +1 -1
- data/docs/PaymentMethodCardRequest.md +1 -1
- data/docs/PaymentMethodCardResponse.md +2 -0
- data/docs/PaymentMethodCashRecurrentResponse.md +38 -0
- data/docs/PaymentMethodCashRequest.md +1 -1
- data/docs/PaymentMethodCashResponse.md +1 -1
- data/docs/PaymentMethodPbbPayment.md +30 -0
- data/docs/PaymentMethodPbbRequest.md +22 -0
- data/docs/{PaymentMethodSpeiRecurrent.md → PaymentMethodSpeiRecurrentResponse.md} +2 -2
- data/docs/PaymentMethodSpeiRequest.md +1 -1
- data/docs/PaymentMethodTokenRequest.md +2 -2
- data/docs/PaymentMethodsApi.md +11 -11
- data/docs/{PayoutOrder.md → PayoutOrderRequest.md} +7 -5
- data/docs/{CustomerInfoJustCustomerIdResponse.md → PayoutOrderRequestCustomerInfo.md} +3 -3
- data/docs/PayoutOrderResponse.md +4 -4
- data/docs/PayoutOrderResponseCustomerInfo.md +3 -3
- data/docs/PayoutOrdersApi.md +10 -10
- data/docs/PayoutOrdersResponse.md +3 -3
- data/docs/PlansApi.md +16 -12
- data/docs/Product.md +3 -3
- data/docs/ProductsApi.md +3 -3
- data/docs/{ResendRequest.md → ResendEventRequest.md} +3 -3
- data/docs/RiskRulesData.md +1 -1
- data/docs/ShippingContactsApi.md +15 -15
- data/docs/ShippingLinesDataResponse.md +32 -0
- data/docs/ShippingRequest.md +1 -1
- data/docs/ShippingsApi.md +3 -3
- data/docs/SubscriptionDetails.md +36 -0
- data/docs/SubscriptionDetailsCard.md +40 -0
- data/docs/SubscriptionDetailsPlan.md +36 -0
- data/docs/SubscriptionsApi.md +28 -28
- data/docs/SubscriptionsCustomerPortalApi.md +159 -0
- data/docs/TaxLinesDataResponse.md +28 -0
- data/docs/TaxesApi.md +19 -19
- data/docs/TokenRequest.md +20 -0
- data/docs/{TokenCard.md → TokenRequestCard.md} +2 -2
- data/docs/{TokenCheckout.md → TokenRequestCheckout.md} +2 -2
- data/docs/TokenResponseCheckout.md +1 -1
- data/docs/TokensApi.md +8 -8
- data/docs/TransactionsApi.md +2 -2
- data/docs/TransfersApi.md +2 -2
- data/docs/UpdateCustomer.md +2 -2
- data/docs/UpdateCustomerFiscalEntitiesResponse.md +1 -1
- data/docs/UpdateCustomerPaymentMethodsResponse.md +6 -5
- data/docs/{CustomerUpdateFiscalEntitiesRequest.md → UpdateFiscalEntityRequest.md} +3 -3
- data/docs/UpdatePaymentMethodsCard.md +20 -0
- data/docs/{PlanUpdateRequest.md → UpdatePlan.md} +2 -2
- data/docs/{WebhookUpdateRequest.md → UpdateWebhook.md} +2 -2
- data/docs/{SubscriptionUpdateRequest.md → UpdatesASubscription.md} +2 -2
- data/docs/WebhookKeysApi.md +5 -5
- data/docs/WebhookLog.md +2 -2
- data/docs/WebhookResponse.md +2 -2
- data/docs/WebhooksApi.md +12 -12
- data/examples/one_time_charge_bnpl.rb +3 -0
- data/examples/one_time_charge_pbb.rb +64 -0
- data/lib/conekta/api/antifraud_api.rb +22 -22
- data/lib/conekta/api/api_keys_api.rb +10 -10
- data/lib/conekta/api/balances_api.rb +3 -3
- data/lib/conekta/api/charges_api.rb +9 -9
- data/lib/conekta/api/companies_api.rb +76 -12
- data/lib/conekta/api/customers_api.rb +32 -32
- data/lib/conekta/api/discounts_api.rb +12 -12
- data/lib/conekta/api/events_api.rb +16 -16
- data/lib/conekta/api/logs_api.rb +11 -11
- data/lib/conekta/api/orders_api.rb +28 -25
- data/lib/conekta/api/payment_link_api.rb +12 -12
- data/lib/conekta/api/payment_methods_api.rb +19 -19
- data/lib/conekta/api/payout_orders_api.rb +17 -17
- data/lib/conekta/api/plans_api.rb +25 -19
- data/lib/conekta/api/products_api.rb +8 -8
- data/lib/conekta/api/shipping_contacts_api.rb +26 -26
- data/lib/conekta/api/shippings_api.rb +8 -8
- data/lib/conekta/api/subscriptions_api.rb +52 -52
- data/lib/conekta/api/subscriptions_customer_portal_api.rb +168 -0
- data/lib/conekta/api/taxes_api.rb +26 -26
- data/lib/conekta/api/tokens_api.rb +14 -14
- data/lib/conekta/api/transactions_api.rb +5 -5
- data/lib/conekta/api/transfers_api.rb +5 -5
- data/lib/conekta/api/webhook_keys_api.rb +10 -10
- data/lib/conekta/api/webhooks_api.rb +21 -21
- data/lib/conekta/api_client.rb +31 -27
- data/lib/conekta/api_error.rb +2 -2
- data/lib/conekta/api_model_base.rb +88 -0
- data/lib/conekta/configuration.rb +2 -4
- data/lib/conekta/models/api_key_create_response.rb +26 -102
- data/lib/conekta/models/api_key_request.rb +22 -79
- data/lib/conekta/models/api_key_response.rb +12 -81
- data/lib/conekta/models/api_key_update_request.rb +12 -79
- data/lib/conekta/models/{balance_common_field.rb → balance_common_fiels_response.rb} +13 -80
- data/lib/conekta/models/balance_response.rb +21 -88
- data/lib/conekta/models/blacklist_rule_response.rb +12 -79
- data/lib/conekta/models/{payment_method_cash_response_all_of_agreements.rb → cash_agreements_response.rb} +13 -80
- data/lib/conekta/models/charge_order_response.rb +12 -83
- data/lib/conekta/models/charge_order_response_payment_method.rb +6 -4
- data/lib/conekta/models/charge_request.rb +22 -79
- data/lib/conekta/models/charge_request_payment_method.rb +6 -6
- data/lib/conekta/models/charge_response.rb +103 -84
- data/lib/conekta/models/charge_response_channel.rb +12 -79
- data/lib/conekta/models/charge_response_payment_method.rb +6 -4
- data/lib/conekta/models/charge_response_refunds.rb +32 -89
- data/lib/conekta/models/charge_response_refunds_data.rb +52 -79
- data/lib/conekta/models/charge_update_request.rb +12 -79
- data/lib/conekta/models/{update_payment_methods.rb → chargeback_file_response.rb} +48 -87
- data/lib/conekta/models/chargeback_response.rb +298 -0
- data/lib/conekta/models/charges_data_response.rb +103 -91
- data/lib/conekta/models/charges_order_response.rb +54 -88
- data/lib/conekta/models/checkout.rb +162 -91
- data/lib/conekta/models/checkout_order_template.rb +50 -95
- data/lib/conekta/models/checkout_order_template_customer_info.rb +5 -6
- data/lib/conekta/models/checkout_response.rb +89 -82
- data/lib/conekta/models/checkouts_response.rb +32 -89
- data/lib/conekta/models/company_document_request.rb +42 -79
- data/lib/conekta/models/company_document_response.rb +32 -79
- data/lib/conekta/models/company_response.rb +151 -85
- data/lib/conekta/models/create_company_request.rb +12 -79
- data/lib/conekta/models/create_company_request_bank_account_info.rb +12 -79
- data/lib/conekta/models/create_company_request_comercial_info.rb +12 -79
- data/lib/conekta/models/create_company_request_fiscal_info.rb +12 -79
- data/lib/conekta/models/create_customer_fiscal_entities_response.rb +54 -90
- data/lib/conekta/models/create_customer_payment_methods_request.rb +4 -5
- data/lib/conekta/models/create_customer_payment_methods_response.rb +6 -6
- data/lib/conekta/models/{create_risk_rules_data.rb → create_rule_whitelist_request.rb} +43 -80
- data/lib/conekta/models/customer.rb +44 -82
- data/lib/conekta/models/customer_antifraud_info.rb +12 -79
- data/lib/conekta/models/customer_antifraud_info_response.rb +12 -79
- data/lib/conekta/models/{product_order_response_all_of.rb → customer_details.rb} +30 -87
- data/lib/conekta/models/customer_fiscal_entities_data_response.rb +54 -90
- data/lib/conekta/models/customer_fiscal_entities_response.rb +32 -86
- data/lib/conekta/models/customer_info.rb +42 -79
- data/lib/conekta/models/{customer_info_just_customer_id.rb → customer_info_customer_id.rb} +23 -80
- data/lib/conekta/models/customer_payment_methods_data.rb +6 -6
- data/lib/conekta/models/customer_payment_methods_request.rb +4 -5
- data/lib/conekta/models/customer_payment_methods_response.rb +32 -89
- data/lib/conekta/models/{customer_shipping_contacts_data_response_all_of.rb → customer_portal_response.rb} +108 -105
- data/lib/conekta/models/customer_response.rb +62 -82
- data/lib/conekta/models/customer_response_shipping_contacts.rb +32 -86
- data/lib/conekta/models/customer_shipping_contacts_address.rb +22 -83
- data/lib/conekta/models/customer_shipping_contacts_data_response.rb +53 -89
- data/lib/conekta/models/{customer_shipping_contacts.rb → customer_shipping_contacts_request.rb} +25 -84
- data/lib/conekta/models/{customer_shipping_contacts_response_address.rb → customer_shipping_contacts_request_address.rb} +16 -91
- data/lib/conekta/models/customer_shipping_contacts_response.rb +13 -81
- data/lib/conekta/models/{customer_update_shipping_contacts.rb → customer_update_shipping_contacts_request.rb} +15 -84
- data/lib/conekta/models/customers_response.rb +47 -104
- data/lib/conekta/models/delete_api_keys_response.rb +12 -87
- data/lib/conekta/models/deleted_blacklist_rule_response.rb +12 -79
- data/lib/conekta/models/deleted_whitelist_rule_response.rb +12 -79
- data/lib/conekta/models/details_error.rb +12 -80
- data/lib/conekta/models/discount_lines_data_response.rb +62 -86
- data/lib/conekta/models/discount_lines_response.rb +62 -86
- data/lib/conekta/models/email_checkout_request.rb +22 -79
- data/lib/conekta/models/error.rb +12 -87
- data/lib/conekta/models/event_response.rb +12 -79
- data/lib/conekta/models/event_types.rb +2 -2
- data/lib/conekta/models/events_resend_response.rb +12 -79
- data/lib/conekta/models/fiscal_entity_address.rb +62 -80
- data/lib/conekta/models/{customer_fiscal_entities_request.rb → fiscal_entity_request.rb} +25 -84
- data/lib/conekta/models/{customer_address.rb → fiscal_entity_request_address.rb} +43 -80
- data/lib/conekta/models/get_api_keys_response.rb +32 -89
- data/lib/conekta/models/get_charges_response.rb +32 -89
- data/lib/conekta/models/get_companies_response.rb +32 -89
- data/lib/conekta/models/get_customer_payment_method_data_response.rb +6 -6
- data/lib/conekta/models/get_events_response.rb +32 -89
- data/lib/conekta/models/get_order_discount_lines_response.rb +32 -89
- data/lib/conekta/models/get_orders_response.rb +42 -90
- data/lib/conekta/models/get_payment_method_response.rb +32 -89
- data/lib/conekta/models/get_plans_response.rb +32 -89
- data/lib/conekta/models/get_transactions_response.rb +32 -89
- data/lib/conekta/models/get_transfers_response.rb +32 -89
- data/lib/conekta/models/get_webhook_keys_response.rb +32 -89
- data/lib/conekta/models/get_webhooks_response.rb +32 -89
- data/lib/conekta/models/{log_response.rb → log_response_for_request.rb} +45 -89
- data/lib/conekta/models/logs_response_data.rb +14 -88
- data/lib/conekta/models/{logs_response.rb → logs_response_for_request.rb} +13 -83
- data/lib/conekta/models/order_capture_request.rb +12 -79
- data/lib/conekta/models/order_channel_response.rb +12 -79
- data/lib/conekta/models/order_charges_response.rb +53 -87
- data/lib/conekta/models/{checkout_request.rb → order_checkout_request.rb} +81 -90
- data/lib/conekta/models/order_discount_lines_request.rb +32 -79
- data/lib/conekta/models/order_fiscal_entity_address_response.rb +62 -87
- data/lib/conekta/models/order_fiscal_entity_request.rb +22 -81
- data/lib/conekta/models/order_fiscal_entity_response.rb +52 -83
- data/lib/conekta/models/order_next_action_response.rb +12 -79
- data/lib/conekta/models/order_next_action_response_redirect_to_url.rb +12 -79
- data/lib/conekta/models/order_refund_request.rb +32 -79
- data/lib/conekta/models/order_request.rb +40 -89
- data/lib/conekta/models/order_request_customer_info.rb +5 -6
- data/lib/conekta/models/order_response.rb +32 -82
- data/lib/conekta/models/order_response_checkout.rb +146 -84
- data/lib/conekta/models/order_response_customer_info.rb +22 -98
- data/lib/conekta/models/order_response_discount_lines.rb +54 -87
- data/lib/conekta/models/order_response_products.rb +32 -89
- data/lib/conekta/models/order_response_shipping_contact.rb +41 -116
- data/lib/conekta/models/{order_discount_lines_response.rb → order_response_shipping_lines.rb} +56 -89
- data/lib/conekta/models/{order_response_charges.rb → order_response_tax_lines.rb} +56 -90
- data/lib/conekta/models/order_tax_request.rb +14 -81
- data/lib/conekta/models/{update_order_tax_response.rb → order_tax_response.rb} +25 -89
- data/lib/conekta/models/{order_update_request.rb → order_update.rb} +20 -91
- data/lib/conekta/models/{order_update_request_customer_info.rb → order_update_customer_info.rb} +6 -7
- data/lib/conekta/models/order_update_fiscal_entity_request.rb +22 -81
- data/lib/conekta/models/{update_order_tax_request.rb → orders_update_taxes_request.rb} +17 -90
- data/lib/conekta/models/payment_method_bank_transfer.rb +22 -96
- data/lib/conekta/models/payment_method_bnpl_payment.rb +66 -86
- data/lib/conekta/models/payment_method_bnpl_request.rb +64 -88
- data/lib/conekta/models/payment_method_card.rb +22 -86
- data/lib/conekta/models/payment_method_card_request.rb +48 -92
- data/lib/conekta/models/payment_method_card_response.rb +63 -87
- data/lib/conekta/models/payment_method_cash.rb +22 -89
- data/lib/conekta/models/{payment_method_response.rb → payment_method_cash_recurrent_response.rb} +115 -84
- data/lib/conekta/models/payment_method_cash_request.rb +22 -86
- data/lib/conekta/models/payment_method_cash_response.rb +53 -87
- data/lib/conekta/models/payment_method_general_request.rb +22 -79
- data/lib/conekta/models/payment_method_pbb_payment.rb +317 -0
- data/lib/conekta/models/{payment_method_cash_response_all_of.rb → payment_method_pbb_request.rb} +106 -112
- data/lib/conekta/models/{payment_method_spei_recurrent.rb → payment_method_spei_recurrent_response.rb} +53 -87
- data/lib/conekta/models/payment_method_spei_request.rb +22 -86
- data/lib/conekta/models/payment_method_token_request.rb +33 -87
- data/lib/conekta/models/payout.rb +22 -79
- data/lib/conekta/models/payout_method.rb +22 -79
- data/lib/conekta/models/payout_order_payouts_item.rb +62 -79
- data/lib/conekta/models/{payout_order.rb → payout_order_request.rb} +102 -82
- data/lib/conekta/models/{customer_info_just_customer_id_response.rb → payout_order_request_customer_info.rb} +31 -80
- data/lib/conekta/models/payout_order_response.rb +146 -79
- data/lib/conekta/models/payout_order_response_customer_info.rb +38 -103
- data/lib/conekta/models/payout_orders_response.rb +47 -104
- data/lib/conekta/models/plan_request.rb +22 -79
- data/lib/conekta/models/plan_response.rb +12 -81
- data/lib/conekta/models/product.rb +22 -79
- data/lib/conekta/models/product_data_response.rb +22 -86
- data/lib/conekta/models/product_order_response.rb +22 -86
- data/lib/conekta/models/{resend_request.rb → resend_event_request.rb} +23 -80
- data/lib/conekta/models/risk_rules_data.rb +12 -79
- data/lib/conekta/models/risk_rules_list.rb +32 -89
- data/lib/conekta/models/{discount_lines_response_all_of.rb → shipping_lines_data_response.rb} +105 -99
- data/lib/conekta/models/shipping_order_response.rb +12 -86
- data/lib/conekta/models/shipping_request.rb +12 -79
- data/lib/conekta/models/sms_checkout_request.rb +22 -79
- data/lib/conekta/models/{order_response_shipping_contact_all_of.rb → subscription_details.rb} +87 -90
- data/lib/conekta/models/{payment_method_card_response_all_of.rb → subscription_details_card.rb} +68 -118
- data/lib/conekta/models/{product_data_response_all_of.rb → subscription_details_plan.rb} +83 -87
- data/lib/conekta/models/subscription_events_response.rb +32 -89
- data/lib/conekta/models/subscription_request.rb +22 -79
- data/lib/conekta/models/subscription_response.rb +12 -86
- data/lib/conekta/models/tax_lines_data_response.rb +284 -0
- data/lib/conekta/models/{token.rb → token_request.rb} +15 -84
- data/lib/conekta/models/{token_card.rb → token_request_card.rb} +33 -80
- data/lib/conekta/models/{token_checkout.rb → token_request_checkout.rb} +13 -80
- data/lib/conekta/models/token_response.rb +52 -80
- data/lib/conekta/models/token_response_checkout.rb +12 -79
- data/lib/conekta/models/transaction_response.rb +112 -79
- data/lib/conekta/models/transfer_destination_response.rb +12 -79
- data/lib/conekta/models/transfer_method_response.rb +12 -79
- data/lib/conekta/models/transfer_response.rb +12 -79
- data/lib/conekta/models/transfers_response.rb +12 -79
- data/lib/conekta/models/update_customer.rb +14 -82
- data/lib/conekta/models/update_customer_antifraud_info.rb +12 -79
- data/lib/conekta/models/update_customer_fiscal_entities_response.rb +54 -90
- data/lib/conekta/models/update_customer_payment_methods_response.rb +6 -6
- data/lib/conekta/models/{customer_update_fiscal_entities_request.rb → update_fiscal_entity_request.rb} +15 -84
- data/lib/conekta/models/update_order_discount_lines_request.rb +12 -79
- data/lib/conekta/models/{payment_method_cash_request_all_of.rb → update_payment_methods_card.rb} +44 -81
- data/lib/conekta/models/{plan_update_request.rb → update_plan.rb} +13 -80
- data/lib/conekta/models/update_product.rb +14 -85
- data/lib/conekta/models/{webhook_update_request.rb → update_webhook.rb} +13 -80
- data/lib/conekta/models/{subscription_update_request.rb → updates_a_subscription.rb} +13 -80
- data/lib/conekta/models/webhook_key_create_response.rb +12 -79
- data/lib/conekta/models/webhook_key_delete_response.rb +12 -79
- data/lib/conekta/models/webhook_key_request.rb +12 -79
- data/lib/conekta/models/webhook_key_response.rb +12 -80
- data/lib/conekta/models/webhook_key_update_request.rb +12 -79
- data/lib/conekta/models/webhook_log.rb +12 -79
- data/lib/conekta/models/webhook_request.rb +12 -79
- data/lib/conekta/models/webhook_response.rb +12 -79
- data/lib/conekta/models/whitelistlist_rule_response.rb +12 -79
- data/lib/conekta/version.rb +3 -3
- data/lib/conekta.rb +47 -42
- data/spec/api/antifraud_api_spec.rb +4 -4
- data/spec/api/api_keys_api_spec.rb +2 -2
- data/spec/api/balances_api_spec.rb +2 -2
- data/spec/api/charges_api_spec.rb +2 -2
- data/spec/api/companies_api_spec.rb +14 -2
- data/spec/api/customers_api_spec.rb +4 -4
- data/spec/api/discounts_api_spec.rb +2 -2
- data/spec/api/events_api_spec.rb +3 -3
- data/spec/api/logs_api_spec.rb +4 -4
- data/spec/api/orders_api_spec.rb +4 -3
- data/spec/api/payment_link_api_spec.rb +2 -2
- data/spec/api/payment_methods_api_spec.rb +3 -3
- data/spec/api/payout_orders_api_spec.rb +3 -3
- data/spec/api/plans_api_spec.rb +5 -3
- data/spec/api/products_api_spec.rb +2 -2
- data/spec/api/shipping_contacts_api_spec.rb +4 -4
- data/spec/api/shippings_api_spec.rb +2 -2
- data/spec/api/subscriptions_api_spec.rb +4 -4
- data/spec/api/subscriptions_customer_portal_api_spec.rb +63 -0
- data/spec/api/taxes_api_spec.rb +6 -6
- data/spec/api/tokens_api_spec.rb +4 -4
- data/spec/api/transactions_api_spec.rb +2 -2
- data/spec/api/transfers_api_spec.rb +2 -2
- data/spec/api/webhook_keys_api_spec.rb +2 -2
- data/spec/api/webhooks_api_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -2
- metadata +111 -147
- data/docs/ApiKeyResponseOnDelete.md +0 -34
- data/docs/ChargesOrderResponseAllOfData.md +0 -52
- data/docs/CheckoutRequest.md +0 -40
- data/docs/CompanyResponseDocumentsInner.md +0 -22
- data/docs/CustomerPaymentMethodRequest.md +0 -18
- data/docs/Details.md +0 -18
- data/docs/LogResponse.md +0 -56
- data/docs/OrderCustomerInfoResponse.md +0 -28
- data/docs/OrdersResponse.md +0 -18
- data/docs/Pagination.md +0 -20
- data/docs/PaymentMethod.md +0 -20
- data/docs/PaymentMethodResponse.md +0 -26
- data/docs/Token.md +0 -20
- data/docs/UpdatePaymentMethods.md +0 -18
- data/lib/conekta/models/api_key_create_response_all_of.rb +0 -215
- data/lib/conekta/models/api_key_response_on_delete.rb +0 -297
- data/lib/conekta/models/charge_data_payment_method_bank_transfer_response.rb +0 -362
- data/lib/conekta/models/charge_data_payment_method_card_response.rb +0 -308
- data/lib/conekta/models/charge_data_payment_method_cash_response.rb +0 -281
- data/lib/conekta/models/charge_response_refunds_all_of.rb +0 -217
- data/lib/conekta/models/charges_order_response_all_of_data.rb +0 -439
- data/lib/conekta/models/checkouts_response_all_of.rb +0 -216
- data/lib/conekta/models/company_fiscal_info_address_response.rb +0 -330
- data/lib/conekta/models/company_fiscal_info_response.rb +0 -309
- data/lib/conekta/models/company_payout_destination_response.rb +0 -312
- data/lib/conekta/models/company_response_documents_inner.rb +0 -270
- data/lib/conekta/models/create_customer_fiscal_entities_response_all_of.rb +0 -271
- data/lib/conekta/models/customer_fiscal_entities_request_address.rb +0 -308
- data/lib/conekta/models/customer_fiscal_entities_response_all_of.rb +0 -216
- data/lib/conekta/models/customer_payment_method_request.rb +0 -223
- data/lib/conekta/models/customer_payment_methods.rb +0 -216
- data/lib/conekta/models/customer_response_shipping_contacts_all_of.rb +0 -216
- data/lib/conekta/models/customers_response_all_of.rb +0 -216
- data/lib/conekta/models/delete_api_keys_response_all_of.rb +0 -214
- data/lib/conekta/models/details.rb +0 -216
- data/lib/conekta/models/error_all_of.rb +0 -234
- data/lib/conekta/models/get_api_keys_response_all_of.rb +0 -216
- data/lib/conekta/models/get_charges_response_all_of.rb +0 -216
- data/lib/conekta/models/get_companies_response_all_of.rb +0 -216
- data/lib/conekta/models/get_events_response_all_of.rb +0 -216
- data/lib/conekta/models/get_order_discount_lines_response_all_of.rb +0 -216
- data/lib/conekta/models/get_payment_method_response_all_of.rb +0 -216
- data/lib/conekta/models/get_plans_response_all_of.rb +0 -216
- data/lib/conekta/models/get_transactions_response_all_of.rb +0 -217
- data/lib/conekta/models/get_transfers_response_all_of.rb +0 -217
- data/lib/conekta/models/get_webhook_keys_response_all_of.rb +0 -216
- data/lib/conekta/models/get_webhooks_response_all_of.rb +0 -216
- data/lib/conekta/models/order_customer_info_response.rb +0 -263
- data/lib/conekta/models/order_fiscal_entity_address_response_all_of.rb +0 -214
- data/lib/conekta/models/order_response_charges_all_of.rb +0 -216
- data/lib/conekta/models/order_response_customer_info_all_of.rb +0 -214
- data/lib/conekta/models/order_response_discount_lines_all_of.rb +0 -216
- data/lib/conekta/models/order_response_products_all_of.rb +0 -216
- data/lib/conekta/models/orders_response.rb +0 -223
- data/lib/conekta/models/page.rb +0 -228
- data/lib/conekta/models/pagination.rb +0 -240
- data/lib/conekta/models/payment_method.rb +0 -230
- data/lib/conekta/models/payment_method_card_request_all_of.rb +0 -215
- data/lib/conekta/models/payment_method_spei_recurrent_all_of.rb +0 -224
- data/lib/conekta/models/risk_rules.rb +0 -216
- data/lib/conekta/models/update_customer_fiscal_entities_response_all_of.rb +0 -271
- data/lib/conekta/models/update_order_tax_response_all_of.rb +0 -232
|
@@ -16,7 +16,8 @@ Conekta::ChargeRequestPaymentMethod.openapi_one_of
|
|
|
16
16
|
# [
|
|
17
17
|
# :'PaymentMethodBnplRequest',
|
|
18
18
|
# :'PaymentMethodCardRequest',
|
|
19
|
-
# :'PaymentMethodGeneralRequest'
|
|
19
|
+
# :'PaymentMethodGeneralRequest',
|
|
20
|
+
# :'PaymentMethodPbbRequest'
|
|
20
21
|
# ]
|
|
21
22
|
```
|
|
22
23
|
|
|
@@ -47,5 +48,6 @@ Conekta::ChargeRequestPaymentMethod.build(data_that_doesnt_match)
|
|
|
47
48
|
- `PaymentMethodBnplRequest`
|
|
48
49
|
- `PaymentMethodCardRequest`
|
|
49
50
|
- `PaymentMethodGeneralRequest`
|
|
51
|
+
- `PaymentMethodPbbRequest`
|
|
50
52
|
- `nil` (if no type matches)
|
|
51
53
|
|
data/docs/ChargeResponse.md
CHANGED
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
| **livemode** | **Boolean** | Whether the charge was made in live mode or not | |
|
|
18
18
|
| **object** | **String** | | |
|
|
19
19
|
| **order_id** | **String** | Order ID | |
|
|
20
|
-
| **paid_at** | **Integer** | Payment date | [optional] |
|
|
20
|
+
| **paid_at** | **Integer** | charge Payment date | [optional] |
|
|
21
21
|
| **payment_method** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] |
|
|
22
22
|
| **reference_id** | **String** | Reference ID of the charge | [optional] |
|
|
23
23
|
| **refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] |
|
|
24
|
+
| **chargeback** | [**ChargebackResponse**](ChargebackResponse.md) | | [optional] |
|
|
24
25
|
| **status** | **String** | Charge status | |
|
|
25
26
|
|
|
26
27
|
## Example
|
|
@@ -46,6 +47,7 @@ instance = Conekta::ChargeResponse.new(
|
|
|
46
47
|
payment_method: null,
|
|
47
48
|
reference_id: ref_2tN73UdUSNrYRPD9r,
|
|
48
49
|
refunds: null,
|
|
50
|
+
chargeback: null,
|
|
49
51
|
status: pending_payment
|
|
50
52
|
)
|
|
51
53
|
```
|
|
@@ -17,7 +17,8 @@ Conekta::ChargeResponsePaymentMethod.openapi_one_of
|
|
|
17
17
|
# :'PaymentMethodBankTransfer',
|
|
18
18
|
# :'PaymentMethodBnplPayment',
|
|
19
19
|
# :'PaymentMethodCard',
|
|
20
|
-
# :'PaymentMethodCash'
|
|
20
|
+
# :'PaymentMethodCash',
|
|
21
|
+
# :'PaymentMethodPbbPayment'
|
|
21
22
|
# ]
|
|
22
23
|
```
|
|
23
24
|
|
|
@@ -49,7 +50,8 @@ Conekta::ChargeResponsePaymentMethod.openapi_discriminator_mapping
|
|
|
49
50
|
# :'bank_transfer_payment' => :'PaymentMethodBankTransfer',
|
|
50
51
|
# :'bnpl_payment' => :'PaymentMethodBnplPayment',
|
|
51
52
|
# :'card_payment' => :'PaymentMethodCard',
|
|
52
|
-
# :'cash_payment' => :'PaymentMethodCash'
|
|
53
|
+
# :'cash_payment' => :'PaymentMethodCash',
|
|
54
|
+
# :'pay_by_bank_payment' => :'PaymentMethodPbbPayment'
|
|
53
55
|
# }
|
|
54
56
|
```
|
|
55
57
|
|
|
@@ -81,5 +83,6 @@ Conekta::ChargeResponsePaymentMethod.build(data_that_doesnt_match)
|
|
|
81
83
|
- `PaymentMethodBnplPayment`
|
|
82
84
|
- `PaymentMethodCard`
|
|
83
85
|
- `PaymentMethodCash`
|
|
86
|
+
- `PaymentMethodPbbPayment`
|
|
84
87
|
- `nil` (if no type matches)
|
|
85
88
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Conekta::ChargebackFileResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **file_name** | **String** | | [optional] |
|
|
9
|
+
| **url** | **String** | | [optional] |
|
|
10
|
+
| **created_at** | **Integer** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'conekta'
|
|
16
|
+
|
|
17
|
+
instance = Conekta::ChargebackFileResponse.new(
|
|
18
|
+
id: chbkf_2zPxWFUnGNLySoums,
|
|
19
|
+
file_name: 20251221500000000000201.pdf,
|
|
20
|
+
url: null,
|
|
21
|
+
created_at: 1768846800
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Conekta::ChargebackResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **status** | **String** | | [optional] |
|
|
9
|
+
| **reason** | **String** | | [optional] |
|
|
10
|
+
| **note** | **String** | | [optional] |
|
|
11
|
+
| **followup_status** | **String** | | [optional] |
|
|
12
|
+
| **response_from_client** | **String** | | [optional] |
|
|
13
|
+
| **files** | [**Array<ChargebackFileResponse>**](ChargebackFileResponse.md) | | [optional] |
|
|
14
|
+
| **object** | **String** | | [optional] |
|
|
15
|
+
| **charge_id** | **String** | | [optional] |
|
|
16
|
+
| **created_at** | **Integer** | | [optional] |
|
|
17
|
+
| **evidence_due_by** | **Integer** | | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'conekta'
|
|
23
|
+
|
|
24
|
+
instance = Conekta::ChargebackResponse.new(
|
|
25
|
+
id: chbk_2zPxWFUnGNLySoumn,
|
|
26
|
+
status: lost,
|
|
27
|
+
reason: unrecognized,
|
|
28
|
+
note: null,
|
|
29
|
+
followup_status: null,
|
|
30
|
+
response_from_client: null,
|
|
31
|
+
files: null,
|
|
32
|
+
object: chargeback,
|
|
33
|
+
charge_id: 6966a06c044243000156c24d,
|
|
34
|
+
created_at: 1768846800,
|
|
35
|
+
evidence_due_by: 1769126399
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
data/docs/ChargesApi.md
CHANGED
|
@@ -86,7 +86,7 @@ end
|
|
|
86
86
|
### HTTP request headers
|
|
87
87
|
|
|
88
88
|
- **Content-Type**: Not defined
|
|
89
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
89
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
## orders_create_charge
|
|
@@ -163,7 +163,7 @@ end
|
|
|
163
163
|
### HTTP request headers
|
|
164
164
|
|
|
165
165
|
- **Content-Type**: application/json
|
|
166
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
166
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
## orders_create_charges
|
|
@@ -240,7 +240,7 @@ end
|
|
|
240
240
|
### HTTP request headers
|
|
241
241
|
|
|
242
242
|
- **Content-Type**: application/json
|
|
243
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
243
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
244
244
|
|
|
245
245
|
|
|
246
246
|
## update_charge
|
|
@@ -315,5 +315,5 @@ end
|
|
|
315
315
|
### HTTP request headers
|
|
316
316
|
|
|
317
317
|
- **Content-Type**: application/json
|
|
318
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
318
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
319
319
|
|
data/docs/ChargesDataResponse.md
CHANGED
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
| **livemode** | **Boolean** | Whether the charge was made in live mode or not | |
|
|
18
18
|
| **object** | **String** | | |
|
|
19
19
|
| **order_id** | **String** | Order ID | |
|
|
20
|
-
| **paid_at** | **Integer** | Payment date | [optional] |
|
|
20
|
+
| **paid_at** | **Integer** | charge Payment date | [optional] |
|
|
21
21
|
| **payment_method** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] |
|
|
22
22
|
| **reference_id** | **String** | Reference ID of the charge | [optional] |
|
|
23
23
|
| **refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] |
|
|
24
|
+
| **chargeback** | [**ChargebackResponse**](ChargebackResponse.md) | | [optional] |
|
|
24
25
|
| **status** | **String** | Charge status | |
|
|
25
26
|
|
|
26
27
|
## Example
|
|
@@ -46,6 +47,7 @@ instance = Conekta::ChargesDataResponse.new(
|
|
|
46
47
|
payment_method: null,
|
|
47
48
|
reference_id: ref_2tN73UdUSNrYRPD9r,
|
|
48
49
|
refunds: null,
|
|
50
|
+
chargeback: null,
|
|
49
51
|
status: pending_payment
|
|
50
52
|
)
|
|
51
53
|
```
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **has_more** | **Boolean** | Indicates if there are more pages to be requested | |
|
|
8
8
|
| **object** | **String** | Object type, in this case is list | |
|
|
9
|
-
| **
|
|
9
|
+
| **next_page_url** | **String** | URL of the next page. | [optional] |
|
|
10
|
+
| **previous_page_url** | **String** | Url of the previous page. | [optional] |
|
|
11
|
+
| **data** | [**Array<ChargeResponse>**](ChargeResponse.md) | | [optional] |
|
|
10
12
|
|
|
11
13
|
## Example
|
|
12
14
|
|
|
@@ -16,6 +18,8 @@ require 'conekta'
|
|
|
16
18
|
instance = Conekta::ChargesOrderResponse.new(
|
|
17
19
|
has_more: false,
|
|
18
20
|
object: list,
|
|
21
|
+
next_page_url: https://api.conekta.io/resources?limit=10&next=chrg_1,
|
|
22
|
+
previous_page_url: https://api.conekta.io/resources?limit=10&previous=chrg_1,
|
|
19
23
|
data: null
|
|
20
24
|
)
|
|
21
25
|
```
|
data/docs/Checkout.md
CHANGED
|
@@ -4,16 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **allowed_payment_methods** | **Array<String>** | Those are the payment methods that will be available for the link |
|
|
8
|
-
| **
|
|
7
|
+
| **allowed_payment_methods** | **Array<String>** | Those are the payment methods that will be available for the link. This field is mutually exclusive with excluded_payment_methods. | [optional] |
|
|
8
|
+
| **excluded_payment_methods** | **Array<String>** | Payment methods to be excluded from the checkout. This field is mutually exclusive with allowed_payment_methods. | [optional] |
|
|
9
|
+
| **exclude_card_networks** | **Array<String>** | List of card networks to exclude from the checkout. This field is only applicable for card payments. | [optional] |
|
|
10
|
+
| **expires_at** | **Integer** | It is the time when the link will expire. It is expressed in seconds since the Unix epoch. The valid range is from 5 minutes to 365 days from the creation date. | |
|
|
9
11
|
| **monthly_installments_enabled** | **Boolean** | This flag allows you to specify if months without interest will be active. | [optional] |
|
|
10
12
|
| **monthly_installments_options** | **Array<Integer>** | This field allows you to specify the number of months without interest. | [optional] |
|
|
11
|
-
| **three_ds_mode** | **String** | Indicates the 3DS2 mode for the order, either smart or strict. | [optional] |
|
|
13
|
+
| **three_ds_mode** | **String** | Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null. | [optional] |
|
|
12
14
|
| **name** | **String** | Reason for charge | |
|
|
13
15
|
| **needs_shipping_contact** | **Boolean** | This flag allows you to fill in the shipping information at checkout. | [optional] |
|
|
14
16
|
| **on_demand_enabled** | **Boolean** | This flag allows you to specify if the link will be on demand. | [optional] |
|
|
17
|
+
| **plan_ids** | **Array<String>** | It is a list of plan IDs that will be associated with the order. | [optional] |
|
|
15
18
|
| **order_template** | [**CheckoutOrderTemplate**](CheckoutOrderTemplate.md) | | |
|
|
16
19
|
| **payments_limit_count** | **Integer** | It is the number of payments that can be made through the link. | [optional] |
|
|
20
|
+
| **success_url** | **String** | The URL to redirect to after a successful payment. | [optional] |
|
|
17
21
|
| **recurrent** | **Boolean** | false: single use. true: multiple payments | |
|
|
18
22
|
| **type** | **String** | It is the type of link that will be created. It must be a valid type. | |
|
|
19
23
|
|
|
@@ -23,16 +27,20 @@
|
|
|
23
27
|
require 'conekta'
|
|
24
28
|
|
|
25
29
|
instance = Conekta::Checkout.new(
|
|
26
|
-
allowed_payment_methods: [
|
|
30
|
+
allowed_payment_methods: [cash, card, bank_transfer, bnpl, pay_by_bank],
|
|
31
|
+
excluded_payment_methods: [cash, bank_transfer],
|
|
32
|
+
exclude_card_networks: [visa, amex],
|
|
27
33
|
expires_at: 1680397724,
|
|
28
34
|
monthly_installments_enabled: true,
|
|
29
|
-
monthly_installments_options: [3,6,12],
|
|
35
|
+
monthly_installments_options: [3, 6, 12],
|
|
30
36
|
three_ds_mode: null,
|
|
31
37
|
name: Payment Link Name 1594138857,
|
|
32
38
|
needs_shipping_contact: false,
|
|
33
39
|
on_demand_enabled: true,
|
|
40
|
+
plan_ids: [plan_123, plan_456],
|
|
34
41
|
order_template: null,
|
|
35
42
|
payments_limit_count: 5,
|
|
43
|
+
success_url: https://www.conekta.com/success,
|
|
36
44
|
recurrent: false,
|
|
37
45
|
type: PaymentLink
|
|
38
46
|
)
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
| **currency** | **String** | It is the currency in which the order will be created. It must be a valid ISO 4217 currency code. | |
|
|
8
8
|
| **customer_info** | [**CheckoutOrderTemplateCustomerInfo**](CheckoutOrderTemplateCustomerInfo.md) | | [optional] |
|
|
9
9
|
| **line_items** | [**Array<Product>**](Product.md) | They are the products to buy. Each contains the \"unit price\" and \"quantity\" parameters that are used to calculate the total amount of the order. | |
|
|
10
|
-
| **plan_ids** | **Array<String>** | It is a list of plan IDs that will be associated with the order. | [optional] |
|
|
11
10
|
| **metadata** | **Hash<String, Object>** | It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format. | [optional] |
|
|
11
|
+
| **tax_lines** | [**Array<OrderTaxRequest>**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.3.0/reference/orderscreatetaxes) that are applied to the order. | [optional] |
|
|
12
|
+
| **discount_lines** | [**Array<OrderDiscountLinesRequest>**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order. | [optional] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -19,8 +20,9 @@ instance = Conekta::CheckoutOrderTemplate.new(
|
|
|
19
20
|
currency: MXN,
|
|
20
21
|
customer_info: null,
|
|
21
22
|
line_items: null,
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
metadata: {key=value},
|
|
24
|
+
tax_lines: null,
|
|
25
|
+
discount_lines: null
|
|
24
26
|
)
|
|
25
27
|
```
|
|
26
28
|
|
|
@@ -15,7 +15,7 @@ Conekta::CheckoutOrderTemplateCustomerInfo.openapi_one_of
|
|
|
15
15
|
# =>
|
|
16
16
|
# [
|
|
17
17
|
# :'CustomerInfo',
|
|
18
|
-
# :'
|
|
18
|
+
# :'CustomerInfoCustomerId'
|
|
19
19
|
# ]
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -44,6 +44,6 @@ Conekta::CheckoutOrderTemplateCustomerInfo.build(data_that_doesnt_match)
|
|
|
44
44
|
#### Return type
|
|
45
45
|
|
|
46
46
|
- `CustomerInfo`
|
|
47
|
-
- `
|
|
47
|
+
- `CustomerInfoCustomerId`
|
|
48
48
|
- `nil` (if no type matches)
|
|
49
49
|
|
data/docs/CheckoutResponse.md
CHANGED
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **allowed_payment_methods** | **Array<String>** | Are the payment methods available for this link | [optional] |
|
|
8
|
+
| **excluded_payment_methods** | **Array<String>** | Payment methods excluded from the checkout. This field is only returned when excluded_payment_methods is provided in the request. | [optional] |
|
|
8
9
|
| **plan_ids** | **Array<String>** | List of plan IDs that are available for subscription | [optional] |
|
|
9
10
|
| **can_not_expire** | **Boolean** | | [optional] |
|
|
10
11
|
| **emails_sent** | **Integer** | | [optional] |
|
|
11
|
-
| **exclude_card_networks** | **Array<
|
|
12
|
+
| **exclude_card_networks** | **Array<String>** | | [optional] |
|
|
12
13
|
| **expires_at** | **Integer** | | [optional] |
|
|
13
14
|
| **failure_url** | **String** | | [optional] |
|
|
14
15
|
| **force_3ds_flow** | **Boolean** | | [optional] |
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
| **sms_sent** | **Integer** | | [optional] |
|
|
28
29
|
| **starts_at** | **Integer** | | [optional] |
|
|
29
30
|
| **status** | **String** | | [optional] |
|
|
30
|
-
| **success_url** | **String** |
|
|
31
|
+
| **success_url** | **String** | The URL to redirect to after a successful payment. | [optional] |
|
|
31
32
|
| **type** | **String** | | [optional] |
|
|
32
33
|
| **url** | **String** | | [optional] |
|
|
33
34
|
|
|
@@ -37,19 +38,20 @@
|
|
|
37
38
|
require 'conekta'
|
|
38
39
|
|
|
39
40
|
instance = Conekta::CheckoutResponse.new(
|
|
40
|
-
allowed_payment_methods: [
|
|
41
|
-
|
|
41
|
+
allowed_payment_methods: [cash, card, bank_transfer, bnpl, pay_by_bank],
|
|
42
|
+
excluded_payment_methods: [cash, bank_transfer],
|
|
43
|
+
plan_ids: [plan_123, plan_456],
|
|
42
44
|
can_not_expire: false,
|
|
43
45
|
emails_sent: 0,
|
|
44
|
-
exclude_card_networks:
|
|
46
|
+
exclude_card_networks: [visa, amex],
|
|
45
47
|
expires_at: 1680397724,
|
|
46
48
|
failure_url: https://pay.conekta.com/failure,
|
|
47
49
|
force_3ds_flow: false,
|
|
48
50
|
id: b0bf16c4-18b9-445e-ba24-01604f329dbf,
|
|
49
51
|
livemode: true,
|
|
50
|
-
metadata: {
|
|
52
|
+
metadata: {key=value},
|
|
51
53
|
monthly_installments_enabled: false,
|
|
52
|
-
monthly_installments_options: [3,6,12],
|
|
54
|
+
monthly_installments_options: [3, 6, 12],
|
|
53
55
|
name: Payment Link Name 1594138857,
|
|
54
56
|
needs_shipping_contact: false,
|
|
55
57
|
object: checkout,
|
data/docs/CompaniesApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *https://api.conekta.io*
|
|
|
8
8
|
| [**get_companies**](CompaniesApi.md#get_companies) | **GET** /companies | Get List of Companies |
|
|
9
9
|
| [**get_company**](CompaniesApi.md#get_company) | **GET** /companies/{id} | Get Company |
|
|
10
10
|
| [**get_company_documents**](CompaniesApi.md#get_company_documents) | **GET** /companies/{company_id}/documents | Get Company Documents |
|
|
11
|
+
| [**get_current_company**](CompaniesApi.md#get_current_company) | **GET** /companies/current | Get Current Company |
|
|
11
12
|
| [**update_company_document**](CompaniesApi.md#update_company_document) | **PATCH** /companies/{company_id}/document | Update Company Document |
|
|
12
13
|
| [**upload_company_document**](CompaniesApi.md#upload_company_document) | **POST** /companies/{company_id}/document | Upload Company Document |
|
|
13
14
|
|
|
@@ -78,7 +79,7 @@ end
|
|
|
78
79
|
### HTTP request headers
|
|
79
80
|
|
|
80
81
|
- **Content-Type**: application/json
|
|
81
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
82
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
82
83
|
|
|
83
84
|
|
|
84
85
|
## get_companies
|
|
@@ -157,7 +158,7 @@ end
|
|
|
157
158
|
### HTTP request headers
|
|
158
159
|
|
|
159
160
|
- **Content-Type**: Not defined
|
|
160
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
161
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
161
162
|
|
|
162
163
|
|
|
163
164
|
## get_company
|
|
@@ -228,7 +229,7 @@ end
|
|
|
228
229
|
### HTTP request headers
|
|
229
230
|
|
|
230
231
|
- **Content-Type**: Not defined
|
|
231
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
232
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
232
233
|
|
|
233
234
|
|
|
234
235
|
## get_company_documents
|
|
@@ -301,7 +302,78 @@ end
|
|
|
301
302
|
### HTTP request headers
|
|
302
303
|
|
|
303
304
|
- **Content-Type**: Not defined
|
|
304
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
305
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
## get_current_company
|
|
309
|
+
|
|
310
|
+
> <CompanyResponse> get_current_company(opts)
|
|
311
|
+
|
|
312
|
+
Get Current Company
|
|
313
|
+
|
|
314
|
+
Retrieves information about the currently authenticated company. This endpoint returns the same data as the standard company endpoint but automatically uses the current company's context.
|
|
315
|
+
|
|
316
|
+
### Examples
|
|
317
|
+
|
|
318
|
+
```ruby
|
|
319
|
+
require 'time'
|
|
320
|
+
require 'conekta'
|
|
321
|
+
# setup authorization
|
|
322
|
+
Conekta.configure do |config|
|
|
323
|
+
# Configure Bearer authorization: bearerAuth
|
|
324
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
api_instance = Conekta::CompaniesApi.new
|
|
328
|
+
opts = {
|
|
329
|
+
accept_language: 'es' # String | Use for knowing which language to use
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
begin
|
|
333
|
+
# Get Current Company
|
|
334
|
+
result = api_instance.get_current_company(opts)
|
|
335
|
+
p result
|
|
336
|
+
rescue Conekta::ApiError => e
|
|
337
|
+
puts "Error when calling CompaniesApi->get_current_company: #{e}"
|
|
338
|
+
end
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
#### Using the get_current_company_with_http_info variant
|
|
342
|
+
|
|
343
|
+
This returns an Array which contains the response data, status code and headers.
|
|
344
|
+
|
|
345
|
+
> <Array(<CompanyResponse>, Integer, Hash)> get_current_company_with_http_info(opts)
|
|
346
|
+
|
|
347
|
+
```ruby
|
|
348
|
+
begin
|
|
349
|
+
# Get Current Company
|
|
350
|
+
data, status_code, headers = api_instance.get_current_company_with_http_info(opts)
|
|
351
|
+
p status_code # => 2xx
|
|
352
|
+
p headers # => { ... }
|
|
353
|
+
p data # => <CompanyResponse>
|
|
354
|
+
rescue Conekta::ApiError => e
|
|
355
|
+
puts "Error when calling CompaniesApi->get_current_company_with_http_info: #{e}"
|
|
356
|
+
end
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
### Parameters
|
|
360
|
+
|
|
361
|
+
| Name | Type | Description | Notes |
|
|
362
|
+
| ---- | ---- | ----------- | ----- |
|
|
363
|
+
| **accept_language** | **String** | Use for knowing which language to use | [optional][default to 'es'] |
|
|
364
|
+
|
|
365
|
+
### Return type
|
|
366
|
+
|
|
367
|
+
[**CompanyResponse**](CompanyResponse.md)
|
|
368
|
+
|
|
369
|
+
### Authorization
|
|
370
|
+
|
|
371
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
372
|
+
|
|
373
|
+
### HTTP request headers
|
|
374
|
+
|
|
375
|
+
- **Content-Type**: Not defined
|
|
376
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
305
377
|
|
|
306
378
|
|
|
307
379
|
## update_company_document
|
|
@@ -325,7 +397,7 @@ end
|
|
|
325
397
|
|
|
326
398
|
api_instance = Conekta::CompaniesApi.new
|
|
327
399
|
company_id = '6827206b1ec60400015eb09a' # String | The unique identifier of the company.
|
|
328
|
-
company_document_request = Conekta::CompanyDocumentRequest.new({file_classification: 'id_legal_representative', content_type: 'application/pdf', file_name: 'example_document.pdf', file_data: '
|
|
400
|
+
company_document_request = Conekta::CompanyDocumentRequest.new({file_classification: 'id_legal_representative', content_type: 'application/pdf', file_name: 'example_document.pdf', file_data: 'VGhpcyBpcyBhIHRlc3QgZmlsZSBkYXRhIGluIGJhc2UgNjQu'}) # CompanyDocumentRequest | Document information to update.
|
|
329
401
|
opts = {
|
|
330
402
|
accept_language: 'es' # String | Use for knowing which language to use
|
|
331
403
|
}
|
|
@@ -376,7 +448,7 @@ end
|
|
|
376
448
|
### HTTP request headers
|
|
377
449
|
|
|
378
450
|
- **Content-Type**: application/json
|
|
379
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
451
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
380
452
|
|
|
381
453
|
|
|
382
454
|
## upload_company_document
|
|
@@ -400,7 +472,7 @@ end
|
|
|
400
472
|
|
|
401
473
|
api_instance = Conekta::CompaniesApi.new
|
|
402
474
|
company_id = '6827206b1ec60400015eb09a' # String | The unique identifier of the company.
|
|
403
|
-
company_document_request = Conekta::CompanyDocumentRequest.new({file_classification: 'id_legal_representative', content_type: 'application/pdf', file_name: 'example_document.pdf', file_data: '
|
|
475
|
+
company_document_request = Conekta::CompanyDocumentRequest.new({file_classification: 'id_legal_representative', content_type: 'application/pdf', file_name: 'example_document.pdf', file_data: 'VGhpcyBpcyBhIHRlc3QgZmlsZSBkYXRhIGluIGJhc2UgNjQu'}) # CompanyDocumentRequest | Document information to upload.
|
|
404
476
|
opts = {
|
|
405
477
|
accept_language: 'es' # String | Use for knowing which language to use
|
|
406
478
|
}
|
|
@@ -451,5 +523,5 @@ end
|
|
|
451
523
|
### HTTP request headers
|
|
452
524
|
|
|
453
525
|
- **Content-Type**: application/json
|
|
454
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
526
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
455
527
|
|
data/docs/CompanyResponse.md
CHANGED
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
| **account_status** | **String** | The current status of the company's account. | |
|
|
11
11
|
| **parent_company_id** | **String** | The identifier of the parent company, if any. | [optional] |
|
|
12
12
|
| **onboarding_status** | **String** | The current status of the company's onboarding process. | |
|
|
13
|
-
| **documents** | [**Array<
|
|
13
|
+
| **documents** | [**Array<CompanyDocumentResponse>**](CompanyDocumentResponse.md) | A list of documents related to the company. | |
|
|
14
14
|
| **created_at** | **Integer** | Timestamp of when the company was created. | |
|
|
15
15
|
| **object** | **String** | The type of object, typically \"company\". | |
|
|
16
|
+
| **three_ds_enabled** | **Boolean** | Indicates if 3DS authentication is enabled for the company. | [optional] |
|
|
17
|
+
| **three_ds_mode** | **String** | The 3DS mode for the company, either 'smart' or 'strict'. This property is only applicable when three_ds_enabled is true. When three_ds_enabled is false, this field will be null. | [optional] |
|
|
16
18
|
|
|
17
19
|
## Example
|
|
18
20
|
|
|
@@ -28,7 +30,9 @@ instance = Conekta::CompanyResponse.new(
|
|
|
28
30
|
onboarding_status: pending,
|
|
29
31
|
documents: null,
|
|
30
32
|
created_at: 1748968241,
|
|
31
|
-
object: company
|
|
33
|
+
object: company,
|
|
34
|
+
three_ds_enabled: true,
|
|
35
|
+
three_ds_mode: strict
|
|
32
36
|
)
|
|
33
37
|
```
|
|
34
38
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **address** | [**
|
|
7
|
+
| **address** | [**FiscalEntityRequestAddress**](FiscalEntityRequestAddress.md) | | |
|
|
8
8
|
| **tax_id** | **String** | | [optional] |
|
|
9
9
|
| **email** | **String** | | [optional] |
|
|
10
10
|
| **phone** | **String** | | [optional] |
|
|
@@ -15,8 +15,9 @@ Conekta::CreateCustomerPaymentMethodsResponse.openapi_one_of
|
|
|
15
15
|
# =>
|
|
16
16
|
# [
|
|
17
17
|
# :'PaymentMethodCardResponse',
|
|
18
|
+
# :'PaymentMethodCashRecurrentResponse',
|
|
18
19
|
# :'PaymentMethodCashResponse',
|
|
19
|
-
# :'
|
|
20
|
+
# :'PaymentMethodSpeiRecurrentResponse'
|
|
20
21
|
# ]
|
|
21
22
|
```
|
|
22
23
|
|
|
@@ -47,9 +48,8 @@ Conekta::CreateCustomerPaymentMethodsResponse.openapi_discriminator_mapping
|
|
|
47
48
|
# {
|
|
48
49
|
# :'card' => :'PaymentMethodCardResponse',
|
|
49
50
|
# :'cash' => :'PaymentMethodCashResponse',
|
|
50
|
-
# :'cash_recurrent' => :'
|
|
51
|
-
# :'
|
|
52
|
-
# :'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
|
|
51
|
+
# :'cash_recurrent' => :'PaymentMethodCashRecurrentResponse',
|
|
52
|
+
# :'spei_recurrent' => :'PaymentMethodSpeiRecurrentResponse'
|
|
53
53
|
# }
|
|
54
54
|
```
|
|
55
55
|
|
|
@@ -78,7 +78,8 @@ Conekta::CreateCustomerPaymentMethodsResponse.build(data_that_doesnt_match)
|
|
|
78
78
|
#### Return type
|
|
79
79
|
|
|
80
80
|
- `PaymentMethodCardResponse`
|
|
81
|
+
- `PaymentMethodCashRecurrentResponse`
|
|
81
82
|
- `PaymentMethodCashResponse`
|
|
82
|
-
- `
|
|
83
|
+
- `PaymentMethodSpeiRecurrentResponse`
|
|
83
84
|
- `nil` (if no type matches)
|
|
84
85
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Conekta::
|
|
1
|
+
# Conekta::CreateRuleWhitelistRequest
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
```ruby
|
|
14
14
|
require 'conekta'
|
|
15
15
|
|
|
16
|
-
instance = Conekta::
|
|
16
|
+
instance = Conekta::CreateRuleWhitelistRequest.new(
|
|
17
17
|
description: this client email was verified at 20/09/22 by internal process,
|
|
18
18
|
field: email | phone | card_token,
|
|
19
19
|
value: email@example.com | 818081808180 | src_2qUCNd5AyQqfPMBuV
|
data/docs/Customer.md
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
| **email** | **String** | An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). | |
|
|
12
12
|
| **default_payment_source_id** | **String** | It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id) | [optional] |
|
|
13
13
|
| **default_shipping_contact_id** | **String** | It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact) | [optional] |
|
|
14
|
-
| **fiscal_entities** | [**Array<
|
|
14
|
+
| **fiscal_entities** | [**Array<FiscalEntityRequest>**](FiscalEntityRequest.md) | | [optional] |
|
|
15
15
|
| **metadata** | **Hash<String, Object>** | | [optional] |
|
|
16
16
|
| **name** | **String** | Client's name | |
|
|
17
17
|
| **national_id** | **String** | It is a parameter that allows to identify the national identification number of the client. | [optional] |
|
|
18
18
|
| **payment_sources** | [**Array<CustomerPaymentMethodsRequest>**](CustomerPaymentMethodsRequest.md) | Contains details of the payment methods that the customer has active or has used in Conekta | [optional] |
|
|
19
19
|
| **phone** | **String** | Is the customer's phone number | |
|
|
20
20
|
| **plan_id** | **String** | Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription | [optional] |
|
|
21
|
-
| **shipping_contacts** | [**Array<
|
|
21
|
+
| **shipping_contacts** | [**Array<CustomerShippingContactsRequest>**](CustomerShippingContactsRequest.md) | Contains the detail of the shipping addresses that the client has active or has used in Conekta | [optional] |
|
|
22
22
|
| **subscription** | [**SubscriptionRequest**](SubscriptionRequest.md) | | [optional] |
|
|
23
23
|
|
|
24
24
|
## Example
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Conekta::CustomerDetails
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **object** | **String** | | [optional] |
|
|
9
|
+
| **name** | **String** | | [optional] |
|
|
10
|
+
| **email** | **String** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'conekta'
|
|
16
|
+
|
|
17
|
+
instance = Conekta::CustomerDetails.new(
|
|
18
|
+
id: cus_2yDzKtEAD3khH8Sga,
|
|
19
|
+
object: customer,
|
|
20
|
+
name: mao,
|
|
21
|
+
email: maoarroya@gmail.com
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **address** | [**
|
|
7
|
+
| **address** | [**FiscalEntityRequestAddress**](FiscalEntityRequestAddress.md) | | |
|
|
8
8
|
| **tax_id** | **String** | | [optional] |
|
|
9
9
|
| **email** | **String** | | [optional] |
|
|
10
10
|
| **phone** | **String** | | [optional] |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Conekta::
|
|
1
|
+
# Conekta::CustomerInfoCustomerId
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
```ruby
|
|
12
12
|
require 'conekta'
|
|
13
13
|
|
|
14
|
-
instance = Conekta::
|
|
14
|
+
instance = Conekta::CustomerInfoCustomerId.new(
|
|
15
15
|
customer_id: cus_23874283647
|
|
16
16
|
)
|
|
17
17
|
```
|