wire4_client 0.0.1.pre.SNAPSHOT → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +96 -51
- data/docs/Account.md +11 -11
- data/docs/AccountDetail.md +13 -0
- data/docs/AccountReassigned.md +21 -0
- data/docs/AccountRequest.md +3 -3
- data/docs/AccountResponse.md +13 -11
- data/docs/AccountSpid.md +11 -11
- data/docs/AddressCompany.md +17 -0
- data/docs/AmountRequest.md +5 -3
- 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/Balance.md +3 -3
- data/docs/BalanceListResponse.md +1 -1
- data/docs/BeneficiariesQueryRegisterStatus.md +13 -0
- data/docs/BeneficiariesResponse.md +1 -1
- data/docs/BillingTransaction.md +1 -1
- data/docs/CepResponse.md +20 -20
- data/docs/CepSearchBanxico.md +8 -8
- 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/ContactRequest.md +5 -5
- 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 +190 -81
- data/docs/CuentasDeBeneficiariosSPIDApi.md +80 -13
- data/docs/Deposit.md +21 -20
- data/docs/DepositAuthorizationRequest.md +10 -0
- data/docs/Depositant.md +5 -5
- data/docs/DepositantesApi.md +18 -22
- data/docs/DepositantsRegister.md +4 -4
- data/docs/DepositantsResponse.md +1 -1
- 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/GetDepositants.md +1 -1
- data/docs/InstitucionesApi.md +15 -12
- data/docs/Institution.md +4 -4
- data/docs/InstitutionsList.md +1 -1
- data/docs/Item.md +10 -0
- data/docs/LmitesDeMontosApi.md +112 -0
- data/docs/MessageAccountBeneficiary.md +3 -3
- data/docs/MessageCEP.md +21 -21
- data/docs/MessageCodiAction.md +19 -0
- data/docs/MessageConfigurationsLimits.md +8 -0
- data/docs/MessageDepositAuthorizationRequest.md +27 -0
- data/docs/MessageDepositReceived.md +21 -20
- data/docs/MessageInstitution.md +4 -4
- data/docs/MessagePayment.md +20 -18
- 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 +9 -9
- data/docs/OperacionesCoDiApi.md +68 -0
- data/docs/Operations.md +17 -0
- data/docs/PagerResponseDto.md +13 -0
- data/docs/Payment.md +19 -17
- 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/PreEnrollmentData.md +2 -2
- data/docs/PreEnrollmentResponse.md +2 -2
- data/docs/PreMonexAuthorization.md +11 -0
- data/docs/PuntosDeVentaCoDiApi.md +113 -0
- data/docs/Relationship.md +2 -2
- data/docs/RelationshipsResponse.md +1 -1
- data/docs/SaldoApi.md +9 -11
- 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/ServiceBanking.md +9 -0
- data/docs/SpidBeneficiariesResponse.md +8 -0
- data/docs/SpidBeneficiaryResponse.md +19 -0
- data/docs/SpidClassificationDTO.md +2 -2
- data/docs/SubscriptionChangeStatusRequest.md +8 -0
- data/docs/SuscripcionesApi.md +143 -42
- data/docs/TokenRequiredResponse.md +2 -2
- data/docs/TransactionErrorCode.md +10 -0
- data/docs/TransactionOutgoing.md +2 -1
- data/docs/TransactionOutgoingSpid.md +10 -10
- data/docs/TransactionsOutgoingRegister.md +3 -3
- data/docs/TransferenciasSPEIApi.md +150 -46
- data/docs/TransferenciasSPIDApi.md +24 -28
- data/docs/UpdateConfigurationsRequestDTO.md +8 -0
- data/docs/UrlsRedirect.md +9 -0
- data/docs/UseServiceBanking.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/WebhookRequest.md +3 -3
- data/docs/WebhookResponse.md +5 -5
- data/docs/WebhooksApi.md +30 -33
- data/lib/wire4_client.rb +59 -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 +292 -63
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +110 -9
- data/lib/wire4_client/api/depositantes_api.rb +31 -17
- 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 +16 -7
- 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 +16 -9
- data/lib/wire4_client/api/suscripciones_api.rb +185 -31
- data/lib/wire4_client/api/transferencias_spei_api.rb +220 -33
- data/lib/wire4_client/api/transferencias_spid_api.rb +35 -21
- data/lib/wire4_client/api/webhooks_api.rb +46 -25
- 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 +12 -12
- data/lib/wire4_client/models/{timestamp.rb → account_detail.rb} +50 -75
- data/lib/wire4_client/models/account_reassigned.rb +375 -0
- data/lib/wire4_client/models/account_request.rb +4 -4
- data/lib/wire4_client/models/account_response.rb +37 -17
- data/lib/wire4_client/models/account_spid.rb +60 -12
- data/lib/wire4_client/models/address_company.rb +275 -0
- data/lib/wire4_client/models/amount_request.rb +95 -9
- 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 +5 -5
- data/lib/wire4_client/models/balance_list_response.rb +2 -2
- data/lib/wire4_client/models/beneficiaries_query_register_status.rb +270 -0
- data/lib/wire4_client/models/beneficiaries_response.rb +2 -2
- 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 +21 -21
- data/lib/wire4_client/models/cep_search_banxico.rb +9 -9
- 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/codi_operation_response_dto.rb +245 -0
- 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 +7 -7
- 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 +32 -22
- data/lib/wire4_client/models/deposit_authorization_request.rb +205 -0
- data/lib/wire4_client/models/depositant.rb +6 -6
- data/lib/wire4_client/models/depositants_register.rb +5 -5
- data/lib/wire4_client/models/depositants_response.rb +2 -2
- 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 +3 -3
- data/lib/wire4_client/models/institution.rb +6 -6
- data/lib/wire4_client/models/institutions_list.rb +2 -2
- data/lib/wire4_client/models/item.rb +205 -0
- data/lib/wire4_client/models/message_account_beneficiary.rb +5 -5
- data/lib/wire4_client/models/message_cep.rb +23 -23
- 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 +33 -23
- data/lib/wire4_client/models/message_institution.rb +6 -6
- data/lib/wire4_client/models/message_payment.rb +41 -20
- 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 +11 -11
- 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 +40 -20
- 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 +21 -3
- data/lib/wire4_client/models/pre_enrollment_response.rb +3 -3
- data/lib/wire4_client/models/pre_monex_authorization.rb +291 -0
- data/lib/wire4_client/models/relationship.rb +3 -3
- data/lib/wire4_client/models/relationships_response.rb +2 -2
- 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/service_banking.rb +193 -0
- data/lib/wire4_client/models/spid_beneficiaries_response.rb +186 -0
- data/lib/wire4_client/models/spid_beneficiary_response.rb +355 -0
- data/lib/wire4_client/models/spid_classification_dto.rb +3 -3
- data/lib/wire4_client/models/spid_classifications_response_dto.rb +1 -1
- data/lib/wire4_client/models/subscription_change_status_request.rb +222 -0
- data/lib/wire4_client/models/token_required_response.rb +4 -4
- 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 +12 -12
- data/lib/wire4_client/models/transactions_outgoing_register.rb +5 -5
- data/lib/wire4_client/models/update_configurations_request_dto.rb +192 -0
- data/lib/wire4_client/models/urls_redirect.rb +261 -0
- data/lib/wire4_client/models/use_service_banking.rb +251 -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 +4 -4
- data/lib/wire4_client/models/webhook_response.rb +6 -6
- 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 +59 -19
- data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +25 -3
- data/spec/api/depositantes_api_spec.rb +7 -5
- 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 +4 -2
- 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 +4 -3
- data/spec/api/suscripciones_api_spec.rb +41 -10
- data/spec/api/transferencias_spei_api_spec.rb +42 -9
- data/spec/api/transferencias_spid_api_spec.rb +9 -7
- data/spec/api/webhooks_api_spec.rb +8 -5
- 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 +119 -0
- data/spec/models/account_request_spec.rb +1 -1
- data/spec/models/account_response_spec.rb +13 -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/service_banking_spec.rb +47 -0
- data/spec/models/spid_beneficiaries_response_spec.rb +41 -0
- data/spec/models/spid_beneficiary_response_spec.rb +107 -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/subscription_change_status_request_spec.rb +45 -0
- 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/use_service_banking_spec.rb +55 -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.gemspec +2 -2
- metadata +281 -54
- data/Gemfile.lock +0 -69
- data/docs/Timestamp.md +0 -17
@@ -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 de CEP
|
23
23
|
# Consulta el CEP de un pago realizado a través del SPEI, si es que este se encuentra disponible en BANXICO.
|
24
|
+
# @param authorization Header para token
|
24
25
|
# @param cep_data Información para buscar un CEP
|
25
26
|
# @param [Hash] opts the optional parameters
|
26
27
|
# @return [CepResponse]
|
27
|
-
def obtain_transaction_cep_using_post(cep_data, opts = {})
|
28
|
-
data, _status_code, _headers = obtain_transaction_cep_using_post_with_http_info(cep_data, opts)
|
28
|
+
def obtain_transaction_cep_using_post(authorization, cep_data, opts = {})
|
29
|
+
data, _status_code, _headers = obtain_transaction_cep_using_post_with_http_info(authorization, cep_data, opts)
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
32
33
|
# Consulta de CEP
|
33
34
|
# Consulta el CEP de un pago realizado a través del SPEI, si es que este se encuentra disponible en BANXICO.
|
35
|
+
# @param authorization Header para token
|
34
36
|
# @param cep_data Información para buscar un CEP
|
35
37
|
# @param [Hash] opts the optional parameters
|
36
38
|
# @return [Array<(CepResponse, Fixnum, Hash)>] CepResponse data, response status code and response headers
|
37
|
-
def obtain_transaction_cep_using_post_with_http_info(cep_data, opts = {})
|
39
|
+
def obtain_transaction_cep_using_post_with_http_info(authorization, cep_data, opts = {})
|
38
40
|
if @api_client.config.debugging
|
39
41
|
@api_client.config.logger.debug 'Calling API: ComprobanteElectrnicoDePagoCEPApi.obtain_transaction_cep_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 ComprobanteElectrnicoDePagoCEPApi.obtain_transaction_cep_using_post"
|
46
|
+
end
|
41
47
|
# verify the required parameter 'cep_data' is set
|
42
48
|
if @api_client.config.client_side_validation && cep_data.nil?
|
43
49
|
fail ArgumentError, "Missing the required parameter 'cep_data' when calling ComprobanteElectrnicoDePagoCEPApi.obtain_transaction_cep_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(cep_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,
|
@@ -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
|
# Solicitud de contacto
|
23
23
|
# Notifica a un asesor Monex para que se ponga en contacto con un posible cliente.
|
24
|
+
# @param authorization Header para token
|
24
25
|
# @param request_dto Información del contacto
|
25
26
|
# @param [Hash] opts the optional parameters
|
26
27
|
# @return [nil]
|
27
|
-
def send_contact_using_post(request_dto, opts = {})
|
28
|
-
send_contact_using_post_with_http_info(request_dto, opts)
|
28
|
+
def send_contact_using_post(authorization, request_dto, opts = {})
|
29
|
+
send_contact_using_post_with_http_info(authorization, request_dto, opts)
|
29
30
|
nil
|
30
31
|
end
|
31
32
|
|
32
33
|
# Solicitud de contacto
|
33
34
|
# Notifica a un asesor Monex para que se ponga en contacto con un posible cliente.
|
35
|
+
# @param authorization Header para token
|
34
36
|
# @param request_dto Información del contacto
|
35
37
|
# @param [Hash] opts the optional parameters
|
36
38
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
37
|
-
def send_contact_using_post_with_http_info(request_dto, opts = {})
|
39
|
+
def send_contact_using_post_with_http_info(authorization, request_dto, opts = {})
|
38
40
|
if @api_client.config.debugging
|
39
41
|
@api_client.config.logger.debug 'Calling API: ContactoApi.send_contact_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 ContactoApi.send_contact_using_post"
|
46
|
+
end
|
41
47
|
# verify the required parameter 'request_dto' is set
|
42
48
|
if @api_client.config.client_side_validation && request_dto.nil?
|
43
49
|
fail ArgumentError, "Missing the required parameter 'request_dto' when calling ContactoApi.send_contact_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(request_dto)
|
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,
|
@@ -0,0 +1,301 @@
|
|
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 ContractsDetailsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Devuelve la URL para autorización del usuario Monex
|
23
|
+
# Se obtiene la URL para la autorización del usuario Monex.
|
24
|
+
# @param authorization Header para token
|
25
|
+
# @param pre_monex_authorization Información para la autorización
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [TokenRequiredResponse]
|
28
|
+
def create_authorization(authorization, pre_monex_authorization, opts = {})
|
29
|
+
data, _status_code, _headers = create_authorization_with_http_info(authorization, pre_monex_authorization, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Devuelve la URL para autorización del usuario Monex
|
34
|
+
# Se obtiene la URL para la autorización del usuario Monex.
|
35
|
+
# @param authorization Header para token
|
36
|
+
# @param pre_monex_authorization Información para la autorización
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
|
39
|
+
def create_authorization_with_http_info(authorization, pre_monex_authorization, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: ContractsDetailsApi.create_authorization ...'
|
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 ContractsDetailsApi.create_authorization"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'pre_monex_authorization' is set
|
48
|
+
if @api_client.config.client_side_validation && pre_monex_authorization.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'pre_monex_authorization' when calling ContractsDetailsApi.create_authorization"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/onboarding/accounts/authorize'
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
63
|
+
header_params[:'Authorization'] = authorization
|
64
|
+
|
65
|
+
# form parameters
|
66
|
+
form_params = {}
|
67
|
+
|
68
|
+
# http body (model)
|
69
|
+
post_body = @api_client.object_to_http_body(pre_monex_authorization)
|
70
|
+
auth_names = []
|
71
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
72
|
+
:header_params => header_params,
|
73
|
+
:query_params => query_params,
|
74
|
+
:form_params => form_params,
|
75
|
+
:body => post_body,
|
76
|
+
:auth_names => auth_names,
|
77
|
+
:return_type => 'TokenRequiredResponse')
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: ContractsDetailsApi#create_authorization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
# Obtiene los usuarios autorizados
|
84
|
+
# Obtienen los detalles de los usuarios autorizados de Monex.
|
85
|
+
# @param authorization Header para token
|
86
|
+
# @param x_access_key La llave de acceso de la aplicación
|
87
|
+
# @param request_id El identificador de la petición a esta API
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [Array<AuthorizedUsers>]
|
90
|
+
def obtain_authorized_users(authorization, x_access_key, request_id, opts = {})
|
91
|
+
data, _status_code, _headers = obtain_authorized_users_with_http_info(authorization, x_access_key, request_id, opts)
|
92
|
+
data
|
93
|
+
end
|
94
|
+
|
95
|
+
# Obtiene los usuarios autorizados
|
96
|
+
# Obtienen los detalles de los usuarios autorizados de Monex.
|
97
|
+
# @param authorization Header para token
|
98
|
+
# @param x_access_key La llave de acceso de la aplicación
|
99
|
+
# @param request_id El identificador de la petición a esta API
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @return [Array<(Array<AuthorizedUsers>, Fixnum, Hash)>] Array<AuthorizedUsers> data, response status code and response headers
|
102
|
+
def obtain_authorized_users_with_http_info(authorization, x_access_key, request_id, opts = {})
|
103
|
+
if @api_client.config.debugging
|
104
|
+
@api_client.config.logger.debug 'Calling API: ContractsDetailsApi.obtain_authorized_users ...'
|
105
|
+
end
|
106
|
+
# verify the required parameter 'authorization' is set
|
107
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling ContractsDetailsApi.obtain_authorized_users"
|
109
|
+
end
|
110
|
+
# verify the required parameter 'x_access_key' is set
|
111
|
+
if @api_client.config.client_side_validation && x_access_key.nil?
|
112
|
+
fail ArgumentError, "Missing the required parameter 'x_access_key' when calling ContractsDetailsApi.obtain_authorized_users"
|
113
|
+
end
|
114
|
+
# verify the required parameter 'request_id' is set
|
115
|
+
if @api_client.config.client_side_validation && request_id.nil?
|
116
|
+
fail ArgumentError, "Missing the required parameter 'request_id' when calling ContractsDetailsApi.obtain_authorized_users"
|
117
|
+
end
|
118
|
+
if @api_client.config.client_side_validation && request_id.to_s.length > 36
|
119
|
+
fail ArgumentError, 'invalid value for "request_id" when calling ContractsDetailsApi.obtain_authorized_users, the character length must be smaller than or equal to 36.'
|
120
|
+
end
|
121
|
+
|
122
|
+
if @api_client.config.client_side_validation && request_id.to_s.length < 36
|
123
|
+
fail ArgumentError, 'invalid value for "request_id" when calling ContractsDetailsApi.obtain_authorized_users, the character length must be great than or equal to 36.'
|
124
|
+
end
|
125
|
+
|
126
|
+
if @api_client.config.client_side_validation && request_id !~ 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}$/)
|
127
|
+
fail ArgumentError, "invalid value for 'request_id' when calling ContractsDetailsApi.obtain_authorized_users, 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}$/."
|
128
|
+
end
|
129
|
+
|
130
|
+
# resource path
|
131
|
+
local_var_path = '/onboarding/accounts/{requestId}/authorized-users'.sub('{' + 'requestId' + '}', request_id.to_s)
|
132
|
+
|
133
|
+
# query parameters
|
134
|
+
query_params = {}
|
135
|
+
|
136
|
+
# header parameters
|
137
|
+
header_params = {}
|
138
|
+
# HTTP header 'Accept' (if needed)
|
139
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
140
|
+
header_params[:'Authorization'] = authorization
|
141
|
+
header_params[:'X-ACCESS-KEY'] = x_access_key
|
142
|
+
|
143
|
+
# form parameters
|
144
|
+
form_params = {}
|
145
|
+
|
146
|
+
# http body (model)
|
147
|
+
post_body = nil
|
148
|
+
auth_names = []
|
149
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
150
|
+
:header_params => header_params,
|
151
|
+
:query_params => query_params,
|
152
|
+
:form_params => form_params,
|
153
|
+
:body => post_body,
|
154
|
+
:auth_names => auth_names,
|
155
|
+
:return_type => 'Array<AuthorizedUsers>')
|
156
|
+
if @api_client.config.debugging
|
157
|
+
@api_client.config.logger.debug "API called: ContractsDetailsApi#obtain_authorized_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
158
|
+
end
|
159
|
+
return data, status_code, headers
|
160
|
+
end
|
161
|
+
# Obtiene los usuarios autorizados por contrato
|
162
|
+
# Obtienen los detalles de los usuarios autorizados por contrato Monex.
|
163
|
+
# @param authorization Header para token
|
164
|
+
# @param x_access_key La llave de acceso de la aplicación
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @option opts [String] :contract El contrato Monex
|
167
|
+
# @return [Array<AuthorizedUsers>]
|
168
|
+
def obtain_authorized_users_by_contract(authorization, x_access_key, opts = {})
|
169
|
+
data, _status_code, _headers = obtain_authorized_users_by_contract_with_http_info(authorization, x_access_key, opts)
|
170
|
+
data
|
171
|
+
end
|
172
|
+
|
173
|
+
# Obtiene los usuarios autorizados por contrato
|
174
|
+
# Obtienen los detalles de los usuarios autorizados por contrato Monex.
|
175
|
+
# @param authorization Header para token
|
176
|
+
# @param x_access_key La llave de acceso de la aplicación
|
177
|
+
# @param [Hash] opts the optional parameters
|
178
|
+
# @option opts [String] :contract El contrato Monex
|
179
|
+
# @return [Array<(Array<AuthorizedUsers>, Fixnum, Hash)>] Array<AuthorizedUsers> data, response status code and response headers
|
180
|
+
def obtain_authorized_users_by_contract_with_http_info(authorization, x_access_key, opts = {})
|
181
|
+
if @api_client.config.debugging
|
182
|
+
@api_client.config.logger.debug 'Calling API: ContractsDetailsApi.obtain_authorized_users_by_contract ...'
|
183
|
+
end
|
184
|
+
# verify the required parameter 'authorization' is set
|
185
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
186
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling ContractsDetailsApi.obtain_authorized_users_by_contract"
|
187
|
+
end
|
188
|
+
# verify the required parameter 'x_access_key' is set
|
189
|
+
if @api_client.config.client_side_validation && x_access_key.nil?
|
190
|
+
fail ArgumentError, "Missing the required parameter 'x_access_key' when calling ContractsDetailsApi.obtain_authorized_users_by_contract"
|
191
|
+
end
|
192
|
+
if @api_client.config.client_side_validation && !opts[:'contract'].nil? && opts[:'contract'].to_s.length > 11
|
193
|
+
fail ArgumentError, 'invalid value for "opts[:"contract"]" when calling ContractsDetailsApi.obtain_authorized_users_by_contract, the character length must be smaller than or equal to 11.'
|
194
|
+
end
|
195
|
+
|
196
|
+
if @api_client.config.client_side_validation && !opts[:'contract'].nil? && opts[:'contract'].to_s.length < 1
|
197
|
+
fail ArgumentError, 'invalid value for "opts[:"contract"]" when calling ContractsDetailsApi.obtain_authorized_users_by_contract, the character length must be great than or equal to 1.'
|
198
|
+
end
|
199
|
+
|
200
|
+
# resource path
|
201
|
+
local_var_path = '/onboarding/accounts/authorized-users'
|
202
|
+
|
203
|
+
# query parameters
|
204
|
+
query_params = {}
|
205
|
+
query_params[:'contract'] = opts[:'contract'] if !opts[:'contract'].nil?
|
206
|
+
|
207
|
+
# header parameters
|
208
|
+
header_params = {}
|
209
|
+
# HTTP header 'Accept' (if needed)
|
210
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
211
|
+
header_params[:'Authorization'] = authorization
|
212
|
+
header_params[:'X-ACCESS-KEY'] = x_access_key
|
213
|
+
|
214
|
+
# form parameters
|
215
|
+
form_params = {}
|
216
|
+
|
217
|
+
# http body (model)
|
218
|
+
post_body = nil
|
219
|
+
auth_names = []
|
220
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
221
|
+
:header_params => header_params,
|
222
|
+
:query_params => query_params,
|
223
|
+
:form_params => form_params,
|
224
|
+
:body => post_body,
|
225
|
+
:auth_names => auth_names,
|
226
|
+
:return_type => 'Array<AuthorizedUsers>')
|
227
|
+
if @api_client.config.debugging
|
228
|
+
@api_client.config.logger.debug "API called: ContractsDetailsApi#obtain_authorized_users_by_contract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
229
|
+
end
|
230
|
+
return data, status_code, headers
|
231
|
+
end
|
232
|
+
# Obtiene los detalles de la empresa del contrato
|
233
|
+
# Detalles de la compañía relacionada con el contrato de Monex.
|
234
|
+
# @param authorization Header para token
|
235
|
+
# @param x_access_key La llave de acceso de la aplicación
|
236
|
+
# @param contract_detail_request Información para obtener los detalles de la companía
|
237
|
+
# @param [Hash] opts the optional parameters
|
238
|
+
# @return [ContractDetailResponse]
|
239
|
+
def obtain_contract_details(authorization, x_access_key, contract_detail_request, opts = {})
|
240
|
+
data, _status_code, _headers = obtain_contract_details_with_http_info(authorization, x_access_key, contract_detail_request, opts)
|
241
|
+
data
|
242
|
+
end
|
243
|
+
|
244
|
+
# Obtiene los detalles de la empresa del contrato
|
245
|
+
# Detalles de la compañía relacionada con el contrato de Monex.
|
246
|
+
# @param authorization Header para token
|
247
|
+
# @param x_access_key La llave de acceso de la aplicación
|
248
|
+
# @param contract_detail_request Información para obtener los detalles de la companía
|
249
|
+
# @param [Hash] opts the optional parameters
|
250
|
+
# @return [Array<(ContractDetailResponse, Fixnum, Hash)>] ContractDetailResponse data, response status code and response headers
|
251
|
+
def obtain_contract_details_with_http_info(authorization, x_access_key, contract_detail_request, opts = {})
|
252
|
+
if @api_client.config.debugging
|
253
|
+
@api_client.config.logger.debug 'Calling API: ContractsDetailsApi.obtain_contract_details ...'
|
254
|
+
end
|
255
|
+
# verify the required parameter 'authorization' is set
|
256
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
257
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling ContractsDetailsApi.obtain_contract_details"
|
258
|
+
end
|
259
|
+
# verify the required parameter 'x_access_key' is set
|
260
|
+
if @api_client.config.client_side_validation && x_access_key.nil?
|
261
|
+
fail ArgumentError, "Missing the required parameter 'x_access_key' when calling ContractsDetailsApi.obtain_contract_details"
|
262
|
+
end
|
263
|
+
# verify the required parameter 'contract_detail_request' is set
|
264
|
+
if @api_client.config.client_side_validation && contract_detail_request.nil?
|
265
|
+
fail ArgumentError, "Missing the required parameter 'contract_detail_request' when calling ContractsDetailsApi.obtain_contract_details"
|
266
|
+
end
|
267
|
+
# resource path
|
268
|
+
local_var_path = '/onboarding/accounts/details'
|
269
|
+
|
270
|
+
# query parameters
|
271
|
+
query_params = {}
|
272
|
+
|
273
|
+
# header parameters
|
274
|
+
header_params = {}
|
275
|
+
# HTTP header 'Accept' (if needed)
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
277
|
+
# HTTP header 'Content-Type'
|
278
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
279
|
+
header_params[:'Authorization'] = authorization
|
280
|
+
header_params[:'X-ACCESS-KEY'] = x_access_key
|
281
|
+
|
282
|
+
# form parameters
|
283
|
+
form_params = {}
|
284
|
+
|
285
|
+
# http body (model)
|
286
|
+
post_body = @api_client.object_to_http_body(contract_detail_request)
|
287
|
+
auth_names = []
|
288
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
289
|
+
:header_params => header_params,
|
290
|
+
:query_params => query_params,
|
291
|
+
:form_params => form_params,
|
292
|
+
:body => post_body,
|
293
|
+
:auth_names => auth_names,
|
294
|
+
:return_type => 'ContractDetailResponse')
|
295
|
+
if @api_client.config.debugging
|
296
|
+
@api_client.config.logger.debug "API called: ContractsDetailsApi#obtain_contract_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
297
|
+
end
|
298
|
+
return data, status_code, headers
|
299
|
+
end
|
300
|
+
end
|
301
|
+
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
|
|
@@ -19,27 +19,112 @@ module Wire4Client
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Solicitud para agrupar cuentas de beneficiarios SPEI/SPID en estado pendiente.
|
23
|
+
# Solicta la agrupación de las cuentas de beneficiarios en estado pendiente para que sean autorizadas, para ello se crea un conjunto de éstas que puede incluir tanto de SPEI como de SPID. Además se debe indicar las urls de redirección en caso de error y éxito
|
24
|
+
# @param authorization Header para token
|
25
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
26
|
+
# @param urls_redirect_dto Información de la cuenta del beneficiario
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [AuthorizedBeneficiariesResponse]
|
29
|
+
def authorize_accounts_pending_put(authorization, subscription, urls_redirect_dto, opts = {})
|
30
|
+
data, _status_code, _headers = authorize_accounts_pending_put_with_http_info(authorization, subscription, urls_redirect_dto, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Solicitud para agrupar cuentas de beneficiarios SPEI/SPID en estado pendiente.
|
35
|
+
# Solicta la agrupación de las cuentas de beneficiarios en estado pendiente para que sean autorizadas, para ello se crea un conjunto de éstas que puede incluir tanto de SPEI como de SPID. Además se debe indicar las urls de redirección en caso de error y éxito
|
36
|
+
# @param authorization Header para token
|
37
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
38
|
+
# @param urls_redirect_dto Información de la cuenta del beneficiario
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Array<(AuthorizedBeneficiariesResponse, Fixnum, Hash)>] AuthorizedBeneficiariesResponse data, response status code and response headers
|
41
|
+
def authorize_accounts_pending_put_with_http_info(authorization, subscription, urls_redirect_dto, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put ...'
|
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 CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put"
|
48
|
+
end
|
49
|
+
# verify the required parameter 'subscription' is set
|
50
|
+
if @api_client.config.client_side_validation && subscription.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'subscription' when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put"
|
52
|
+
end
|
53
|
+
if @api_client.config.client_side_validation && subscription.to_s.length > 36
|
54
|
+
fail ArgumentError, 'invalid value for "subscription" when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put, the character length must be smaller than or equal to 36.'
|
55
|
+
end
|
56
|
+
|
57
|
+
if @api_client.config.client_side_validation && subscription.to_s.length < 36
|
58
|
+
fail ArgumentError, 'invalid value for "subscription" when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put, the character length must be great than or equal to 36.'
|
59
|
+
end
|
60
|
+
|
61
|
+
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}$/)
|
62
|
+
fail ArgumentError, "invalid value for 'subscription' when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put, 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}$/."
|
63
|
+
end
|
64
|
+
|
65
|
+
# verify the required parameter 'urls_redirect_dto' is set
|
66
|
+
if @api_client.config.client_side_validation && urls_redirect_dto.nil?
|
67
|
+
fail ArgumentError, "Missing the required parameter 'urls_redirect_dto' when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put"
|
68
|
+
end
|
69
|
+
# resource path
|
70
|
+
local_var_path = '/subscriptions/{subscription}/beneficiaries/pending'.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(['application/json'])
|
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(urls_redirect_dto)
|
88
|
+
auth_names = []
|
89
|
+
data, status_code, headers = @api_client.call_api(:PUT, 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 => 'AuthorizedBeneficiariesResponse')
|
96
|
+
if @api_client.config.debugging
|
97
|
+
@api_client.config.logger.debug "API called: CuentasDeBeneficiariosSPEIApi#authorize_accounts_pending_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
98
|
+
end
|
99
|
+
return data, status_code, headers
|
100
|
+
end
|
22
101
|
# Elimina la cuenta del beneficiario
|
23
|
-
#
|
24
|
-
# @param
|
25
|
-
# @param
|
102
|
+
# Elimina la cuenta de beneficiario proporcionada relacionada al contrato perteneciente a la suscripción. La cuenta a borrar debe ser una que opere con SPEI.
|
103
|
+
# @param authorization Header para token
|
104
|
+
# @param account Es la cuenta del beneficiario que será eliminada.
|
105
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
26
106
|
# @param [Hash] opts the optional parameters
|
27
107
|
# @return [nil]
|
28
|
-
def delete_account_using_delete(account, subscription, opts = {})
|
29
|
-
delete_account_using_delete_with_http_info(account, subscription, opts)
|
108
|
+
def delete_account_using_delete(authorization, account, subscription, opts = {})
|
109
|
+
delete_account_using_delete_with_http_info(authorization, account, subscription, opts)
|
30
110
|
nil
|
31
111
|
end
|
32
112
|
|
33
113
|
# Elimina la cuenta del beneficiario
|
34
|
-
#
|
35
|
-
# @param
|
36
|
-
# @param
|
114
|
+
# Elimina la cuenta de beneficiario proporcionada relacionada al contrato perteneciente a la suscripción. La cuenta a borrar debe ser una que opere con SPEI.
|
115
|
+
# @param authorization Header para token
|
116
|
+
# @param account Es la cuenta del beneficiario que será eliminada.
|
117
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
37
118
|
# @param [Hash] opts the optional parameters
|
38
119
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
39
|
-
def delete_account_using_delete_with_http_info(account, subscription, opts = {})
|
120
|
+
def delete_account_using_delete_with_http_info(authorization, account, subscription, opts = {})
|
40
121
|
if @api_client.config.debugging
|
41
122
|
@api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.delete_account_using_delete ...'
|
42
123
|
end
|
124
|
+
# verify the required parameter 'authorization' is set
|
125
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
126
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.delete_account_using_delete"
|
127
|
+
end
|
43
128
|
# verify the required parameter 'account' is set
|
44
129
|
if @api_client.config.client_side_validation && account.nil?
|
45
130
|
fail ArgumentError, "Missing the required parameter 'account' when calling CuentasDeBeneficiariosSPEIApi.delete_account_using_delete"
|
@@ -78,13 +163,14 @@ module Wire4Client
|
|
78
163
|
header_params = {}
|
79
164
|
# HTTP header 'Accept' (if needed)
|
80
165
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
166
|
+
header_params[:'Authorization'] = authorization
|
81
167
|
|
82
168
|
# form parameters
|
83
169
|
form_params = {}
|
84
170
|
|
85
171
|
# http body (model)
|
86
172
|
post_body = nil
|
87
|
-
auth_names = [
|
173
|
+
auth_names = []
|
88
174
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
89
175
|
:header_params => header_params,
|
90
176
|
:query_params => query_params,
|
@@ -98,23 +184,29 @@ module Wire4Client
|
|
98
184
|
end
|
99
185
|
# Consulta de relaciones
|
100
186
|
# Obtiene las posibles relaciones existentes para registrar beneficiarios en Monex. Se debe invocar este recurso antes de pre-registrar una cuenta de beneficiario.
|
101
|
-
# @param
|
187
|
+
# @param authorization Header para token
|
188
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
102
189
|
# @param [Hash] opts the optional parameters
|
103
190
|
# @return [RelationshipsResponse]
|
104
|
-
def get_available_relationships_monex_using_get(subscription, opts = {})
|
105
|
-
data, _status_code, _headers = get_available_relationships_monex_using_get_with_http_info(subscription, opts)
|
191
|
+
def get_available_relationships_monex_using_get(authorization, subscription, opts = {})
|
192
|
+
data, _status_code, _headers = get_available_relationships_monex_using_get_with_http_info(authorization, subscription, opts)
|
106
193
|
data
|
107
194
|
end
|
108
195
|
|
109
196
|
# Consulta de relaciones
|
110
197
|
# Obtiene las posibles relaciones existentes para registrar beneficiarios en Monex. Se debe invocar este recurso antes de pre-registrar una cuenta de beneficiario.
|
111
|
-
# @param
|
198
|
+
# @param authorization Header para token
|
199
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
112
200
|
# @param [Hash] opts the optional parameters
|
113
201
|
# @return [Array<(RelationshipsResponse, Fixnum, Hash)>] RelationshipsResponse data, response status code and response headers
|
114
|
-
def get_available_relationships_monex_using_get_with_http_info(subscription, opts = {})
|
202
|
+
def get_available_relationships_monex_using_get_with_http_info(authorization, subscription, opts = {})
|
115
203
|
if @api_client.config.debugging
|
116
204
|
@api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.get_available_relationships_monex_using_get ...'
|
117
205
|
end
|
206
|
+
# verify the required parameter 'authorization' is set
|
207
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
208
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.get_available_relationships_monex_using_get"
|
209
|
+
end
|
118
210
|
# verify the required parameter 'subscription' is set
|
119
211
|
if @api_client.config.client_side_validation && subscription.nil?
|
120
212
|
fail ArgumentError, "Missing the required parameter 'subscription' when calling CuentasDeBeneficiariosSPEIApi.get_available_relationships_monex_using_get"
|
@@ -141,13 +233,14 @@ module Wire4Client
|
|
141
233
|
header_params = {}
|
142
234
|
# HTTP header 'Accept' (if needed)
|
143
235
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
236
|
+
header_params[:'Authorization'] = authorization
|
144
237
|
|
145
238
|
# form parameters
|
146
239
|
form_params = {}
|
147
240
|
|
148
241
|
# http body (model)
|
149
242
|
post_body = nil
|
150
|
-
auth_names = [
|
243
|
+
auth_names = []
|
151
244
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
152
245
|
:header_params => header_params,
|
153
246
|
:query_params => query_params,
|
@@ -160,27 +253,134 @@ module Wire4Client
|
|
160
253
|
end
|
161
254
|
return data, status_code, headers
|
162
255
|
end
|
256
|
+
# Consulta los beneficiarios por el identificador de la petición de registro
|
257
|
+
# Obtiene los beneficiarios enviados para registro en una petición al contrato relacionado con la suscripción, Los beneficiarios son los que actualmente se encuentran registrados en banca Monex, que pertenezcan a la petición que se solicita.
|
258
|
+
# @param authorization Header para token
|
259
|
+
# @param request_id El identificador de la petición del registro de beneficiarios a esta API.
|
260
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
261
|
+
# @param [Hash] opts the optional parameters
|
262
|
+
# @return [BeneficiariesResponse]
|
263
|
+
def get_beneficiaries_by_request_id(authorization, request_id, subscription, opts = {})
|
264
|
+
data, _status_code, _headers = get_beneficiaries_by_request_id_with_http_info(authorization, request_id, subscription, opts)
|
265
|
+
data
|
266
|
+
end
|
267
|
+
|
268
|
+
# Consulta los beneficiarios por el identificador de la petición de registro
|
269
|
+
# Obtiene los beneficiarios enviados para registro en una petición al contrato relacionado con la suscripción, Los beneficiarios son los que actualmente se encuentran registrados en banca Monex, que pertenezcan a la petición que se solicita.
|
270
|
+
# @param authorization Header para token
|
271
|
+
# @param request_id El identificador de la petición del registro de beneficiarios a esta API.
|
272
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
273
|
+
# @param [Hash] opts the optional parameters
|
274
|
+
# @return [Array<(BeneficiariesResponse, Fixnum, Hash)>] BeneficiariesResponse data, response status code and response headers
|
275
|
+
def get_beneficiaries_by_request_id_with_http_info(authorization, request_id, subscription, opts = {})
|
276
|
+
if @api_client.config.debugging
|
277
|
+
@api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id ...'
|
278
|
+
end
|
279
|
+
# verify the required parameter 'authorization' is set
|
280
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
281
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id"
|
282
|
+
end
|
283
|
+
# verify the required parameter 'request_id' is set
|
284
|
+
if @api_client.config.client_side_validation && request_id.nil?
|
285
|
+
fail ArgumentError, "Missing the required parameter 'request_id' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id"
|
286
|
+
end
|
287
|
+
if @api_client.config.client_side_validation && request_id.to_s.length > 36
|
288
|
+
fail ArgumentError, 'invalid value for "request_id" when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, the character length must be smaller than or equal to 36.'
|
289
|
+
end
|
290
|
+
|
291
|
+
if @api_client.config.client_side_validation && request_id.to_s.length < 36
|
292
|
+
fail ArgumentError, 'invalid value for "request_id" when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, the character length must be great than or equal to 36.'
|
293
|
+
end
|
294
|
+
|
295
|
+
if @api_client.config.client_side_validation && request_id !~ 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}$/)
|
296
|
+
fail ArgumentError, "invalid value for 'request_id' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, 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}$/."
|
297
|
+
end
|
298
|
+
|
299
|
+
# verify the required parameter 'subscription' is set
|
300
|
+
if @api_client.config.client_side_validation && subscription.nil?
|
301
|
+
fail ArgumentError, "Missing the required parameter 'subscription' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id"
|
302
|
+
end
|
303
|
+
if @api_client.config.client_side_validation && subscription.to_s.length > 36
|
304
|
+
fail ArgumentError, 'invalid value for "subscription" when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, the character length must be smaller than or equal to 36.'
|
305
|
+
end
|
306
|
+
|
307
|
+
if @api_client.config.client_side_validation && subscription.to_s.length < 36
|
308
|
+
fail ArgumentError, 'invalid value for "subscription" when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, the character length must be great than or equal to 36.'
|
309
|
+
end
|
310
|
+
|
311
|
+
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}$/)
|
312
|
+
fail ArgumentError, "invalid value for 'subscription' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, 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}$/."
|
313
|
+
end
|
314
|
+
|
315
|
+
# resource path
|
316
|
+
local_var_path = '/subscriptions/{subscription}/beneficiaries/spei/{requestId}'.sub('{' + 'requestId' + '}', request_id.to_s).sub('{' + 'subscription' + '}', subscription.to_s)
|
317
|
+
|
318
|
+
# query parameters
|
319
|
+
query_params = {}
|
320
|
+
|
321
|
+
# header parameters
|
322
|
+
header_params = {}
|
323
|
+
# HTTP header 'Accept' (if needed)
|
324
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
325
|
+
header_params[:'Authorization'] = authorization
|
326
|
+
|
327
|
+
# form parameters
|
328
|
+
form_params = {}
|
329
|
+
|
330
|
+
# http body (model)
|
331
|
+
post_body = nil
|
332
|
+
auth_names = []
|
333
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
334
|
+
:header_params => header_params,
|
335
|
+
:query_params => query_params,
|
336
|
+
:form_params => form_params,
|
337
|
+
:body => post_body,
|
338
|
+
:auth_names => auth_names,
|
339
|
+
:return_type => 'BeneficiariesResponse')
|
340
|
+
if @api_client.config.debugging
|
341
|
+
@api_client.config.logger.debug "API called: CuentasDeBeneficiariosSPEIApi#get_beneficiaries_by_request_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
342
|
+
end
|
343
|
+
return data, status_code, headers
|
344
|
+
end
|
163
345
|
# Consulta los beneficiarios registrados
|
164
346
|
# Obtiene los beneficiarios registrados al contrato relacionado con la suscripción, Los beneficiarios son los que actualmente se encuentran registrados en banca Monex.
|
165
|
-
# @param
|
347
|
+
# @param authorization Header para token
|
348
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
166
349
|
# @param [Hash] opts the optional parameters
|
167
|
-
# @option opts [String] :
|
350
|
+
# @option opts [String] :account Es la cuenta del beneficiario, podría ser teléfono celular (es de 10 dígitos), Tarjeta de débito (TDD, es de 16 dígitos) o cuenta CLABE (es de 18 dígitos). <br/><br/>Por ejemplo Teléfono celular: 5525072600, TDD: 4323 1234 5678 9123, CLABE: 032180000118359719.
|
351
|
+
# @option opts [String] :beneficiary_bank Es la clave del banco beneficiario. Se puede obtener del recurso de las <a href=\"#operation/getAllInstitutionsUsingGET\">instituciones.</a>
|
352
|
+
# @option opts [String] :beneficiary_name Es el nombre del beneficiario.
|
353
|
+
# @option opts [String] :end_date Es la fecha de inicio del perido a filtrar en formato dd-mm-yyyy.
|
354
|
+
# @option opts [String] :init_date Es la fºecha de inicio del perido a filtrar en formato dd-mm-yyyy.
|
355
|
+
# @option opts [String] :rfc Es el Registro Federal de Controbuyentes (RFC) del beneficiario.
|
356
|
+
# @option opts [String] :status Es el estado (estatus) de la cuenta. Los valores pueden ser <b>PENDING</b> y <b>REGISTERED</b>.
|
168
357
|
# @return [BeneficiariesResponse]
|
169
|
-
def get_beneficiaries_for_account_using_get(subscription, opts = {})
|
170
|
-
data, _status_code, _headers = get_beneficiaries_for_account_using_get_with_http_info(subscription, opts)
|
358
|
+
def get_beneficiaries_for_account_using_get(authorization, subscription, opts = {})
|
359
|
+
data, _status_code, _headers = get_beneficiaries_for_account_using_get_with_http_info(authorization, subscription, opts)
|
171
360
|
data
|
172
361
|
end
|
173
362
|
|
174
363
|
# Consulta los beneficiarios registrados
|
175
364
|
# Obtiene los beneficiarios registrados al contrato relacionado con la suscripción, Los beneficiarios son los que actualmente se encuentran registrados en banca Monex.
|
176
|
-
# @param
|
365
|
+
# @param authorization Header para token
|
366
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
177
367
|
# @param [Hash] opts the optional parameters
|
178
|
-
# @option opts [String] :
|
368
|
+
# @option opts [String] :account Es la cuenta del beneficiario, podría ser teléfono celular (es de 10 dígitos), Tarjeta de débito (TDD, es de 16 dígitos) o cuenta CLABE (es de 18 dígitos). <br/><br/>Por ejemplo Teléfono celular: 5525072600, TDD: 4323 1234 5678 9123, CLABE: 032180000118359719.
|
369
|
+
# @option opts [String] :beneficiary_bank Es la clave del banco beneficiario. Se puede obtener del recurso de las <a href=\"#operation/getAllInstitutionsUsingGET\">instituciones.</a>
|
370
|
+
# @option opts [String] :beneficiary_name Es el nombre del beneficiario.
|
371
|
+
# @option opts [String] :end_date Es la fecha de inicio del perido a filtrar en formato dd-mm-yyyy.
|
372
|
+
# @option opts [String] :init_date Es la fºecha de inicio del perido a filtrar en formato dd-mm-yyyy.
|
373
|
+
# @option opts [String] :rfc Es el Registro Federal de Controbuyentes (RFC) del beneficiario.
|
374
|
+
# @option opts [String] :status Es el estado (estatus) de la cuenta. Los valores pueden ser <b>PENDING</b> y <b>REGISTERED</b>.
|
179
375
|
# @return [Array<(BeneficiariesResponse, Fixnum, Hash)>] BeneficiariesResponse data, response status code and response headers
|
180
|
-
def get_beneficiaries_for_account_using_get_with_http_info(subscription, opts = {})
|
376
|
+
def get_beneficiaries_for_account_using_get_with_http_info(authorization, subscription, opts = {})
|
181
377
|
if @api_client.config.debugging
|
182
378
|
@api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.get_beneficiaries_for_account_using_get ...'
|
183
379
|
end
|
380
|
+
# verify the required parameter 'authorization' is set
|
381
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
382
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_for_account_using_get"
|
383
|
+
end
|
184
384
|
# verify the required parameter 'subscription' is set
|
185
385
|
if @api_client.config.client_side_validation && subscription.nil?
|
186
386
|
fail ArgumentError, "Missing the required parameter 'subscription' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_for_account_using_get"
|
@@ -202,19 +402,26 @@ module Wire4Client
|
|
202
402
|
|
203
403
|
# query parameters
|
204
404
|
query_params = {}
|
405
|
+
query_params[:'account'] = opts[:'account'] if !opts[:'account'].nil?
|
406
|
+
query_params[:'beneficiary_bank'] = opts[:'beneficiary_bank'] if !opts[:'beneficiary_bank'].nil?
|
407
|
+
query_params[:'beneficiary_name'] = opts[:'beneficiary_name'] if !opts[:'beneficiary_name'].nil?
|
408
|
+
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
409
|
+
query_params[:'init_date'] = opts[:'init_date'] if !opts[:'init_date'].nil?
|
205
410
|
query_params[:'rfc'] = opts[:'rfc'] if !opts[:'rfc'].nil?
|
411
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
206
412
|
|
207
413
|
# header parameters
|
208
414
|
header_params = {}
|
209
415
|
# HTTP header 'Accept' (if needed)
|
210
416
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
417
|
+
header_params[:'Authorization'] = authorization
|
211
418
|
|
212
419
|
# form parameters
|
213
420
|
form_params = {}
|
214
421
|
|
215
422
|
# http body (model)
|
216
423
|
post_body = nil
|
217
|
-
auth_names = [
|
424
|
+
auth_names = []
|
218
425
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
219
426
|
:header_params => header_params,
|
220
427
|
:query_params => query_params,
|
@@ -227,27 +434,33 @@ module Wire4Client
|
|
227
434
|
end
|
228
435
|
return data, status_code, headers
|
229
436
|
end
|
230
|
-
# Pre-registro de cuentas de beneficiarios
|
231
|
-
# Pre-registra una o más cuentas de beneficiario en la plataforma,
|
437
|
+
# Pre-registro de cuentas de beneficiarios SPEI®.
|
438
|
+
# Pre-registra una o más cuentas de beneficiario en la plataforma de Wire4, ésta le proporcionará una URL donde lo llevará al centro de autorización para que el cuentahabiente Monex ingrese su llave digital para confirmar el alta de las cuentas de beneficiarios.<br/> Los posibles valores de <em>relationship</em> y <em>kind_of_relationship</em> se deben obtener de <a href=\"#operation/getAvailableRelationshipsMonexUsingGET\">/subscriptions/{subscription}/beneficiaries/relationships.</a><br/><br/>La confirmación de registro en Monex se realizará a través de una notificación a los webhooks registrados con el evento de tipo <a href=\"#section/Eventos/Tipos-de-Eventos\">ACCOUNT.CREATED.</a>
|
439
|
+
# @param authorization Header para token
|
232
440
|
# @param request_dto Información de la cuenta del beneficiario
|
233
|
-
# @param subscription
|
441
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
234
442
|
# @param [Hash] opts the optional parameters
|
235
443
|
# @return [TokenRequiredResponse]
|
236
|
-
def pre_register_accounts_using_post(request_dto, subscription, opts = {})
|
237
|
-
data, _status_code, _headers = pre_register_accounts_using_post_with_http_info(request_dto, subscription, opts)
|
444
|
+
def pre_register_accounts_using_post(authorization, request_dto, subscription, opts = {})
|
445
|
+
data, _status_code, _headers = pre_register_accounts_using_post_with_http_info(authorization, request_dto, subscription, opts)
|
238
446
|
data
|
239
447
|
end
|
240
448
|
|
241
|
-
# Pre-registro de cuentas de beneficiarios
|
242
|
-
# Pre-registra una o más cuentas de beneficiario en la plataforma,
|
449
|
+
# Pre-registro de cuentas de beneficiarios SPEI®.
|
450
|
+
# Pre-registra una o más cuentas de beneficiario en la plataforma de Wire4, ésta le proporcionará una URL donde lo llevará al centro de autorización para que el cuentahabiente Monex ingrese su llave digital para confirmar el alta de las cuentas de beneficiarios.<br/> Los posibles valores de <em>relationship</em> y <em>kind_of_relationship</em> se deben obtener de <a href=\"#operation/getAvailableRelationshipsMonexUsingGET\">/subscriptions/{subscription}/beneficiaries/relationships.</a><br/><br/>La confirmación de registro en Monex se realizará a través de una notificación a los webhooks registrados con el evento de tipo <a href=\"#section/Eventos/Tipos-de-Eventos\">ACCOUNT.CREATED.</a>
|
451
|
+
# @param authorization Header para token
|
243
452
|
# @param request_dto Información de la cuenta del beneficiario
|
244
|
-
# @param subscription
|
453
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
245
454
|
# @param [Hash] opts the optional parameters
|
246
455
|
# @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
|
247
|
-
def pre_register_accounts_using_post_with_http_info(request_dto, subscription, opts = {})
|
456
|
+
def pre_register_accounts_using_post_with_http_info(authorization, request_dto, subscription, opts = {})
|
248
457
|
if @api_client.config.debugging
|
249
458
|
@api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.pre_register_accounts_using_post ...'
|
250
459
|
end
|
460
|
+
# verify the required parameter 'authorization' is set
|
461
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
462
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.pre_register_accounts_using_post"
|
463
|
+
end
|
251
464
|
# verify the required parameter 'request_dto' is set
|
252
465
|
if @api_client.config.client_side_validation && request_dto.nil?
|
253
466
|
fail ArgumentError, "Missing the required parameter 'request_dto' when calling CuentasDeBeneficiariosSPEIApi.pre_register_accounts_using_post"
|
@@ -280,13 +493,14 @@ module Wire4Client
|
|
280
493
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
281
494
|
# HTTP header 'Content-Type'
|
282
495
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
496
|
+
header_params[:'Authorization'] = authorization
|
283
497
|
|
284
498
|
# form parameters
|
285
499
|
form_params = {}
|
286
500
|
|
287
501
|
# http body (model)
|
288
502
|
post_body = @api_client.object_to_http_body(request_dto)
|
289
|
-
auth_names = [
|
503
|
+
auth_names = []
|
290
504
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
291
505
|
:header_params => header_params,
|
292
506
|
:query_params => query_params,
|
@@ -300,26 +514,32 @@ module Wire4Client
|
|
300
514
|
return data, status_code, headers
|
301
515
|
end
|
302
516
|
# Eliminación de beneficiarios SPEI® sin confirmar
|
303
|
-
# Elimina
|
304
|
-
# @param
|
305
|
-
# @param
|
517
|
+
# Elimina uno o más beneficiarios que se encuentran en estado pendiente de confirmar (autorizar) de la cuenta del cliente Monex relacionada a la suscripción.
|
518
|
+
# @param authorization Header para token
|
519
|
+
# @param request_id Es el identificador con el que se dió de alta a los beneficiarios (viene en el cuerpo de la respuesta del <a href=\"#operation/getAvailableRelationshipsMonexUsingGET\">pre-registro de beneficiarios</a>), los registros bajo éste campo van a ser eliminados.
|
520
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
306
521
|
# @param [Hash] opts the optional parameters
|
307
522
|
# @return [nil]
|
308
|
-
def remove_beneficiaries_pending_using_delete(request_id, subscription, opts = {})
|
309
|
-
remove_beneficiaries_pending_using_delete_with_http_info(request_id, subscription, opts)
|
523
|
+
def remove_beneficiaries_pending_using_delete(authorization, request_id, subscription, opts = {})
|
524
|
+
remove_beneficiaries_pending_using_delete_with_http_info(authorization, request_id, subscription, opts)
|
310
525
|
nil
|
311
526
|
end
|
312
527
|
|
313
528
|
# Eliminación de beneficiarios SPEI® sin confirmar
|
314
|
-
# Elimina
|
315
|
-
# @param
|
316
|
-
# @param
|
529
|
+
# Elimina uno o más beneficiarios que se encuentran en estado pendiente de confirmar (autorizar) de la cuenta del cliente Monex relacionada a la suscripción.
|
530
|
+
# @param authorization Header para token
|
531
|
+
# @param request_id Es el identificador con el que se dió de alta a los beneficiarios (viene en el cuerpo de la respuesta del <a href=\"#operation/getAvailableRelationshipsMonexUsingGET\">pre-registro de beneficiarios</a>), los registros bajo éste campo van a ser eliminados.
|
532
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
317
533
|
# @param [Hash] opts the optional parameters
|
318
534
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
319
|
-
def remove_beneficiaries_pending_using_delete_with_http_info(request_id, subscription, opts = {})
|
535
|
+
def remove_beneficiaries_pending_using_delete_with_http_info(authorization, request_id, subscription, opts = {})
|
320
536
|
if @api_client.config.debugging
|
321
537
|
@api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.remove_beneficiaries_pending_using_delete ...'
|
322
538
|
end
|
539
|
+
# verify the required parameter 'authorization' is set
|
540
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
541
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.remove_beneficiaries_pending_using_delete"
|
542
|
+
end
|
323
543
|
# verify the required parameter 'request_id' is set
|
324
544
|
if @api_client.config.client_side_validation && request_id.nil?
|
325
545
|
fail ArgumentError, "Missing the required parameter 'request_id' when calling CuentasDeBeneficiariosSPEIApi.remove_beneficiaries_pending_using_delete"
|
@@ -346,13 +566,14 @@ module Wire4Client
|
|
346
566
|
header_params = {}
|
347
567
|
# HTTP header 'Accept' (if needed)
|
348
568
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
569
|
+
header_params[:'Authorization'] = authorization
|
349
570
|
|
350
571
|
# form parameters
|
351
572
|
form_params = {}
|
352
573
|
|
353
574
|
# http body (model)
|
354
575
|
post_body = nil
|
355
|
-
auth_names = [
|
576
|
+
auth_names = []
|
356
577
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
357
578
|
:header_params => header_params,
|
358
579
|
:query_params => query_params,
|
@@ -364,29 +585,35 @@ module Wire4Client
|
|
364
585
|
end
|
365
586
|
return data, status_code, headers
|
366
587
|
end
|
367
|
-
#
|
368
|
-
#
|
369
|
-
# @param
|
370
|
-
# @param
|
371
|
-
# @param
|
588
|
+
# Solicitud para actualizar el monto límite de una cuenta
|
589
|
+
# Se crea una solicitud para actualizar el monto límite a la cuenta de beneficiario proporcionada y relacionada al contrato perteneciente a la subscripción. Una vez enviada la solicitud se retornará una URl que lo llevará al centro de autorización para que el cuentahabiente Monex ingrese su llave digital para confirmar la actualización del monto límite.
|
590
|
+
# @param authorization Header para token
|
591
|
+
# @param account Es la cuenta que va a ser actualizada.
|
592
|
+
# @param request_dto Información de la cuenta y el monto límite a actualizar.
|
593
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
372
594
|
# @param [Hash] opts the optional parameters
|
373
|
-
# @return [
|
374
|
-
def update_amount_limit_account_using_put(account, request_dto, subscription, opts = {})
|
375
|
-
update_amount_limit_account_using_put_with_http_info(account, request_dto, subscription, opts)
|
376
|
-
|
595
|
+
# @return [TokenRequiredResponse]
|
596
|
+
def update_amount_limit_account_using_put(authorization, account, request_dto, subscription, opts = {})
|
597
|
+
data, _status_code, _headers = update_amount_limit_account_using_put_with_http_info(authorization, account, request_dto, subscription, opts)
|
598
|
+
data
|
377
599
|
end
|
378
600
|
|
379
|
-
#
|
380
|
-
#
|
381
|
-
# @param
|
382
|
-
# @param
|
383
|
-
# @param
|
601
|
+
# Solicitud para actualizar el monto límite de una cuenta
|
602
|
+
# Se crea una solicitud para actualizar el monto límite a la cuenta de beneficiario proporcionada y relacionada al contrato perteneciente a la subscripción. Una vez enviada la solicitud se retornará una URl que lo llevará al centro de autorización para que el cuentahabiente Monex ingrese su llave digital para confirmar la actualización del monto límite.
|
603
|
+
# @param authorization Header para token
|
604
|
+
# @param account Es la cuenta que va a ser actualizada.
|
605
|
+
# @param request_dto Información de la cuenta y el monto límite a actualizar.
|
606
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
384
607
|
# @param [Hash] opts the optional parameters
|
385
|
-
# @return [Array<(
|
386
|
-
def update_amount_limit_account_using_put_with_http_info(account, request_dto, subscription, opts = {})
|
608
|
+
# @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
|
609
|
+
def update_amount_limit_account_using_put_with_http_info(authorization, account, request_dto, subscription, opts = {})
|
387
610
|
if @api_client.config.debugging
|
388
611
|
@api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.update_amount_limit_account_using_put ...'
|
389
612
|
end
|
613
|
+
# verify the required parameter 'authorization' is set
|
614
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
615
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.update_amount_limit_account_using_put"
|
616
|
+
end
|
390
617
|
# verify the required parameter 'account' is set
|
391
618
|
if @api_client.config.client_side_validation && account.nil?
|
392
619
|
fail ArgumentError, "Missing the required parameter 'account' when calling CuentasDeBeneficiariosSPEIApi.update_amount_limit_account_using_put"
|
@@ -431,19 +658,21 @@ module Wire4Client
|
|
431
658
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
432
659
|
# HTTP header 'Content-Type'
|
433
660
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
661
|
+
header_params[:'Authorization'] = authorization
|
434
662
|
|
435
663
|
# form parameters
|
436
664
|
form_params = {}
|
437
665
|
|
438
666
|
# http body (model)
|
439
667
|
post_body = @api_client.object_to_http_body(request_dto)
|
440
|
-
auth_names = [
|
668
|
+
auth_names = []
|
441
669
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
442
670
|
:header_params => header_params,
|
443
671
|
:query_params => query_params,
|
444
672
|
:form_params => form_params,
|
445
673
|
:body => post_body,
|
446
|
-
:auth_names => auth_names
|
674
|
+
:auth_names => auth_names,
|
675
|
+
:return_type => 'TokenRequiredResponse')
|
447
676
|
if @api_client.config.debugging
|
448
677
|
@api_client.config.logger.debug "API called: CuentasDeBeneficiariosSPEIApi#update_amount_limit_account_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
449
678
|
end
|