conekta 6.0.1 → 6.0.3
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/CHANGELOG.md +6 -0
- data/Makefile +3 -2
- data/README.md +17 -48
- data/VERSION +1 -1
- data/conekta.gemspec +2 -1
- data/config-ruby.json +1 -1
- data/docs/ApiKeyCreateResponse.md +3 -3
- data/docs/CheckoutRequest.md +2 -0
- data/docs/CreateCustomerFiscalEntitiesResponse.md +1 -1
- data/docs/Customer.md +1 -1
- data/docs/CustomerFiscalEntitiesDataResponse.md +1 -1
- data/docs/CustomerFiscalEntitiesRequest.md +1 -1
- data/docs/CustomerResponse.md +1 -1
- data/docs/CustomerShippingContacts.md +1 -1
- data/docs/CustomerShippingContactsDataResponse.md +1 -1
- data/docs/CustomerShippingContactsResponse.md +1 -1
- data/docs/CustomerUpdateFiscalEntitiesRequest.md +1 -1
- data/docs/CustomerUpdateShippingContacts.md +1 -1
- data/docs/CustomersApi.md +2 -2
- data/docs/CustomersResponse.md +3 -3
- data/docs/EventTypes.md +15 -0
- data/docs/OrderFiscalEntityRequest.md +1 -1
- data/docs/OrderFiscalEntityResponse.md +1 -1
- data/docs/OrderResponseCheckout.md +2 -0
- data/docs/OrderResponseCustomerInfo.md +2 -2
- data/docs/OrderResponseShippingContact.md +7 -7
- data/docs/OrderUpdateFiscalEntityRequest.md +1 -1
- data/docs/OrdersApi.md +15 -1
- data/docs/Payout.md +18 -0
- data/docs/PayoutMethod.md +18 -0
- data/docs/PayoutOrder.md +30 -0
- data/docs/PayoutOrderPayoutsItem.md +32 -0
- data/docs/PayoutOrderResponse.md +44 -0
- data/docs/PayoutOrderResponseCustomerInfo.md +30 -0
- data/docs/PayoutOrdersApi.md +235 -0
- data/docs/PayoutOrdersResponse.md +26 -0
- data/docs/Product.md +1 -1
- data/docs/ProductDataResponse.md +1 -1
- data/docs/ProductOrderResponse.md +1 -1
- data/docs/UpdateCustomer.md +1 -1
- data/docs/UpdateCustomerFiscalEntitiesResponse.md +1 -1
- data/docs/WebhooksApi.md +2 -0
- data/lib/conekta/api/antifraud_api.rb +1 -1
- data/lib/conekta/api/api_keys_api.rb +1 -1
- data/lib/conekta/api/balances_api.rb +1 -1
- data/lib/conekta/api/charges_api.rb +1 -1
- data/lib/conekta/api/companies_api.rb +1 -1
- data/lib/conekta/api/customers_api.rb +1 -1
- data/lib/conekta/api/discounts_api.rb +1 -1
- data/lib/conekta/api/events_api.rb +1 -1
- data/lib/conekta/api/logs_api.rb +1 -1
- data/lib/conekta/api/orders_api.rb +22 -1
- data/lib/conekta/api/payment_link_api.rb +1 -1
- data/lib/conekta/api/payment_methods_api.rb +1 -1
- data/lib/conekta/api/payout_orders_api.rb +251 -0
- data/lib/conekta/api/plans_api.rb +1 -1
- data/lib/conekta/api/products_api.rb +1 -1
- data/lib/conekta/api/shipping_contacts_api.rb +1 -1
- data/lib/conekta/api/shippings_api.rb +1 -1
- data/lib/conekta/api/subscriptions_api.rb +1 -1
- data/lib/conekta/api/taxes_api.rb +1 -1
- data/lib/conekta/api/tokens_api.rb +1 -1
- data/lib/conekta/api/transactions_api.rb +1 -1
- data/lib/conekta/api/transfers_api.rb +1 -1
- data/lib/conekta/api/webhook_keys_api.rb +1 -1
- data/lib/conekta/api/webhooks_api.rb +4 -1
- data/lib/conekta/api_client.rb +4 -4
- data/lib/conekta/api_error.rb +1 -1
- data/lib/conekta/configuration.rb +1 -1
- data/lib/conekta/models/api_key_create_response.rb +15 -16
- data/lib/conekta/models/api_key_request.rb +1 -1
- data/lib/conekta/models/api_key_response.rb +1 -1
- data/lib/conekta/models/api_key_response_on_delete.rb +1 -1
- data/lib/conekta/models/api_key_update_request.rb +1 -1
- data/lib/conekta/models/balance_common_field.rb +1 -1
- data/lib/conekta/models/balance_response.rb +1 -1
- data/lib/conekta/models/blacklist_rule_response.rb +1 -1
- data/lib/conekta/models/charge_order_response.rb +1 -1
- data/lib/conekta/models/charge_order_response_payment_method.rb +1 -1
- data/lib/conekta/models/charge_request.rb +1 -1
- data/lib/conekta/models/charge_request_payment_method.rb +1 -1
- data/lib/conekta/models/charge_response.rb +1 -1
- data/lib/conekta/models/charge_response_channel.rb +1 -1
- data/lib/conekta/models/charge_response_payment_method.rb +1 -1
- data/lib/conekta/models/charge_response_refunds.rb +1 -2
- data/lib/conekta/models/charge_response_refunds_data.rb +1 -1
- data/lib/conekta/models/charge_update_request.rb +1 -1
- data/lib/conekta/models/charges_data_response.rb +1 -1
- data/lib/conekta/models/checkout.rb +1 -1
- data/lib/conekta/models/checkout_order_template.rb +1 -1
- data/lib/conekta/models/checkout_order_template_customer_info.rb +2 -2
- data/lib/conekta/models/checkout_request.rb +12 -2
- data/lib/conekta/models/checkout_response.rb +1 -1
- data/lib/conekta/models/checkouts_response.rb +1 -2
- data/lib/conekta/models/company_fiscal_info_address_response.rb +1 -1
- data/lib/conekta/models/company_fiscal_info_response.rb +1 -1
- data/lib/conekta/models/company_payout_destination_response.rb +1 -1
- data/lib/conekta/models/company_response.rb +1 -1
- data/lib/conekta/models/create_customer_fiscal_entities_response.rb +2 -3
- data/lib/conekta/models/create_customer_payment_methods_request.rb +2 -2
- data/lib/conekta/models/create_customer_payment_methods_response.rb +1 -1
- data/lib/conekta/models/create_risk_rules_data.rb +1 -1
- data/lib/conekta/models/customer.rb +1 -1
- data/lib/conekta/models/customer_address.rb +1 -1
- data/lib/conekta/models/customer_antifraud_info.rb +1 -1
- data/lib/conekta/models/customer_antifraud_info_response.rb +1 -1
- data/lib/conekta/models/customer_fiscal_entities_data_response.rb +2 -3
- data/lib/conekta/models/customer_fiscal_entities_request.rb +2 -2
- data/lib/conekta/models/customer_fiscal_entities_response.rb +1 -2
- data/lib/conekta/models/customer_info.rb +1 -1
- data/lib/conekta/models/customer_info_just_customer_id.rb +1 -1
- data/lib/conekta/models/customer_info_just_customer_id_response.rb +1 -1
- data/lib/conekta/models/customer_payment_method_request.rb +1 -1
- data/lib/conekta/models/customer_payment_methods_data.rb +1 -1
- data/lib/conekta/models/customer_payment_methods_request.rb +2 -2
- data/lib/conekta/models/customer_payment_methods_response.rb +1 -2
- data/lib/conekta/models/customer_response.rb +1 -1
- data/lib/conekta/models/customer_response_shipping_contacts.rb +1 -2
- data/lib/conekta/models/customer_shipping_contacts.rb +1 -1
- data/lib/conekta/models/customer_shipping_contacts_address.rb +1 -1
- data/lib/conekta/models/customer_shipping_contacts_data_response.rb +2 -3
- data/lib/conekta/models/customer_shipping_contacts_response.rb +1 -1
- data/lib/conekta/models/customer_shipping_contacts_response_address.rb +1 -1
- data/lib/conekta/models/customer_update_fiscal_entities_request.rb +2 -2
- data/lib/conekta/models/customer_update_shipping_contacts.rb +1 -1
- data/lib/conekta/models/customers_response.rb +17 -18
- data/lib/conekta/models/delete_api_keys_response.rb +2 -3
- data/lib/conekta/models/deleted_blacklist_rule_response.rb +1 -1
- data/lib/conekta/models/deleted_whitelist_rule_response.rb +1 -1
- data/lib/conekta/models/details.rb +1 -1
- data/lib/conekta/models/details_error.rb +1 -1
- data/lib/conekta/models/discount_lines_data_response.rb +1 -1
- data/lib/conekta/models/discount_lines_response.rb +1 -2
- data/lib/conekta/models/email_checkout_request.rb +1 -1
- data/lib/conekta/models/error.rb +2 -3
- data/lib/conekta/models/event_response.rb +1 -1
- data/lib/conekta/models/event_types.rb +43 -0
- data/lib/conekta/models/events_resend_response.rb +1 -1
- data/lib/conekta/models/fiscal_entity_address.rb +1 -1
- data/lib/conekta/models/get_api_keys_response.rb +1 -2
- data/lib/conekta/models/get_charges_response.rb +1 -2
- data/lib/conekta/models/get_companies_response.rb +1 -2
- data/lib/conekta/models/get_customer_payment_method_data_response.rb +1 -1
- data/lib/conekta/models/get_events_response.rb +1 -2
- data/lib/conekta/models/get_order_discount_lines_response.rb +1 -2
- data/lib/conekta/models/get_orders_response.rb +1 -1
- data/lib/conekta/models/get_payment_method_response.rb +1 -2
- data/lib/conekta/models/get_plans_response.rb +1 -2
- data/lib/conekta/models/get_transactions_response.rb +1 -2
- data/lib/conekta/models/get_transfers_response.rb +1 -2
- data/lib/conekta/models/get_webhook_keys_response.rb +1 -2
- data/lib/conekta/models/get_webhooks_response.rb +1 -2
- data/lib/conekta/models/log_response.rb +1 -1
- data/lib/conekta/models/logs_response.rb +1 -1
- data/lib/conekta/models/logs_response_data.rb +1 -1
- data/lib/conekta/models/order_capture_request.rb +1 -1
- data/lib/conekta/models/order_customer_info_response.rb +1 -1
- data/lib/conekta/models/order_discount_lines_request.rb +1 -1
- data/lib/conekta/models/order_fiscal_entity_address_response.rb +2 -3
- data/lib/conekta/models/order_fiscal_entity_request.rb +1 -1
- data/lib/conekta/models/order_fiscal_entity_response.rb +1 -1
- data/lib/conekta/models/order_next_action_response.rb +1 -1
- data/lib/conekta/models/order_next_action_response_redirect_to_url.rb +1 -1
- data/lib/conekta/models/order_refund_request.rb +1 -1
- data/lib/conekta/models/order_request.rb +1 -1
- data/lib/conekta/models/order_request_customer_info.rb +2 -2
- data/lib/conekta/models/order_response.rb +1 -1
- data/lib/conekta/models/order_response_charges.rb +1 -2
- data/lib/conekta/models/order_response_checkout.rb +13 -2
- data/lib/conekta/models/order_response_customer_info.rb +12 -13
- data/lib/conekta/models/order_response_discount_lines.rb +1 -2
- data/lib/conekta/models/order_response_products.rb +1 -2
- data/lib/conekta/models/order_response_shipping_contact.rb +30 -31
- data/lib/conekta/models/order_tax_request.rb +1 -1
- data/lib/conekta/models/order_update_fiscal_entity_request.rb +1 -1
- data/lib/conekta/models/order_update_request.rb +1 -1
- data/lib/conekta/models/order_update_request_customer_info.rb +2 -2
- data/lib/conekta/models/orders_response.rb +1 -1
- data/lib/conekta/models/page.rb +1 -1
- data/lib/conekta/models/pagination.rb +1 -1
- data/lib/conekta/models/payment_method.rb +1 -1
- data/lib/conekta/models/payment_method_bank_transfer.rb +1 -2
- data/lib/conekta/models/payment_method_card.rb +1 -2
- data/lib/conekta/models/payment_method_card_request.rb +2 -3
- data/lib/conekta/models/payment_method_card_response.rb +1 -2
- data/lib/conekta/models/payment_method_cash.rb +1 -2
- data/lib/conekta/models/payment_method_cash_request.rb +2 -3
- data/lib/conekta/models/payment_method_cash_response.rb +1 -2
- data/lib/conekta/models/payment_method_response.rb +1 -1
- data/lib/conekta/models/payment_method_spei_recurrent.rb +2 -3
- data/lib/conekta/models/payment_method_spei_request.rb +2 -3
- data/lib/conekta/models/payout.rb +222 -0
- data/lib/conekta/models/payout_method.rb +223 -0
- data/lib/conekta/models/payout_order.rb +339 -0
- data/lib/conekta/models/payout_order_payouts_item.rb +320 -0
- data/lib/conekta/models/payout_order_response.rb +466 -0
- data/lib/conekta/models/payout_order_response_customer_info.rb +288 -0
- data/lib/conekta/models/payout_orders_response.rb +280 -0
- data/lib/conekta/models/plan_request.rb +1 -1
- data/lib/conekta/models/plan_response.rb +1 -1
- data/lib/conekta/models/plan_update_request.rb +1 -1
- data/lib/conekta/models/product.rb +2 -2
- data/lib/conekta/models/product_data_response.rb +3 -4
- data/lib/conekta/models/product_order_response.rb +3 -4
- data/lib/conekta/models/risk_rules_data.rb +1 -1
- data/lib/conekta/models/risk_rules_list.rb +2 -3
- data/lib/conekta/models/shipping_order_response.rb +1 -2
- data/lib/conekta/models/shipping_request.rb +1 -1
- data/lib/conekta/models/sms_checkout_request.rb +1 -1
- data/lib/conekta/models/subscription_events_response.rb +1 -2
- data/lib/conekta/models/subscription_request.rb +1 -1
- data/lib/conekta/models/subscription_response.rb +1 -1
- data/lib/conekta/models/subscription_update_request.rb +1 -1
- data/lib/conekta/models/token.rb +1 -1
- data/lib/conekta/models/token_card.rb +1 -1
- data/lib/conekta/models/token_checkout.rb +1 -1
- data/lib/conekta/models/token_response.rb +1 -1
- data/lib/conekta/models/token_response_checkout.rb +1 -1
- data/lib/conekta/models/transaction_response.rb +1 -1
- data/lib/conekta/models/transfer_destination_response.rb +1 -1
- data/lib/conekta/models/transfer_method_response.rb +1 -1
- data/lib/conekta/models/transfer_response.rb +1 -1
- data/lib/conekta/models/transfers_response.rb +1 -1
- data/lib/conekta/models/update_customer.rb +1 -1
- data/lib/conekta/models/update_customer_antifraud_info.rb +1 -1
- data/lib/conekta/models/update_customer_fiscal_entities_response.rb +3 -4
- data/lib/conekta/models/update_customer_payment_methods_response.rb +1 -1
- data/lib/conekta/models/update_order_discount_lines_request.rb +1 -1
- data/lib/conekta/models/update_order_tax_request.rb +1 -1
- data/lib/conekta/models/update_order_tax_response.rb +2 -3
- data/lib/conekta/models/update_payment_methods.rb +1 -1
- data/lib/conekta/models/update_product.rb +1 -1
- data/lib/conekta/models/webhook_key_create_response.rb +1 -1
- data/lib/conekta/models/webhook_key_delete_response.rb +1 -1
- data/lib/conekta/models/webhook_key_request.rb +1 -1
- data/lib/conekta/models/webhook_key_response.rb +1 -1
- data/lib/conekta/models/webhook_key_update_request.rb +1 -1
- data/lib/conekta/models/webhook_log.rb +1 -1
- data/lib/conekta/models/webhook_request.rb +1 -1
- data/lib/conekta/models/webhook_response.rb +1 -1
- data/lib/conekta/models/webhook_update_request.rb +1 -1
- data/lib/conekta/models/whitelistlist_rule_response.rb +1 -1
- data/lib/conekta/version.rb +2 -2
- data/lib/conekta.rb +10 -44
- data/spec/api/customers_api_spec.rb +2 -2
- data/spec/api/payout_orders_api_spec.rb +77 -0
- data/spec/spec_helper.rb +1 -1
- data/templates/ruby/api_client.mustache +1 -0
- metadata +54 -63
- data/docs/ApiKeyCreateResponseAllOf.md +0 -18
- data/docs/ChargeDataPaymentMethodBankTransferResponse.md +0 -48
- data/docs/ChargeDataPaymentMethodCardResponse.md +0 -38
- data/docs/ChargeDataPaymentMethodCashResponse.md +0 -32
- data/docs/ChargeResponseRefundsAllOf.md +0 -18
- data/docs/CheckoutsResponseAllOf.md +0 -18
- data/docs/CreateCustomerFiscalEntitiesResponseAllOf.md +0 -26
- data/docs/CustomerFiscalEntitiesRequestAddress.md +0 -32
- data/docs/CustomerFiscalEntitiesResponseAllOf.md +0 -18
- data/docs/CustomerPaymentMethods.md +0 -18
- data/docs/CustomerResponseShippingContactsAllOf.md +0 -18
- data/docs/CustomerShippingContactsDataResponseAllOf.md +0 -22
- data/docs/CustomersResponseAllOf.md +0 -18
- data/docs/DeleteApiKeysResponseAllOf.md +0 -18
- data/docs/DiscountLinesResponseAllOf.md +0 -22
- data/docs/ErrorAllOf.md +0 -22
- data/docs/GetApiKeysResponseAllOf.md +0 -18
- data/docs/GetChargesResponseAllOf.md +0 -18
- data/docs/GetCompaniesResponseAllOf.md +0 -18
- data/docs/GetEventsResponseAllOf.md +0 -18
- data/docs/GetOrderDiscountLinesResponseAllOf.md +0 -18
- data/docs/GetPaymentMethodResponseAllOf.md +0 -18
- data/docs/GetPlansResponseAllOf.md +0 -18
- data/docs/GetTransactionsResponseAllOf.md +0 -18
- data/docs/GetTransfersResponseAllOf.md +0 -18
- data/docs/GetWebhookKeysResponseAllOf.md +0 -18
- data/docs/GetWebhooksResponseAllOf.md +0 -18
- data/docs/OrderFiscalEntityAddressResponseAllOf.md +0 -18
- data/docs/OrderResponseChargesAllOf.md +0 -18
- data/docs/OrderResponseCustomerInfoAllOf.md +0 -18
- data/docs/OrderResponseDiscountLinesAllOf.md +0 -18
- data/docs/OrderResponseProductsAllOf.md +0 -18
- data/docs/OrderResponseShippingContactAllOf.md +0 -22
- data/docs/PaymentMethodCardRequestAllOf.md +0 -18
- data/docs/PaymentMethodCardResponseAllOf.md +0 -36
- data/docs/PaymentMethodCashRequestAllOf.md +0 -18
- data/docs/PaymentMethodCashResponseAllOf.md +0 -26
- data/docs/PaymentMethodSpeiRecurrentAllOf.md +0 -20
- data/docs/ProductDataResponseAllOf.md +0 -22
- data/docs/ProductOrderResponseAllOf.md +0 -22
- data/docs/RiskRules.md +0 -18
- data/docs/UpdateCustomerFiscalEntitiesResponseAllOf.md +0 -26
- data/docs/UpdateOrderTaxResponseAllOf.md +0 -22
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: engineering@conekta.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -252,6 +252,13 @@ module Conekta
|
|
252
252
|
# @option opts [String] :search General order search, e.g. by mail, reference etc.
|
253
253
|
# @option opts [String] :_next next page
|
254
254
|
# @option opts [String] :previous previous page
|
255
|
+
# @option opts [String] :payment_status Filters by order status
|
256
|
+
# @option opts [String] :last_payment_info_status Filters by last payment info status
|
257
|
+
# @option opts [Integer] :created_at created equal to
|
258
|
+
# @option opts [Integer] :created_at_gte created at greater than or equal to
|
259
|
+
# @option opts [Integer] :created_at_lte created at less than or equal to
|
260
|
+
# @option opts [Integer] :updated_at_gte updated at greater than or equal to
|
261
|
+
# @option opts [Integer] :updated_at_lte updated at less than or equal to
|
255
262
|
# @return [GetOrdersResponse]
|
256
263
|
def get_orders(opts = {})
|
257
264
|
data, _status_code, _headers = get_orders_with_http_info(opts)
|
@@ -267,6 +274,13 @@ module Conekta
|
|
267
274
|
# @option opts [String] :search General order search, e.g. by mail, reference etc.
|
268
275
|
# @option opts [String] :_next next page
|
269
276
|
# @option opts [String] :previous previous page
|
277
|
+
# @option opts [String] :payment_status Filters by order status
|
278
|
+
# @option opts [String] :last_payment_info_status Filters by last payment info status
|
279
|
+
# @option opts [Integer] :created_at created equal to
|
280
|
+
# @option opts [Integer] :created_at_gte created at greater than or equal to
|
281
|
+
# @option opts [Integer] :created_at_lte created at less than or equal to
|
282
|
+
# @option opts [Integer] :updated_at_gte updated at greater than or equal to
|
283
|
+
# @option opts [Integer] :updated_at_lte updated at less than or equal to
|
270
284
|
# @return [Array<(GetOrdersResponse, Integer, Hash)>] GetOrdersResponse data, response status code and response headers
|
271
285
|
def get_orders_with_http_info(opts = {})
|
272
286
|
if @api_client.config.debugging
|
@@ -293,6 +307,13 @@ module Conekta
|
|
293
307
|
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
294
308
|
query_params[:'next'] = opts[:'_next'] if !opts[:'_next'].nil?
|
295
309
|
query_params[:'previous'] = opts[:'previous'] if !opts[:'previous'].nil?
|
310
|
+
query_params[:'payment_status'] = opts[:'payment_status'] if !opts[:'payment_status'].nil?
|
311
|
+
query_params[:'last_payment_info.status'] = opts[:'last_payment_info_status'] if !opts[:'last_payment_info_status'].nil?
|
312
|
+
query_params[:'created_at'] = opts[:'created_at'] if !opts[:'created_at'].nil?
|
313
|
+
query_params[:'created_at.gte'] = opts[:'created_at_gte'] if !opts[:'created_at_gte'].nil?
|
314
|
+
query_params[:'created_at.lte'] = opts[:'created_at_lte'] if !opts[:'created_at_lte'].nil?
|
315
|
+
query_params[:'updated_at.gte'] = opts[:'updated_at_gte'] if !opts[:'updated_at_gte'].nil?
|
316
|
+
query_params[:'updated_at.lte'] = opts[:'updated_at_lte'] if !opts[:'updated_at_lte'].nil?
|
296
317
|
|
297
318
|
# header parameters
|
298
319
|
header_params = opts[:header_params] || {}
|
@@ -0,0 +1,251 @@
|
|
1
|
+
=begin
|
2
|
+
#Conekta API
|
3
|
+
|
4
|
+
#Conekta sdk
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
|
+
Contact: engineering@conekta.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.5.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Conekta
|
16
|
+
class PayoutOrdersApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create payout order
|
23
|
+
# Create a new payout order.
|
24
|
+
# @param payout_order [PayoutOrder] requested field for payout order
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :accept_language Use for knowing which language to use (default to 'es')
|
27
|
+
# @return [PayoutOrderResponse]
|
28
|
+
def create_payout_order(payout_order, opts = {})
|
29
|
+
data, _status_code, _headers = create_payout_order_with_http_info(payout_order, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Create payout order
|
34
|
+
# Create a new payout order.
|
35
|
+
# @param payout_order [PayoutOrder] requested field for payout order
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :accept_language Use for knowing which language to use (default to 'es')
|
38
|
+
# @return [Array<(PayoutOrderResponse, Integer, Hash)>] PayoutOrderResponse data, response status code and response headers
|
39
|
+
def create_payout_order_with_http_info(payout_order, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: PayoutOrdersApi.create_payout_order ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'payout_order' is set
|
44
|
+
if @api_client.config.client_side_validation && payout_order.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'payout_order' when calling PayoutOrdersApi.create_payout_order"
|
46
|
+
end
|
47
|
+
allowable_values = ["es", "en"]
|
48
|
+
if @api_client.config.client_side_validation && opts[:'accept_language'] && !allowable_values.include?(opts[:'accept_language'])
|
49
|
+
fail ArgumentError, "invalid value for \"accept_language\", must be one of #{allowable_values}"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/payout_orders'
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.conekta-v2.1.0+json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
63
|
+
if !content_type.nil?
|
64
|
+
header_params['Content-Type'] = content_type
|
65
|
+
end
|
66
|
+
header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
|
67
|
+
|
68
|
+
# form parameters
|
69
|
+
form_params = opts[:form_params] || {}
|
70
|
+
|
71
|
+
# http body (model)
|
72
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(payout_order)
|
73
|
+
|
74
|
+
# return_type
|
75
|
+
return_type = opts[:debug_return_type] || 'PayoutOrderResponse'
|
76
|
+
|
77
|
+
# auth_names
|
78
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
79
|
+
|
80
|
+
new_options = opts.merge(
|
81
|
+
:operation => :"PayoutOrdersApi.create_payout_order",
|
82
|
+
:header_params => header_params,
|
83
|
+
:query_params => query_params,
|
84
|
+
:form_params => form_params,
|
85
|
+
:body => post_body,
|
86
|
+
:auth_names => auth_names,
|
87
|
+
:return_type => return_type
|
88
|
+
)
|
89
|
+
|
90
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
91
|
+
if @api_client.config.debugging
|
92
|
+
@api_client.config.logger.debug "API called: PayoutOrdersApi#create_payout_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
93
|
+
end
|
94
|
+
return data, status_code, headers
|
95
|
+
end
|
96
|
+
|
97
|
+
# Get Payout Order
|
98
|
+
# Gets a payout Order resource that corresponds to a payout order ID.
|
99
|
+
# @param id [String] Identifier of the resource
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @option opts [String] :accept_language Use for knowing which language to use (default to 'es')
|
102
|
+
# @return [PayoutOrderResponse]
|
103
|
+
def get_payout_order_by_id(id, opts = {})
|
104
|
+
data, _status_code, _headers = get_payout_order_by_id_with_http_info(id, opts)
|
105
|
+
data
|
106
|
+
end
|
107
|
+
|
108
|
+
# Get Payout Order
|
109
|
+
# Gets a payout Order resource that corresponds to a payout order ID.
|
110
|
+
# @param id [String] Identifier of the resource
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @option opts [String] :accept_language Use for knowing which language to use (default to 'es')
|
113
|
+
# @return [Array<(PayoutOrderResponse, Integer, Hash)>] PayoutOrderResponse data, response status code and response headers
|
114
|
+
def get_payout_order_by_id_with_http_info(id, opts = {})
|
115
|
+
if @api_client.config.debugging
|
116
|
+
@api_client.config.logger.debug 'Calling API: PayoutOrdersApi.get_payout_order_by_id ...'
|
117
|
+
end
|
118
|
+
# verify the required parameter 'id' is set
|
119
|
+
if @api_client.config.client_side_validation && id.nil?
|
120
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PayoutOrdersApi.get_payout_order_by_id"
|
121
|
+
end
|
122
|
+
allowable_values = ["es", "en"]
|
123
|
+
if @api_client.config.client_side_validation && opts[:'accept_language'] && !allowable_values.include?(opts[:'accept_language'])
|
124
|
+
fail ArgumentError, "invalid value for \"accept_language\", must be one of #{allowable_values}"
|
125
|
+
end
|
126
|
+
# resource path
|
127
|
+
local_var_path = '/payout_orders/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
128
|
+
|
129
|
+
# query parameters
|
130
|
+
query_params = opts[:query_params] || {}
|
131
|
+
|
132
|
+
# header parameters
|
133
|
+
header_params = opts[:header_params] || {}
|
134
|
+
# HTTP header 'Accept' (if needed)
|
135
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.conekta-v2.1.0+json'])
|
136
|
+
header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
|
137
|
+
|
138
|
+
# form parameters
|
139
|
+
form_params = opts[:form_params] || {}
|
140
|
+
|
141
|
+
# http body (model)
|
142
|
+
post_body = opts[:debug_body]
|
143
|
+
|
144
|
+
# return_type
|
145
|
+
return_type = opts[:debug_return_type] || 'PayoutOrderResponse'
|
146
|
+
|
147
|
+
# auth_names
|
148
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
149
|
+
|
150
|
+
new_options = opts.merge(
|
151
|
+
:operation => :"PayoutOrdersApi.get_payout_order_by_id",
|
152
|
+
:header_params => header_params,
|
153
|
+
:query_params => query_params,
|
154
|
+
:form_params => form_params,
|
155
|
+
:body => post_body,
|
156
|
+
:auth_names => auth_names,
|
157
|
+
:return_type => return_type
|
158
|
+
)
|
159
|
+
|
160
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
161
|
+
if @api_client.config.debugging
|
162
|
+
@api_client.config.logger.debug "API called: PayoutOrdersApi#get_payout_order_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
163
|
+
end
|
164
|
+
return data, status_code, headers
|
165
|
+
end
|
166
|
+
|
167
|
+
# Get a list of Payout Orders
|
168
|
+
# Get Payout order details in the form of a list
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @option opts [String] :accept_language Use for knowing which language to use (default to 'es')
|
171
|
+
# @option opts [Integer] :limit The numbers of items to return, the maximum value is 250 (default to 20)
|
172
|
+
# @option opts [String] :search General order search, e.g. by mail, reference etc.
|
173
|
+
# @option opts [String] :_next next page
|
174
|
+
# @option opts [String] :previous previous page
|
175
|
+
# @return [PayoutOrdersResponse]
|
176
|
+
def get_payout_orders(opts = {})
|
177
|
+
data, _status_code, _headers = get_payout_orders_with_http_info(opts)
|
178
|
+
data
|
179
|
+
end
|
180
|
+
|
181
|
+
# Get a list of Payout Orders
|
182
|
+
# Get Payout order details in the form of a list
|
183
|
+
# @param [Hash] opts the optional parameters
|
184
|
+
# @option opts [String] :accept_language Use for knowing which language to use (default to 'es')
|
185
|
+
# @option opts [Integer] :limit The numbers of items to return, the maximum value is 250 (default to 20)
|
186
|
+
# @option opts [String] :search General order search, e.g. by mail, reference etc.
|
187
|
+
# @option opts [String] :_next next page
|
188
|
+
# @option opts [String] :previous previous page
|
189
|
+
# @return [Array<(PayoutOrdersResponse, Integer, Hash)>] PayoutOrdersResponse data, response status code and response headers
|
190
|
+
def get_payout_orders_with_http_info(opts = {})
|
191
|
+
if @api_client.config.debugging
|
192
|
+
@api_client.config.logger.debug 'Calling API: PayoutOrdersApi.get_payout_orders ...'
|
193
|
+
end
|
194
|
+
allowable_values = ["es", "en"]
|
195
|
+
if @api_client.config.client_side_validation && opts[:'accept_language'] && !allowable_values.include?(opts[:'accept_language'])
|
196
|
+
fail ArgumentError, "invalid value for \"accept_language\", must be one of #{allowable_values}"
|
197
|
+
end
|
198
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
199
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PayoutOrdersApi.get_payout_orders, must be smaller than or equal to 250.'
|
200
|
+
end
|
201
|
+
|
202
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
203
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PayoutOrdersApi.get_payout_orders, must be greater than or equal to 1.'
|
204
|
+
end
|
205
|
+
|
206
|
+
# resource path
|
207
|
+
local_var_path = '/payout_orders'
|
208
|
+
|
209
|
+
# query parameters
|
210
|
+
query_params = opts[:query_params] || {}
|
211
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
212
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
213
|
+
query_params[:'next'] = opts[:'_next'] if !opts[:'_next'].nil?
|
214
|
+
query_params[:'previous'] = opts[:'previous'] if !opts[:'previous'].nil?
|
215
|
+
|
216
|
+
# header parameters
|
217
|
+
header_params = opts[:header_params] || {}
|
218
|
+
# HTTP header 'Accept' (if needed)
|
219
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.conekta-v2.1.0+json'])
|
220
|
+
header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
|
221
|
+
|
222
|
+
# form parameters
|
223
|
+
form_params = opts[:form_params] || {}
|
224
|
+
|
225
|
+
# http body (model)
|
226
|
+
post_body = opts[:debug_body]
|
227
|
+
|
228
|
+
# return_type
|
229
|
+
return_type = opts[:debug_return_type] || 'PayoutOrdersResponse'
|
230
|
+
|
231
|
+
# auth_names
|
232
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
233
|
+
|
234
|
+
new_options = opts.merge(
|
235
|
+
:operation => :"PayoutOrdersApi.get_payout_orders",
|
236
|
+
:header_params => header_params,
|
237
|
+
:query_params => query_params,
|
238
|
+
:form_params => form_params,
|
239
|
+
:body => post_body,
|
240
|
+
:auth_names => auth_names,
|
241
|
+
:return_type => return_type
|
242
|
+
)
|
243
|
+
|
244
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
245
|
+
if @api_client.config.debugging
|
246
|
+
@api_client.config.logger.debug "API called: PayoutOrdersApi#get_payout_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
247
|
+
end
|
248
|
+
return data, status_code, headers
|
249
|
+
end
|
250
|
+
end
|
251
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: engineering@conekta.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -240,6 +240,7 @@ module Conekta
|
|
240
240
|
# @option opts [String] :x_child_company_id In the case of a holding company, the company id of the child company to which will process the request.
|
241
241
|
# @option opts [Integer] :limit The numbers of items to return, the maximum value is 250 (default to 20)
|
242
242
|
# @option opts [String] :search General order search, e.g. by mail, reference etc.
|
243
|
+
# @option opts [String] :url url for webhook filter
|
243
244
|
# @option opts [String] :_next next page
|
244
245
|
# @option opts [String] :previous previous page
|
245
246
|
# @return [GetWebhooksResponse]
|
@@ -255,6 +256,7 @@ module Conekta
|
|
255
256
|
# @option opts [String] :x_child_company_id In the case of a holding company, the company id of the child company to which will process the request.
|
256
257
|
# @option opts [Integer] :limit The numbers of items to return, the maximum value is 250 (default to 20)
|
257
258
|
# @option opts [String] :search General order search, e.g. by mail, reference etc.
|
259
|
+
# @option opts [String] :url url for webhook filter
|
258
260
|
# @option opts [String] :_next next page
|
259
261
|
# @option opts [String] :previous previous page
|
260
262
|
# @return [Array<(GetWebhooksResponse, Integer, Hash)>] GetWebhooksResponse data, response status code and response headers
|
@@ -281,6 +283,7 @@ module Conekta
|
|
281
283
|
query_params = opts[:query_params] || {}
|
282
284
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
283
285
|
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
286
|
+
query_params[:'url'] = opts[:'url'] if !opts[:'url'].nil?
|
284
287
|
query_params[:'next'] = opts[:'_next'] if !opts[:'_next'].nil?
|
285
288
|
query_params[:'previous'] = opts[:'previous'] if !opts[:'previous'].nil?
|
286
289
|
|
data/lib/conekta/api_client.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: engineering@conekta.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,6 +17,7 @@ require 'tempfile'
|
|
17
17
|
require 'time'
|
18
18
|
require 'faraday'
|
19
19
|
require 'faraday/multipart' if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new('2.0')
|
20
|
+
require 'marcel'
|
20
21
|
|
21
22
|
|
22
23
|
module Conekta
|
@@ -53,7 +54,7 @@ module Conekta
|
|
53
54
|
stream = nil
|
54
55
|
begin
|
55
56
|
response = connection(opts).public_send(http_method.to_sym.downcase) do |req|
|
56
|
-
build_request(http_method, path, req, opts)
|
57
|
+
request = build_request(http_method, path, req, opts)
|
57
58
|
stream = download_file(request) if opts[:return_type] == 'File' || opts[:return_type] == 'Binary'
|
58
59
|
end
|
59
60
|
|
@@ -141,8 +142,7 @@ module Conekta
|
|
141
142
|
form_params.each do |key, value|
|
142
143
|
case value
|
143
144
|
when ::File, ::Tempfile
|
144
|
-
|
145
|
-
data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
|
145
|
+
data[key] = Faraday::FilePart.new(value.path, Marcel::MimeType.for(Pathname.new(value.path)))
|
146
146
|
when ::Array, nil
|
147
147
|
# let Faraday handle Array and nil parameters
|
148
148
|
data[key] = value
|
data/lib/conekta/api_error.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: engineering@conekta.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,9 +15,6 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Conekta
|
17
17
|
class ApiKeyCreateResponse
|
18
|
-
# It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place.
|
19
|
-
attr_accessor :authentication_token
|
20
|
-
|
21
18
|
# Indicates if the api key is active
|
22
19
|
attr_accessor :active
|
23
20
|
|
@@ -51,10 +48,12 @@ module Conekta
|
|
51
48
|
# Indicates if the api key is private or public
|
52
49
|
attr_accessor :role
|
53
50
|
|
51
|
+
# It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place.
|
52
|
+
attr_accessor :authentication_token
|
53
|
+
|
54
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
55
|
def self.attribute_map
|
56
56
|
{
|
57
|
-
:'authentication_token' => :'authentication_token',
|
58
57
|
:'active' => :'active',
|
59
58
|
:'created_at' => :'created_at',
|
60
59
|
:'updated_at' => :'updated_at',
|
@@ -65,7 +64,8 @@ module Conekta
|
|
65
64
|
:'deleted' => :'deleted',
|
66
65
|
:'object' => :'object',
|
67
66
|
:'prefix' => :'prefix',
|
68
|
-
:'role' => :'role'
|
67
|
+
:'role' => :'role',
|
68
|
+
:'authentication_token' => :'authentication_token'
|
69
69
|
}
|
70
70
|
end
|
71
71
|
|
@@ -77,7 +77,6 @@ module Conekta
|
|
77
77
|
# Attribute type mapping.
|
78
78
|
def self.openapi_types
|
79
79
|
{
|
80
|
-
:'authentication_token' => :'String',
|
81
80
|
:'active' => :'Boolean',
|
82
81
|
:'created_at' => :'Integer',
|
83
82
|
:'updated_at' => :'Integer',
|
@@ -88,7 +87,8 @@ module Conekta
|
|
88
87
|
:'deleted' => :'Boolean',
|
89
88
|
:'object' => :'String',
|
90
89
|
:'prefix' => :'String',
|
91
|
-
:'role' => :'String'
|
90
|
+
:'role' => :'String',
|
91
|
+
:'authentication_token' => :'String'
|
92
92
|
}
|
93
93
|
end
|
94
94
|
|
@@ -102,7 +102,6 @@ module Conekta
|
|
102
102
|
# List of class defined in allOf (OpenAPI v3)
|
103
103
|
def self.openapi_all_of
|
104
104
|
[
|
105
|
-
:'ApiKeyCreateResponseAllOf',
|
106
105
|
:'ApiKeyResponse'
|
107
106
|
]
|
108
107
|
end
|
@@ -122,10 +121,6 @@ module Conekta
|
|
122
121
|
h[k.to_sym] = v
|
123
122
|
}
|
124
123
|
|
125
|
-
if attributes.key?(:'authentication_token')
|
126
|
-
self.authentication_token = attributes[:'authentication_token']
|
127
|
-
end
|
128
|
-
|
129
124
|
if attributes.key?(:'active')
|
130
125
|
self.active = attributes[:'active']
|
131
126
|
end
|
@@ -169,6 +164,10 @@ module Conekta
|
|
169
164
|
if attributes.key?(:'role')
|
170
165
|
self.role = attributes[:'role']
|
171
166
|
end
|
167
|
+
|
168
|
+
if attributes.key?(:'authentication_token')
|
169
|
+
self.authentication_token = attributes[:'authentication_token']
|
170
|
+
end
|
172
171
|
end
|
173
172
|
|
174
173
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -191,7 +190,6 @@ module Conekta
|
|
191
190
|
def ==(o)
|
192
191
|
return true if self.equal?(o)
|
193
192
|
self.class == o.class &&
|
194
|
-
authentication_token == o.authentication_token &&
|
195
193
|
active == o.active &&
|
196
194
|
created_at == o.created_at &&
|
197
195
|
updated_at == o.updated_at &&
|
@@ -202,7 +200,8 @@ module Conekta
|
|
202
200
|
deleted == o.deleted &&
|
203
201
|
object == o.object &&
|
204
202
|
prefix == o.prefix &&
|
205
|
-
role == o.role
|
203
|
+
role == o.role &&
|
204
|
+
authentication_token == o.authentication_token
|
206
205
|
end
|
207
206
|
|
208
207
|
# @see the `==` method
|
@@ -214,7 +213,7 @@ module Conekta
|
|
214
213
|
# Calculates hash code according to all attributes.
|
215
214
|
# @return [Integer] Hash code
|
216
215
|
def hash
|
217
|
-
[
|
216
|
+
[active, created_at, updated_at, deactivated_at, description, id, livemode, deleted, object, prefix, role, authentication_token].hash
|
218
217
|
end
|
219
218
|
|
220
219
|
# Builds the object from hash
|