wire4_client 1.0.5 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +52 -31
- data/docs/Account.md +11 -11
- data/docs/AccountReassigned.md +14 -14
- data/docs/AccountRequest.md +3 -3
- data/docs/AccountResponse.md +13 -13
- data/docs/AccountSpid.md +11 -11
- data/docs/AmountRequest.md +5 -5
- data/docs/AuthorizationTransactionGroup.md +2 -2
- data/docs/AuthorizedBeneficiariesResponse.md +3 -3
- data/docs/AutorizacinDeDepsitosApi.md +113 -0
- data/docs/Balance.md +3 -3
- data/docs/BalanceListResponse.md +1 -1
- data/docs/BeneficiariesQueryRegisterStatus.md +2 -2
- 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 +4 -4
- data/docs/CodiCodeQrResponseDTO.md +10 -10
- data/docs/CodiOperationResponseDTO.md +7 -7
- data/docs/CodiOperationsFiltersRequestDTO.md +8 -8
- data/docs/CompanyRegistered.md +6 -6
- data/docs/CompanyRequested.md +4 -4
- data/docs/ConfigurationsLimits.md +9 -0
- data/docs/ContactRequest.md +5 -5
- data/docs/ContractsDetailsApi.md +55 -0
- data/docs/CuentasDeBeneficiariosSPEIApi.md +54 -54
- data/docs/CuentasDeBeneficiariosSPIDApi.md +24 -22
- data/docs/Deposit.md +21 -21
- data/docs/DepositAuthorizationRequest.md +10 -0
- data/docs/Depositant.md +5 -5
- data/docs/DepositantesApi.md +6 -6
- 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 +8 -8
- data/docs/GetDepositants.md +1 -1
- data/docs/InstitucionesApi.md +5 -3
- 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 +19 -19
- data/docs/MessageCodiAction.md +12 -12
- data/docs/MessageConfigurationsLimits.md +8 -0
- data/docs/MessageDepositAuthorizationRequest.md +27 -0
- data/docs/MessageDepositReceived.md +21 -21
- data/docs/MessageInstitution.md +4 -4
- data/docs/MessagePayment.md +20 -20
- data/docs/MessagePaymentStatePending.md +16 -16
- data/docs/MessageRequestChanged.md +2 -2
- data/docs/MessageSalesPoint.md +3 -3
- data/docs/MessageSubscription.md +6 -6
- data/docs/MessageUserAuthorized.md +7 -6
- data/docs/MessageWebHook.md +9 -9
- data/docs/OperacionesCoDiApi.md +12 -12
- data/docs/Operations.md +8 -8
- data/docs/PagerResponseDto.md +6 -6
- data/docs/Payment.md +19 -19
- data/docs/PaymentCODI.md +13 -0
- data/docs/PaymentRequestCodiResponseDTO.md +11 -11
- data/docs/PeticionesDePagoPorCoDiApi.md +7 -7
- data/docs/PreEnrollmentData.md +2 -2
- data/docs/PreEnrollmentResponse.md +2 -2
- data/docs/PuntosDeVentaCoDiApi.md +14 -14
- data/docs/Relationship.md +2 -2
- data/docs/RelationshipsResponse.md +1 -1
- data/docs/SaldoApi.md +3 -3
- data/docs/SalesPointFound.md +7 -7
- data/docs/SalesPointRequest.md +4 -4
- data/docs/SalesPointRespose.md +4 -4
- data/docs/ServiceBanking.md +9 -0
- data/docs/SpidBeneficiariesResponse.md +1 -1
- data/docs/SpidBeneficiaryResponse.md +11 -11
- data/docs/SpidClassificationDTO.md +2 -2
- data/docs/SubscriptionChangeStatusRequest.md +8 -0
- data/docs/SuscripcionesApi.md +123 -16
- data/docs/TokenRequiredResponse.md +2 -2
- data/docs/TransactionErrorCode.md +10 -0
- data/docs/TransactionOutgoingSpid.md +10 -10
- data/docs/TransactionsOutgoingRegister.md +3 -3
- data/docs/TransferenciasSPEIApi.md +31 -31
- data/docs/TransferenciasSPIDApi.md +12 -12
- data/docs/UpdateConfigurationsRequestDTO.md +8 -0
- data/docs/UrlsRedirect.md +2 -2
- data/docs/UseServiceBanking.md +9 -0
- data/docs/WebHookDepositAuthorizationRequest.md +9 -0
- data/docs/WebHookDepositAuthorizationResponse.md +13 -0
- data/docs/Webhook.md +6 -6
- data/docs/WebhookRequest.md +3 -3
- data/docs/WebhookResponse.md +5 -5
- data/docs/WebhooksApi.md +10 -10
- data/lib/wire4_client.rb +18 -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 +1 -1
- data/lib/wire4_client/api/contacto_api.rb +1 -1
- data/lib/wire4_client/api/contracts_details_api.rb +72 -1
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +57 -57
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +25 -23
- data/lib/wire4_client/api/depositantes_api.rb +9 -9
- data/lib/wire4_client/api/empresas_co_di_api.rb +9 -9
- data/lib/wire4_client/api/facturas_api.rb +1 -1
- data/lib/wire4_client/api/instituciones_api.rb +5 -3
- data/lib/wire4_client/api/lmites_de_montos_api.rb +160 -0
- data/lib/wire4_client/api/operaciones_co_di_api.rb +13 -13
- data/lib/wire4_client/api/peticiones_de_pago_por_co_di_api.rb +7 -7
- data/lib/wire4_client/api/puntos_de_venta_co_di_api.rb +15 -15
- data/lib/wire4_client/api/saldo_api.rb +5 -5
- data/lib/wire4_client/api/suscripciones_api.rb +150 -17
- data/lib/wire4_client/api/transferencias_spei_api.rb +41 -41
- data/lib/wire4_client/api/transferencias_spid_api.rb +13 -13
- data/lib/wire4_client/api/webhooks_api.rb +16 -16
- data/lib/wire4_client/api_client.rb +1 -1
- data/lib/wire4_client/api_error.rb +1 -1
- data/lib/wire4_client/configuration.rb +1 -1
- data/lib/wire4_client/models/account.rb +12 -12
- data/lib/wire4_client/models/account_detail.rb +2 -2
- data/lib/wire4_client/models/account_reassigned.rb +16 -16
- data/lib/wire4_client/models/account_request.rb +4 -4
- data/lib/wire4_client/models/account_response.rb +15 -15
- data/lib/wire4_client/models/account_spid.rb +60 -12
- data/lib/wire4_client/models/address_company.rb +1 -1
- data/lib/wire4_client/models/amount_request.rb +7 -7
- data/lib/wire4_client/models/authorization_transaction_group.rb +3 -3
- data/lib/wire4_client/models/authorized_beneficiaries_response.rb +4 -4
- data/lib/wire4_client/models/authorized_users.rb +1 -1
- 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 +3 -3
- 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 +6 -6
- data/lib/wire4_client/models/codi_code_qr_response_dto.rb +11 -11
- data/lib/wire4_client/models/codi_code_request_dto.rb +1 -1
- data/lib/wire4_client/models/codi_operation_response_dto.rb +8 -8
- data/lib/wire4_client/models/codi_operations_filters_request_dto.rb +9 -9
- data/lib/wire4_client/models/company_registered.rb +7 -7
- data/lib/wire4_client/models/company_requested.rb +6 -6
- data/lib/wire4_client/models/compay.rb +1 -1
- 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 +1 -1
- data/lib/wire4_client/models/contract_detail_response.rb +1 -1
- data/lib/wire4_client/models/deposit.rb +22 -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 +21 -21
- data/lib/wire4_client/models/message_codi_action.rb +14 -14
- 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 +23 -23
- data/lib/wire4_client/models/message_institution.rb +6 -6
- data/lib/wire4_client/models/message_payment.rb +22 -22
- data/lib/wire4_client/models/message_payment_state_pending.rb +18 -18
- data/lib/wire4_client/models/message_request_changed.rb +4 -4
- data/lib/wire4_client/models/message_sales_point.rb +5 -5
- data/lib/wire4_client/models/message_subscription.rb +8 -8
- data/lib/wire4_client/models/message_user_authorized.rb +22 -12
- data/lib/wire4_client/models/message_web_hook.rb +11 -11
- data/lib/wire4_client/models/operations.rb +10 -10
- data/lib/wire4_client/models/pager_response_dto.rb +7 -7
- data/lib/wire4_client/models/payment.rb +20 -20
- data/lib/wire4_client/models/payment_codi.rb +269 -0
- data/lib/wire4_client/models/payment_request_codi_response_dto.rb +12 -12
- data/lib/wire4_client/models/payments_request_id.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/wire4_client/models/sales_point_found.rb +11 -11
- data/lib/wire4_client/models/sales_point_request.rb +6 -6
- data/lib/wire4_client/models/sales_point_respose.rb +6 -6
- data/lib/wire4_client/models/service_banking.rb +193 -0
- data/lib/wire4_client/models/spid_beneficiaries_response.rb +2 -2
- data/lib/wire4_client/models/spid_beneficiary_response.rb +12 -12
- 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 +1 -1
- 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 +60 -4
- data/lib/wire4_client/models/use_service_banking.rb +251 -0
- data/lib/wire4_client/models/user_company.rb +1 -1
- data/lib/wire4_client/models/web_hook_deposit_authorization_request.rb +195 -0
- data/lib/wire4_client/models/{timestamp.rb → web_hook_deposit_authorization_response.rb} +48 -75
- data/lib/wire4_client/models/webhook.rb +8 -8
- 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 +1 -1
- data/spec/api/contacto_api_spec.rb +1 -1
- data/spec/api/contracts_details_api_spec.rb +15 -1
- data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +29 -29
- data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +13 -12
- data/spec/api/depositantes_api_spec.rb +5 -5
- data/spec/api/empresas_co_di_api_spec.rb +5 -5
- data/spec/api/facturas_api_spec.rb +1 -1
- data/spec/api/instituciones_api_spec.rb +3 -2
- data/spec/api/lmites_de_montos_api_spec.rb +62 -0
- data/spec/api/operaciones_co_di_api_spec.rb +7 -7
- data/spec/api/peticiones_de_pago_por_co_di_api_spec.rb +4 -4
- data/spec/api/puntos_de_venta_co_di_api_spec.rb +8 -8
- data/spec/api/saldo_api_spec.rb +3 -3
- data/spec/api/suscripciones_api_spec.rb +37 -9
- data/spec/api/transferencias_spei_api_spec.rb +17 -17
- data/spec/api/transferencias_spid_api_spec.rb +7 -7
- data/spec/api/webhooks_api_spec.rb +5 -5
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_detail_spec.rb +1 -1
- data/spec/models/account_reassigned_spec.rb +1 -1
- data/spec/models/account_request_spec.rb +1 -1
- data/spec/models/account_response_spec.rb +1 -1
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/account_spid_spec.rb +1 -1
- data/spec/models/address_company_spec.rb +1 -1
- data/spec/models/amount_request_spec.rb +1 -1
- data/spec/models/authorization_transaction_group_spec.rb +1 -1
- data/spec/models/authorized_beneficiaries_response_spec.rb +1 -1
- data/spec/models/authorized_users_spec.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/spec/models/codi_code_qr_response_dto_spec.rb +1 -1
- data/spec/models/codi_code_request_dto_spec.rb +1 -1
- data/spec/models/codi_operation_response_dto_spec.rb +1 -1
- data/spec/models/codi_operations_filters_request_dto_spec.rb +1 -1
- data/spec/models/company_registered_spec.rb +1 -1
- data/spec/models/company_requested_spec.rb +1 -1
- data/spec/models/compay_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/contract_detail_response_spec.rb +1 -1
- data/spec/models/deposit_authorization_request_spec.rb +53 -0
- data/spec/models/deposit_spec.rb +1 -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 +1 -1
- 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 +1 -1
- data/spec/models/message_institution_spec.rb +1 -1
- data/spec/models/message_payment_spec.rb +1 -1
- data/spec/models/message_payment_state_pending_spec.rb +1 -1
- data/spec/models/message_request_changed_spec.rb +1 -1
- data/spec/models/message_sales_point_spec.rb +1 -1
- data/spec/models/message_subscription_spec.rb +1 -1
- data/spec/models/message_user_authorized_spec.rb +7 -1
- data/spec/models/message_web_hook_spec.rb +1 -1
- data/spec/models/operations_spec.rb +1 -1
- data/spec/models/pager_response_dto_spec.rb +1 -1
- data/spec/models/{timestamp_spec.rb → payment_codi_spec.rb} +17 -37
- data/spec/models/payment_request_codi_response_dto_spec.rb +1 -1
- data/spec/models/payment_spec.rb +1 -1
- data/spec/models/payments_request_id_spec.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/spec/models/sales_point_request_spec.rb +1 -1
- data/spec/models/sales_point_respose_spec.rb +1 -1
- data/spec/models/sales_point_spec.rb +1 -1
- data/spec/models/service_banking_spec.rb +47 -0
- data/spec/models/spid_beneficiaries_response_spec.rb +1 -1
- data/spec/models/spid_beneficiary_response_spec.rb +1 -1
- 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 +1 -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 +1 -1
- data/spec/models/use_service_banking_spec.rb +55 -0
- data/spec/models/user_company_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/webhooks_list_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/wire4_client.gemspec +2 -2
- metadata +72 -8
- 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
|
|
|
@@ -13,15 +13,15 @@ Swagger Codegen version: 2.4.10
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module Wire4Client
|
|
16
|
-
#
|
|
16
|
+
# Es el objeto del mensaje que se envía mediante webhook con la información del registro de la cuenta del beneficiario.
|
|
17
17
|
class MessageAccountBeneficiary
|
|
18
|
-
#
|
|
18
|
+
# Es la cuenta del beneficiario registrado.
|
|
19
19
|
attr_accessor :account
|
|
20
20
|
|
|
21
|
-
#
|
|
21
|
+
# Es el mensaje de error que se informa en caso de existir uno.
|
|
22
22
|
attr_accessor :error_message
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Es el identificador en esta API de la petición de registro de la cuenta del beneficiario.
|
|
25
25
|
attr_accessor :request_id
|
|
26
26
|
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -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
|
|
|
@@ -13,63 +13,63 @@ Swagger Codegen version: 2.4.10
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module Wire4Client
|
|
16
|
-
#
|
|
16
|
+
# Es el objeto del Comprobante Electrónico de Pago (CEP) de la transferencia, que es emitido por Banxico. Se muestra sólo cuando esté disponible, en otro caso se podrá usar la <a href=\"#operation/obtainTransactionCepUsingPOST\">Consulta de CEP</a> que ésta misma API ofrece.
|
|
17
17
|
class MessageCEP
|
|
18
|
-
#
|
|
18
|
+
# Es la cuenta del beneficiario.
|
|
19
19
|
attr_accessor :account_beneficiary
|
|
20
20
|
|
|
21
|
-
#
|
|
21
|
+
# Es la cuenta que envía la operación.
|
|
22
22
|
attr_accessor :account_sender
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Es el monto de la operación.
|
|
25
25
|
attr_accessor :amount
|
|
26
26
|
|
|
27
|
-
# Indica sí el CEP está disponible
|
|
27
|
+
# Indica sí el CEP está disponible.
|
|
28
28
|
attr_accessor :available
|
|
29
29
|
|
|
30
|
-
#
|
|
30
|
+
# Es la clave del banco beneficiario.
|
|
31
31
|
attr_accessor :bank_beneficiary
|
|
32
32
|
|
|
33
|
-
#
|
|
33
|
+
# Es la clave del banco que envía la operación.
|
|
34
34
|
attr_accessor :bank_sender
|
|
35
35
|
|
|
36
|
-
#
|
|
36
|
+
# Es el nombre del beneficiario.
|
|
37
37
|
attr_accessor :beneficiary_name
|
|
38
38
|
|
|
39
|
-
# RFC del beneficiario
|
|
39
|
+
# Es el Registro Federal de Contribuyentes (RFC) del beneficiario.
|
|
40
40
|
attr_accessor :beneficiary_rfc
|
|
41
41
|
|
|
42
|
-
#
|
|
42
|
+
# Es la cadena original emitida por el Servicio de Administración Tributaria (SAT).
|
|
43
43
|
attr_accessor :cadena_original
|
|
44
44
|
|
|
45
|
-
#
|
|
45
|
+
# Es la fecha de captura.
|
|
46
46
|
attr_accessor :capture_date
|
|
47
47
|
|
|
48
|
-
#
|
|
48
|
+
# Es el número de serie emitido por el SAT
|
|
49
49
|
attr_accessor :certificate_serial_number
|
|
50
50
|
|
|
51
|
-
#
|
|
51
|
+
# Es la clave de rastreo de la operación.
|
|
52
52
|
attr_accessor :clave_rastreo
|
|
53
53
|
|
|
54
|
-
#
|
|
54
|
+
# Es la descripción de la operación.
|
|
55
55
|
attr_accessor :description
|
|
56
56
|
|
|
57
|
-
# IVA de la operación
|
|
57
|
+
# Es el Impuesto al Valor Agregado (IVA) de la operación.
|
|
58
58
|
attr_accessor :iva
|
|
59
59
|
|
|
60
|
-
#
|
|
60
|
+
# Es la fecha en la que se realizó la operación.
|
|
61
61
|
attr_accessor :operation_date
|
|
62
62
|
|
|
63
|
-
#
|
|
63
|
+
# Es la fecha en la que se genera el CEP.
|
|
64
64
|
attr_accessor :operation_date_cep
|
|
65
65
|
|
|
66
|
-
# Referencia de la operación
|
|
66
|
+
# Es la Referencia de la operación
|
|
67
67
|
attr_accessor :reference
|
|
68
68
|
|
|
69
|
-
#
|
|
69
|
+
# Es el nombre de quién envía la operación.
|
|
70
70
|
attr_accessor :sender_name
|
|
71
71
|
|
|
72
|
-
# RFC de quién envía la operación
|
|
72
|
+
# Es el Registro Federal de Contrinuyentes (RFC) de quién envía la operación.
|
|
73
73
|
attr_accessor :sender_rfc
|
|
74
74
|
|
|
75
75
|
# Firma del CEP
|
|
@@ -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
|
|
|
@@ -13,42 +13,42 @@ Swagger Codegen version: 2.4.10
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module Wire4Client
|
|
16
|
-
#
|
|
16
|
+
# Es el objeto del mensaje que se envía con la información del punto de venta registrado.
|
|
17
17
|
class MessageCodiAction
|
|
18
|
-
#
|
|
18
|
+
# Es el monto de la operación de pago.
|
|
19
19
|
attr_accessor :amount
|
|
20
20
|
|
|
21
|
-
#
|
|
21
|
+
# Es el concepto de la transacción.
|
|
22
22
|
attr_accessor :concept
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Es la fecha de expiración de la operación.
|
|
25
25
|
attr_accessor :due_date
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Es el UUID de la operación.
|
|
28
28
|
attr_accessor :id
|
|
29
29
|
|
|
30
|
-
# Metadata
|
|
30
|
+
# Es el campo Metadata asociado a la petición de pago. Es información que indica guardar la petición.
|
|
31
31
|
attr_accessor :metadata
|
|
32
32
|
|
|
33
|
-
#
|
|
33
|
+
# Es la fecha de la operación.
|
|
34
34
|
attr_accessor :operation_date
|
|
35
35
|
|
|
36
|
-
#
|
|
36
|
+
# Es el identificador de la petición.
|
|
37
37
|
attr_accessor :order_id
|
|
38
38
|
|
|
39
|
-
#
|
|
39
|
+
# Es el tipo de pago.
|
|
40
40
|
attr_accessor :payment_type
|
|
41
41
|
|
|
42
|
-
#
|
|
42
|
+
# Es el número de referencia.
|
|
43
43
|
attr_accessor :reference
|
|
44
44
|
|
|
45
|
-
# Identidicador del punto de venta a la que pertenece la petición de pago
|
|
45
|
+
# Identidicador del punto de venta a la que pertenece la petición de pago.
|
|
46
46
|
attr_accessor :sales_point_id
|
|
47
47
|
|
|
48
|
-
#
|
|
48
|
+
# Es el estado (estatus) de la operación de pago.
|
|
49
49
|
attr_accessor :status
|
|
50
50
|
|
|
51
|
-
#
|
|
51
|
+
# Es el identificador de la transacción.
|
|
52
52
|
attr_accessor :transaction_id
|
|
53
53
|
|
|
54
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -0,0 +1,187 @@
|
|
|
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 'date'
|
|
14
|
+
|
|
15
|
+
module Wire4Client
|
|
16
|
+
# Configuración de límites de montos.
|
|
17
|
+
class MessageConfigurationsLimits
|
|
18
|
+
# Lista de configuraciones pertenecientes al contrato
|
|
19
|
+
attr_accessor :configurations
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'configurations' => :'configurations'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Attribute type mapping.
|
|
29
|
+
def self.swagger_types
|
|
30
|
+
{
|
|
31
|
+
:'configurations' => :'Array<ConfigurationsLimits>'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Initializes the object
|
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
37
|
+
def initialize(attributes = {})
|
|
38
|
+
return unless attributes.is_a?(Hash)
|
|
39
|
+
|
|
40
|
+
# convert string to symbol for hash key
|
|
41
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
42
|
+
|
|
43
|
+
if attributes.has_key?(:'configurations')
|
|
44
|
+
if (value = attributes[:'configurations']).is_a?(Array)
|
|
45
|
+
self.configurations = value
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
51
|
+
# @return Array for valid properties with the reasons
|
|
52
|
+
def list_invalid_properties
|
|
53
|
+
invalid_properties = Array.new
|
|
54
|
+
invalid_properties
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Check to see if the all the properties in the model are valid
|
|
58
|
+
# @return true if the model is valid
|
|
59
|
+
def valid?
|
|
60
|
+
true
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Checks equality by comparing each attribute.
|
|
64
|
+
# @param [Object] Object to be compared
|
|
65
|
+
def ==(o)
|
|
66
|
+
return true if self.equal?(o)
|
|
67
|
+
self.class == o.class &&
|
|
68
|
+
configurations == o.configurations
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# @see the `==` method
|
|
72
|
+
# @param [Object] Object to be compared
|
|
73
|
+
def eql?(o)
|
|
74
|
+
self == o
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Calculates hash code according to all attributes.
|
|
78
|
+
# @return [Fixnum] Hash code
|
|
79
|
+
def hash
|
|
80
|
+
[configurations].hash
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Builds the object from hash
|
|
84
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
85
|
+
# @return [Object] Returns the model itself
|
|
86
|
+
def build_from_hash(attributes)
|
|
87
|
+
return nil unless attributes.is_a?(Hash)
|
|
88
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
89
|
+
if type =~ /\AArray<(.*)>/i
|
|
90
|
+
# check to ensure the input is an array given that the the attribute
|
|
91
|
+
# is documented as an array but the input is not
|
|
92
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
93
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
94
|
+
end
|
|
95
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
96
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
97
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
self
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Deserializes the data based on type
|
|
104
|
+
# @param string type Data type
|
|
105
|
+
# @param string value Value to be deserialized
|
|
106
|
+
# @return [Object] Deserialized data
|
|
107
|
+
def _deserialize(type, value)
|
|
108
|
+
case type.to_sym
|
|
109
|
+
when :DateTime
|
|
110
|
+
DateTime.parse(value)
|
|
111
|
+
when :Date
|
|
112
|
+
Date.parse(value)
|
|
113
|
+
when :String
|
|
114
|
+
value.to_s
|
|
115
|
+
when :Integer
|
|
116
|
+
value.to_i
|
|
117
|
+
when :Float
|
|
118
|
+
value.to_f
|
|
119
|
+
when :BOOLEAN
|
|
120
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
121
|
+
true
|
|
122
|
+
else
|
|
123
|
+
false
|
|
124
|
+
end
|
|
125
|
+
when :Object
|
|
126
|
+
# generic object (usually a Hash), return directly
|
|
127
|
+
value
|
|
128
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
129
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
130
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
131
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
132
|
+
k_type = Regexp.last_match[:k_type]
|
|
133
|
+
v_type = Regexp.last_match[:v_type]
|
|
134
|
+
{}.tap do |hash|
|
|
135
|
+
value.each do |k, v|
|
|
136
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
else # model
|
|
140
|
+
temp_model = Wire4Client.const_get(type).new
|
|
141
|
+
temp_model.build_from_hash(value)
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Returns the string representation of the object
|
|
146
|
+
# @return [String] String presentation of the object
|
|
147
|
+
def to_s
|
|
148
|
+
to_hash.to_s
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
152
|
+
# @return [Hash] Returns the object in the form of hash
|
|
153
|
+
def to_body
|
|
154
|
+
to_hash
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Returns the object in the form of hash
|
|
158
|
+
# @return [Hash] Returns the object in the form of hash
|
|
159
|
+
def to_hash
|
|
160
|
+
hash = {}
|
|
161
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
162
|
+
value = self.send(attr)
|
|
163
|
+
next if value.nil?
|
|
164
|
+
hash[param] = _to_hash(value)
|
|
165
|
+
end
|
|
166
|
+
hash
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Outputs non-array value in the form of hash
|
|
170
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
171
|
+
# @param [Object] value Any valid value
|
|
172
|
+
# @return [Hash] Returns the value in the form of hash
|
|
173
|
+
def _to_hash(value)
|
|
174
|
+
if value.is_a?(Array)
|
|
175
|
+
value.compact.map { |v| _to_hash(v) }
|
|
176
|
+
elsif value.is_a?(Hash)
|
|
177
|
+
{}.tap do |hash|
|
|
178
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
179
|
+
end
|
|
180
|
+
elsif value.respond_to? :to_hash
|
|
181
|
+
value.to_hash
|
|
182
|
+
else
|
|
183
|
+
value
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
end
|
|
@@ -0,0 +1,375 @@
|
|
|
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 'date'
|
|
14
|
+
|
|
15
|
+
module Wire4Client
|
|
16
|
+
# Es el objet mensaje que se envía mediante webHook con la información de un depósito que necesita ser autorizado.
|
|
17
|
+
class MessageDepositAuthorizationRequest
|
|
18
|
+
# Es el monto de la transferencia.
|
|
19
|
+
attr_accessor :amount
|
|
20
|
+
|
|
21
|
+
# Es la cuenta del beneficiario.
|
|
22
|
+
attr_accessor :beneficiary_account
|
|
23
|
+
|
|
24
|
+
# Es el nombre del beneficiario.
|
|
25
|
+
attr_accessor :beneficiary_name
|
|
26
|
+
|
|
27
|
+
# Es el Registro Federal de Contribuyentes (RFC) del beneficiario.
|
|
28
|
+
attr_accessor :beneficiary_rfc
|
|
29
|
+
|
|
30
|
+
# Es la clave de rastreo de la transferencia.
|
|
31
|
+
attr_accessor :clave_rastreo
|
|
32
|
+
|
|
33
|
+
# Es la Fecha de confirmación de la transferencia.
|
|
34
|
+
attr_accessor :confirm_date
|
|
35
|
+
|
|
36
|
+
# Es el código de divisa de la transferencia. Es en el formato estándar ISO 4217 y es de 3 dígitos. Puede ser \"MXN\" o \"USD\".
|
|
37
|
+
attr_accessor :currency_code
|
|
38
|
+
|
|
39
|
+
# Es la fecha de recepción de la transferencia.
|
|
40
|
+
attr_accessor :deposit_date
|
|
41
|
+
|
|
42
|
+
# Es el nombre del depositante en caso de que la transferencia se reciba en una cuenta de depositante.
|
|
43
|
+
attr_accessor :depositant
|
|
44
|
+
|
|
45
|
+
# Es la cuenta CLABE del depositante en caso que la transferencia se reciba en una cuenta de depositante
|
|
46
|
+
attr_accessor :depositant_clabe
|
|
47
|
+
|
|
48
|
+
# Es el Correo electrónico (email) del depositante en caso que la transferencia se reciba en una cuenta de depositante
|
|
49
|
+
attr_accessor :depositant_email
|
|
50
|
+
|
|
51
|
+
# Es el Registro Federal de Contribuyentes (RFC) del depositante, en caso que la transferencia se reciba en una cuenta de depositante.
|
|
52
|
+
attr_accessor :depositant_rfc
|
|
53
|
+
|
|
54
|
+
# Es el concepto de la transferencia.
|
|
55
|
+
attr_accessor :description
|
|
56
|
+
|
|
57
|
+
# Es la descripción de Monex para la transferencia.
|
|
58
|
+
attr_accessor :monex_description
|
|
59
|
+
|
|
60
|
+
# Es el identificador asignado por Monex a la transferencia.
|
|
61
|
+
attr_accessor :monex_transaction_id
|
|
62
|
+
|
|
63
|
+
# Es la referecia de la transferencia.
|
|
64
|
+
attr_accessor :reference
|
|
65
|
+
|
|
66
|
+
# Es la cuenta del ordenante que podría ser un número celular (10 dígitos), una tarjeta de débito (TDD, de 16 dígitos) o Cuenta CLABE interbancaria (18 dígitos).
|
|
67
|
+
attr_accessor :sender_account
|
|
68
|
+
|
|
69
|
+
# Es el objeto con información del banco del ordenante.
|
|
70
|
+
attr_accessor :sender_bank
|
|
71
|
+
|
|
72
|
+
# Es el nombre del ordenante.
|
|
73
|
+
attr_accessor :sender_name
|
|
74
|
+
|
|
75
|
+
# Es el Registro Federal de Contribuyente (RFC) del ordenante.
|
|
76
|
+
attr_accessor :sender_rfc
|
|
77
|
+
|
|
78
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
79
|
+
def self.attribute_map
|
|
80
|
+
{
|
|
81
|
+
:'amount' => :'amount',
|
|
82
|
+
:'beneficiary_account' => :'beneficiary_account',
|
|
83
|
+
:'beneficiary_name' => :'beneficiary_name',
|
|
84
|
+
:'beneficiary_rfc' => :'beneficiary_rfc',
|
|
85
|
+
:'clave_rastreo' => :'clave_rastreo',
|
|
86
|
+
:'confirm_date' => :'confirm_date',
|
|
87
|
+
:'currency_code' => :'currency_code',
|
|
88
|
+
:'deposit_date' => :'deposit_date',
|
|
89
|
+
:'depositant' => :'depositant',
|
|
90
|
+
:'depositant_clabe' => :'depositant_clabe',
|
|
91
|
+
:'depositant_email' => :'depositant_email',
|
|
92
|
+
:'depositant_rfc' => :'depositant_rfc',
|
|
93
|
+
:'description' => :'description',
|
|
94
|
+
:'monex_description' => :'monex_description',
|
|
95
|
+
:'monex_transaction_id' => :'monex_transaction_id',
|
|
96
|
+
:'reference' => :'reference',
|
|
97
|
+
:'sender_account' => :'sender_account',
|
|
98
|
+
:'sender_bank' => :'sender_bank',
|
|
99
|
+
:'sender_name' => :'sender_name',
|
|
100
|
+
:'sender_rfc' => :'sender_rfc'
|
|
101
|
+
}
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Attribute type mapping.
|
|
105
|
+
def self.swagger_types
|
|
106
|
+
{
|
|
107
|
+
:'amount' => :'Float',
|
|
108
|
+
:'beneficiary_account' => :'String',
|
|
109
|
+
:'beneficiary_name' => :'String',
|
|
110
|
+
:'beneficiary_rfc' => :'String',
|
|
111
|
+
:'clave_rastreo' => :'String',
|
|
112
|
+
:'confirm_date' => :'DateTime',
|
|
113
|
+
:'currency_code' => :'String',
|
|
114
|
+
:'deposit_date' => :'DateTime',
|
|
115
|
+
:'depositant' => :'String',
|
|
116
|
+
:'depositant_clabe' => :'String',
|
|
117
|
+
:'depositant_email' => :'String',
|
|
118
|
+
:'depositant_rfc' => :'String',
|
|
119
|
+
:'description' => :'String',
|
|
120
|
+
:'monex_description' => :'String',
|
|
121
|
+
:'monex_transaction_id' => :'String',
|
|
122
|
+
:'reference' => :'String',
|
|
123
|
+
:'sender_account' => :'String',
|
|
124
|
+
:'sender_bank' => :'MessageInstitution',
|
|
125
|
+
:'sender_name' => :'String',
|
|
126
|
+
:'sender_rfc' => :'String'
|
|
127
|
+
}
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Initializes the object
|
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
132
|
+
def initialize(attributes = {})
|
|
133
|
+
return unless attributes.is_a?(Hash)
|
|
134
|
+
|
|
135
|
+
# convert string to symbol for hash key
|
|
136
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
137
|
+
|
|
138
|
+
if attributes.has_key?(:'amount')
|
|
139
|
+
self.amount = attributes[:'amount']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.has_key?(:'beneficiary_account')
|
|
143
|
+
self.beneficiary_account = attributes[:'beneficiary_account']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.has_key?(:'beneficiary_name')
|
|
147
|
+
self.beneficiary_name = attributes[:'beneficiary_name']
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.has_key?(:'beneficiary_rfc')
|
|
151
|
+
self.beneficiary_rfc = attributes[:'beneficiary_rfc']
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.has_key?(:'clave_rastreo')
|
|
155
|
+
self.clave_rastreo = attributes[:'clave_rastreo']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.has_key?(:'confirm_date')
|
|
159
|
+
self.confirm_date = attributes[:'confirm_date']
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.has_key?(:'currency_code')
|
|
163
|
+
self.currency_code = attributes[:'currency_code']
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if attributes.has_key?(:'deposit_date')
|
|
167
|
+
self.deposit_date = attributes[:'deposit_date']
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.has_key?(:'depositant')
|
|
171
|
+
self.depositant = attributes[:'depositant']
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.has_key?(:'depositant_clabe')
|
|
175
|
+
self.depositant_clabe = attributes[:'depositant_clabe']
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.has_key?(:'depositant_email')
|
|
179
|
+
self.depositant_email = attributes[:'depositant_email']
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.has_key?(:'depositant_rfc')
|
|
183
|
+
self.depositant_rfc = attributes[:'depositant_rfc']
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.has_key?(:'description')
|
|
187
|
+
self.description = attributes[:'description']
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.has_key?(:'monex_description')
|
|
191
|
+
self.monex_description = attributes[:'monex_description']
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.has_key?(:'monex_transaction_id')
|
|
195
|
+
self.monex_transaction_id = attributes[:'monex_transaction_id']
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.has_key?(:'reference')
|
|
199
|
+
self.reference = attributes[:'reference']
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.has_key?(:'sender_account')
|
|
203
|
+
self.sender_account = attributes[:'sender_account']
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if attributes.has_key?(:'sender_bank')
|
|
207
|
+
self.sender_bank = attributes[:'sender_bank']
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.has_key?(:'sender_name')
|
|
211
|
+
self.sender_name = attributes[:'sender_name']
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.has_key?(:'sender_rfc')
|
|
215
|
+
self.sender_rfc = attributes[:'sender_rfc']
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
220
|
+
# @return Array for valid properties with the reasons
|
|
221
|
+
def list_invalid_properties
|
|
222
|
+
invalid_properties = Array.new
|
|
223
|
+
invalid_properties
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Check to see if the all the properties in the model are valid
|
|
227
|
+
# @return true if the model is valid
|
|
228
|
+
def valid?
|
|
229
|
+
true
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Checks equality by comparing each attribute.
|
|
233
|
+
# @param [Object] Object to be compared
|
|
234
|
+
def ==(o)
|
|
235
|
+
return true if self.equal?(o)
|
|
236
|
+
self.class == o.class &&
|
|
237
|
+
amount == o.amount &&
|
|
238
|
+
beneficiary_account == o.beneficiary_account &&
|
|
239
|
+
beneficiary_name == o.beneficiary_name &&
|
|
240
|
+
beneficiary_rfc == o.beneficiary_rfc &&
|
|
241
|
+
clave_rastreo == o.clave_rastreo &&
|
|
242
|
+
confirm_date == o.confirm_date &&
|
|
243
|
+
currency_code == o.currency_code &&
|
|
244
|
+
deposit_date == o.deposit_date &&
|
|
245
|
+
depositant == o.depositant &&
|
|
246
|
+
depositant_clabe == o.depositant_clabe &&
|
|
247
|
+
depositant_email == o.depositant_email &&
|
|
248
|
+
depositant_rfc == o.depositant_rfc &&
|
|
249
|
+
description == o.description &&
|
|
250
|
+
monex_description == o.monex_description &&
|
|
251
|
+
monex_transaction_id == o.monex_transaction_id &&
|
|
252
|
+
reference == o.reference &&
|
|
253
|
+
sender_account == o.sender_account &&
|
|
254
|
+
sender_bank == o.sender_bank &&
|
|
255
|
+
sender_name == o.sender_name &&
|
|
256
|
+
sender_rfc == o.sender_rfc
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# @see the `==` method
|
|
260
|
+
# @param [Object] Object to be compared
|
|
261
|
+
def eql?(o)
|
|
262
|
+
self == o
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Calculates hash code according to all attributes.
|
|
266
|
+
# @return [Fixnum] Hash code
|
|
267
|
+
def hash
|
|
268
|
+
[amount, beneficiary_account, beneficiary_name, beneficiary_rfc, clave_rastreo, confirm_date, currency_code, deposit_date, depositant, depositant_clabe, depositant_email, depositant_rfc, description, monex_description, monex_transaction_id, reference, sender_account, sender_bank, sender_name, sender_rfc].hash
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Builds the object from hash
|
|
272
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
273
|
+
# @return [Object] Returns the model itself
|
|
274
|
+
def build_from_hash(attributes)
|
|
275
|
+
return nil unless attributes.is_a?(Hash)
|
|
276
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
277
|
+
if type =~ /\AArray<(.*)>/i
|
|
278
|
+
# check to ensure the input is an array given that the the attribute
|
|
279
|
+
# is documented as an array but the input is not
|
|
280
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
281
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
282
|
+
end
|
|
283
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
284
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
285
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
self
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Deserializes the data based on type
|
|
292
|
+
# @param string type Data type
|
|
293
|
+
# @param string value Value to be deserialized
|
|
294
|
+
# @return [Object] Deserialized data
|
|
295
|
+
def _deserialize(type, value)
|
|
296
|
+
case type.to_sym
|
|
297
|
+
when :DateTime
|
|
298
|
+
DateTime.parse(value)
|
|
299
|
+
when :Date
|
|
300
|
+
Date.parse(value)
|
|
301
|
+
when :String
|
|
302
|
+
value.to_s
|
|
303
|
+
when :Integer
|
|
304
|
+
value.to_i
|
|
305
|
+
when :Float
|
|
306
|
+
value.to_f
|
|
307
|
+
when :BOOLEAN
|
|
308
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
309
|
+
true
|
|
310
|
+
else
|
|
311
|
+
false
|
|
312
|
+
end
|
|
313
|
+
when :Object
|
|
314
|
+
# generic object (usually a Hash), return directly
|
|
315
|
+
value
|
|
316
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
317
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
318
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
319
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
320
|
+
k_type = Regexp.last_match[:k_type]
|
|
321
|
+
v_type = Regexp.last_match[:v_type]
|
|
322
|
+
{}.tap do |hash|
|
|
323
|
+
value.each do |k, v|
|
|
324
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
else # model
|
|
328
|
+
temp_model = Wire4Client.const_get(type).new
|
|
329
|
+
temp_model.build_from_hash(value)
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Returns the string representation of the object
|
|
334
|
+
# @return [String] String presentation of the object
|
|
335
|
+
def to_s
|
|
336
|
+
to_hash.to_s
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
340
|
+
# @return [Hash] Returns the object in the form of hash
|
|
341
|
+
def to_body
|
|
342
|
+
to_hash
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# Returns the object in the form of hash
|
|
346
|
+
# @return [Hash] Returns the object in the form of hash
|
|
347
|
+
def to_hash
|
|
348
|
+
hash = {}
|
|
349
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
350
|
+
value = self.send(attr)
|
|
351
|
+
next if value.nil?
|
|
352
|
+
hash[param] = _to_hash(value)
|
|
353
|
+
end
|
|
354
|
+
hash
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
# Outputs non-array value in the form of hash
|
|
358
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
359
|
+
# @param [Object] value Any valid value
|
|
360
|
+
# @return [Hash] Returns the value in the form of hash
|
|
361
|
+
def _to_hash(value)
|
|
362
|
+
if value.is_a?(Array)
|
|
363
|
+
value.compact.map { |v| _to_hash(v) }
|
|
364
|
+
elsif value.is_a?(Hash)
|
|
365
|
+
{}.tap do |hash|
|
|
366
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
367
|
+
end
|
|
368
|
+
elsif value.respond_to? :to_hash
|
|
369
|
+
value.to_hash
|
|
370
|
+
else
|
|
371
|
+
value
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
end
|
|
375
|
+
end
|