wire4_client 0.0.1.pre.SNAPSHOT → 0.0.9.pre.TEST
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +84 -44
- data/docs/Account.md +3 -3
- data/docs/AccountDetail.md +13 -0
- data/docs/AccountReassigned.md +22 -0
- data/docs/AccountResponse.md +6 -3
- data/docs/AccountSpid.md +2 -2
- data/docs/AddressCompany.md +17 -0
- data/docs/AmountRequest.md +2 -0
- data/docs/AuthorizationTransactionGroup.md +9 -0
- data/docs/AuthorizedBeneficiariesResponse.md +10 -0
- data/docs/AuthorizedUsers.md +13 -0
- data/docs/AutorizacinDeDepsitosApi.md +113 -0
- data/docs/BeneficiariesQueryRegisterStatus.md +13 -0
- data/docs/BillingTransaction.md +1 -1
- data/docs/CertificateRequest.md +11 -0
- data/docs/CodiCodeQrResponseDTO.md +17 -0
- data/docs/CodiCodeRequestDTO.md +14 -0
- data/docs/CodiOperationResponseDTO.md +14 -0
- data/docs/CodiOperationsFiltersRequestDTO.md +15 -0
- data/docs/CompanyRegistered.md +13 -0
- data/docs/CompanyRequested.md +11 -0
- data/docs/Compay.md +11 -0
- data/docs/ComprobanteElectrnicoDePagoCEPApi.md +6 -8
- data/docs/ConfigurationsLimits.md +9 -0
- data/docs/ContactoApi.md +6 -8
- data/docs/ContractDetailRequest.md +11 -0
- data/docs/ContractDetailResponse.md +9 -0
- data/docs/ContractsDetailsApi.md +222 -0
- data/docs/CuentasDeBeneficiariosSPEIApi.md +163 -54
- data/docs/CuentasDeBeneficiariosSPIDApi.md +73 -8
- data/docs/Deposit.md +1 -0
- data/docs/DepositAuthorizationRequest.md +10 -0
- data/docs/DepositantesApi.md +12 -16
- data/docs/DepositsAuthorizationResponse.md +10 -0
- data/docs/DetailedErrorResponse.md +10 -0
- data/docs/EmpresasCoDiApi.md +107 -0
- data/docs/FacturasApi.md +12 -16
- data/docs/InstitucionesApi.md +10 -9
- data/docs/Item.md +10 -0
- data/docs/LmitesDeMontosApi.md +112 -0
- data/docs/MessageAccountBeneficiary.md +2 -2
- data/docs/MessageCEP.md +9 -9
- data/docs/MessageCodiAction.md +19 -0
- data/docs/MessageConfigurationsLimits.md +8 -0
- data/docs/MessageDepositAuthorizationRequest.md +27 -0
- data/docs/MessageDepositReceived.md +1 -0
- data/docs/MessagePayment.md +3 -1
- data/docs/MessagePaymentStatePending.md +23 -0
- data/docs/MessageRequestChanged.md +9 -0
- data/docs/MessageSalesPoint.md +10 -0
- data/docs/MessageSubscription.md +6 -5
- data/docs/MessageUserAuthorized.md +14 -0
- data/docs/MessageWebHook.md +2 -2
- data/docs/OperacionesCoDiApi.md +68 -0
- data/docs/Operations.md +17 -0
- data/docs/PagerResponseDto.md +13 -0
- data/docs/Payment.md +4 -2
- data/docs/PaymentCODI.md +13 -0
- data/docs/PaymentRequestCodiResponseDTO.md +18 -0
- data/docs/PaymentsRequestId.md +13 -0
- data/docs/PeticionesDePagoPorCoDiApi.md +116 -0
- data/docs/PreMonexAuthorization.md +11 -0
- data/docs/PuntosDeVentaCoDiApi.md +113 -0
- data/docs/SaldoApi.md +6 -8
- data/docs/SalesPoint.md +10 -0
- data/docs/SalesPointFound.md +14 -0
- data/docs/SalesPointRequest.md +11 -0
- data/docs/SalesPointRespose.md +11 -0
- data/docs/SpidBeneficiariesResponse.md +8 -0
- data/docs/SpidBeneficiaryResponse.md +20 -0
- data/docs/SuscripcionesApi.md +32 -38
- data/docs/TransactionErrorCode.md +10 -0
- data/docs/TransactionOutgoing.md +2 -1
- data/docs/TransferenciasSPEIApi.md +136 -32
- data/docs/TransferenciasSPIDApi.md +12 -16
- data/docs/UpdateConfigurationsRequestDTO.md +8 -0
- data/docs/UrlsRedirect.md +9 -0
- data/docs/UserCompany.md +16 -0
- data/docs/WebHookDepositAuthorizationRequest.md +9 -0
- data/docs/WebHookDepositAuthorizationResponse.md +13 -0
- data/docs/Webhook.md +13 -0
- data/docs/WebhooksApi.md +22 -25
- data/lib/wire4_client.rb +56 -2
- data/lib/wire4_client/api/autorizacin_de_depsitos_api.rb +173 -0
- data/lib/wire4_client/api/comprobante_electrnico_de_pago_cep_api.rb +12 -5
- data/lib/wire4_client/api/contacto_api.rb +12 -5
- data/lib/wire4_client/api/contracts_details_api.rb +301 -0
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +262 -33
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +104 -5
- data/lib/wire4_client/api/depositantes_api.rb +23 -9
- data/lib/wire4_client/api/empresas_co_di_api.rb +137 -0
- data/lib/wire4_client/api/facturas_api.rb +23 -9
- data/lib/wire4_client/api/instituciones_api.rb +12 -5
- data/lib/wire4_client/api/lmites_de_montos_api.rb +160 -0
- data/lib/wire4_client/api/operaciones_co_di_api.rb +92 -0
- data/lib/wire4_client/api/peticiones_de_pago_por_co_di_api.rb +178 -0
- data/lib/wire4_client/api/puntos_de_venta_co_di_api.rb +151 -0
- data/lib/wire4_client/api/saldo_api.rb +12 -5
- data/lib/wire4_client/api/suscripciones_api.rb +48 -27
- data/lib/wire4_client/api/transferencias_spei_api.rb +204 -17
- data/lib/wire4_client/api/transferencias_spid_api.rb +23 -9
- data/lib/wire4_client/api/webhooks_api.rb +34 -13
- data/lib/wire4_client/api_client.rb +1 -2
- data/lib/wire4_client/api_error.rb +1 -1
- data/lib/wire4_client/configuration.rb +1 -22
- data/lib/wire4_client/models/account.rb +4 -4
- data/lib/wire4_client/models/account_detail.rb +239 -0
- data/lib/wire4_client/models/account_reassigned.rb +385 -0
- data/lib/wire4_client/models/account_request.rb +1 -1
- data/lib/wire4_client/models/account_response.rb +38 -8
- data/lib/wire4_client/models/account_spid.rb +3 -3
- data/lib/wire4_client/models/address_company.rb +275 -0
- data/lib/wire4_client/models/amount_request.rb +91 -5
- data/lib/wire4_client/models/authorization_transaction_group.rb +207 -0
- data/lib/wire4_client/models/authorized_beneficiaries_response.rb +206 -0
- data/lib/wire4_client/models/authorized_users.rb +235 -0
- data/lib/wire4_client/models/balance.rb +1 -1
- data/lib/wire4_client/models/balance_list_response.rb +1 -1
- data/lib/wire4_client/models/beneficiaries_query_register_status.rb +270 -0
- data/lib/wire4_client/models/beneficiaries_response.rb +1 -1
- data/lib/wire4_client/models/beneficiary_institution.rb +1 -1
- data/lib/wire4_client/models/billing.rb +1 -1
- data/lib/wire4_client/models/billing_transaction.rb +2 -2
- data/lib/wire4_client/models/cep_response.rb +1 -1
- data/lib/wire4_client/models/cep_search_banxico.rb +1 -1
- data/lib/wire4_client/models/certificate_request.rb +248 -0
- data/lib/wire4_client/models/codi_code_qr_response_dto.rb +320 -0
- data/lib/wire4_client/models/codi_code_request_dto.rb +402 -0
- data/lib/wire4_client/models/{timestamp.rb → codi_operation_response_dto.rb} +53 -72
- data/lib/wire4_client/models/codi_operations_filters_request_dto.rb +336 -0
- data/lib/wire4_client/models/company_registered.rb +235 -0
- data/lib/wire4_client/models/company_requested.rb +215 -0
- data/lib/wire4_client/models/compay.rb +215 -0
- data/lib/wire4_client/models/configurations_limits.rb +197 -0
- data/lib/wire4_client/models/contact_request.rb +1 -1
- data/lib/wire4_client/models/contract_detail_request.rb +247 -0
- data/lib/wire4_client/models/contract_detail_response.rb +194 -0
- data/lib/wire4_client/models/deposit.rb +12 -2
- data/lib/wire4_client/models/deposit_authorization_request.rb +205 -0
- data/lib/wire4_client/models/depositant.rb +1 -1
- data/lib/wire4_client/models/depositants_register.rb +1 -1
- data/lib/wire4_client/models/depositants_response.rb +1 -1
- data/lib/wire4_client/models/deposits_authorization_response.rb +205 -0
- data/lib/wire4_client/models/detailed_error_response.rb +203 -0
- data/lib/wire4_client/models/error_response.rb +1 -1
- data/lib/wire4_client/models/get_depositants.rb +1 -1
- data/lib/wire4_client/models/institution.rb +1 -1
- data/lib/wire4_client/models/institutions_list.rb +1 -1
- data/lib/wire4_client/models/item.rb +205 -0
- data/lib/wire4_client/models/message_account_beneficiary.rb +3 -3
- data/lib/wire4_client/models/message_cep.rb +11 -11
- data/lib/wire4_client/models/message_codi_action.rb +295 -0
- data/lib/wire4_client/models/message_configurations_limits.rb +187 -0
- data/lib/wire4_client/models/message_deposit_authorization_request.rb +375 -0
- data/lib/wire4_client/models/message_deposit_received.rb +13 -3
- data/lib/wire4_client/models/message_institution.rb +1 -1
- data/lib/wire4_client/models/message_payment.rb +24 -3
- data/lib/wire4_client/models/message_payment_state_pending.rb +335 -0
- data/lib/wire4_client/models/message_request_changed.rb +229 -0
- data/lib/wire4_client/models/message_sales_point.rb +205 -0
- data/lib/wire4_client/models/message_subscription.rb +18 -8
- data/lib/wire4_client/models/message_user_authorized.rb +245 -0
- data/lib/wire4_client/models/message_web_hook.rb +3 -3
- data/lib/wire4_client/models/operations.rb +321 -0
- data/lib/wire4_client/models/pager_response_dto.rb +236 -0
- data/lib/wire4_client/models/payment.rb +24 -4
- data/lib/wire4_client/models/payment_codi.rb +269 -0
- data/lib/wire4_client/models/payment_request_codi_response_dto.rb +287 -0
- data/lib/wire4_client/models/payments_request_id.rb +236 -0
- data/lib/wire4_client/models/person.rb +1 -1
- data/lib/wire4_client/models/pre_enrollment_data.rb +1 -1
- data/lib/wire4_client/models/pre_enrollment_response.rb +1 -1
- data/lib/wire4_client/models/pre_monex_authorization.rb +291 -0
- data/lib/wire4_client/models/relationship.rb +1 -1
- data/lib/wire4_client/models/relationships_response.rb +1 -1
- data/lib/wire4_client/models/sales_point.rb +205 -0
- data/lib/wire4_client/models/sales_point_found.rb +279 -0
- data/lib/wire4_client/models/sales_point_request.rb +254 -0
- data/lib/wire4_client/models/sales_point_respose.rb +215 -0
- data/lib/wire4_client/models/spid_beneficiaries_response.rb +186 -0
- data/lib/wire4_client/models/spid_beneficiary_response.rb +365 -0
- data/lib/wire4_client/models/spid_classification_dto.rb +1 -1
- data/lib/wire4_client/models/spid_classifications_response_dto.rb +1 -1
- data/lib/wire4_client/models/token_required_response.rb +1 -1
- data/lib/wire4_client/models/transaction_error_code.rb +201 -0
- data/lib/wire4_client/models/transaction_outgoing.rb +13 -3
- data/lib/wire4_client/models/transaction_outgoing_spid.rb +1 -1
- data/lib/wire4_client/models/transactions_outgoing_register.rb +1 -1
- data/lib/wire4_client/models/update_configurations_request_dto.rb +192 -0
- data/lib/wire4_client/models/urls_redirect.rb +205 -0
- data/lib/wire4_client/models/user_company.rb +269 -0
- data/lib/wire4_client/models/web_hook_deposit_authorization_request.rb +195 -0
- data/lib/wire4_client/models/web_hook_deposit_authorization_response.rb +237 -0
- data/lib/wire4_client/models/webhook.rb +271 -0
- data/lib/wire4_client/models/webhook_request.rb +1 -1
- data/lib/wire4_client/models/webhook_response.rb +1 -1
- data/lib/wire4_client/models/webhooks_list.rb +1 -1
- data/lib/wire4_client/version.rb +2 -2
- data/spec/api/autorizacin_de_depsitos_api_spec.rb +62 -0
- data/spec/api/comprobante_electrnico_de_pago_cep_api_spec.rb +2 -1
- data/spec/api/contacto_api_spec.rb +2 -1
- data/spec/api/contracts_details_api_spec.rb +90 -0
- data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +44 -4
- data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +22 -1
- data/spec/api/depositantes_api_spec.rb +3 -1
- data/spec/api/empresas_co_di_api_spec.rb +60 -0
- data/spec/api/facturas_api_spec.rb +3 -1
- data/spec/api/instituciones_api_spec.rb +2 -1
- data/spec/api/lmites_de_montos_api_spec.rb +62 -0
- data/spec/api/operaciones_co_di_api_spec.rb +52 -0
- data/spec/api/peticiones_de_pago_por_co_di_api_spec.rb +63 -0
- data/spec/api/puntos_de_venta_co_di_api_spec.rb +62 -0
- data/spec/api/saldo_api_spec.rb +2 -1
- data/spec/api/suscripciones_api_spec.rb +11 -8
- data/spec/api/transferencias_spei_api_spec.rb +34 -1
- data/spec/api/transferencias_spid_api_spec.rb +3 -1
- data/spec/api/webhooks_api_spec.rb +4 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_detail_spec.rb +71 -0
- data/spec/models/account_reassigned_spec.rb +125 -0
- data/spec/models/account_request_spec.rb +1 -1
- data/spec/models/account_response_spec.rb +19 -1
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/account_spid_spec.rb +1 -1
- data/spec/models/{timestamp_spec.rb → address_company_spec.rb} +17 -17
- data/spec/models/amount_request_spec.rb +13 -1
- data/spec/models/authorization_transaction_group_spec.rb +47 -0
- data/spec/models/authorized_beneficiaries_response_spec.rb +53 -0
- data/spec/models/authorized_users_spec.rb +71 -0
- data/spec/models/balance_list_response_spec.rb +1 -1
- data/spec/models/balance_spec.rb +1 -1
- data/spec/models/beneficiaries_query_register_status_spec.rb +75 -0
- data/spec/models/beneficiaries_response_spec.rb +1 -1
- data/spec/models/beneficiary_institution_spec.rb +1 -1
- data/spec/models/billing_spec.rb +1 -1
- data/spec/models/billing_transaction_spec.rb +1 -1
- data/spec/models/cep_response_spec.rb +1 -1
- data/spec/models/cep_search_banxico_spec.rb +1 -1
- data/spec/models/certificate_request_spec.rb +59 -0
- data/spec/models/codi_code_qr_response_dto_spec.rb +103 -0
- data/spec/models/codi_code_request_dto_spec.rb +81 -0
- data/spec/models/codi_operation_response_dto_spec.rb +77 -0
- data/spec/models/codi_operations_filters_request_dto_spec.rb +87 -0
- data/spec/models/company_registered_spec.rb +71 -0
- data/spec/models/company_requested_spec.rb +59 -0
- data/spec/models/compay_spec.rb +59 -0
- data/spec/models/configurations_limits_spec.rb +47 -0
- data/spec/models/contact_request_spec.rb +1 -1
- data/spec/models/contract_detail_request_spec.rb +59 -0
- data/spec/models/contract_detail_response_spec.rb +47 -0
- data/spec/models/deposit_authorization_request_spec.rb +53 -0
- data/spec/models/deposit_spec.rb +7 -1
- data/spec/models/depositant_spec.rb +1 -1
- data/spec/models/depositants_register_spec.rb +1 -1
- data/spec/models/depositants_response_spec.rb +1 -1
- data/spec/models/deposits_authorization_response_spec.rb +53 -0
- data/spec/models/detailed_error_response_spec.rb +53 -0
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/models/get_depositants_spec.rb +1 -1
- data/spec/models/institution_spec.rb +1 -1
- data/spec/models/institutions_list_spec.rb +1 -1
- data/spec/models/item_spec.rb +53 -0
- data/spec/models/message_account_beneficiary_spec.rb +1 -1
- data/spec/models/message_cep_spec.rb +1 -1
- data/spec/models/message_codi_action_spec.rb +107 -0
- data/spec/models/message_configurations_limits_spec.rb +41 -0
- data/spec/models/message_deposit_authorization_request_spec.rb +155 -0
- data/spec/models/message_deposit_received_spec.rb +7 -1
- data/spec/models/message_institution_spec.rb +1 -1
- data/spec/models/message_payment_spec.rb +13 -1
- data/spec/models/message_payment_state_pending_spec.rb +131 -0
- data/spec/models/message_request_changed_spec.rb +51 -0
- data/spec/models/message_sales_point_spec.rb +53 -0
- data/spec/models/message_subscription_spec.rb +7 -1
- data/spec/models/message_user_authorized_spec.rb +77 -0
- data/spec/models/message_web_hook_spec.rb +1 -1
- data/spec/models/operations_spec.rb +103 -0
- data/spec/models/pager_response_dto_spec.rb +71 -0
- data/spec/models/payment_codi_spec.rb +75 -0
- data/spec/models/payment_request_codi_response_dto_spec.rb +101 -0
- data/spec/models/payment_spec.rb +13 -1
- data/spec/models/payments_request_id_spec.rb +71 -0
- data/spec/models/person_spec.rb +1 -1
- data/spec/models/pre_enrollment_data_spec.rb +1 -1
- data/spec/models/pre_enrollment_response_spec.rb +1 -1
- data/spec/models/pre_monex_authorization_spec.rb +59 -0
- data/spec/models/relationship_spec.rb +1 -1
- data/spec/models/relationships_response_spec.rb +1 -1
- data/spec/models/sales_point_found_spec.rb +81 -0
- data/spec/models/sales_point_request_spec.rb +59 -0
- data/spec/models/sales_point_respose_spec.rb +59 -0
- data/spec/models/sales_point_spec.rb +53 -0
- data/spec/models/spid_beneficiaries_response_spec.rb +41 -0
- data/spec/models/spid_beneficiary_response_spec.rb +113 -0
- data/spec/models/spid_classification_dto_spec.rb +1 -1
- data/spec/models/spid_classifications_response_dto_spec.rb +1 -1
- data/spec/models/token_required_response_spec.rb +1 -1
- data/spec/models/transaction_error_code_spec.rb +53 -0
- data/spec/models/transaction_outgoing_spec.rb +7 -1
- data/spec/models/transaction_outgoing_spid_spec.rb +1 -1
- data/spec/models/transactions_outgoing_register_spec.rb +1 -1
- data/spec/models/update_configurations_request_dto_spec.rb +41 -0
- data/spec/models/urls_redirect_spec.rb +47 -0
- data/spec/models/user_company_spec.rb +89 -0
- data/spec/models/web_hook_deposit_authorization_request_spec.rb +47 -0
- data/spec/models/web_hook_deposit_authorization_response_spec.rb +71 -0
- data/spec/models/webhook_request_spec.rb +1 -1
- data/spec/models/webhook_response_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +75 -0
- data/spec/models/webhooks_list_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/wire4_client-1.0.9.gem +0 -0
- data/wire4_client.gemspec +2 -2
- metadata +267 -51
- data/Gemfile.lock +0 -69
- data/docs/Timestamp.md +0 -17
@@ -0,0 +1,151 @@
|
|
1
|
+
=begin
|
2
|
+
#Wire4RestAPI
|
3
|
+
|
4
|
+
# # Referencia de API La API de Wire4 está organizada en torno a REST.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.10
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module Wire4Client
|
16
|
+
class PuntosDeVentaCoDiApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Registra un punto de venta asociado a una empresa
|
23
|
+
# Registra un punto de venta desde donde se emitaran los cobros CODI®, el punto de venta se debe asociar a un cuenta cableregistrada previamente ante Banxico para realizar cobros con CODI®
|
24
|
+
# @param authorization Header para token
|
25
|
+
# @param company_id El identificador de la empresa
|
26
|
+
# @param sales_point_info Información del punto de venta CODI®
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [SalesPointRespose]
|
29
|
+
def create_sales_point(authorization, company_id, sales_point_info, opts = {})
|
30
|
+
data, _status_code, _headers = create_sales_point_with_http_info(authorization, company_id, sales_point_info, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Registra un punto de venta asociado a una empresa
|
35
|
+
# Registra un punto de venta desde donde se emitaran los cobros CODI®, el punto de venta se debe asociar a un cuenta cableregistrada previamente ante Banxico para realizar cobros con CODI®
|
36
|
+
# @param authorization Header para token
|
37
|
+
# @param company_id El identificador de la empresa
|
38
|
+
# @param sales_point_info Información del punto de venta CODI®
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Array<(SalesPointRespose, Fixnum, Hash)>] SalesPointRespose data, response status code and response headers
|
41
|
+
def create_sales_point_with_http_info(authorization, company_id, sales_point_info, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: PuntosDeVentaCoDiApi.create_sales_point ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'authorization' is set
|
46
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling PuntosDeVentaCoDiApi.create_sales_point"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'company_id' is set
|
50
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling PuntosDeVentaCoDiApi.create_sales_point"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'sales_point_info' is set
|
54
|
+
if @api_client.config.client_side_validation && sales_point_info.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'sales_point_info' when calling PuntosDeVentaCoDiApi.create_sales_point"
|
56
|
+
end
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/codi/companies/salespoint'
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = {}
|
62
|
+
query_params[:'companyId'] = company_id
|
63
|
+
|
64
|
+
# header parameters
|
65
|
+
header_params = {}
|
66
|
+
# HTTP header 'Accept' (if needed)
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
70
|
+
header_params[:'Authorization'] = authorization
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = @api_client.object_to_http_body(sales_point_info)
|
77
|
+
auth_names = []
|
78
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names,
|
84
|
+
:return_type => 'SalesPointRespose')
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: PuntosDeVentaCoDiApi#create_sales_point\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
# Obtiene los puntos de venta asociados a una empresa
|
91
|
+
# Obtiene los puntos de venta asociados a una empresa en las cuales se hacen operaciones CODI®
|
92
|
+
# @param authorization Header para token
|
93
|
+
# @param company_id El identificador de la empresa
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [Array<SalesPointFound>]
|
96
|
+
def obtain_sale_points(authorization, company_id, opts = {})
|
97
|
+
data, _status_code, _headers = obtain_sale_points_with_http_info(authorization, company_id, opts)
|
98
|
+
data
|
99
|
+
end
|
100
|
+
|
101
|
+
# Obtiene los puntos de venta asociados a una empresa
|
102
|
+
# Obtiene los puntos de venta asociados a una empresa en las cuales se hacen operaciones CODI®
|
103
|
+
# @param authorization Header para token
|
104
|
+
# @param company_id El identificador de la empresa
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(Array<SalesPointFound>, Fixnum, Hash)>] Array<SalesPointFound> data, response status code and response headers
|
107
|
+
def obtain_sale_points_with_http_info(authorization, company_id, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: PuntosDeVentaCoDiApi.obtain_sale_points ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'authorization' is set
|
112
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling PuntosDeVentaCoDiApi.obtain_sale_points"
|
114
|
+
end
|
115
|
+
# verify the required parameter 'company_id' is set
|
116
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling PuntosDeVentaCoDiApi.obtain_sale_points"
|
118
|
+
end
|
119
|
+
# resource path
|
120
|
+
local_var_path = '/codi/companies/salespoint'
|
121
|
+
|
122
|
+
# query parameters
|
123
|
+
query_params = {}
|
124
|
+
query_params[:'companyId'] = company_id
|
125
|
+
|
126
|
+
# header parameters
|
127
|
+
header_params = {}
|
128
|
+
# HTTP header 'Accept' (if needed)
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
130
|
+
header_params[:'Authorization'] = authorization
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = {}
|
134
|
+
|
135
|
+
# http body (model)
|
136
|
+
post_body = nil
|
137
|
+
auth_names = []
|
138
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names,
|
144
|
+
:return_type => 'Array<SalesPointFound>')
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "API called: PuntosDeVentaCoDiApi#obtain_sale_points\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
end
|
148
|
+
return data, status_code, headers
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Wire4RestAPI
|
3
3
|
|
4
|
-
#Referencia de
|
4
|
+
# # Referencia de API La API de Wire4 está organizada en torno a REST.
|
5
5
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
@@ -21,23 +21,29 @@ module Wire4Client
|
|
21
21
|
end
|
22
22
|
# Consulta los saldo de una cuenta
|
23
23
|
# Obtiene el de las divisas que se manejen en el contrato.
|
24
|
+
# @param authorization Header para token
|
24
25
|
# @param subscription El identificador de la suscripción a esta API
|
25
26
|
# @param [Hash] opts the optional parameters
|
26
27
|
# @return [BalanceListResponse]
|
27
|
-
def get_balance_using_get(subscription, opts = {})
|
28
|
-
data, _status_code, _headers = get_balance_using_get_with_http_info(subscription, opts)
|
28
|
+
def get_balance_using_get(authorization, subscription, opts = {})
|
29
|
+
data, _status_code, _headers = get_balance_using_get_with_http_info(authorization, subscription, opts)
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
32
33
|
# Consulta los saldo de una cuenta
|
33
34
|
# Obtiene el de las divisas que se manejen en el contrato.
|
35
|
+
# @param authorization Header para token
|
34
36
|
# @param subscription El identificador de la suscripción a esta API
|
35
37
|
# @param [Hash] opts the optional parameters
|
36
38
|
# @return [Array<(BalanceListResponse, Fixnum, Hash)>] BalanceListResponse data, response status code and response headers
|
37
|
-
def get_balance_using_get_with_http_info(subscription, opts = {})
|
39
|
+
def get_balance_using_get_with_http_info(authorization, subscription, opts = {})
|
38
40
|
if @api_client.config.debugging
|
39
41
|
@api_client.config.logger.debug 'Calling API: SaldoApi.get_balance_using_get ...'
|
40
42
|
end
|
43
|
+
# verify the required parameter 'authorization' is set
|
44
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SaldoApi.get_balance_using_get"
|
46
|
+
end
|
41
47
|
# verify the required parameter 'subscription' is set
|
42
48
|
if @api_client.config.client_side_validation && subscription.nil?
|
43
49
|
fail ArgumentError, "Missing the required parameter 'subscription' when calling SaldoApi.get_balance_using_get"
|
@@ -64,13 +70,14 @@ module Wire4Client
|
|
64
70
|
header_params = {}
|
65
71
|
# HTTP header 'Accept' (if needed)
|
66
72
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
73
|
+
header_params[:'Authorization'] = authorization
|
67
74
|
|
68
75
|
# form parameters
|
69
76
|
form_params = {}
|
70
77
|
|
71
78
|
# http body (model)
|
72
79
|
post_body = nil
|
73
|
-
auth_names = [
|
80
|
+
auth_names = []
|
74
81
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
75
82
|
:header_params => header_params,
|
76
83
|
:query_params => query_params,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Wire4RestAPI
|
3
3
|
|
4
|
-
#Referencia de
|
4
|
+
# # Referencia de API La API de Wire4 está organizada en torno a REST.
|
5
5
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
@@ -19,25 +19,31 @@ module Wire4Client
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
#
|
24
|
-
# @param
|
22
|
+
# Registra una pre-suscripción
|
23
|
+
# Registra una pre-suscripción para operar un contrato a través de un aplicación socio de la plataforma, proporcionando una URL donde el cliente Monex debe autorizar el acceso a los datos de su cuenta a el socio.<br/>Una vez que el cuentahabiente autorice el acceso, se envía un mensaje webhook con el evento 'ENROLLMENT.CREATED', el cuál contiene los datos de acceso a esta API.
|
24
|
+
# @param authorization Header para token
|
25
|
+
# @param pre_enrollment_data Información para la pre-suscripción
|
25
26
|
# @param [Hash] opts the optional parameters
|
26
27
|
# @return [PreEnrollmentResponse]
|
27
|
-
def pre_enrollment_monex_user_using_post(pre_enrollment_data, opts = {})
|
28
|
-
data, _status_code, _headers = pre_enrollment_monex_user_using_post_with_http_info(pre_enrollment_data, opts)
|
28
|
+
def pre_enrollment_monex_user_using_post(authorization, pre_enrollment_data, opts = {})
|
29
|
+
data, _status_code, _headers = pre_enrollment_monex_user_using_post_with_http_info(authorization, pre_enrollment_data, opts)
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
32
|
-
#
|
33
|
-
#
|
34
|
-
# @param
|
33
|
+
# Registra una pre-suscripción
|
34
|
+
# Registra una pre-suscripción para operar un contrato a través de un aplicación socio de la plataforma, proporcionando una URL donde el cliente Monex debe autorizar el acceso a los datos de su cuenta a el socio.<br/>Una vez que el cuentahabiente autorice el acceso, se envía un mensaje webhook con el evento 'ENROLLMENT.CREATED', el cuál contiene los datos de acceso a esta API.
|
35
|
+
# @param authorization Header para token
|
36
|
+
# @param pre_enrollment_data Información para la pre-suscripción
|
35
37
|
# @param [Hash] opts the optional parameters
|
36
38
|
# @return [Array<(PreEnrollmentResponse, Fixnum, Hash)>] PreEnrollmentResponse data, response status code and response headers
|
37
|
-
def pre_enrollment_monex_user_using_post_with_http_info(pre_enrollment_data, opts = {})
|
39
|
+
def pre_enrollment_monex_user_using_post_with_http_info(authorization, pre_enrollment_data, opts = {})
|
38
40
|
if @api_client.config.debugging
|
39
41
|
@api_client.config.logger.debug 'Calling API: SuscripcionesApi.pre_enrollment_monex_user_using_post ...'
|
40
42
|
end
|
43
|
+
# verify the required parameter 'authorization' is set
|
44
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SuscripcionesApi.pre_enrollment_monex_user_using_post"
|
46
|
+
end
|
41
47
|
# verify the required parameter 'pre_enrollment_data' is set
|
42
48
|
if @api_client.config.client_side_validation && pre_enrollment_data.nil?
|
43
49
|
fail ArgumentError, "Missing the required parameter 'pre_enrollment_data' when calling SuscripcionesApi.pre_enrollment_monex_user_using_post"
|
@@ -54,13 +60,14 @@ module Wire4Client
|
|
54
60
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
61
|
# HTTP header 'Content-Type'
|
56
62
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
63
|
+
header_params[:'Authorization'] = authorization
|
57
64
|
|
58
65
|
# form parameters
|
59
66
|
form_params = {}
|
60
67
|
|
61
68
|
# http body (model)
|
62
69
|
post_body = @api_client.object_to_http_body(pre_enrollment_data)
|
63
|
-
auth_names = [
|
70
|
+
auth_names = []
|
64
71
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
65
72
|
:header_params => header_params,
|
66
73
|
:query_params => query_params,
|
@@ -73,25 +80,31 @@ module Wire4Client
|
|
73
80
|
end
|
74
81
|
return data, status_code, headers
|
75
82
|
end
|
76
|
-
#
|
77
|
-
# Elimina una suscripción, una
|
83
|
+
# Elimina una suscripción por el identificador de la suscripción
|
84
|
+
# Elimina una suscripción, una vez eliminada ya no se podrán realizar operacions en el API utilizando esta suscripción
|
85
|
+
# @param authorization Header para token
|
78
86
|
# @param subscription El identificador de la suscripción a esta API
|
79
87
|
# @param [Hash] opts the optional parameters
|
80
88
|
# @return [nil]
|
81
|
-
def remove_enrollment_user_using_delete(subscription, opts = {})
|
82
|
-
remove_enrollment_user_using_delete_with_http_info(subscription, opts)
|
89
|
+
def remove_enrollment_user_using_delete(authorization, subscription, opts = {})
|
90
|
+
remove_enrollment_user_using_delete_with_http_info(authorization, subscription, opts)
|
83
91
|
nil
|
84
92
|
end
|
85
93
|
|
86
|
-
#
|
87
|
-
# Elimina una suscripción, una
|
94
|
+
# Elimina una suscripción por el identificador de la suscripción
|
95
|
+
# Elimina una suscripción, una vez eliminada ya no se podrán realizar operacions en el API utilizando esta suscripción
|
96
|
+
# @param authorization Header para token
|
88
97
|
# @param subscription El identificador de la suscripción a esta API
|
89
98
|
# @param [Hash] opts the optional parameters
|
90
99
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
91
|
-
def remove_enrollment_user_using_delete_with_http_info(subscription, opts = {})
|
100
|
+
def remove_enrollment_user_using_delete_with_http_info(authorization, subscription, opts = {})
|
92
101
|
if @api_client.config.debugging
|
93
102
|
@api_client.config.logger.debug 'Calling API: SuscripcionesApi.remove_enrollment_user_using_delete ...'
|
94
103
|
end
|
104
|
+
# verify the required parameter 'authorization' is set
|
105
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
106
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SuscripcionesApi.remove_enrollment_user_using_delete"
|
107
|
+
end
|
95
108
|
# verify the required parameter 'subscription' is set
|
96
109
|
if @api_client.config.client_side_validation && subscription.nil?
|
97
110
|
fail ArgumentError, "Missing the required parameter 'subscription' when calling SuscripcionesApi.remove_enrollment_user_using_delete"
|
@@ -118,13 +131,14 @@ module Wire4Client
|
|
118
131
|
header_params = {}
|
119
132
|
# HTTP header 'Accept' (if needed)
|
120
133
|
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
134
|
+
header_params[:'Authorization'] = authorization
|
121
135
|
|
122
136
|
# form parameters
|
123
137
|
form_params = {}
|
124
138
|
|
125
139
|
# http body (model)
|
126
140
|
post_body = nil
|
127
|
-
auth_names = [
|
141
|
+
auth_names = []
|
128
142
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
129
143
|
:header_params => header_params,
|
130
144
|
:query_params => query_params,
|
@@ -136,25 +150,31 @@ module Wire4Client
|
|
136
150
|
end
|
137
151
|
return data, status_code, headers
|
138
152
|
end
|
139
|
-
#
|
140
|
-
# Se elimina una pre-suscripción, sólo se elimina en caso de que cliente
|
153
|
+
# Elimina una pre-suscripción
|
154
|
+
# Se elimina una pre-suscripción, sólo se elimina en caso de que el cliente Monex no haya concedido su autorización de acceso (token), es decir que la pre-suscripcion este pendiente.
|
155
|
+
# @param authorization Header para token
|
141
156
|
# @param subscription El identificador de la suscripción a esta API
|
142
157
|
# @param [Hash] opts the optional parameters
|
143
158
|
# @return [nil]
|
144
|
-
def remove_subscription_pending_status_using_delete(subscription, opts = {})
|
145
|
-
remove_subscription_pending_status_using_delete_with_http_info(subscription, opts)
|
159
|
+
def remove_subscription_pending_status_using_delete(authorization, subscription, opts = {})
|
160
|
+
remove_subscription_pending_status_using_delete_with_http_info(authorization, subscription, opts)
|
146
161
|
nil
|
147
162
|
end
|
148
163
|
|
149
|
-
#
|
150
|
-
# Se elimina una pre-suscripción, sólo se elimina en caso de que cliente
|
164
|
+
# Elimina una pre-suscripción
|
165
|
+
# Se elimina una pre-suscripción, sólo se elimina en caso de que el cliente Monex no haya concedido su autorización de acceso (token), es decir que la pre-suscripcion este pendiente.
|
166
|
+
# @param authorization Header para token
|
151
167
|
# @param subscription El identificador de la suscripción a esta API
|
152
168
|
# @param [Hash] opts the optional parameters
|
153
169
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
154
|
-
def remove_subscription_pending_status_using_delete_with_http_info(subscription, opts = {})
|
170
|
+
def remove_subscription_pending_status_using_delete_with_http_info(authorization, subscription, opts = {})
|
155
171
|
if @api_client.config.debugging
|
156
172
|
@api_client.config.logger.debug 'Calling API: SuscripcionesApi.remove_subscription_pending_status_using_delete ...'
|
157
173
|
end
|
174
|
+
# verify the required parameter 'authorization' is set
|
175
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
176
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SuscripcionesApi.remove_subscription_pending_status_using_delete"
|
177
|
+
end
|
158
178
|
# verify the required parameter 'subscription' is set
|
159
179
|
if @api_client.config.client_side_validation && subscription.nil?
|
160
180
|
fail ArgumentError, "Missing the required parameter 'subscription' when calling SuscripcionesApi.remove_subscription_pending_status_using_delete"
|
@@ -181,13 +201,14 @@ module Wire4Client
|
|
181
201
|
header_params = {}
|
182
202
|
# HTTP header 'Accept' (if needed)
|
183
203
|
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
204
|
+
header_params[:'Authorization'] = authorization
|
184
205
|
|
185
206
|
# form parameters
|
186
207
|
form_params = {}
|
187
208
|
|
188
209
|
# http body (model)
|
189
210
|
post_body = nil
|
190
|
-
auth_names = [
|
211
|
+
auth_names = []
|
191
212
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
192
213
|
:header_params => header_params,
|
193
214
|
:query_params => query_params,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Wire4RestAPI
|
3
3
|
|
4
|
-
#Referencia de
|
4
|
+
# # Referencia de API La API de Wire4 está organizada en torno a REST.
|
5
5
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
@@ -19,27 +19,114 @@ module Wire4Client
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Agrupa un conjunto de transacciones bajo un mismo request_id para autorizar
|
23
|
+
# Agrupa transacciones SPEI/SPID en un transaction_id, generando la URL para su autorización. Las transacciones deben estar en estatus PENDING y pertenecer a un mmismo contrato
|
24
|
+
# @param authorization Header para token
|
25
|
+
# @param authorization_transactions_group_request_dto authorizationTransactionsGroupRequestDTO
|
26
|
+
# @param subscription Identificador de la suscripcion
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [TokenRequiredResponse]
|
29
|
+
def create_authorization_transactions_group(authorization, authorization_transactions_group_request_dto, subscription, opts = {})
|
30
|
+
data, _status_code, _headers = create_authorization_transactions_group_with_http_info(authorization, authorization_transactions_group_request_dto, subscription, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Agrupa un conjunto de transacciones bajo un mismo request_id para autorizar
|
35
|
+
# Agrupa transacciones SPEI/SPID en un transaction_id, generando la URL para su autorización. Las transacciones deben estar en estatus PENDING y pertenecer a un mmismo contrato
|
36
|
+
# @param authorization Header para token
|
37
|
+
# @param authorization_transactions_group_request_dto authorizationTransactionsGroupRequestDTO
|
38
|
+
# @param subscription Identificador de la suscripcion
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
|
41
|
+
def create_authorization_transactions_group_with_http_info(authorization, authorization_transactions_group_request_dto, subscription, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: TransferenciasSPEIApi.create_authorization_transactions_group ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'authorization' is set
|
46
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling TransferenciasSPEIApi.create_authorization_transactions_group"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'authorization_transactions_group_request_dto' is set
|
50
|
+
if @api_client.config.client_side_validation && authorization_transactions_group_request_dto.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'authorization_transactions_group_request_dto' when calling TransferenciasSPEIApi.create_authorization_transactions_group"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'subscription' is set
|
54
|
+
if @api_client.config.client_side_validation && subscription.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'subscription' when calling TransferenciasSPEIApi.create_authorization_transactions_group"
|
56
|
+
end
|
57
|
+
if @api_client.config.client_side_validation && subscription.to_s.length > 36
|
58
|
+
fail ArgumentError, 'invalid value for "subscription" when calling TransferenciasSPEIApi.create_authorization_transactions_group, the character length must be smaller than or equal to 36.'
|
59
|
+
end
|
60
|
+
|
61
|
+
if @api_client.config.client_side_validation && subscription.to_s.length < 36
|
62
|
+
fail ArgumentError, 'invalid value for "subscription" when calling TransferenciasSPEIApi.create_authorization_transactions_group, the character length must be great than or equal to 36.'
|
63
|
+
end
|
64
|
+
|
65
|
+
if @api_client.config.client_side_validation && subscription !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
|
66
|
+
fail ArgumentError, "invalid value for 'subscription' when calling TransferenciasSPEIApi.create_authorization_transactions_group, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
|
67
|
+
end
|
68
|
+
|
69
|
+
# resource path
|
70
|
+
local_var_path = '/subscriptions/{subscription}/transactions/group'.sub('{' + 'subscription' + '}', subscription.to_s)
|
71
|
+
|
72
|
+
# query parameters
|
73
|
+
query_params = {}
|
74
|
+
|
75
|
+
# header parameters
|
76
|
+
header_params = {}
|
77
|
+
# HTTP header 'Accept' (if needed)
|
78
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
79
|
+
# HTTP header 'Content-Type'
|
80
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
81
|
+
header_params[:'Authorization'] = authorization
|
82
|
+
|
83
|
+
# form parameters
|
84
|
+
form_params = {}
|
85
|
+
|
86
|
+
# http body (model)
|
87
|
+
post_body = @api_client.object_to_http_body(authorization_transactions_group_request_dto)
|
88
|
+
auth_names = []
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
90
|
+
:header_params => header_params,
|
91
|
+
:query_params => query_params,
|
92
|
+
:form_params => form_params,
|
93
|
+
:body => post_body,
|
94
|
+
:auth_names => auth_names,
|
95
|
+
:return_type => 'TokenRequiredResponse')
|
96
|
+
if @api_client.config.debugging
|
97
|
+
@api_client.config.logger.debug "API called: TransferenciasSPEIApi#create_authorization_transactions_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
98
|
+
end
|
99
|
+
return data, status_code, headers
|
100
|
+
end
|
22
101
|
# Eliminación de transferencias SPEI® pendientes
|
23
102
|
# Elimina un conjunto de transferencias a realizar en la cuenta del cliente Monex relacionada a la suscripción, las transferencias no deben haber sido confirmadas por el cliente.
|
103
|
+
# @param authorization Header para token
|
24
104
|
# @param request_id Identificador de las transferencias a eliminar
|
25
105
|
# @param subscription El identificador de la suscripción a esta API
|
26
106
|
# @param [Hash] opts the optional parameters
|
107
|
+
# @option opts [String] :order_id Listado de identificadores dentro del request_id para eliminar
|
27
108
|
# @return [nil]
|
28
|
-
def drop_transactions_pending_using_delete(request_id, subscription, opts = {})
|
29
|
-
drop_transactions_pending_using_delete_with_http_info(request_id, subscription, opts)
|
109
|
+
def drop_transactions_pending_using_delete(authorization, request_id, subscription, opts = {})
|
110
|
+
drop_transactions_pending_using_delete_with_http_info(authorization, request_id, subscription, opts)
|
30
111
|
nil
|
31
112
|
end
|
32
113
|
|
33
114
|
# Eliminación de transferencias SPEI® pendientes
|
34
115
|
# Elimina un conjunto de transferencias a realizar en la cuenta del cliente Monex relacionada a la suscripción, las transferencias no deben haber sido confirmadas por el cliente.
|
116
|
+
# @param authorization Header para token
|
35
117
|
# @param request_id Identificador de las transferencias a eliminar
|
36
118
|
# @param subscription El identificador de la suscripción a esta API
|
37
119
|
# @param [Hash] opts the optional parameters
|
120
|
+
# @option opts [String] :order_id Listado de identificadores dentro del request_id para eliminar
|
38
121
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
39
|
-
def drop_transactions_pending_using_delete_with_http_info(request_id, subscription, opts = {})
|
122
|
+
def drop_transactions_pending_using_delete_with_http_info(authorization, request_id, subscription, opts = {})
|
40
123
|
if @api_client.config.debugging
|
41
124
|
@api_client.config.logger.debug 'Calling API: TransferenciasSPEIApi.drop_transactions_pending_using_delete ...'
|
42
125
|
end
|
126
|
+
# verify the required parameter 'authorization' is set
|
127
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
128
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling TransferenciasSPEIApi.drop_transactions_pending_using_delete"
|
129
|
+
end
|
43
130
|
# verify the required parameter 'request_id' is set
|
44
131
|
if @api_client.config.client_side_validation && request_id.nil?
|
45
132
|
fail ArgumentError, "Missing the required parameter 'request_id' when calling TransferenciasSPEIApi.drop_transactions_pending_using_delete"
|
@@ -77,18 +164,20 @@ module Wire4Client
|
|
77
164
|
|
78
165
|
# query parameters
|
79
166
|
query_params = {}
|
167
|
+
query_params[:'order_id'] = opts[:'order_id'] if !opts[:'order_id'].nil?
|
80
168
|
|
81
169
|
# header parameters
|
82
170
|
header_params = {}
|
83
171
|
# HTTP header 'Accept' (if needed)
|
84
172
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
173
|
+
header_params[:'Authorization'] = authorization
|
85
174
|
|
86
175
|
# form parameters
|
87
176
|
form_params = {}
|
88
177
|
|
89
178
|
# http body (model)
|
90
179
|
post_body = nil
|
91
|
-
auth_names = [
|
180
|
+
auth_names = []
|
92
181
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
93
182
|
:header_params => header_params,
|
94
183
|
:query_params => query_params,
|
@@ -102,23 +191,29 @@ module Wire4Client
|
|
102
191
|
end
|
103
192
|
# Consulta de transferencias recibidas
|
104
193
|
# Realiza una consulta de las transferencias recibidas (depósitos) en la cuenta del cliente Monex relacionada a la suscripción, las transferencias que regresa este recuso son únicamente las transferencias recibidas durante el día en el que se realiza la consulta.
|
194
|
+
# @param authorization Header para token
|
105
195
|
# @param subscription El identificador de la suscripción a esta API
|
106
196
|
# @param [Hash] opts the optional parameters
|
107
197
|
# @return [Array<Deposit>]
|
108
|
-
def incoming_spei_transactions_report_using_get(subscription, opts = {})
|
109
|
-
data, _status_code, _headers = incoming_spei_transactions_report_using_get_with_http_info(subscription, opts)
|
198
|
+
def incoming_spei_transactions_report_using_get(authorization, subscription, opts = {})
|
199
|
+
data, _status_code, _headers = incoming_spei_transactions_report_using_get_with_http_info(authorization, subscription, opts)
|
110
200
|
data
|
111
201
|
end
|
112
202
|
|
113
203
|
# Consulta de transferencias recibidas
|
114
204
|
# Realiza una consulta de las transferencias recibidas (depósitos) en la cuenta del cliente Monex relacionada a la suscripción, las transferencias que regresa este recuso son únicamente las transferencias recibidas durante el día en el que se realiza la consulta.
|
205
|
+
# @param authorization Header para token
|
115
206
|
# @param subscription El identificador de la suscripción a esta API
|
116
207
|
# @param [Hash] opts the optional parameters
|
117
208
|
# @return [Array<(Array<Deposit>, Fixnum, Hash)>] Array<Deposit> data, response status code and response headers
|
118
|
-
def incoming_spei_transactions_report_using_get_with_http_info(subscription, opts = {})
|
209
|
+
def incoming_spei_transactions_report_using_get_with_http_info(authorization, subscription, opts = {})
|
119
210
|
if @api_client.config.debugging
|
120
211
|
@api_client.config.logger.debug 'Calling API: TransferenciasSPEIApi.incoming_spei_transactions_report_using_get ...'
|
121
212
|
end
|
213
|
+
# verify the required parameter 'authorization' is set
|
214
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
215
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling TransferenciasSPEIApi.incoming_spei_transactions_report_using_get"
|
216
|
+
end
|
122
217
|
# verify the required parameter 'subscription' is set
|
123
218
|
if @api_client.config.client_side_validation && subscription.nil?
|
124
219
|
fail ArgumentError, "Missing the required parameter 'subscription' when calling TransferenciasSPEIApi.incoming_spei_transactions_report_using_get"
|
@@ -145,13 +240,14 @@ module Wire4Client
|
|
145
240
|
header_params = {}
|
146
241
|
# HTTP header 'Accept' (if needed)
|
147
242
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
243
|
+
header_params[:'Authorization'] = authorization
|
148
244
|
|
149
245
|
# form parameters
|
150
246
|
form_params = {}
|
151
247
|
|
152
248
|
# http body (model)
|
153
249
|
post_body = nil
|
154
|
-
auth_names = [
|
250
|
+
auth_names = []
|
155
251
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
156
252
|
:header_params => header_params,
|
157
253
|
:query_params => query_params,
|
@@ -164,27 +260,110 @@ module Wire4Client
|
|
164
260
|
end
|
165
261
|
return data, status_code, headers
|
166
262
|
end
|
263
|
+
# Consulta de transferencias de salida por identificador de petición
|
264
|
+
# Consulta las transferencias de salida registradas en una petición, las transferencias que regresa este recuso son únicamente las transferencias de salida agrupadas al identificador de la petición que se generó al hacer el registro de las transacciones el cual se debe especificar como parte del path de este endpoint.
|
265
|
+
# @param authorization Header para token
|
266
|
+
# @param request_id Identificador de la petición a buscar
|
267
|
+
# @param subscription El identificador de la suscripción a esta API
|
268
|
+
# @param [Hash] opts the optional parameters
|
269
|
+
# @return [PaymentsRequestId]
|
270
|
+
def out_comming_spei_request_id_transactions_report_using_get(authorization, request_id, subscription, opts = {})
|
271
|
+
data, _status_code, _headers = out_comming_spei_request_id_transactions_report_using_get_with_http_info(authorization, request_id, subscription, opts)
|
272
|
+
data
|
273
|
+
end
|
274
|
+
|
275
|
+
# Consulta de transferencias de salida por identificador de petición
|
276
|
+
# Consulta las transferencias de salida registradas en una petición, las transferencias que regresa este recuso son únicamente las transferencias de salida agrupadas al identificador de la petición que se generó al hacer el registro de las transacciones el cual se debe especificar como parte del path de este endpoint.
|
277
|
+
# @param authorization Header para token
|
278
|
+
# @param request_id Identificador de la petición a buscar
|
279
|
+
# @param subscription El identificador de la suscripción a esta API
|
280
|
+
# @param [Hash] opts the optional parameters
|
281
|
+
# @return [Array<(PaymentsRequestId, Fixnum, Hash)>] PaymentsRequestId data, response status code and response headers
|
282
|
+
def out_comming_spei_request_id_transactions_report_using_get_with_http_info(authorization, request_id, subscription, opts = {})
|
283
|
+
if @api_client.config.debugging
|
284
|
+
@api_client.config.logger.debug 'Calling API: TransferenciasSPEIApi.out_comming_spei_request_id_transactions_report_using_get ...'
|
285
|
+
end
|
286
|
+
# verify the required parameter 'authorization' is set
|
287
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
288
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling TransferenciasSPEIApi.out_comming_spei_request_id_transactions_report_using_get"
|
289
|
+
end
|
290
|
+
# verify the required parameter 'request_id' is set
|
291
|
+
if @api_client.config.client_side_validation && request_id.nil?
|
292
|
+
fail ArgumentError, "Missing the required parameter 'request_id' when calling TransferenciasSPEIApi.out_comming_spei_request_id_transactions_report_using_get"
|
293
|
+
end
|
294
|
+
# verify the required parameter 'subscription' is set
|
295
|
+
if @api_client.config.client_side_validation && subscription.nil?
|
296
|
+
fail ArgumentError, "Missing the required parameter 'subscription' when calling TransferenciasSPEIApi.out_comming_spei_request_id_transactions_report_using_get"
|
297
|
+
end
|
298
|
+
if @api_client.config.client_side_validation && subscription.to_s.length > 36
|
299
|
+
fail ArgumentError, 'invalid value for "subscription" when calling TransferenciasSPEIApi.out_comming_spei_request_id_transactions_report_using_get, the character length must be smaller than or equal to 36.'
|
300
|
+
end
|
301
|
+
|
302
|
+
if @api_client.config.client_side_validation && subscription.to_s.length < 36
|
303
|
+
fail ArgumentError, 'invalid value for "subscription" when calling TransferenciasSPEIApi.out_comming_spei_request_id_transactions_report_using_get, the character length must be great than or equal to 36.'
|
304
|
+
end
|
305
|
+
|
306
|
+
if @api_client.config.client_side_validation && subscription !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
|
307
|
+
fail ArgumentError, "invalid value for 'subscription' when calling TransferenciasSPEIApi.out_comming_spei_request_id_transactions_report_using_get, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
|
308
|
+
end
|
309
|
+
|
310
|
+
# resource path
|
311
|
+
local_var_path = '/subscriptions/{subscription}/transactions/outcoming/spei/{requestId}'.sub('{' + 'requestId' + '}', request_id.to_s).sub('{' + 'subscription' + '}', subscription.to_s)
|
312
|
+
|
313
|
+
# query parameters
|
314
|
+
query_params = {}
|
315
|
+
|
316
|
+
# header parameters
|
317
|
+
header_params = {}
|
318
|
+
# HTTP header 'Accept' (if needed)
|
319
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
320
|
+
header_params[:'Authorization'] = authorization
|
321
|
+
|
322
|
+
# form parameters
|
323
|
+
form_params = {}
|
324
|
+
|
325
|
+
# http body (model)
|
326
|
+
post_body = nil
|
327
|
+
auth_names = []
|
328
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
329
|
+
:header_params => header_params,
|
330
|
+
:query_params => query_params,
|
331
|
+
:form_params => form_params,
|
332
|
+
:body => post_body,
|
333
|
+
:auth_names => auth_names,
|
334
|
+
:return_type => 'PaymentsRequestId')
|
335
|
+
if @api_client.config.debugging
|
336
|
+
@api_client.config.logger.debug "API called: TransferenciasSPEIApi#out_comming_spei_request_id_transactions_report_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
337
|
+
end
|
338
|
+
return data, status_code, headers
|
339
|
+
end
|
167
340
|
# Consulta de transferencias realizadas
|
168
341
|
# Consulta las transferencias realizadas en la cuenta del cliente Monex relacionada a la suscripción, las transferencias que regresa este recuso son únicamente las transferencias recibidas en el día en el que se realiza la consulta.<br>Se pueden realizar consultas por <strong>order_id</strong> al realizar este tipo de consultas no importa el día en el que se realizó la transferencia
|
342
|
+
# @param authorization Header para token
|
169
343
|
# @param subscription El identificador de la suscripción a esta API
|
170
344
|
# @param [Hash] opts the optional parameters
|
171
345
|
# @option opts [String] :order_id Identificador de la orden a buscar
|
172
346
|
# @return [Array<Payment>]
|
173
|
-
def outgoing_spei_transactions_report_using_get(subscription, opts = {})
|
174
|
-
data, _status_code, _headers = outgoing_spei_transactions_report_using_get_with_http_info(subscription, opts)
|
347
|
+
def outgoing_spei_transactions_report_using_get(authorization, subscription, opts = {})
|
348
|
+
data, _status_code, _headers = outgoing_spei_transactions_report_using_get_with_http_info(authorization, subscription, opts)
|
175
349
|
data
|
176
350
|
end
|
177
351
|
|
178
352
|
# Consulta de transferencias realizadas
|
179
353
|
# Consulta las transferencias realizadas en la cuenta del cliente Monex relacionada a la suscripción, las transferencias que regresa este recuso son únicamente las transferencias recibidas en el día en el que se realiza la consulta.<br>Se pueden realizar consultas por <strong>order_id</strong> al realizar este tipo de consultas no importa el día en el que se realizó la transferencia
|
354
|
+
# @param authorization Header para token
|
180
355
|
# @param subscription El identificador de la suscripción a esta API
|
181
356
|
# @param [Hash] opts the optional parameters
|
182
357
|
# @option opts [String] :order_id Identificador de la orden a buscar
|
183
358
|
# @return [Array<(Array<Payment>, Fixnum, Hash)>] Array<Payment> data, response status code and response headers
|
184
|
-
def outgoing_spei_transactions_report_using_get_with_http_info(subscription, opts = {})
|
359
|
+
def outgoing_spei_transactions_report_using_get_with_http_info(authorization, subscription, opts = {})
|
185
360
|
if @api_client.config.debugging
|
186
361
|
@api_client.config.logger.debug 'Calling API: TransferenciasSPEIApi.outgoing_spei_transactions_report_using_get ...'
|
187
362
|
end
|
363
|
+
# verify the required parameter 'authorization' is set
|
364
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
365
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling TransferenciasSPEIApi.outgoing_spei_transactions_report_using_get"
|
366
|
+
end
|
188
367
|
# verify the required parameter 'subscription' is set
|
189
368
|
if @api_client.config.client_side_validation && subscription.nil?
|
190
369
|
fail ArgumentError, "Missing the required parameter 'subscription' when calling TransferenciasSPEIApi.outgoing_spei_transactions_report_using_get"
|
@@ -212,13 +391,14 @@ module Wire4Client
|
|
212
391
|
header_params = {}
|
213
392
|
# HTTP header 'Accept' (if needed)
|
214
393
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
394
|
+
header_params[:'Authorization'] = authorization
|
215
395
|
|
216
396
|
# form parameters
|
217
397
|
form_params = {}
|
218
398
|
|
219
399
|
# http body (model)
|
220
400
|
post_body = nil
|
221
|
-
auth_names = [
|
401
|
+
auth_names = []
|
222
402
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
223
403
|
:header_params => header_params,
|
224
404
|
:query_params => query_params,
|
@@ -233,25 +413,31 @@ module Wire4Client
|
|
233
413
|
end
|
234
414
|
# Registro de transferencias
|
235
415
|
# Registra un conjunto de transferencias a realizar en la cuenta del cliente Monex relacionada a la suscripción, las transferencias deben ser confirmadas por el cliente para que se efectuen.
|
416
|
+
# @param authorization Header para token
|
236
417
|
# @param subscription El identificador de la suscripción a esta API
|
237
418
|
# @param transactions Información de las transferencias SPEI de salida
|
238
419
|
# @param [Hash] opts the optional parameters
|
239
420
|
# @return [TokenRequiredResponse]
|
240
|
-
def register_outgoing_spei_transaction_using_post(subscription, transactions, opts = {})
|
241
|
-
data, _status_code, _headers = register_outgoing_spei_transaction_using_post_with_http_info(subscription, transactions, opts)
|
421
|
+
def register_outgoing_spei_transaction_using_post(authorization, subscription, transactions, opts = {})
|
422
|
+
data, _status_code, _headers = register_outgoing_spei_transaction_using_post_with_http_info(authorization, subscription, transactions, opts)
|
242
423
|
data
|
243
424
|
end
|
244
425
|
|
245
426
|
# Registro de transferencias
|
246
427
|
# Registra un conjunto de transferencias a realizar en la cuenta del cliente Monex relacionada a la suscripción, las transferencias deben ser confirmadas por el cliente para que se efectuen.
|
428
|
+
# @param authorization Header para token
|
247
429
|
# @param subscription El identificador de la suscripción a esta API
|
248
430
|
# @param transactions Información de las transferencias SPEI de salida
|
249
431
|
# @param [Hash] opts the optional parameters
|
250
432
|
# @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
|
251
|
-
def register_outgoing_spei_transaction_using_post_with_http_info(subscription, transactions, opts = {})
|
433
|
+
def register_outgoing_spei_transaction_using_post_with_http_info(authorization, subscription, transactions, opts = {})
|
252
434
|
if @api_client.config.debugging
|
253
435
|
@api_client.config.logger.debug 'Calling API: TransferenciasSPEIApi.register_outgoing_spei_transaction_using_post ...'
|
254
436
|
end
|
437
|
+
# verify the required parameter 'authorization' is set
|
438
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
439
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling TransferenciasSPEIApi.register_outgoing_spei_transaction_using_post"
|
440
|
+
end
|
255
441
|
# verify the required parameter 'subscription' is set
|
256
442
|
if @api_client.config.client_side_validation && subscription.nil?
|
257
443
|
fail ArgumentError, "Missing the required parameter 'subscription' when calling TransferenciasSPEIApi.register_outgoing_spei_transaction_using_post"
|
@@ -284,13 +470,14 @@ module Wire4Client
|
|
284
470
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
285
471
|
# HTTP header 'Content-Type'
|
286
472
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
473
|
+
header_params[:'Authorization'] = authorization
|
287
474
|
|
288
475
|
# form parameters
|
289
476
|
form_params = {}
|
290
477
|
|
291
478
|
# http body (model)
|
292
479
|
post_body = @api_client.object_to_http_body(transactions)
|
293
|
-
auth_names = [
|
480
|
+
auth_names = []
|
294
481
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
295
482
|
:header_params => header_params,
|
296
483
|
:query_params => query_params,
|