wire4_client 0.0.9.pre.TEST → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +69 -0
- data/README.md +15 -77
- data/docs/Account.md +3 -3
- data/docs/AccountResponse.md +3 -6
- data/docs/AmountRequest.md +0 -2
- data/docs/BillingTransaction.md +1 -1
- data/docs/CuentasDeBeneficiariosSPEIApi.md +8 -127
- data/docs/CuentasDeBeneficiariosSPIDApi.md +1 -11
- data/docs/Deposit.md +0 -1
- data/docs/MessageAccountBeneficiary.md +2 -2
- data/docs/MessageCEP.md +9 -9
- data/docs/MessageDepositReceived.md +0 -1
- data/docs/MessagePayment.md +1 -3
- data/docs/MessageSubscription.md +6 -6
- data/docs/MessageWebHook.md +2 -2
- data/docs/Payment.md +1 -3
- data/docs/SpidBeneficiaryResponse.md +0 -3
- data/docs/SuscripcionesApi.md +14 -14
- data/docs/Timestamp.md +17 -0
- data/docs/TransactionOutgoing.md +1 -2
- data/docs/TransferenciasSPEIApi.md +3 -61
- 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/cuentas_de_beneficiarios_spei_api.rb +10 -194
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +1 -16
- data/lib/wire4_client/api/depositantes_api.rb +1 -1
- data/lib/wire4_client/api/facturas_api.rb +1 -1
- data/lib/wire4_client/api/instituciones_api.rb +1 -1
- data/lib/wire4_client/api/saldo_api.rb +1 -1
- data/lib/wire4_client/api/suscripciones_api.rb +15 -15
- data/lib/wire4_client/api/transferencias_spei_api.rb +3 -85
- data/lib/wire4_client/api/transferencias_spid_api.rb +1 -1
- data/lib/wire4_client/api/webhooks_api.rb +1 -1
- 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 +4 -4
- data/lib/wire4_client/models/account_request.rb +1 -1
- data/lib/wire4_client/models/account_response.rb +8 -38
- data/lib/wire4_client/models/account_spid.rb +1 -1
- data/lib/wire4_client/models/amount_request.rb +5 -91
- data/lib/wire4_client/models/balance.rb +1 -1
- data/lib/wire4_client/models/balance_list_response.rb +1 -1
- data/lib/wire4_client/models/beneficiaries_response.rb +1 -1
- data/lib/wire4_client/models/beneficiary_institution.rb +1 -1
- data/lib/wire4_client/models/billing.rb +1 -1
- data/lib/wire4_client/models/billing_transaction.rb +2 -2
- data/lib/wire4_client/models/cep_response.rb +1 -1
- data/lib/wire4_client/models/cep_search_banxico.rb +1 -1
- data/lib/wire4_client/models/contact_request.rb +1 -1
- data/lib/wire4_client/models/deposit.rb +2 -12
- data/lib/wire4_client/models/depositant.rb +1 -1
- data/lib/wire4_client/models/depositants_register.rb +1 -1
- data/lib/wire4_client/models/depositants_response.rb +1 -1
- data/lib/wire4_client/models/error_response.rb +1 -1
- data/lib/wire4_client/models/get_depositants.rb +1 -1
- data/lib/wire4_client/models/institution.rb +1 -1
- data/lib/wire4_client/models/institutions_list.rb +1 -1
- data/lib/wire4_client/models/message_account_beneficiary.rb +3 -3
- data/lib/wire4_client/models/message_cep.rb +11 -11
- data/lib/wire4_client/models/message_deposit_received.rb +3 -13
- data/lib/wire4_client/models/message_institution.rb +1 -1
- data/lib/wire4_client/models/message_payment.rb +3 -24
- data/lib/wire4_client/models/message_subscription.rb +8 -8
- data/lib/wire4_client/models/message_web_hook.rb +3 -3
- data/lib/wire4_client/models/payment.rb +3 -23
- 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 +1 -1
- data/lib/wire4_client/models/pre_enrollment_response.rb +1 -1
- data/lib/wire4_client/models/relationship.rb +1 -1
- data/lib/wire4_client/models/relationships_response.rb +1 -1
- data/lib/wire4_client/models/spid_beneficiaries_response.rb +1 -1
- data/lib/wire4_client/models/spid_beneficiary_response.rb +5 -35
- data/lib/wire4_client/models/spid_classification_dto.rb +1 -1
- data/lib/wire4_client/models/spid_classifications_response_dto.rb +1 -1
- data/lib/wire4_client/models/{codi_operation_response_dto.rb → timestamp.rb} +72 -53
- data/lib/wire4_client/models/token_required_response.rb +1 -1
- data/lib/wire4_client/models/transaction_outgoing.rb +3 -13
- data/lib/wire4_client/models/transaction_outgoing_spid.rb +1 -1
- data/lib/wire4_client/models/transactions_outgoing_register.rb +1 -1
- data/lib/wire4_client/models/webhook_request.rb +1 -1
- data/lib/wire4_client/models/webhook_response.rb +1 -1
- data/lib/wire4_client/models/webhooks_list.rb +1 -1
- data/lib/wire4_client/version.rb +2 -2
- data/lib/wire4_client.rb +2 -53
- 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/cuentas_de_beneficiarios_spei_api_spec.rb +4 -37
- data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +1 -6
- data/spec/api/depositantes_api_spec.rb +1 -1
- data/spec/api/facturas_api_spec.rb +1 -1
- data/spec/api/instituciones_api_spec.rb +1 -1
- data/spec/api/saldo_api_spec.rb +1 -1
- data/spec/api/suscripciones_api_spec.rb +8 -8
- data/spec/api/transferencias_spei_api_spec.rb +2 -17
- data/spec/api/transferencias_spid_api_spec.rb +1 -1
- data/spec/api/webhooks_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_request_spec.rb +1 -1
- data/spec/models/account_response_spec.rb +1 -19
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/account_spid_spec.rb +1 -1
- data/spec/models/amount_request_spec.rb +1 -13
- data/spec/models/balance_list_response_spec.rb +1 -1
- data/spec/models/balance_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/contact_request_spec.rb +1 -1
- data/spec/models/deposit_spec.rb +1 -7
- 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/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/message_account_beneficiary_spec.rb +1 -1
- data/spec/models/message_cep_spec.rb +1 -1
- data/spec/models/message_deposit_received_spec.rb +1 -7
- data/spec/models/message_institution_spec.rb +1 -1
- data/spec/models/message_payment_spec.rb +1 -13
- data/spec/models/message_subscription_spec.rb +1 -1
- data/spec/models/message_web_hook_spec.rb +1 -1
- data/spec/models/payment_spec.rb +1 -13
- 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/relationship_spec.rb +1 -1
- data/spec/models/relationships_response_spec.rb +1 -1
- data/spec/models/spid_beneficiaries_response_spec.rb +1 -1
- data/spec/models/spid_beneficiary_response_spec.rb +1 -19
- data/spec/models/spid_classification_dto_spec.rb +1 -1
- data/spec/models/spid_classifications_response_dto_spec.rb +1 -1
- data/spec/models/{address_company_spec.rb → timestamp_spec.rb} +17 -17
- data/spec/models/token_required_response_spec.rb +1 -1
- data/spec/models/transaction_outgoing_spec.rb +1 -7
- data/spec/models/transaction_outgoing_spid_spec.rb +1 -1
- data/spec/models/transactions_outgoing_register_spec.rb +1 -1
- data/spec/models/webhook_request_spec.rb +1 -1
- data/spec/models/webhook_response_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 +10 -214
- data/docs/AccountDetail.md +0 -13
- data/docs/AccountReassigned.md +0 -22
- data/docs/AddressCompany.md +0 -17
- data/docs/AuthorizationTransactionGroup.md +0 -9
- data/docs/AuthorizedBeneficiariesResponse.md +0 -10
- data/docs/AuthorizedUsers.md +0 -13
- data/docs/AutorizacinDeDepsitosApi.md +0 -113
- data/docs/BeneficiariesQueryRegisterStatus.md +0 -13
- data/docs/CertificateRequest.md +0 -11
- data/docs/CodiCodeQrResponseDTO.md +0 -17
- data/docs/CodiCodeRequestDTO.md +0 -14
- data/docs/CodiOperationResponseDTO.md +0 -14
- data/docs/CodiOperationsFiltersRequestDTO.md +0 -15
- data/docs/CompanyRegistered.md +0 -13
- data/docs/CompanyRequested.md +0 -11
- data/docs/Compay.md +0 -11
- data/docs/ConfigurationsLimits.md +0 -9
- data/docs/ContractDetailRequest.md +0 -11
- data/docs/ContractDetailResponse.md +0 -9
- data/docs/ContractsDetailsApi.md +0 -222
- data/docs/DepositAuthorizationRequest.md +0 -10
- data/docs/DepositsAuthorizationResponse.md +0 -10
- data/docs/DetailedErrorResponse.md +0 -10
- data/docs/EmpresasCoDiApi.md +0 -107
- data/docs/Item.md +0 -10
- data/docs/LmitesDeMontosApi.md +0 -112
- data/docs/MessageCodiAction.md +0 -19
- data/docs/MessageConfigurationsLimits.md +0 -8
- data/docs/MessageDepositAuthorizationRequest.md +0 -27
- data/docs/MessagePaymentStatePending.md +0 -23
- data/docs/MessageRequestChanged.md +0 -9
- data/docs/MessageSalesPoint.md +0 -10
- data/docs/MessageUserAuthorized.md +0 -14
- data/docs/OperacionesCoDiApi.md +0 -68
- data/docs/Operations.md +0 -17
- data/docs/PagerResponseDto.md +0 -13
- data/docs/PaymentCODI.md +0 -13
- data/docs/PaymentRequestCodiResponseDTO.md +0 -18
- data/docs/PeticionesDePagoPorCoDiApi.md +0 -116
- data/docs/PreMonexAuthorization.md +0 -11
- data/docs/PuntosDeVentaCoDiApi.md +0 -113
- data/docs/SalesPoint.md +0 -10
- data/docs/SalesPointFound.md +0 -14
- data/docs/SalesPointRequest.md +0 -11
- data/docs/SalesPointRespose.md +0 -11
- data/docs/TransactionErrorCode.md +0 -10
- data/docs/UpdateConfigurationsRequestDTO.md +0 -8
- data/docs/UrlsRedirect.md +0 -9
- data/docs/UserCompany.md +0 -16
- data/docs/WebHookDepositAuthorizationRequest.md +0 -9
- data/docs/WebHookDepositAuthorizationResponse.md +0 -13
- data/docs/Webhook.md +0 -13
- data/lib/wire4_client/api/autorizacin_de_depsitos_api.rb +0 -173
- data/lib/wire4_client/api/contracts_details_api.rb +0 -301
- data/lib/wire4_client/api/empresas_co_di_api.rb +0 -137
- data/lib/wire4_client/api/lmites_de_montos_api.rb +0 -160
- data/lib/wire4_client/api/operaciones_co_di_api.rb +0 -92
- data/lib/wire4_client/api/peticiones_de_pago_por_co_di_api.rb +0 -178
- data/lib/wire4_client/api/puntos_de_venta_co_di_api.rb +0 -151
- data/lib/wire4_client/models/account_detail.rb +0 -239
- data/lib/wire4_client/models/account_reassigned.rb +0 -385
- data/lib/wire4_client/models/address_company.rb +0 -275
- data/lib/wire4_client/models/authorization_transaction_group.rb +0 -207
- data/lib/wire4_client/models/authorized_beneficiaries_response.rb +0 -206
- data/lib/wire4_client/models/authorized_users.rb +0 -235
- data/lib/wire4_client/models/beneficiaries_query_register_status.rb +0 -270
- data/lib/wire4_client/models/certificate_request.rb +0 -248
- data/lib/wire4_client/models/codi_code_qr_response_dto.rb +0 -320
- data/lib/wire4_client/models/codi_code_request_dto.rb +0 -402
- data/lib/wire4_client/models/codi_operations_filters_request_dto.rb +0 -336
- data/lib/wire4_client/models/company_registered.rb +0 -235
- data/lib/wire4_client/models/company_requested.rb +0 -215
- data/lib/wire4_client/models/compay.rb +0 -215
- data/lib/wire4_client/models/configurations_limits.rb +0 -197
- data/lib/wire4_client/models/contract_detail_request.rb +0 -247
- data/lib/wire4_client/models/contract_detail_response.rb +0 -194
- data/lib/wire4_client/models/deposit_authorization_request.rb +0 -205
- data/lib/wire4_client/models/deposits_authorization_response.rb +0 -205
- data/lib/wire4_client/models/detailed_error_response.rb +0 -203
- data/lib/wire4_client/models/item.rb +0 -205
- data/lib/wire4_client/models/message_codi_action.rb +0 -295
- data/lib/wire4_client/models/message_configurations_limits.rb +0 -187
- data/lib/wire4_client/models/message_deposit_authorization_request.rb +0 -375
- data/lib/wire4_client/models/message_payment_state_pending.rb +0 -335
- data/lib/wire4_client/models/message_request_changed.rb +0 -229
- data/lib/wire4_client/models/message_sales_point.rb +0 -205
- data/lib/wire4_client/models/message_user_authorized.rb +0 -245
- data/lib/wire4_client/models/operations.rb +0 -321
- data/lib/wire4_client/models/pager_response_dto.rb +0 -236
- data/lib/wire4_client/models/payment_codi.rb +0 -269
- data/lib/wire4_client/models/payment_request_codi_response_dto.rb +0 -287
- data/lib/wire4_client/models/pre_monex_authorization.rb +0 -291
- data/lib/wire4_client/models/sales_point.rb +0 -205
- data/lib/wire4_client/models/sales_point_found.rb +0 -279
- data/lib/wire4_client/models/sales_point_request.rb +0 -254
- data/lib/wire4_client/models/sales_point_respose.rb +0 -215
- data/lib/wire4_client/models/transaction_error_code.rb +0 -201
- data/lib/wire4_client/models/update_configurations_request_dto.rb +0 -192
- data/lib/wire4_client/models/urls_redirect.rb +0 -205
- data/lib/wire4_client/models/user_company.rb +0 -269
- data/lib/wire4_client/models/web_hook_deposit_authorization_request.rb +0 -195
- data/lib/wire4_client/models/web_hook_deposit_authorization_response.rb +0 -237
- data/lib/wire4_client/models/webhook.rb +0 -271
- data/spec/api/autorizacin_de_depsitos_api_spec.rb +0 -62
- data/spec/api/contracts_details_api_spec.rb +0 -90
- data/spec/api/empresas_co_di_api_spec.rb +0 -60
- data/spec/api/lmites_de_montos_api_spec.rb +0 -62
- data/spec/api/operaciones_co_di_api_spec.rb +0 -52
- data/spec/api/peticiones_de_pago_por_co_di_api_spec.rb +0 -63
- data/spec/api/puntos_de_venta_co_di_api_spec.rb +0 -62
- data/spec/models/account_detail_spec.rb +0 -71
- data/spec/models/account_reassigned_spec.rb +0 -125
- data/spec/models/authorization_transaction_group_spec.rb +0 -47
- data/spec/models/authorized_beneficiaries_response_spec.rb +0 -53
- data/spec/models/authorized_users_spec.rb +0 -71
- data/spec/models/beneficiaries_query_register_status_spec.rb +0 -75
- data/spec/models/certificate_request_spec.rb +0 -59
- data/spec/models/codi_code_qr_response_dto_spec.rb +0 -103
- data/spec/models/codi_code_request_dto_spec.rb +0 -81
- data/spec/models/codi_operation_response_dto_spec.rb +0 -77
- data/spec/models/codi_operations_filters_request_dto_spec.rb +0 -87
- data/spec/models/company_registered_spec.rb +0 -71
- data/spec/models/company_requested_spec.rb +0 -59
- data/spec/models/compay_spec.rb +0 -59
- data/spec/models/configurations_limits_spec.rb +0 -47
- data/spec/models/contract_detail_request_spec.rb +0 -59
- data/spec/models/contract_detail_response_spec.rb +0 -47
- data/spec/models/deposit_authorization_request_spec.rb +0 -53
- data/spec/models/deposits_authorization_response_spec.rb +0 -53
- data/spec/models/detailed_error_response_spec.rb +0 -53
- data/spec/models/item_spec.rb +0 -53
- data/spec/models/message_codi_action_spec.rb +0 -107
- data/spec/models/message_configurations_limits_spec.rb +0 -41
- data/spec/models/message_deposit_authorization_request_spec.rb +0 -155
- data/spec/models/message_payment_state_pending_spec.rb +0 -131
- data/spec/models/message_request_changed_spec.rb +0 -51
- data/spec/models/message_sales_point_spec.rb +0 -53
- data/spec/models/message_user_authorized_spec.rb +0 -77
- data/spec/models/operations_spec.rb +0 -103
- data/spec/models/pager_response_dto_spec.rb +0 -71
- data/spec/models/payment_codi_spec.rb +0 -75
- data/spec/models/payment_request_codi_response_dto_spec.rb +0 -101
- data/spec/models/pre_monex_authorization_spec.rb +0 -59
- data/spec/models/sales_point_found_spec.rb +0 -81
- data/spec/models/sales_point_request_spec.rb +0 -59
- data/spec/models/sales_point_respose_spec.rb +0 -59
- data/spec/models/sales_point_spec.rb +0 -53
- data/spec/models/transaction_error_code_spec.rb +0 -53
- data/spec/models/update_configurations_request_dto_spec.rb +0 -41
- data/spec/models/urls_redirect_spec.rb +0 -47
- data/spec/models/user_company_spec.rb +0 -89
- data/spec/models/web_hook_deposit_authorization_request_spec.rb +0 -47
- data/spec/models/web_hook_deposit_authorization_response_spec.rb +0 -71
- data/spec/models/webhook_spec.rb +0 -75
- data/wire4_client-1.0.9.gem +0 -0
@@ -1,385 +0,0 @@
|
|
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
|
-
# Objeto que contiene información de las cuenta SPEI/SPID reasignadas bajo un nuevo identificador de solicitud
|
17
|
-
class AccountReassigned
|
18
|
-
# Monto límite permitido registrado para la cuenta
|
19
|
-
attr_accessor :amount_limit
|
20
|
-
|
21
|
-
# La fecha/hora en la que se autorizo el registro del beneficiario desde el centro de autorización
|
22
|
-
attr_accessor :authorization_date
|
23
|
-
|
24
|
-
# El banco al cual pertenece la cuenta
|
25
|
-
attr_accessor :bank
|
26
|
-
|
27
|
-
# Cuenta del beneficiario, podría ser teléfono celular, TDD o cuenta CLABE
|
28
|
-
attr_accessor :beneficiary_account
|
29
|
-
|
30
|
-
# Código de moneda, este dato es opcional, al registrar una cuenta si no se cuenta con este valor se asignara MXP
|
31
|
-
attr_accessor :currency_code
|
32
|
-
|
33
|
-
# Lista de email's, este dato es opcional
|
34
|
-
attr_accessor :email
|
35
|
-
|
36
|
-
# Objeto que contiene el nombre de la institución, es mutuamente exclusivo con el objeto Person
|
37
|
-
attr_accessor :institution
|
38
|
-
|
39
|
-
# Tipo de relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships. <br> Nota: Si en la respuesta de Monex esta propiedad es nula, tampoco estará presente en esta respuesta.
|
40
|
-
attr_accessor :kind_of_relationship
|
41
|
-
|
42
|
-
# Referencia numérica a utilizar cuando se realice una transferencia y no se especifique una referencia
|
43
|
-
attr_accessor :numeric_reference_spei
|
44
|
-
|
45
|
-
# Concepto de pago a utilizar cuando se realice una transferencia y no se especifique un concepto
|
46
|
-
attr_accessor :payment_concept_spei
|
47
|
-
|
48
|
-
# Objeto que contiene los datos de la persona propietaria de la cuenta, si se incluye este atributo, el atributo institution no debe estar presente
|
49
|
-
attr_accessor :person
|
50
|
-
|
51
|
-
# La fecha en la que se registro el beneficiario
|
52
|
-
attr_accessor :register_date
|
53
|
-
|
54
|
-
# Relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships. <br> Nota: Si en la respuesta de Monex esta propiedad es nula, tampoco estará presente en esta respuesta.
|
55
|
-
attr_accessor :relationship
|
56
|
-
|
57
|
-
# Registro federal de contribuyentes de la persona o institución propietaria de la cuenta. <br> Nota: Si en la respuesta de Monex esta propiedad es nula, tampoco estará presente en esta respuesta.
|
58
|
-
attr_accessor :rfc
|
59
|
-
|
60
|
-
# El estado (status) en el que se encuentra el registro del beneficiario
|
61
|
-
attr_accessor :status
|
62
|
-
|
63
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
64
|
-
def self.attribute_map
|
65
|
-
{
|
66
|
-
:'amount_limit' => :'amount_limit',
|
67
|
-
:'authorization_date' => :'authorization_date',
|
68
|
-
:'bank' => :'bank',
|
69
|
-
:'beneficiary_account' => :'beneficiary_account',
|
70
|
-
:'currency_code' => :'currency_code',
|
71
|
-
:'email' => :'email',
|
72
|
-
:'institution' => :'institution',
|
73
|
-
:'kind_of_relationship' => :'kind_of_relationship',
|
74
|
-
:'numeric_reference_spei' => :'numeric_reference_spei',
|
75
|
-
:'payment_concept_spei' => :'payment_concept_spei',
|
76
|
-
:'person' => :'person',
|
77
|
-
:'register_date' => :'register_date',
|
78
|
-
:'relationship' => :'relationship',
|
79
|
-
:'rfc' => :'rfc',
|
80
|
-
:'status' => :'status'
|
81
|
-
}
|
82
|
-
end
|
83
|
-
|
84
|
-
# Attribute type mapping.
|
85
|
-
def self.swagger_types
|
86
|
-
{
|
87
|
-
:'amount_limit' => :'Float',
|
88
|
-
:'authorization_date' => :'DateTime',
|
89
|
-
:'bank' => :'Institution',
|
90
|
-
:'beneficiary_account' => :'String',
|
91
|
-
:'currency_code' => :'String',
|
92
|
-
:'email' => :'Array<String>',
|
93
|
-
:'institution' => :'BeneficiaryInstitution',
|
94
|
-
:'kind_of_relationship' => :'String',
|
95
|
-
:'numeric_reference_spei' => :'String',
|
96
|
-
:'payment_concept_spei' => :'String',
|
97
|
-
:'person' => :'Person',
|
98
|
-
:'register_date' => :'DateTime',
|
99
|
-
:'relationship' => :'String',
|
100
|
-
:'rfc' => :'String',
|
101
|
-
:'status' => :'String'
|
102
|
-
}
|
103
|
-
end
|
104
|
-
|
105
|
-
# Initializes the object
|
106
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
-
def initialize(attributes = {})
|
108
|
-
return unless attributes.is_a?(Hash)
|
109
|
-
|
110
|
-
# convert string to symbol for hash key
|
111
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
112
|
-
|
113
|
-
if attributes.has_key?(:'amount_limit')
|
114
|
-
self.amount_limit = attributes[:'amount_limit']
|
115
|
-
end
|
116
|
-
|
117
|
-
if attributes.has_key?(:'authorization_date')
|
118
|
-
self.authorization_date = attributes[:'authorization_date']
|
119
|
-
end
|
120
|
-
|
121
|
-
if attributes.has_key?(:'bank')
|
122
|
-
self.bank = attributes[:'bank']
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.has_key?(:'beneficiary_account')
|
126
|
-
self.beneficiary_account = attributes[:'beneficiary_account']
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.has_key?(:'currency_code')
|
130
|
-
self.currency_code = attributes[:'currency_code']
|
131
|
-
end
|
132
|
-
|
133
|
-
if attributes.has_key?(:'email')
|
134
|
-
if (value = attributes[:'email']).is_a?(Array)
|
135
|
-
self.email = value
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
139
|
-
if attributes.has_key?(:'institution')
|
140
|
-
self.institution = attributes[:'institution']
|
141
|
-
end
|
142
|
-
|
143
|
-
if attributes.has_key?(:'kind_of_relationship')
|
144
|
-
self.kind_of_relationship = attributes[:'kind_of_relationship']
|
145
|
-
end
|
146
|
-
|
147
|
-
if attributes.has_key?(:'numeric_reference_spei')
|
148
|
-
self.numeric_reference_spei = attributes[:'numeric_reference_spei']
|
149
|
-
end
|
150
|
-
|
151
|
-
if attributes.has_key?(:'payment_concept_spei')
|
152
|
-
self.payment_concept_spei = attributes[:'payment_concept_spei']
|
153
|
-
end
|
154
|
-
|
155
|
-
if attributes.has_key?(:'person')
|
156
|
-
self.person = attributes[:'person']
|
157
|
-
end
|
158
|
-
|
159
|
-
if attributes.has_key?(:'register_date')
|
160
|
-
self.register_date = attributes[:'register_date']
|
161
|
-
end
|
162
|
-
|
163
|
-
if attributes.has_key?(:'relationship')
|
164
|
-
self.relationship = attributes[:'relationship']
|
165
|
-
end
|
166
|
-
|
167
|
-
if attributes.has_key?(:'rfc')
|
168
|
-
self.rfc = attributes[:'rfc']
|
169
|
-
end
|
170
|
-
|
171
|
-
if attributes.has_key?(:'status')
|
172
|
-
self.status = attributes[:'status']
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
177
|
-
# @return Array for valid properties with the reasons
|
178
|
-
def list_invalid_properties
|
179
|
-
invalid_properties = Array.new
|
180
|
-
if @amount_limit.nil?
|
181
|
-
invalid_properties.push('invalid value for "amount_limit", amount_limit cannot be nil.')
|
182
|
-
end
|
183
|
-
|
184
|
-
if @beneficiary_account.nil?
|
185
|
-
invalid_properties.push('invalid value for "beneficiary_account", beneficiary_account cannot be nil.')
|
186
|
-
end
|
187
|
-
|
188
|
-
if @kind_of_relationship.nil?
|
189
|
-
invalid_properties.push('invalid value for "kind_of_relationship", kind_of_relationship cannot be nil.')
|
190
|
-
end
|
191
|
-
|
192
|
-
if !@numeric_reference_spei.nil? && @numeric_reference_spei.to_s.length > 7
|
193
|
-
invalid_properties.push('invalid value for "numeric_reference_spei", the character length must be smaller than or equal to 7.')
|
194
|
-
end
|
195
|
-
|
196
|
-
if !@numeric_reference_spei.nil? && @numeric_reference_spei.to_s.length < 1
|
197
|
-
invalid_properties.push('invalid value for "numeric_reference_spei", the character length must be great than or equal to 1.')
|
198
|
-
end
|
199
|
-
|
200
|
-
if !@numeric_reference_spei.nil? && @numeric_reference_spei !~ Regexp.new(/[0-9][0-9]*/)
|
201
|
-
invalid_properties.push('invalid value for "numeric_reference_spei", must conform to the pattern /[0-9][0-9]*/.')
|
202
|
-
end
|
203
|
-
|
204
|
-
if @relationship.nil?
|
205
|
-
invalid_properties.push('invalid value for "relationship", relationship cannot be nil.')
|
206
|
-
end
|
207
|
-
|
208
|
-
if @rfc.nil?
|
209
|
-
invalid_properties.push('invalid value for "rfc", rfc cannot be nil.')
|
210
|
-
end
|
211
|
-
|
212
|
-
invalid_properties
|
213
|
-
end
|
214
|
-
|
215
|
-
# Check to see if the all the properties in the model are valid
|
216
|
-
# @return true if the model is valid
|
217
|
-
def valid?
|
218
|
-
return false if @amount_limit.nil?
|
219
|
-
return false if @beneficiary_account.nil?
|
220
|
-
return false if @kind_of_relationship.nil?
|
221
|
-
return false if !@numeric_reference_spei.nil? && @numeric_reference_spei.to_s.length > 7
|
222
|
-
return false if !@numeric_reference_spei.nil? && @numeric_reference_spei.to_s.length < 1
|
223
|
-
return false if !@numeric_reference_spei.nil? && @numeric_reference_spei !~ Regexp.new(/[0-9][0-9]*/)
|
224
|
-
return false if @relationship.nil?
|
225
|
-
return false if @rfc.nil?
|
226
|
-
true
|
227
|
-
end
|
228
|
-
|
229
|
-
# Custom attribute writer method with validation
|
230
|
-
# @param [Object] numeric_reference_spei Value to be assigned
|
231
|
-
def numeric_reference_spei=(numeric_reference_spei)
|
232
|
-
if !numeric_reference_spei.nil? && numeric_reference_spei.to_s.length > 7
|
233
|
-
fail ArgumentError, 'invalid value for "numeric_reference_spei", the character length must be smaller than or equal to 7.'
|
234
|
-
end
|
235
|
-
|
236
|
-
if !numeric_reference_spei.nil? && numeric_reference_spei.to_s.length < 1
|
237
|
-
fail ArgumentError, 'invalid value for "numeric_reference_spei", the character length must be great than or equal to 1.'
|
238
|
-
end
|
239
|
-
|
240
|
-
if !numeric_reference_spei.nil? && numeric_reference_spei !~ Regexp.new(/[0-9][0-9]*/)
|
241
|
-
fail ArgumentError, 'invalid value for "numeric_reference_spei", must conform to the pattern /[0-9][0-9]*/.'
|
242
|
-
end
|
243
|
-
|
244
|
-
@numeric_reference_spei = numeric_reference_spei
|
245
|
-
end
|
246
|
-
|
247
|
-
# Checks equality by comparing each attribute.
|
248
|
-
# @param [Object] Object to be compared
|
249
|
-
def ==(o)
|
250
|
-
return true if self.equal?(o)
|
251
|
-
self.class == o.class &&
|
252
|
-
amount_limit == o.amount_limit &&
|
253
|
-
authorization_date == o.authorization_date &&
|
254
|
-
bank == o.bank &&
|
255
|
-
beneficiary_account == o.beneficiary_account &&
|
256
|
-
currency_code == o.currency_code &&
|
257
|
-
email == o.email &&
|
258
|
-
institution == o.institution &&
|
259
|
-
kind_of_relationship == o.kind_of_relationship &&
|
260
|
-
numeric_reference_spei == o.numeric_reference_spei &&
|
261
|
-
payment_concept_spei == o.payment_concept_spei &&
|
262
|
-
person == o.person &&
|
263
|
-
register_date == o.register_date &&
|
264
|
-
relationship == o.relationship &&
|
265
|
-
rfc == o.rfc &&
|
266
|
-
status == o.status
|
267
|
-
end
|
268
|
-
|
269
|
-
# @see the `==` method
|
270
|
-
# @param [Object] Object to be compared
|
271
|
-
def eql?(o)
|
272
|
-
self == o
|
273
|
-
end
|
274
|
-
|
275
|
-
# Calculates hash code according to all attributes.
|
276
|
-
# @return [Fixnum] Hash code
|
277
|
-
def hash
|
278
|
-
[amount_limit, authorization_date, bank, beneficiary_account, currency_code, email, institution, kind_of_relationship, numeric_reference_spei, payment_concept_spei, person, register_date, relationship, rfc, status].hash
|
279
|
-
end
|
280
|
-
|
281
|
-
# Builds the object from hash
|
282
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
283
|
-
# @return [Object] Returns the model itself
|
284
|
-
def build_from_hash(attributes)
|
285
|
-
return nil unless attributes.is_a?(Hash)
|
286
|
-
self.class.swagger_types.each_pair do |key, type|
|
287
|
-
if type =~ /\AArray<(.*)>/i
|
288
|
-
# check to ensure the input is an array given that the the attribute
|
289
|
-
# is documented as an array but the input is not
|
290
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
291
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
292
|
-
end
|
293
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
294
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
295
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
296
|
-
end
|
297
|
-
|
298
|
-
self
|
299
|
-
end
|
300
|
-
|
301
|
-
# Deserializes the data based on type
|
302
|
-
# @param string type Data type
|
303
|
-
# @param string value Value to be deserialized
|
304
|
-
# @return [Object] Deserialized data
|
305
|
-
def _deserialize(type, value)
|
306
|
-
case type.to_sym
|
307
|
-
when :DateTime
|
308
|
-
DateTime.parse(value)
|
309
|
-
when :Date
|
310
|
-
Date.parse(value)
|
311
|
-
when :String
|
312
|
-
value.to_s
|
313
|
-
when :Integer
|
314
|
-
value.to_i
|
315
|
-
when :Float
|
316
|
-
value.to_f
|
317
|
-
when :BOOLEAN
|
318
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
319
|
-
true
|
320
|
-
else
|
321
|
-
false
|
322
|
-
end
|
323
|
-
when :Object
|
324
|
-
# generic object (usually a Hash), return directly
|
325
|
-
value
|
326
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
327
|
-
inner_type = Regexp.last_match[:inner_type]
|
328
|
-
value.map { |v| _deserialize(inner_type, v) }
|
329
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
330
|
-
k_type = Regexp.last_match[:k_type]
|
331
|
-
v_type = Regexp.last_match[:v_type]
|
332
|
-
{}.tap do |hash|
|
333
|
-
value.each do |k, v|
|
334
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
335
|
-
end
|
336
|
-
end
|
337
|
-
else # model
|
338
|
-
temp_model = Wire4Client.const_get(type).new
|
339
|
-
temp_model.build_from_hash(value)
|
340
|
-
end
|
341
|
-
end
|
342
|
-
|
343
|
-
# Returns the string representation of the object
|
344
|
-
# @return [String] String presentation of the object
|
345
|
-
def to_s
|
346
|
-
to_hash.to_s
|
347
|
-
end
|
348
|
-
|
349
|
-
# to_body is an alias to to_hash (backward compatibility)
|
350
|
-
# @return [Hash] Returns the object in the form of hash
|
351
|
-
def to_body
|
352
|
-
to_hash
|
353
|
-
end
|
354
|
-
|
355
|
-
# Returns the object in the form of hash
|
356
|
-
# @return [Hash] Returns the object in the form of hash
|
357
|
-
def to_hash
|
358
|
-
hash = {}
|
359
|
-
self.class.attribute_map.each_pair do |attr, param|
|
360
|
-
value = self.send(attr)
|
361
|
-
next if value.nil?
|
362
|
-
hash[param] = _to_hash(value)
|
363
|
-
end
|
364
|
-
hash
|
365
|
-
end
|
366
|
-
|
367
|
-
# Outputs non-array value in the form of hash
|
368
|
-
# For object, use to_hash. Otherwise, just return the value
|
369
|
-
# @param [Object] value Any valid value
|
370
|
-
# @return [Hash] Returns the value in the form of hash
|
371
|
-
def _to_hash(value)
|
372
|
-
if value.is_a?(Array)
|
373
|
-
value.compact.map { |v| _to_hash(v) }
|
374
|
-
elsif value.is_a?(Hash)
|
375
|
-
{}.tap do |hash|
|
376
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
377
|
-
end
|
378
|
-
elsif value.respond_to? :to_hash
|
379
|
-
value.to_hash
|
380
|
-
else
|
381
|
-
value
|
382
|
-
end
|
383
|
-
end
|
384
|
-
end
|
385
|
-
end
|
@@ -1,275 +0,0 @@
|
|
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
|
-
# La dirección de la companía
|
17
|
-
class AddressCompany
|
18
|
-
# La ciudad
|
19
|
-
attr_accessor :city
|
20
|
-
|
21
|
-
# La clabe del país
|
22
|
-
attr_accessor :country_code
|
23
|
-
|
24
|
-
# Número exterior
|
25
|
-
attr_accessor :exterior_number
|
26
|
-
|
27
|
-
# Número interior
|
28
|
-
attr_accessor :interior_number
|
29
|
-
|
30
|
-
# El municipio
|
31
|
-
attr_accessor :municipality
|
32
|
-
|
33
|
-
# Código postal
|
34
|
-
attr_accessor :postal_code
|
35
|
-
|
36
|
-
# El asentamiento
|
37
|
-
attr_accessor :settlement
|
38
|
-
|
39
|
-
# El nombre del asentamiento
|
40
|
-
attr_accessor :settlement_name
|
41
|
-
|
42
|
-
# El estado
|
43
|
-
attr_accessor :state
|
44
|
-
|
45
|
-
# La calle
|
46
|
-
attr_accessor :street_address
|
47
|
-
|
48
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
49
|
-
def self.attribute_map
|
50
|
-
{
|
51
|
-
:'city' => :'city',
|
52
|
-
:'country_code' => :'country_code',
|
53
|
-
:'exterior_number' => :'exterior_number',
|
54
|
-
:'interior_number' => :'interior_number',
|
55
|
-
:'municipality' => :'municipality',
|
56
|
-
:'postal_code' => :'postal_code',
|
57
|
-
:'settlement' => :'settlement',
|
58
|
-
:'settlement_name' => :'settlement_name',
|
59
|
-
:'state' => :'state',
|
60
|
-
:'street_address' => :'street_address'
|
61
|
-
}
|
62
|
-
end
|
63
|
-
|
64
|
-
# Attribute type mapping.
|
65
|
-
def self.swagger_types
|
66
|
-
{
|
67
|
-
:'city' => :'String',
|
68
|
-
:'country_code' => :'String',
|
69
|
-
:'exterior_number' => :'String',
|
70
|
-
:'interior_number' => :'String',
|
71
|
-
:'municipality' => :'String',
|
72
|
-
:'postal_code' => :'String',
|
73
|
-
:'settlement' => :'String',
|
74
|
-
:'settlement_name' => :'String',
|
75
|
-
:'state' => :'String',
|
76
|
-
:'street_address' => :'String'
|
77
|
-
}
|
78
|
-
end
|
79
|
-
|
80
|
-
# Initializes the object
|
81
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
82
|
-
def initialize(attributes = {})
|
83
|
-
return unless attributes.is_a?(Hash)
|
84
|
-
|
85
|
-
# convert string to symbol for hash key
|
86
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
87
|
-
|
88
|
-
if attributes.has_key?(:'city')
|
89
|
-
self.city = attributes[:'city']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes.has_key?(:'country_code')
|
93
|
-
self.country_code = attributes[:'country_code']
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.has_key?(:'exterior_number')
|
97
|
-
self.exterior_number = attributes[:'exterior_number']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.has_key?(:'interior_number')
|
101
|
-
self.interior_number = attributes[:'interior_number']
|
102
|
-
end
|
103
|
-
|
104
|
-
if attributes.has_key?(:'municipality')
|
105
|
-
self.municipality = attributes[:'municipality']
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.has_key?(:'postal_code')
|
109
|
-
self.postal_code = attributes[:'postal_code']
|
110
|
-
end
|
111
|
-
|
112
|
-
if attributes.has_key?(:'settlement')
|
113
|
-
self.settlement = attributes[:'settlement']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.has_key?(:'settlement_name')
|
117
|
-
self.settlement_name = attributes[:'settlement_name']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.has_key?(:'state')
|
121
|
-
self.state = attributes[:'state']
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.has_key?(:'street_address')
|
125
|
-
self.street_address = attributes[:'street_address']
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
130
|
-
# @return Array for valid properties with the reasons
|
131
|
-
def list_invalid_properties
|
132
|
-
invalid_properties = Array.new
|
133
|
-
invalid_properties
|
134
|
-
end
|
135
|
-
|
136
|
-
# Check to see if the all the properties in the model are valid
|
137
|
-
# @return true if the model is valid
|
138
|
-
def valid?
|
139
|
-
true
|
140
|
-
end
|
141
|
-
|
142
|
-
# Checks equality by comparing each attribute.
|
143
|
-
# @param [Object] Object to be compared
|
144
|
-
def ==(o)
|
145
|
-
return true if self.equal?(o)
|
146
|
-
self.class == o.class &&
|
147
|
-
city == o.city &&
|
148
|
-
country_code == o.country_code &&
|
149
|
-
exterior_number == o.exterior_number &&
|
150
|
-
interior_number == o.interior_number &&
|
151
|
-
municipality == o.municipality &&
|
152
|
-
postal_code == o.postal_code &&
|
153
|
-
settlement == o.settlement &&
|
154
|
-
settlement_name == o.settlement_name &&
|
155
|
-
state == o.state &&
|
156
|
-
street_address == o.street_address
|
157
|
-
end
|
158
|
-
|
159
|
-
# @see the `==` method
|
160
|
-
# @param [Object] Object to be compared
|
161
|
-
def eql?(o)
|
162
|
-
self == o
|
163
|
-
end
|
164
|
-
|
165
|
-
# Calculates hash code according to all attributes.
|
166
|
-
# @return [Fixnum] Hash code
|
167
|
-
def hash
|
168
|
-
[city, country_code, exterior_number, interior_number, municipality, postal_code, settlement, settlement_name, state, street_address].hash
|
169
|
-
end
|
170
|
-
|
171
|
-
# Builds the object from hash
|
172
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
173
|
-
# @return [Object] Returns the model itself
|
174
|
-
def build_from_hash(attributes)
|
175
|
-
return nil unless attributes.is_a?(Hash)
|
176
|
-
self.class.swagger_types.each_pair do |key, type|
|
177
|
-
if type =~ /\AArray<(.*)>/i
|
178
|
-
# check to ensure the input is an array given that the the attribute
|
179
|
-
# is documented as an array but the input is not
|
180
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
181
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
182
|
-
end
|
183
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
184
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
185
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
186
|
-
end
|
187
|
-
|
188
|
-
self
|
189
|
-
end
|
190
|
-
|
191
|
-
# Deserializes the data based on type
|
192
|
-
# @param string type Data type
|
193
|
-
# @param string value Value to be deserialized
|
194
|
-
# @return [Object] Deserialized data
|
195
|
-
def _deserialize(type, value)
|
196
|
-
case type.to_sym
|
197
|
-
when :DateTime
|
198
|
-
DateTime.parse(value)
|
199
|
-
when :Date
|
200
|
-
Date.parse(value)
|
201
|
-
when :String
|
202
|
-
value.to_s
|
203
|
-
when :Integer
|
204
|
-
value.to_i
|
205
|
-
when :Float
|
206
|
-
value.to_f
|
207
|
-
when :BOOLEAN
|
208
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
209
|
-
true
|
210
|
-
else
|
211
|
-
false
|
212
|
-
end
|
213
|
-
when :Object
|
214
|
-
# generic object (usually a Hash), return directly
|
215
|
-
value
|
216
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
217
|
-
inner_type = Regexp.last_match[:inner_type]
|
218
|
-
value.map { |v| _deserialize(inner_type, v) }
|
219
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
220
|
-
k_type = Regexp.last_match[:k_type]
|
221
|
-
v_type = Regexp.last_match[:v_type]
|
222
|
-
{}.tap do |hash|
|
223
|
-
value.each do |k, v|
|
224
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
225
|
-
end
|
226
|
-
end
|
227
|
-
else # model
|
228
|
-
temp_model = Wire4Client.const_get(type).new
|
229
|
-
temp_model.build_from_hash(value)
|
230
|
-
end
|
231
|
-
end
|
232
|
-
|
233
|
-
# Returns the string representation of the object
|
234
|
-
# @return [String] String presentation of the object
|
235
|
-
def to_s
|
236
|
-
to_hash.to_s
|
237
|
-
end
|
238
|
-
|
239
|
-
# to_body is an alias to to_hash (backward compatibility)
|
240
|
-
# @return [Hash] Returns the object in the form of hash
|
241
|
-
def to_body
|
242
|
-
to_hash
|
243
|
-
end
|
244
|
-
|
245
|
-
# Returns the object in the form of hash
|
246
|
-
# @return [Hash] Returns the object in the form of hash
|
247
|
-
def to_hash
|
248
|
-
hash = {}
|
249
|
-
self.class.attribute_map.each_pair do |attr, param|
|
250
|
-
value = self.send(attr)
|
251
|
-
next if value.nil?
|
252
|
-
hash[param] = _to_hash(value)
|
253
|
-
end
|
254
|
-
hash
|
255
|
-
end
|
256
|
-
|
257
|
-
# Outputs non-array value in the form of hash
|
258
|
-
# For object, use to_hash. Otherwise, just return the value
|
259
|
-
# @param [Object] value Any valid value
|
260
|
-
# @return [Hash] Returns the value in the form of hash
|
261
|
-
def _to_hash(value)
|
262
|
-
if value.is_a?(Array)
|
263
|
-
value.compact.map { |v| _to_hash(v) }
|
264
|
-
elsif value.is_a?(Hash)
|
265
|
-
{}.tap do |hash|
|
266
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
267
|
-
end
|
268
|
-
elsif value.respond_to? :to_hash
|
269
|
-
value.to_hash
|
270
|
-
else
|
271
|
-
value
|
272
|
-
end
|
273
|
-
end
|
274
|
-
end
|
275
|
-
end
|