conekta 7.0.3 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Makefile +3 -3
- data/README.md +52 -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 +1 -1
- data/docs/ChargeResponse.md +3 -1
- 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 +3 -3
- 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 +3 -3
- 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/{CustomerFiscalEntitiesRequest.md → FiscalEntityRequest.md} +3 -3
- data/docs/{CustomerAddress.md → FiscalEntityRequestAddress.md} +2 -2
- data/docs/GetCustomerPaymentMethodDataResponse.md +3 -3
- 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 +14 -10
- 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/PaymentMethodCardResponse.md +2 -0
- data/docs/PaymentMethodCashRecurrentResponse.md +1 -1
- data/docs/PaymentMethodCashResponse.md +1 -1
- data/docs/{PaymentMethodSpeiRecurrent.md → PaymentMethodSpeiRecurrentResponse.md} +2 -2
- data/docs/PaymentMethodTokenRequest.md +1 -1
- data/docs/PaymentMethodsApi.md +10 -10
- 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 +3 -3
- data/docs/{CustomerUpdateFiscalEntitiesRequest.md → UpdateFiscalEntityRequest.md} +3 -3
- data/docs/{UpdatePaymentMethods.md → UpdatePaymentMethodsCard.md} +2 -2
- 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 +1 -1
- data/docs/WebhookResponse.md +1 -1
- data/docs/WebhooksApi.md +12 -12
- data/examples/one_time_charge_pbb.rb +23 -6
- 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 +3 -3
- data/lib/conekta/models/charge_request.rb +22 -79
- data/lib/conekta/models/charge_request_payment_method.rb +4 -5
- 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 +2 -2
- 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/{risk_rules.rb → chargeback_file_response.rb} +48 -89
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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_cash_recurrent_response.rb +53 -87
- 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 +67 -91
- data/lib/conekta/models/payment_method_pbb_request.rb +22 -86
- 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/{payment_method_response.rb → tax_lines_data_response.rb} +118 -112
- 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 +4 -4
- 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/{update_payment_methods.rb → update_payment_methods_card.rb} +13 -80
- 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 +44 -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 +104 -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/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_cash_request_all_of.rb +0 -214
- data/lib/conekta/models/payment_method_cash_response_all_of.rb +0 -251
- data/lib/conekta/models/payment_method_spei_recurrent_all_of.rb +0 -224
- 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
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# Conekta::SubscriptionsCustomerPortalApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.conekta.io*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_customer_portal**](SubscriptionsCustomerPortalApi.md#create_customer_portal) | **POST** /subscriptions/{subscription_id}/customer_portal | Create customer portal |
|
|
8
|
+
| [**get_customer_portal**](SubscriptionsCustomerPortalApi.md#get_customer_portal) | **GET** /subscriptions/{subscription_id}/customer_portal | Get customer portal |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## create_customer_portal
|
|
12
|
+
|
|
13
|
+
> <CustomerPortalResponse> create_customer_portal(subscription_id, opts)
|
|
14
|
+
|
|
15
|
+
Create customer portal
|
|
16
|
+
|
|
17
|
+
Creates a customer portal for a subscription. If a portal already exists, returns the existing one.
|
|
18
|
+
|
|
19
|
+
### Examples
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'time'
|
|
23
|
+
require 'conekta'
|
|
24
|
+
# setup authorization
|
|
25
|
+
Conekta.configure do |config|
|
|
26
|
+
# Configure Bearer authorization: bearerAuth
|
|
27
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
api_instance = Conekta::SubscriptionsCustomerPortalApi.new
|
|
31
|
+
subscription_id = 'sub_2tGzG1GxtDAZHEGPH' # String | Identifier of the subscription resource
|
|
32
|
+
opts = {
|
|
33
|
+
accept_language: 'es', # String | Use for knowing which language to use
|
|
34
|
+
x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
begin
|
|
38
|
+
# Create customer portal
|
|
39
|
+
result = api_instance.create_customer_portal(subscription_id, opts)
|
|
40
|
+
p result
|
|
41
|
+
rescue Conekta::ApiError => e
|
|
42
|
+
puts "Error when calling SubscriptionsCustomerPortalApi->create_customer_portal: #{e}"
|
|
43
|
+
end
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### Using the create_customer_portal_with_http_info variant
|
|
47
|
+
|
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
|
49
|
+
|
|
50
|
+
> <Array(<CustomerPortalResponse>, Integer, Hash)> create_customer_portal_with_http_info(subscription_id, opts)
|
|
51
|
+
|
|
52
|
+
```ruby
|
|
53
|
+
begin
|
|
54
|
+
# Create customer portal
|
|
55
|
+
data, status_code, headers = api_instance.create_customer_portal_with_http_info(subscription_id, opts)
|
|
56
|
+
p status_code # => 2xx
|
|
57
|
+
p headers # => { ... }
|
|
58
|
+
p data # => <CustomerPortalResponse>
|
|
59
|
+
rescue Conekta::ApiError => e
|
|
60
|
+
puts "Error when calling SubscriptionsCustomerPortalApi->create_customer_portal_with_http_info: #{e}"
|
|
61
|
+
end
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Parameters
|
|
65
|
+
|
|
66
|
+
| Name | Type | Description | Notes |
|
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
|
68
|
+
| **subscription_id** | **String** | Identifier of the subscription resource | |
|
|
69
|
+
| **accept_language** | **String** | Use for knowing which language to use | [optional][default to 'es'] |
|
|
70
|
+
| **x_child_company_id** | **String** | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
|
|
71
|
+
|
|
72
|
+
### Return type
|
|
73
|
+
|
|
74
|
+
[**CustomerPortalResponse**](CustomerPortalResponse.md)
|
|
75
|
+
|
|
76
|
+
### Authorization
|
|
77
|
+
|
|
78
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
79
|
+
|
|
80
|
+
### HTTP request headers
|
|
81
|
+
|
|
82
|
+
- **Content-Type**: Not defined
|
|
83
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## get_customer_portal
|
|
87
|
+
|
|
88
|
+
> <CustomerPortalResponse> get_customer_portal(subscription_id, opts)
|
|
89
|
+
|
|
90
|
+
Get customer portal
|
|
91
|
+
|
|
92
|
+
Retrieves the customer portal for a subscription
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'conekta'
|
|
99
|
+
# setup authorization
|
|
100
|
+
Conekta.configure do |config|
|
|
101
|
+
# Configure Bearer authorization: bearerAuth
|
|
102
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
api_instance = Conekta::SubscriptionsCustomerPortalApi.new
|
|
106
|
+
subscription_id = 'sub_2tGzG1GxtDAZHEGPH' # String | Identifier of the subscription resource
|
|
107
|
+
opts = {
|
|
108
|
+
accept_language: 'es', # String | Use for knowing which language to use
|
|
109
|
+
x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
begin
|
|
113
|
+
# Get customer portal
|
|
114
|
+
result = api_instance.get_customer_portal(subscription_id, opts)
|
|
115
|
+
p result
|
|
116
|
+
rescue Conekta::ApiError => e
|
|
117
|
+
puts "Error when calling SubscriptionsCustomerPortalApi->get_customer_portal: #{e}"
|
|
118
|
+
end
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### Using the get_customer_portal_with_http_info variant
|
|
122
|
+
|
|
123
|
+
This returns an Array which contains the response data, status code and headers.
|
|
124
|
+
|
|
125
|
+
> <Array(<CustomerPortalResponse>, Integer, Hash)> get_customer_portal_with_http_info(subscription_id, opts)
|
|
126
|
+
|
|
127
|
+
```ruby
|
|
128
|
+
begin
|
|
129
|
+
# Get customer portal
|
|
130
|
+
data, status_code, headers = api_instance.get_customer_portal_with_http_info(subscription_id, opts)
|
|
131
|
+
p status_code # => 2xx
|
|
132
|
+
p headers # => { ... }
|
|
133
|
+
p data # => <CustomerPortalResponse>
|
|
134
|
+
rescue Conekta::ApiError => e
|
|
135
|
+
puts "Error when calling SubscriptionsCustomerPortalApi->get_customer_portal_with_http_info: #{e}"
|
|
136
|
+
end
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Parameters
|
|
140
|
+
|
|
141
|
+
| Name | Type | Description | Notes |
|
|
142
|
+
| ---- | ---- | ----------- | ----- |
|
|
143
|
+
| **subscription_id** | **String** | Identifier of the subscription resource | |
|
|
144
|
+
| **accept_language** | **String** | Use for knowing which language to use | [optional][default to 'es'] |
|
|
145
|
+
| **x_child_company_id** | **String** | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
|
|
146
|
+
|
|
147
|
+
### Return type
|
|
148
|
+
|
|
149
|
+
[**CustomerPortalResponse**](CustomerPortalResponse.md)
|
|
150
|
+
|
|
151
|
+
### Authorization
|
|
152
|
+
|
|
153
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
154
|
+
|
|
155
|
+
### HTTP request headers
|
|
156
|
+
|
|
157
|
+
- **Content-Type**: Not defined
|
|
158
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
159
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Conekta::TaxLinesDataResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **amount** | **Integer** | The amount to be collected for tax in cents | |
|
|
8
|
+
| **description** | **String** | description or tax's name | |
|
|
9
|
+
| **metadata** | **Hash<String, Object>** | | [optional] |
|
|
10
|
+
| **id** | **String** | | |
|
|
11
|
+
| **object** | **String** | | [optional] |
|
|
12
|
+
| **parent_id** | **String** | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'conekta'
|
|
18
|
+
|
|
19
|
+
instance = Conekta::TaxLinesDataResponse.new(
|
|
20
|
+
amount: 100,
|
|
21
|
+
description: testing,
|
|
22
|
+
metadata: {key=value},
|
|
23
|
+
id: tax_lin_2tQ8dC5mg1UADmVPo,
|
|
24
|
+
object: tax_line,
|
|
25
|
+
parent_id: ord_2tPAmKCEJqh8RE6nY
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
data/docs/TaxesApi.md
CHANGED
|
@@ -11,7 +11,7 @@ All URIs are relative to *https://api.conekta.io*
|
|
|
11
11
|
|
|
12
12
|
## orders_create_taxes
|
|
13
13
|
|
|
14
|
-
> <
|
|
14
|
+
> <OrderTaxResponse> orders_create_taxes(id, order_tax_request, opts)
|
|
15
15
|
|
|
16
16
|
Create Tax
|
|
17
17
|
|
|
@@ -49,7 +49,7 @@ end
|
|
|
49
49
|
|
|
50
50
|
This returns an Array which contains the response data, status code and headers.
|
|
51
51
|
|
|
52
|
-
> <Array(<
|
|
52
|
+
> <Array(<OrderTaxResponse>, Integer, Hash)> orders_create_taxes_with_http_info(id, order_tax_request, opts)
|
|
53
53
|
|
|
54
54
|
```ruby
|
|
55
55
|
begin
|
|
@@ -57,7 +57,7 @@ begin
|
|
|
57
57
|
data, status_code, headers = api_instance.orders_create_taxes_with_http_info(id, order_tax_request, opts)
|
|
58
58
|
p status_code # => 2xx
|
|
59
59
|
p headers # => { ... }
|
|
60
|
-
p data # => <
|
|
60
|
+
p data # => <OrderTaxResponse>
|
|
61
61
|
rescue Conekta::ApiError => e
|
|
62
62
|
puts "Error when calling TaxesApi->orders_create_taxes_with_http_info: #{e}"
|
|
63
63
|
end
|
|
@@ -74,7 +74,7 @@ end
|
|
|
74
74
|
|
|
75
75
|
### Return type
|
|
76
76
|
|
|
77
|
-
[**
|
|
77
|
+
[**OrderTaxResponse**](OrderTaxResponse.md)
|
|
78
78
|
|
|
79
79
|
### Authorization
|
|
80
80
|
|
|
@@ -83,12 +83,12 @@ end
|
|
|
83
83
|
### HTTP request headers
|
|
84
84
|
|
|
85
85
|
- **Content-Type**: application/json
|
|
86
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
86
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
## orders_delete_taxes
|
|
90
90
|
|
|
91
|
-
> <
|
|
91
|
+
> <OrderTaxResponse> orders_delete_taxes(id, tax_id, opts)
|
|
92
92
|
|
|
93
93
|
Delete Tax
|
|
94
94
|
|
|
@@ -126,7 +126,7 @@ end
|
|
|
126
126
|
|
|
127
127
|
This returns an Array which contains the response data, status code and headers.
|
|
128
128
|
|
|
129
|
-
> <Array(<
|
|
129
|
+
> <Array(<OrderTaxResponse>, Integer, Hash)> orders_delete_taxes_with_http_info(id, tax_id, opts)
|
|
130
130
|
|
|
131
131
|
```ruby
|
|
132
132
|
begin
|
|
@@ -134,7 +134,7 @@ begin
|
|
|
134
134
|
data, status_code, headers = api_instance.orders_delete_taxes_with_http_info(id, tax_id, opts)
|
|
135
135
|
p status_code # => 2xx
|
|
136
136
|
p headers # => { ... }
|
|
137
|
-
p data # => <
|
|
137
|
+
p data # => <OrderTaxResponse>
|
|
138
138
|
rescue Conekta::ApiError => e
|
|
139
139
|
puts "Error when calling TaxesApi->orders_delete_taxes_with_http_info: #{e}"
|
|
140
140
|
end
|
|
@@ -151,7 +151,7 @@ end
|
|
|
151
151
|
|
|
152
152
|
### Return type
|
|
153
153
|
|
|
154
|
-
[**
|
|
154
|
+
[**OrderTaxResponse**](OrderTaxResponse.md)
|
|
155
155
|
|
|
156
156
|
### Authorization
|
|
157
157
|
|
|
@@ -160,12 +160,12 @@ end
|
|
|
160
160
|
### HTTP request headers
|
|
161
161
|
|
|
162
162
|
- **Content-Type**: Not defined
|
|
163
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
163
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
## orders_update_taxes
|
|
167
167
|
|
|
168
|
-
> <
|
|
168
|
+
> <OrderTaxResponse> orders_update_taxes(id, tax_id, orders_update_taxes_request, opts)
|
|
169
169
|
|
|
170
170
|
Update Tax
|
|
171
171
|
|
|
@@ -185,7 +185,7 @@ end
|
|
|
185
185
|
api_instance = Conekta::TaxesApi.new
|
|
186
186
|
id = '6307a60c41de27127515a575' # String | Identifier of the resource
|
|
187
187
|
tax_id = 'tax_lin_2tQ974hSHcsdeSZHG' # String | identifier
|
|
188
|
-
|
|
188
|
+
orders_update_taxes_request = Conekta::OrdersUpdateTaxesRequest.new # OrdersUpdateTaxesRequest | requested field for taxes
|
|
189
189
|
opts = {
|
|
190
190
|
accept_language: 'es', # String | Use for knowing which language to use
|
|
191
191
|
x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
|
|
@@ -193,7 +193,7 @@ opts = {
|
|
|
193
193
|
|
|
194
194
|
begin
|
|
195
195
|
# Update Tax
|
|
196
|
-
result = api_instance.orders_update_taxes(id, tax_id,
|
|
196
|
+
result = api_instance.orders_update_taxes(id, tax_id, orders_update_taxes_request, opts)
|
|
197
197
|
p result
|
|
198
198
|
rescue Conekta::ApiError => e
|
|
199
199
|
puts "Error when calling TaxesApi->orders_update_taxes: #{e}"
|
|
@@ -204,15 +204,15 @@ end
|
|
|
204
204
|
|
|
205
205
|
This returns an Array which contains the response data, status code and headers.
|
|
206
206
|
|
|
207
|
-
> <Array(<
|
|
207
|
+
> <Array(<OrderTaxResponse>, Integer, Hash)> orders_update_taxes_with_http_info(id, tax_id, orders_update_taxes_request, opts)
|
|
208
208
|
|
|
209
209
|
```ruby
|
|
210
210
|
begin
|
|
211
211
|
# Update Tax
|
|
212
|
-
data, status_code, headers = api_instance.orders_update_taxes_with_http_info(id, tax_id,
|
|
212
|
+
data, status_code, headers = api_instance.orders_update_taxes_with_http_info(id, tax_id, orders_update_taxes_request, opts)
|
|
213
213
|
p status_code # => 2xx
|
|
214
214
|
p headers # => { ... }
|
|
215
|
-
p data # => <
|
|
215
|
+
p data # => <OrderTaxResponse>
|
|
216
216
|
rescue Conekta::ApiError => e
|
|
217
217
|
puts "Error when calling TaxesApi->orders_update_taxes_with_http_info: #{e}"
|
|
218
218
|
end
|
|
@@ -224,13 +224,13 @@ end
|
|
|
224
224
|
| ---- | ---- | ----------- | ----- |
|
|
225
225
|
| **id** | **String** | Identifier of the resource | |
|
|
226
226
|
| **tax_id** | **String** | identifier | |
|
|
227
|
-
| **
|
|
227
|
+
| **orders_update_taxes_request** | [**OrdersUpdateTaxesRequest**](OrdersUpdateTaxesRequest.md) | requested field for taxes | |
|
|
228
228
|
| **accept_language** | **String** | Use for knowing which language to use | [optional][default to 'es'] |
|
|
229
229
|
| **x_child_company_id** | **String** | In the case of a holding company, the company id of the child company to which will process the request. | [optional] |
|
|
230
230
|
|
|
231
231
|
### Return type
|
|
232
232
|
|
|
233
|
-
[**
|
|
233
|
+
[**OrderTaxResponse**](OrderTaxResponse.md)
|
|
234
234
|
|
|
235
235
|
### Authorization
|
|
236
236
|
|
|
@@ -239,5 +239,5 @@ end
|
|
|
239
239
|
### HTTP request headers
|
|
240
240
|
|
|
241
241
|
- **Content-Type**: application/json
|
|
242
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
242
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
243
243
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Conekta::TokenRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **card** | [**TokenRequestCard**](TokenRequestCard.md) | | [optional] |
|
|
8
|
+
| **checkout** | [**TokenRequestCheckout**](TokenRequestCheckout.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'conekta'
|
|
14
|
+
|
|
15
|
+
instance = Conekta::TokenRequest.new(
|
|
16
|
+
card: null,
|
|
17
|
+
checkout: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Conekta::
|
|
1
|
+
# Conekta::TokenRequestCard
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
```ruby
|
|
17
17
|
require 'conekta'
|
|
18
18
|
|
|
19
|
-
instance = Conekta::
|
|
19
|
+
instance = Conekta::TokenRequestCard.new(
|
|
20
20
|
cvc: 123,
|
|
21
21
|
device_fingerprint: zptcxk4p6w1ijwz85snf1l3bqe5g09ie,
|
|
22
22
|
exp_month: 12,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Conekta::
|
|
1
|
+
# Conekta::TokenRequestCheckout
|
|
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::TokenRequestCheckout.new(
|
|
15
15
|
returns_control_on: Token
|
|
16
16
|
)
|
|
17
17
|
```
|
|
@@ -43,7 +43,7 @@ instance = Conekta::TokenResponseCheckout.new(
|
|
|
43
43
|
force_3ds_flow: false,
|
|
44
44
|
id: 524f9d2f-8c2e-4e64-a33d-6006711a91bd,
|
|
45
45
|
livemode: true,
|
|
46
|
-
metadata: {
|
|
46
|
+
metadata: {key=value},
|
|
47
47
|
monthly_installments_enabled: false,
|
|
48
48
|
monthly_installments_options: null,
|
|
49
49
|
name: tok-2toNoPZpJgRU4PvgZ,
|
data/docs/TokensApi.md
CHANGED
|
@@ -9,11 +9,11 @@ All URIs are relative to *https://api.conekta.io*
|
|
|
9
9
|
|
|
10
10
|
## create_token
|
|
11
11
|
|
|
12
|
-
> <TokenResponse> create_token(
|
|
12
|
+
> <TokenResponse> create_token(token_request, opts)
|
|
13
13
|
|
|
14
14
|
Create Token
|
|
15
15
|
|
|
16
|
-
Generate a payment token, to associate it with a card
|
|
16
|
+
Generate a payment token, to associate it with a card, Endpoint could be use directly only for PCI compliance account
|
|
17
17
|
|
|
18
18
|
### Examples
|
|
19
19
|
|
|
@@ -27,14 +27,14 @@ Conekta.configure do |config|
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
api_instance = Conekta::TokensApi.new
|
|
30
|
-
|
|
30
|
+
token_request = Conekta::TokenRequest.new # TokenRequest | requested field for token
|
|
31
31
|
opts = {
|
|
32
32
|
accept_language: 'es' # String | Use for knowing which language to use
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
begin
|
|
36
36
|
# Create Token
|
|
37
|
-
result = api_instance.create_token(
|
|
37
|
+
result = api_instance.create_token(token_request, opts)
|
|
38
38
|
p result
|
|
39
39
|
rescue Conekta::ApiError => e
|
|
40
40
|
puts "Error when calling TokensApi->create_token: #{e}"
|
|
@@ -45,12 +45,12 @@ end
|
|
|
45
45
|
|
|
46
46
|
This returns an Array which contains the response data, status code and headers.
|
|
47
47
|
|
|
48
|
-
> <Array(<TokenResponse>, Integer, Hash)> create_token_with_http_info(
|
|
48
|
+
> <Array(<TokenResponse>, Integer, Hash)> create_token_with_http_info(token_request, opts)
|
|
49
49
|
|
|
50
50
|
```ruby
|
|
51
51
|
begin
|
|
52
52
|
# Create Token
|
|
53
|
-
data, status_code, headers = api_instance.create_token_with_http_info(
|
|
53
|
+
data, status_code, headers = api_instance.create_token_with_http_info(token_request, opts)
|
|
54
54
|
p status_code # => 2xx
|
|
55
55
|
p headers # => { ... }
|
|
56
56
|
p data # => <TokenResponse>
|
|
@@ -63,7 +63,7 @@ end
|
|
|
63
63
|
|
|
64
64
|
| Name | Type | Description | Notes |
|
|
65
65
|
| ---- | ---- | ----------- | ----- |
|
|
66
|
-
| **
|
|
66
|
+
| **token_request** | [**TokenRequest**](TokenRequest.md) | requested field for token | |
|
|
67
67
|
| **accept_language** | **String** | Use for knowing which language to use | [optional][default to 'es'] |
|
|
68
68
|
|
|
69
69
|
### Return type
|
|
@@ -77,5 +77,5 @@ end
|
|
|
77
77
|
### HTTP request headers
|
|
78
78
|
|
|
79
79
|
- **Content-Type**: application/json
|
|
80
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
80
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
81
81
|
|
data/docs/TransactionsApi.md
CHANGED
|
@@ -80,7 +80,7 @@ end
|
|
|
80
80
|
### HTTP request headers
|
|
81
81
|
|
|
82
82
|
- **Content-Type**: Not defined
|
|
83
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
83
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
## get_transactions
|
|
@@ -167,5 +167,5 @@ end
|
|
|
167
167
|
### HTTP request headers
|
|
168
168
|
|
|
169
169
|
- **Content-Type**: Not defined
|
|
170
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
170
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
171
171
|
|
data/docs/TransfersApi.md
CHANGED
|
@@ -80,7 +80,7 @@ end
|
|
|
80
80
|
### HTTP request headers
|
|
81
81
|
|
|
82
82
|
- **Content-Type**: Not defined
|
|
83
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
83
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
## get_transfers
|
|
@@ -161,5 +161,5 @@ end
|
|
|
161
161
|
### HTTP request headers
|
|
162
162
|
|
|
163
163
|
- **Content-Type**: Not defined
|
|
164
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
164
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
165
165
|
|
data/docs/UpdateCustomer.md
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
| **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] |
|
|
15
15
|
| **corporate** | **Boolean** | It is a value that allows identifying if the email is corporate or not. | [optional][default to false] |
|
|
16
16
|
| **custom_reference** | **String** | It is an undefined value. | [optional] |
|
|
17
|
-
| **fiscal_entities** | [**Array<
|
|
17
|
+
| **fiscal_entities** | [**Array<FiscalEntityRequest>**](FiscalEntityRequest.md) | | [optional] |
|
|
18
18
|
| **metadata** | **Hash<String, Object>** | | [optional] |
|
|
19
19
|
| **national_id** | **String** | It is a parameter that allows to identify the national identification number of the client. | [optional] |
|
|
20
20
|
| **payment_sources** | [**Array<CustomerPaymentMethodsRequest>**](CustomerPaymentMethodsRequest.md) | Contains details of the payment methods that the customer has active or has used in Conekta | [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
|
|
@@ -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] |
|
|
@@ -17,7 +17,7 @@ Conekta::UpdateCustomerPaymentMethodsResponse.openapi_one_of
|
|
|
17
17
|
# :'PaymentMethodCardResponse',
|
|
18
18
|
# :'PaymentMethodCashRecurrentResponse',
|
|
19
19
|
# :'PaymentMethodCashResponse',
|
|
20
|
-
# :'
|
|
20
|
+
# :'PaymentMethodSpeiRecurrentResponse'
|
|
21
21
|
# ]
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -49,7 +49,7 @@ Conekta::UpdateCustomerPaymentMethodsResponse.openapi_discriminator_mapping
|
|
|
49
49
|
# :'card' => :'PaymentMethodCardResponse',
|
|
50
50
|
# :'cash' => :'PaymentMethodCashResponse',
|
|
51
51
|
# :'cash_recurrent' => :'PaymentMethodCashRecurrentResponse',
|
|
52
|
-
# :'spei_recurrent' => :'
|
|
52
|
+
# :'spei_recurrent' => :'PaymentMethodSpeiRecurrentResponse'
|
|
53
53
|
# }
|
|
54
54
|
```
|
|
55
55
|
|
|
@@ -80,6 +80,6 @@ Conekta::UpdateCustomerPaymentMethodsResponse.build(data_that_doesnt_match)
|
|
|
80
80
|
- `PaymentMethodCardResponse`
|
|
81
81
|
- `PaymentMethodCashRecurrentResponse`
|
|
82
82
|
- `PaymentMethodCashResponse`
|
|
83
|
-
- `
|
|
83
|
+
- `PaymentMethodSpeiRecurrentResponse`
|
|
84
84
|
- `nil` (if no type matches)
|
|
85
85
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Conekta::
|
|
1
|
+
# Conekta::UpdateFiscalEntityRequest
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **address** | [**
|
|
7
|
+
| **address** | [**FiscalEntityRequestAddress**](FiscalEntityRequestAddress.md) | | [optional] |
|
|
8
8
|
| **tax_id** | **String** | | [optional] |
|
|
9
9
|
| **email** | **String** | | [optional] |
|
|
10
10
|
| **phone** | **String** | | [optional] |
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
```ruby
|
|
17
17
|
require 'conekta'
|
|
18
18
|
|
|
19
|
-
instance = Conekta::
|
|
19
|
+
instance = Conekta::UpdateFiscalEntityRequest.new(
|
|
20
20
|
address: null,
|
|
21
21
|
tax_id: null,
|
|
22
22
|
email: null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Conekta::
|
|
1
|
+
# Conekta::UpdatePaymentMethodsCard
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
```ruby
|
|
13
13
|
require 'conekta'
|
|
14
14
|
|
|
15
|
-
instance = Conekta::
|
|
15
|
+
instance = Conekta::UpdatePaymentMethodsCard.new(
|
|
16
16
|
name: Payment recurrent,
|
|
17
17
|
expires_at: 1760457350
|
|
18
18
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Conekta::
|
|
1
|
+
# Conekta::UpdatePlan
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'conekta'
|
|
16
16
|
|
|
17
|
-
instance = Conekta::
|
|
17
|
+
instance = Conekta::UpdatePlan.new(
|
|
18
18
|
amount: 10000,
|
|
19
19
|
currency: MXN,
|
|
20
20
|
expiry_count: 12,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Conekta::
|
|
1
|
+
# Conekta::UpdateWebhook
|
|
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::UpdateWebhook.new(
|
|
17
17
|
url: https://webhook.site/89277eaa-a8e4-4306-8dc5-f55c80703dc8,
|
|
18
18
|
subscribed_events: customer.created,
|
|
19
19
|
active: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Conekta::
|
|
1
|
+
# Conekta::UpdatesASubscription
|
|
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::UpdatesASubscription.new(
|
|
17
17
|
plan_id: f84gdgf5g48r15fd21g8w424fd1,
|
|
18
18
|
card_id: src_2qUCNd5AyQqfPMBuV,
|
|
19
19
|
trial_end: 1484040996
|
data/docs/WebhookKeysApi.md
CHANGED
|
@@ -81,7 +81,7 @@ end
|
|
|
81
81
|
### HTTP request headers
|
|
82
82
|
|
|
83
83
|
- **Content-Type**: application/json
|
|
84
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
84
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
## delete_webhook_key
|
|
@@ -152,7 +152,7 @@ end
|
|
|
152
152
|
### HTTP request headers
|
|
153
153
|
|
|
154
154
|
- **Content-Type**: Not defined
|
|
155
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
155
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
## get_webhook_key
|
|
@@ -225,7 +225,7 @@ end
|
|
|
225
225
|
### HTTP request headers
|
|
226
226
|
|
|
227
227
|
- **Content-Type**: Not defined
|
|
228
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
228
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
229
229
|
|
|
230
230
|
|
|
231
231
|
## get_webhook_keys
|
|
@@ -306,7 +306,7 @@ end
|
|
|
306
306
|
### HTTP request headers
|
|
307
307
|
|
|
308
308
|
- **Content-Type**: Not defined
|
|
309
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
309
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
310
310
|
|
|
311
311
|
|
|
312
312
|
## update_webhook_key
|
|
@@ -381,5 +381,5 @@ end
|
|
|
381
381
|
### HTTP request headers
|
|
382
382
|
|
|
383
383
|
- **Content-Type**: application/json
|
|
384
|
-
- **Accept**: application/vnd.conekta-v2.
|
|
384
|
+
- **Accept**: application/vnd.conekta-v2.3.0+json
|
|
385
385
|
|