wire4_client 1.0.3 → 1.0.5
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 +50 -7
- data/docs/Account.md +3 -3
- data/docs/AccountDetail.md +13 -0
- data/docs/AccountReassigned.md +21 -0
- data/docs/AccountResponse.md +4 -3
- data/docs/AddressCompany.md +17 -0
- data/docs/AmountRequest.md +2 -0
- data/docs/AuthorizationTransactionGroup.md +9 -0
- data/docs/AuthorizedBeneficiariesResponse.md +10 -0
- data/docs/AuthorizedUsers.md +13 -0
- data/docs/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/ContractDetailRequest.md +11 -0
- data/docs/ContractDetailResponse.md +9 -0
- data/docs/ContractsDetailsApi.md +167 -0
- data/docs/CuentasDeBeneficiariosSPEIApi.md +69 -4
- data/docs/CuentasDeBeneficiariosSPIDApi.md +11 -1
- data/docs/EmpresasCoDiApi.md +107 -0
- data/docs/MessageAccountBeneficiary.md +2 -2
- data/docs/MessageCEP.md +9 -9
- data/docs/MessageCodiAction.md +19 -0
- data/docs/MessagePayment.md +3 -1
- data/docs/MessagePaymentStatePending.md +23 -0
- data/docs/MessageRequestChanged.md +2 -2
- data/docs/MessageSalesPoint.md +10 -0
- data/docs/MessageSubscription.md +6 -6
- data/docs/MessageUserAuthorized.md +13 -0
- data/docs/MessageWebHook.md +2 -2
- data/docs/OperacionesCoDiApi.md +68 -0
- data/docs/Operations.md +17 -0
- data/docs/PagerResponseDto.md +13 -0
- data/docs/Payment.md +3 -1
- data/docs/PaymentRequestCodiResponseDTO.md +18 -0
- data/docs/PeticionesDePagoPorCoDiApi.md +116 -0
- data/docs/PreMonexAuthorization.md +11 -0
- data/docs/PuntosDeVentaCoDiApi.md +113 -0
- 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/SpidBeneficiaryResponse.md +2 -0
- data/docs/SuscripcionesApi.md +14 -14
- data/docs/TransactionOutgoing.md +2 -1
- data/docs/TransferenciasSPEIApi.md +60 -2
- data/docs/UrlsRedirect.md +9 -0
- data/docs/UserCompany.md +16 -0
- data/docs/Webhook.md +13 -0
- data/lib/wire4_client.rb +36 -0
- data/lib/wire4_client/api/contracts_details_api.rb +230 -0
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +100 -5
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +15 -0
- data/lib/wire4_client/api/empresas_co_di_api.rb +137 -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/suscripciones_api.rb +14 -14
- data/lib/wire4_client/api/transferencias_spei_api.rb +82 -0
- data/lib/wire4_client/models/account.rb +3 -3
- data/lib/wire4_client/models/account_detail.rb +239 -0
- data/lib/wire4_client/models/account_reassigned.rb +375 -0
- data/lib/wire4_client/models/account_response.rb +14 -4
- data/lib/wire4_client/models/address_company.rb +275 -0
- data/lib/wire4_client/models/amount_request.rb +90 -4
- 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/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/contract_detail_request.rb +247 -0
- data/lib/wire4_client/models/contract_detail_response.rb +194 -0
- data/lib/wire4_client/models/message_account_beneficiary.rb +2 -2
- data/lib/wire4_client/models/message_cep.rb +10 -10
- data/lib/wire4_client/models/message_codi_action.rb +295 -0
- data/lib/wire4_client/models/message_deposit_received.rb +1 -1
- data/lib/wire4_client/models/message_payment.rb +23 -2
- data/lib/wire4_client/models/message_payment_state_pending.rb +335 -0
- data/lib/wire4_client/models/message_request_changed.rb +3 -3
- data/lib/wire4_client/models/message_sales_point.rb +205 -0
- data/lib/wire4_client/models/message_subscription.rb +7 -7
- data/lib/wire4_client/models/message_user_authorized.rb +235 -0
- data/lib/wire4_client/models/message_web_hook.rb +2 -2
- 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 +22 -2
- data/lib/wire4_client/models/payment_request_codi_response_dto.rb +287 -0
- data/lib/wire4_client/models/pre_monex_authorization.rb +291 -0
- data/lib/wire4_client/models/sales_point.rb +205 -0
- data/lib/wire4_client/models/sales_point_found.rb +279 -0
- data/lib/wire4_client/models/sales_point_request.rb +254 -0
- data/lib/wire4_client/models/sales_point_respose.rb +215 -0
- data/lib/wire4_client/models/spid_beneficiary_response.rb +24 -4
- data/lib/wire4_client/models/transaction_outgoing.rb +12 -2
- data/lib/wire4_client/models/urls_redirect.rb +205 -0
- data/lib/wire4_client/models/user_company.rb +269 -0
- data/lib/wire4_client/models/webhook.rb +271 -0
- data/lib/wire4_client/version.rb +1 -1
- data/spec/api/contracts_details_api_spec.rb +76 -0
- data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +20 -1
- data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +5 -0
- data/spec/api/empresas_co_di_api_spec.rb +60 -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/suscripciones_api_spec.rb +7 -7
- data/spec/api/transferencias_spei_api_spec.rb +15 -0
- data/spec/models/account_detail_spec.rb +71 -0
- data/spec/models/account_reassigned_spec.rb +119 -0
- data/spec/models/account_response_spec.rb +6 -0
- data/spec/models/address_company_spec.rb +95 -0
- data/spec/models/amount_request_spec.rb +12 -0
- 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/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/contract_detail_request_spec.rb +59 -0
- data/spec/models/contract_detail_response_spec.rb +47 -0
- data/spec/models/message_codi_action_spec.rb +107 -0
- data/spec/models/message_payment_spec.rb +12 -0
- data/spec/models/message_payment_state_pending_spec.rb +131 -0
- data/spec/models/message_sales_point_spec.rb +53 -0
- data/spec/models/message_user_authorized_spec.rb +71 -0
- data/spec/models/operations_spec.rb +103 -0
- data/spec/models/pager_response_dto_spec.rb +71 -0
- data/spec/models/payment_request_codi_response_dto_spec.rb +101 -0
- data/spec/models/payment_spec.rb +12 -0
- data/spec/models/pre_monex_authorization_spec.rb +59 -0
- data/spec/models/sales_point_found_spec.rb +81 -0
- data/spec/models/sales_point_request_spec.rb +59 -0
- data/spec/models/sales_point_respose_spec.rb +59 -0
- data/spec/models/sales_point_spec.rb +53 -0
- data/spec/models/spid_beneficiary_response_spec.rb +12 -0
- data/spec/models/transaction_outgoing_spec.rb +6 -0
- data/spec/models/urls_redirect_spec.rb +47 -0
- data/spec/models/user_company_spec.rb +89 -0
- data/spec/models/webhook_spec.rb +75 -0
- metadata +146 -3
- data/Gemfile.lock +0 -69
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.4.10
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module Wire4Client
|
|
16
|
-
# El CEP emitido por Banxico de la transferencia. Solo cuando
|
|
16
|
+
# El CEP emitido por Banxico de la transferencia. Solo cuando esté disponible, en otro caso se podrá usar la Consulta de CEP que esta misma API ofrece
|
|
17
17
|
class MessageCEP
|
|
18
18
|
# Cuenta del beneficiario
|
|
19
19
|
attr_accessor :account_beneficiary
|
|
@@ -24,13 +24,13 @@ module Wire4Client
|
|
|
24
24
|
# Monto de la operación
|
|
25
25
|
attr_accessor :amount
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Indica sí el CEP está disponible
|
|
28
28
|
attr_accessor :available
|
|
29
29
|
|
|
30
30
|
# Clave del banco beneficiario
|
|
31
31
|
attr_accessor :bank_beneficiary
|
|
32
32
|
|
|
33
|
-
# Clave del banco que
|
|
33
|
+
# Clave del banco que envía la operación
|
|
34
34
|
attr_accessor :bank_sender
|
|
35
35
|
|
|
36
36
|
# Nombre del beneficiario
|
|
@@ -45,7 +45,7 @@ module Wire4Client
|
|
|
45
45
|
# Fecha de captura
|
|
46
46
|
attr_accessor :capture_date
|
|
47
47
|
|
|
48
|
-
#
|
|
48
|
+
# Número de serie emitido por el SAT
|
|
49
49
|
attr_accessor :certificate_serial_number
|
|
50
50
|
|
|
51
51
|
# Clave de rastreo de la operación
|
|
@@ -54,28 +54,28 @@ module Wire4Client
|
|
|
54
54
|
# Descripción de la operación
|
|
55
55
|
attr_accessor :description
|
|
56
56
|
|
|
57
|
-
#
|
|
57
|
+
# IVA de la operación
|
|
58
58
|
attr_accessor :iva
|
|
59
59
|
|
|
60
60
|
# Fecha en la que se realizó la operación
|
|
61
61
|
attr_accessor :operation_date
|
|
62
62
|
|
|
63
|
-
# Fecha en la que genera el
|
|
63
|
+
# Fecha en la que genera el CEP
|
|
64
64
|
attr_accessor :operation_date_cep
|
|
65
65
|
|
|
66
66
|
# Referencia de la operación
|
|
67
67
|
attr_accessor :reference
|
|
68
68
|
|
|
69
|
-
# Nombre de
|
|
69
|
+
# Nombre de quién envía la operación
|
|
70
70
|
attr_accessor :sender_name
|
|
71
71
|
|
|
72
|
-
# RFC de
|
|
72
|
+
# RFC de quién envía la operación
|
|
73
73
|
attr_accessor :sender_rfc
|
|
74
74
|
|
|
75
|
-
# Firma del
|
|
75
|
+
# Firma del CEP
|
|
76
76
|
attr_accessor :signature
|
|
77
77
|
|
|
78
|
-
#
|
|
78
|
+
# Dirección URL de descarga del archivo ZIP que contiene el PDF y XML del CEP proporcionado por BANXICO
|
|
79
79
|
attr_accessor :url_zip
|
|
80
80
|
|
|
81
81
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Wire4RestAPI
|
|
3
|
+
|
|
4
|
+
#Referencia de la API de Wire4
|
|
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
|
+
# El mensaje que se envía con la informacion del punto de venta registrado
|
|
17
|
+
class MessageCodiAction
|
|
18
|
+
# Monto de la operación de pago
|
|
19
|
+
attr_accessor :amount
|
|
20
|
+
|
|
21
|
+
# Concepto
|
|
22
|
+
attr_accessor :concept
|
|
23
|
+
|
|
24
|
+
# Fecha de expiración de la operación
|
|
25
|
+
attr_accessor :due_date
|
|
26
|
+
|
|
27
|
+
# Uuid de la operación
|
|
28
|
+
attr_accessor :id
|
|
29
|
+
|
|
30
|
+
# Metadata asociada a la petición de pago
|
|
31
|
+
attr_accessor :metadata
|
|
32
|
+
|
|
33
|
+
# Fecha de la operación
|
|
34
|
+
attr_accessor :operation_date
|
|
35
|
+
|
|
36
|
+
# Identificador de la petición
|
|
37
|
+
attr_accessor :order_id
|
|
38
|
+
|
|
39
|
+
# Tipo de pago
|
|
40
|
+
attr_accessor :payment_type
|
|
41
|
+
|
|
42
|
+
# Número de referencia
|
|
43
|
+
attr_accessor :reference
|
|
44
|
+
|
|
45
|
+
# Identidicador del punto de venta a la que pertenece la petición de pago
|
|
46
|
+
attr_accessor :sales_point_id
|
|
47
|
+
|
|
48
|
+
# Estado de la operación de pago
|
|
49
|
+
attr_accessor :status
|
|
50
|
+
|
|
51
|
+
# Id de la transacción
|
|
52
|
+
attr_accessor :transaction_id
|
|
53
|
+
|
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
55
|
+
def self.attribute_map
|
|
56
|
+
{
|
|
57
|
+
:'amount' => :'amount',
|
|
58
|
+
:'concept' => :'concept',
|
|
59
|
+
:'due_date' => :'due_date',
|
|
60
|
+
:'id' => :'id',
|
|
61
|
+
:'metadata' => :'metadata',
|
|
62
|
+
:'operation_date' => :'operation_date',
|
|
63
|
+
:'order_id' => :'order_id',
|
|
64
|
+
:'payment_type' => :'payment_type',
|
|
65
|
+
:'reference' => :'reference',
|
|
66
|
+
:'sales_point_id' => :'sales_point_id',
|
|
67
|
+
:'status' => :'status',
|
|
68
|
+
:'transaction_id' => :'transaction_id'
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Attribute type mapping.
|
|
73
|
+
def self.swagger_types
|
|
74
|
+
{
|
|
75
|
+
:'amount' => :'Float',
|
|
76
|
+
:'concept' => :'String',
|
|
77
|
+
:'due_date' => :'DateTime',
|
|
78
|
+
:'id' => :'String',
|
|
79
|
+
:'metadata' => :'String',
|
|
80
|
+
:'operation_date' => :'DateTime',
|
|
81
|
+
:'order_id' => :'String',
|
|
82
|
+
:'payment_type' => :'String',
|
|
83
|
+
:'reference' => :'String',
|
|
84
|
+
:'sales_point_id' => :'String',
|
|
85
|
+
:'status' => :'String',
|
|
86
|
+
:'transaction_id' => :'String'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Initializes the object
|
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
92
|
+
def initialize(attributes = {})
|
|
93
|
+
return unless attributes.is_a?(Hash)
|
|
94
|
+
|
|
95
|
+
# convert string to symbol for hash key
|
|
96
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
97
|
+
|
|
98
|
+
if attributes.has_key?(:'amount')
|
|
99
|
+
self.amount = attributes[:'amount']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.has_key?(:'concept')
|
|
103
|
+
self.concept = attributes[:'concept']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.has_key?(:'due_date')
|
|
107
|
+
self.due_date = attributes[:'due_date']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.has_key?(:'id')
|
|
111
|
+
self.id = attributes[:'id']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.has_key?(:'metadata')
|
|
115
|
+
self.metadata = attributes[:'metadata']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.has_key?(:'operation_date')
|
|
119
|
+
self.operation_date = attributes[:'operation_date']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.has_key?(:'order_id')
|
|
123
|
+
self.order_id = attributes[:'order_id']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.has_key?(:'payment_type')
|
|
127
|
+
self.payment_type = attributes[:'payment_type']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.has_key?(:'reference')
|
|
131
|
+
self.reference = attributes[:'reference']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.has_key?(:'sales_point_id')
|
|
135
|
+
self.sales_point_id = attributes[:'sales_point_id']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.has_key?(:'status')
|
|
139
|
+
self.status = attributes[:'status']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.has_key?(:'transaction_id')
|
|
143
|
+
self.transaction_id = attributes[:'transaction_id']
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
148
|
+
# @return Array for valid properties with the reasons
|
|
149
|
+
def list_invalid_properties
|
|
150
|
+
invalid_properties = Array.new
|
|
151
|
+
invalid_properties
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Check to see if the all the properties in the model are valid
|
|
155
|
+
# @return true if the model is valid
|
|
156
|
+
def valid?
|
|
157
|
+
true
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Checks equality by comparing each attribute.
|
|
161
|
+
# @param [Object] Object to be compared
|
|
162
|
+
def ==(o)
|
|
163
|
+
return true if self.equal?(o)
|
|
164
|
+
self.class == o.class &&
|
|
165
|
+
amount == o.amount &&
|
|
166
|
+
concept == o.concept &&
|
|
167
|
+
due_date == o.due_date &&
|
|
168
|
+
id == o.id &&
|
|
169
|
+
metadata == o.metadata &&
|
|
170
|
+
operation_date == o.operation_date &&
|
|
171
|
+
order_id == o.order_id &&
|
|
172
|
+
payment_type == o.payment_type &&
|
|
173
|
+
reference == o.reference &&
|
|
174
|
+
sales_point_id == o.sales_point_id &&
|
|
175
|
+
status == o.status &&
|
|
176
|
+
transaction_id == o.transaction_id
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# @see the `==` method
|
|
180
|
+
# @param [Object] Object to be compared
|
|
181
|
+
def eql?(o)
|
|
182
|
+
self == o
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Calculates hash code according to all attributes.
|
|
186
|
+
# @return [Fixnum] Hash code
|
|
187
|
+
def hash
|
|
188
|
+
[amount, concept, due_date, id, metadata, operation_date, order_id, payment_type, reference, sales_point_id, status, transaction_id].hash
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Builds the object from hash
|
|
192
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
193
|
+
# @return [Object] Returns the model itself
|
|
194
|
+
def build_from_hash(attributes)
|
|
195
|
+
return nil unless attributes.is_a?(Hash)
|
|
196
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
197
|
+
if type =~ /\AArray<(.*)>/i
|
|
198
|
+
# check to ensure the input is an array given that the the attribute
|
|
199
|
+
# is documented as an array but the input is not
|
|
200
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
201
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
202
|
+
end
|
|
203
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
204
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
205
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
self
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Deserializes the data based on type
|
|
212
|
+
# @param string type Data type
|
|
213
|
+
# @param string value Value to be deserialized
|
|
214
|
+
# @return [Object] Deserialized data
|
|
215
|
+
def _deserialize(type, value)
|
|
216
|
+
case type.to_sym
|
|
217
|
+
when :DateTime
|
|
218
|
+
DateTime.parse(value)
|
|
219
|
+
when :Date
|
|
220
|
+
Date.parse(value)
|
|
221
|
+
when :String
|
|
222
|
+
value.to_s
|
|
223
|
+
when :Integer
|
|
224
|
+
value.to_i
|
|
225
|
+
when :Float
|
|
226
|
+
value.to_f
|
|
227
|
+
when :BOOLEAN
|
|
228
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
229
|
+
true
|
|
230
|
+
else
|
|
231
|
+
false
|
|
232
|
+
end
|
|
233
|
+
when :Object
|
|
234
|
+
# generic object (usually a Hash), return directly
|
|
235
|
+
value
|
|
236
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
237
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
238
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
239
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
240
|
+
k_type = Regexp.last_match[:k_type]
|
|
241
|
+
v_type = Regexp.last_match[:v_type]
|
|
242
|
+
{}.tap do |hash|
|
|
243
|
+
value.each do |k, v|
|
|
244
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
else # model
|
|
248
|
+
temp_model = Wire4Client.const_get(type).new
|
|
249
|
+
temp_model.build_from_hash(value)
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Returns the string representation of the object
|
|
254
|
+
# @return [String] String presentation of the object
|
|
255
|
+
def to_s
|
|
256
|
+
to_hash.to_s
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
260
|
+
# @return [Hash] Returns the object in the form of hash
|
|
261
|
+
def to_body
|
|
262
|
+
to_hash
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Returns the object in the form of hash
|
|
266
|
+
# @return [Hash] Returns the object in the form of hash
|
|
267
|
+
def to_hash
|
|
268
|
+
hash = {}
|
|
269
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
270
|
+
value = self.send(attr)
|
|
271
|
+
next if value.nil?
|
|
272
|
+
hash[param] = _to_hash(value)
|
|
273
|
+
end
|
|
274
|
+
hash
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Outputs non-array value in the form of hash
|
|
278
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
279
|
+
# @param [Object] value Any valid value
|
|
280
|
+
# @return [Hash] Returns the value in the form of hash
|
|
281
|
+
def _to_hash(value)
|
|
282
|
+
if value.is_a?(Array)
|
|
283
|
+
value.compact.map { |v| _to_hash(v) }
|
|
284
|
+
elsif value.is_a?(Hash)
|
|
285
|
+
{}.tap do |hash|
|
|
286
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
287
|
+
end
|
|
288
|
+
elsif value.respond_to? :to_hash
|
|
289
|
+
value.to_hash
|
|
290
|
+
else
|
|
291
|
+
value
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
end
|
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.4.10
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module Wire4Client
|
|
16
|
-
# El mensaje que se envía mediante (webHook) con la
|
|
16
|
+
# El mensaje que se envía mediante (webHook) con la información de una transferencia de entrada recibida
|
|
17
17
|
class MessageDepositReceived
|
|
18
18
|
# Monto de la transferencia
|
|
19
19
|
attr_accessor :amount
|
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.4.10
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module Wire4Client
|
|
16
|
-
# El mensaje que se envía mediante (webHook) con la información
|
|
16
|
+
# El mensaje que se envía mediante (webHook) con la información de la transferencia de salida realizada
|
|
17
17
|
class MessagePayment
|
|
18
18
|
# Cuenta del ordenante
|
|
19
19
|
attr_accessor :account
|
|
@@ -30,6 +30,7 @@ module Wire4Client
|
|
|
30
30
|
# Nombre del beneficiario
|
|
31
31
|
attr_accessor :beneficiary_name
|
|
32
32
|
|
|
33
|
+
# Informacion del CEP
|
|
33
34
|
attr_accessor :cep
|
|
34
35
|
|
|
35
36
|
# Clave de rastreo de la transferencia
|
|
@@ -47,6 +48,9 @@ module Wire4Client
|
|
|
47
48
|
# Mensaje de detención de Monex de la transferencia de salida
|
|
48
49
|
attr_accessor :detention_message
|
|
49
50
|
|
|
51
|
+
# Mensaje de error
|
|
52
|
+
attr_accessor :error_message
|
|
53
|
+
|
|
50
54
|
# La descripción de Monex de la transferencia de salida
|
|
51
55
|
attr_accessor :monex_description
|
|
52
56
|
|
|
@@ -56,6 +60,9 @@ module Wire4Client
|
|
|
56
60
|
# El identificador de la orden de pago de Monex de la transferencia de salida
|
|
57
61
|
attr_accessor :payment_order_id
|
|
58
62
|
|
|
63
|
+
# Razón de porque está pendiente aún cuando se autorizó la transferencia
|
|
64
|
+
attr_accessor :pending_reason
|
|
65
|
+
|
|
59
66
|
# Referecia de la transferencia
|
|
60
67
|
attr_accessor :reference
|
|
61
68
|
|
|
@@ -82,9 +89,11 @@ module Wire4Client
|
|
|
82
89
|
:'confirm_date' => :'confirm_date',
|
|
83
90
|
:'currency_code' => :'currency_code',
|
|
84
91
|
:'detention_message' => :'detention_message',
|
|
92
|
+
:'error_message' => :'error_message',
|
|
85
93
|
:'monex_description' => :'monex_description',
|
|
86
94
|
:'order_id' => :'order_id',
|
|
87
95
|
:'payment_order_id' => :'payment_order_id',
|
|
96
|
+
:'pending_reason' => :'pending_reason',
|
|
88
97
|
:'reference' => :'reference',
|
|
89
98
|
:'request_id' => :'request_id',
|
|
90
99
|
:'status_code' => :'status_code',
|
|
@@ -106,9 +115,11 @@ module Wire4Client
|
|
|
106
115
|
:'confirm_date' => :'DateTime',
|
|
107
116
|
:'currency_code' => :'String',
|
|
108
117
|
:'detention_message' => :'String',
|
|
118
|
+
:'error_message' => :'String',
|
|
109
119
|
:'monex_description' => :'String',
|
|
110
120
|
:'order_id' => :'String',
|
|
111
121
|
:'payment_order_id' => :'Integer',
|
|
122
|
+
:'pending_reason' => :'String',
|
|
112
123
|
:'reference' => :'Integer',
|
|
113
124
|
:'request_id' => :'String',
|
|
114
125
|
:'status_code' => :'String',
|
|
@@ -168,6 +179,10 @@ module Wire4Client
|
|
|
168
179
|
self.detention_message = attributes[:'detention_message']
|
|
169
180
|
end
|
|
170
181
|
|
|
182
|
+
if attributes.has_key?(:'error_message')
|
|
183
|
+
self.error_message = attributes[:'error_message']
|
|
184
|
+
end
|
|
185
|
+
|
|
171
186
|
if attributes.has_key?(:'monex_description')
|
|
172
187
|
self.monex_description = attributes[:'monex_description']
|
|
173
188
|
end
|
|
@@ -180,6 +195,10 @@ module Wire4Client
|
|
|
180
195
|
self.payment_order_id = attributes[:'payment_order_id']
|
|
181
196
|
end
|
|
182
197
|
|
|
198
|
+
if attributes.has_key?(:'pending_reason')
|
|
199
|
+
self.pending_reason = attributes[:'pending_reason']
|
|
200
|
+
end
|
|
201
|
+
|
|
183
202
|
if attributes.has_key?(:'reference')
|
|
184
203
|
self.reference = attributes[:'reference']
|
|
185
204
|
end
|
|
@@ -226,9 +245,11 @@ module Wire4Client
|
|
|
226
245
|
confirm_date == o.confirm_date &&
|
|
227
246
|
currency_code == o.currency_code &&
|
|
228
247
|
detention_message == o.detention_message &&
|
|
248
|
+
error_message == o.error_message &&
|
|
229
249
|
monex_description == o.monex_description &&
|
|
230
250
|
order_id == o.order_id &&
|
|
231
251
|
payment_order_id == o.payment_order_id &&
|
|
252
|
+
pending_reason == o.pending_reason &&
|
|
232
253
|
reference == o.reference &&
|
|
233
254
|
request_id == o.request_id &&
|
|
234
255
|
status_code == o.status_code &&
|
|
@@ -244,7 +265,7 @@ module Wire4Client
|
|
|
244
265
|
# Calculates hash code according to all attributes.
|
|
245
266
|
# @return [Fixnum] Hash code
|
|
246
267
|
def hash
|
|
247
|
-
[account, amount, beneficiary_account, beneficiary_bank, beneficiary_name, cep, clave_rastreo, concept, confirm_date, currency_code, detention_message, monex_description, order_id, payment_order_id, reference, request_id, status_code, transaction_id].hash
|
|
268
|
+
[account, amount, beneficiary_account, beneficiary_bank, beneficiary_name, cep, clave_rastreo, concept, confirm_date, currency_code, detention_message, error_message, monex_description, order_id, payment_order_id, pending_reason, reference, request_id, status_code, transaction_id].hash
|
|
248
269
|
end
|
|
249
270
|
|
|
250
271
|
# Builds the object from hash
|