wire4_client 0.0.9.pre.TEST → 1.0.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.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +69 -0
  3. data/README.md +15 -77
  4. data/docs/Account.md +3 -3
  5. data/docs/AccountResponse.md +3 -6
  6. data/docs/AmountRequest.md +0 -2
  7. data/docs/BillingTransaction.md +1 -1
  8. data/docs/CuentasDeBeneficiariosSPEIApi.md +8 -127
  9. data/docs/CuentasDeBeneficiariosSPIDApi.md +1 -11
  10. data/docs/Deposit.md +0 -1
  11. data/docs/MessageAccountBeneficiary.md +2 -2
  12. data/docs/MessageCEP.md +9 -9
  13. data/docs/MessageDepositReceived.md +0 -1
  14. data/docs/MessagePayment.md +1 -3
  15. data/docs/MessageSubscription.md +6 -6
  16. data/docs/MessageWebHook.md +2 -2
  17. data/docs/Payment.md +1 -3
  18. data/docs/SpidBeneficiaryResponse.md +0 -3
  19. data/docs/SuscripcionesApi.md +14 -14
  20. data/docs/Timestamp.md +17 -0
  21. data/docs/TransactionOutgoing.md +1 -2
  22. data/docs/TransferenciasSPEIApi.md +3 -61
  23. data/lib/wire4_client/api/comprobante_electrnico_de_pago_cep_api.rb +1 -1
  24. data/lib/wire4_client/api/contacto_api.rb +1 -1
  25. data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +10 -194
  26. data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +1 -16
  27. data/lib/wire4_client/api/depositantes_api.rb +1 -1
  28. data/lib/wire4_client/api/facturas_api.rb +1 -1
  29. data/lib/wire4_client/api/instituciones_api.rb +1 -1
  30. data/lib/wire4_client/api/saldo_api.rb +1 -1
  31. data/lib/wire4_client/api/suscripciones_api.rb +15 -15
  32. data/lib/wire4_client/api/transferencias_spei_api.rb +3 -85
  33. data/lib/wire4_client/api/transferencias_spid_api.rb +1 -1
  34. data/lib/wire4_client/api/webhooks_api.rb +1 -1
  35. data/lib/wire4_client/api_client.rb +1 -1
  36. data/lib/wire4_client/api_error.rb +1 -1
  37. data/lib/wire4_client/configuration.rb +1 -1
  38. data/lib/wire4_client/models/account.rb +4 -4
  39. data/lib/wire4_client/models/account_request.rb +1 -1
  40. data/lib/wire4_client/models/account_response.rb +8 -38
  41. data/lib/wire4_client/models/account_spid.rb +1 -1
  42. data/lib/wire4_client/models/amount_request.rb +5 -91
  43. data/lib/wire4_client/models/balance.rb +1 -1
  44. data/lib/wire4_client/models/balance_list_response.rb +1 -1
  45. data/lib/wire4_client/models/beneficiaries_response.rb +1 -1
  46. data/lib/wire4_client/models/beneficiary_institution.rb +1 -1
  47. data/lib/wire4_client/models/billing.rb +1 -1
  48. data/lib/wire4_client/models/billing_transaction.rb +2 -2
  49. data/lib/wire4_client/models/cep_response.rb +1 -1
  50. data/lib/wire4_client/models/cep_search_banxico.rb +1 -1
  51. data/lib/wire4_client/models/contact_request.rb +1 -1
  52. data/lib/wire4_client/models/deposit.rb +2 -12
  53. data/lib/wire4_client/models/depositant.rb +1 -1
  54. data/lib/wire4_client/models/depositants_register.rb +1 -1
  55. data/lib/wire4_client/models/depositants_response.rb +1 -1
  56. data/lib/wire4_client/models/error_response.rb +1 -1
  57. data/lib/wire4_client/models/get_depositants.rb +1 -1
  58. data/lib/wire4_client/models/institution.rb +1 -1
  59. data/lib/wire4_client/models/institutions_list.rb +1 -1
  60. data/lib/wire4_client/models/message_account_beneficiary.rb +3 -3
  61. data/lib/wire4_client/models/message_cep.rb +11 -11
  62. data/lib/wire4_client/models/message_deposit_received.rb +3 -13
  63. data/lib/wire4_client/models/message_institution.rb +1 -1
  64. data/lib/wire4_client/models/message_payment.rb +3 -24
  65. data/lib/wire4_client/models/message_subscription.rb +8 -8
  66. data/lib/wire4_client/models/message_web_hook.rb +3 -3
  67. data/lib/wire4_client/models/payment.rb +3 -23
  68. data/lib/wire4_client/models/payments_request_id.rb +1 -1
  69. data/lib/wire4_client/models/person.rb +1 -1
  70. data/lib/wire4_client/models/pre_enrollment_data.rb +1 -1
  71. data/lib/wire4_client/models/pre_enrollment_response.rb +1 -1
  72. data/lib/wire4_client/models/relationship.rb +1 -1
  73. data/lib/wire4_client/models/relationships_response.rb +1 -1
  74. data/lib/wire4_client/models/spid_beneficiaries_response.rb +1 -1
  75. data/lib/wire4_client/models/spid_beneficiary_response.rb +5 -35
  76. data/lib/wire4_client/models/spid_classification_dto.rb +1 -1
  77. data/lib/wire4_client/models/spid_classifications_response_dto.rb +1 -1
  78. data/lib/wire4_client/models/{codi_operation_response_dto.rb → timestamp.rb} +72 -53
  79. data/lib/wire4_client/models/token_required_response.rb +1 -1
  80. data/lib/wire4_client/models/transaction_outgoing.rb +3 -13
  81. data/lib/wire4_client/models/transaction_outgoing_spid.rb +1 -1
  82. data/lib/wire4_client/models/transactions_outgoing_register.rb +1 -1
  83. data/lib/wire4_client/models/webhook_request.rb +1 -1
  84. data/lib/wire4_client/models/webhook_response.rb +1 -1
  85. data/lib/wire4_client/models/webhooks_list.rb +1 -1
  86. data/lib/wire4_client/version.rb +2 -2
  87. data/lib/wire4_client.rb +2 -53
  88. data/spec/api/comprobante_electrnico_de_pago_cep_api_spec.rb +1 -1
  89. data/spec/api/contacto_api_spec.rb +1 -1
  90. data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +4 -37
  91. data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +1 -6
  92. data/spec/api/depositantes_api_spec.rb +1 -1
  93. data/spec/api/facturas_api_spec.rb +1 -1
  94. data/spec/api/instituciones_api_spec.rb +1 -1
  95. data/spec/api/saldo_api_spec.rb +1 -1
  96. data/spec/api/suscripciones_api_spec.rb +8 -8
  97. data/spec/api/transferencias_spei_api_spec.rb +2 -17
  98. data/spec/api/transferencias_spid_api_spec.rb +1 -1
  99. data/spec/api/webhooks_api_spec.rb +1 -1
  100. data/spec/api_client_spec.rb +1 -1
  101. data/spec/configuration_spec.rb +1 -1
  102. data/spec/models/account_request_spec.rb +1 -1
  103. data/spec/models/account_response_spec.rb +1 -19
  104. data/spec/models/account_spec.rb +1 -1
  105. data/spec/models/account_spid_spec.rb +1 -1
  106. data/spec/models/amount_request_spec.rb +1 -13
  107. data/spec/models/balance_list_response_spec.rb +1 -1
  108. data/spec/models/balance_spec.rb +1 -1
  109. data/spec/models/beneficiaries_response_spec.rb +1 -1
  110. data/spec/models/beneficiary_institution_spec.rb +1 -1
  111. data/spec/models/billing_spec.rb +1 -1
  112. data/spec/models/billing_transaction_spec.rb +1 -1
  113. data/spec/models/cep_response_spec.rb +1 -1
  114. data/spec/models/cep_search_banxico_spec.rb +1 -1
  115. data/spec/models/contact_request_spec.rb +1 -1
  116. data/spec/models/deposit_spec.rb +1 -7
  117. data/spec/models/depositant_spec.rb +1 -1
  118. data/spec/models/depositants_register_spec.rb +1 -1
  119. data/spec/models/depositants_response_spec.rb +1 -1
  120. data/spec/models/error_response_spec.rb +1 -1
  121. data/spec/models/get_depositants_spec.rb +1 -1
  122. data/spec/models/institution_spec.rb +1 -1
  123. data/spec/models/institutions_list_spec.rb +1 -1
  124. data/spec/models/message_account_beneficiary_spec.rb +1 -1
  125. data/spec/models/message_cep_spec.rb +1 -1
  126. data/spec/models/message_deposit_received_spec.rb +1 -7
  127. data/spec/models/message_institution_spec.rb +1 -1
  128. data/spec/models/message_payment_spec.rb +1 -13
  129. data/spec/models/message_subscription_spec.rb +1 -1
  130. data/spec/models/message_web_hook_spec.rb +1 -1
  131. data/spec/models/payment_spec.rb +1 -13
  132. data/spec/models/payments_request_id_spec.rb +1 -1
  133. data/spec/models/person_spec.rb +1 -1
  134. data/spec/models/pre_enrollment_data_spec.rb +1 -1
  135. data/spec/models/pre_enrollment_response_spec.rb +1 -1
  136. data/spec/models/relationship_spec.rb +1 -1
  137. data/spec/models/relationships_response_spec.rb +1 -1
  138. data/spec/models/spid_beneficiaries_response_spec.rb +1 -1
  139. data/spec/models/spid_beneficiary_response_spec.rb +1 -19
  140. data/spec/models/spid_classification_dto_spec.rb +1 -1
  141. data/spec/models/spid_classifications_response_dto_spec.rb +1 -1
  142. data/spec/models/{address_company_spec.rb → timestamp_spec.rb} +17 -17
  143. data/spec/models/token_required_response_spec.rb +1 -1
  144. data/spec/models/transaction_outgoing_spec.rb +1 -7
  145. data/spec/models/transaction_outgoing_spid_spec.rb +1 -1
  146. data/spec/models/transactions_outgoing_register_spec.rb +1 -1
  147. data/spec/models/webhook_request_spec.rb +1 -1
  148. data/spec/models/webhook_response_spec.rb +1 -1
  149. data/spec/models/webhooks_list_spec.rb +1 -1
  150. data/spec/spec_helper.rb +1 -1
  151. data/wire4_client.gemspec +2 -2
  152. metadata +10 -214
  153. data/docs/AccountDetail.md +0 -13
  154. data/docs/AccountReassigned.md +0 -22
  155. data/docs/AddressCompany.md +0 -17
  156. data/docs/AuthorizationTransactionGroup.md +0 -9
  157. data/docs/AuthorizedBeneficiariesResponse.md +0 -10
  158. data/docs/AuthorizedUsers.md +0 -13
  159. data/docs/AutorizacinDeDepsitosApi.md +0 -113
  160. data/docs/BeneficiariesQueryRegisterStatus.md +0 -13
  161. data/docs/CertificateRequest.md +0 -11
  162. data/docs/CodiCodeQrResponseDTO.md +0 -17
  163. data/docs/CodiCodeRequestDTO.md +0 -14
  164. data/docs/CodiOperationResponseDTO.md +0 -14
  165. data/docs/CodiOperationsFiltersRequestDTO.md +0 -15
  166. data/docs/CompanyRegistered.md +0 -13
  167. data/docs/CompanyRequested.md +0 -11
  168. data/docs/Compay.md +0 -11
  169. data/docs/ConfigurationsLimits.md +0 -9
  170. data/docs/ContractDetailRequest.md +0 -11
  171. data/docs/ContractDetailResponse.md +0 -9
  172. data/docs/ContractsDetailsApi.md +0 -222
  173. data/docs/DepositAuthorizationRequest.md +0 -10
  174. data/docs/DepositsAuthorizationResponse.md +0 -10
  175. data/docs/DetailedErrorResponse.md +0 -10
  176. data/docs/EmpresasCoDiApi.md +0 -107
  177. data/docs/Item.md +0 -10
  178. data/docs/LmitesDeMontosApi.md +0 -112
  179. data/docs/MessageCodiAction.md +0 -19
  180. data/docs/MessageConfigurationsLimits.md +0 -8
  181. data/docs/MessageDepositAuthorizationRequest.md +0 -27
  182. data/docs/MessagePaymentStatePending.md +0 -23
  183. data/docs/MessageRequestChanged.md +0 -9
  184. data/docs/MessageSalesPoint.md +0 -10
  185. data/docs/MessageUserAuthorized.md +0 -14
  186. data/docs/OperacionesCoDiApi.md +0 -68
  187. data/docs/Operations.md +0 -17
  188. data/docs/PagerResponseDto.md +0 -13
  189. data/docs/PaymentCODI.md +0 -13
  190. data/docs/PaymentRequestCodiResponseDTO.md +0 -18
  191. data/docs/PeticionesDePagoPorCoDiApi.md +0 -116
  192. data/docs/PreMonexAuthorization.md +0 -11
  193. data/docs/PuntosDeVentaCoDiApi.md +0 -113
  194. data/docs/SalesPoint.md +0 -10
  195. data/docs/SalesPointFound.md +0 -14
  196. data/docs/SalesPointRequest.md +0 -11
  197. data/docs/SalesPointRespose.md +0 -11
  198. data/docs/TransactionErrorCode.md +0 -10
  199. data/docs/UpdateConfigurationsRequestDTO.md +0 -8
  200. data/docs/UrlsRedirect.md +0 -9
  201. data/docs/UserCompany.md +0 -16
  202. data/docs/WebHookDepositAuthorizationRequest.md +0 -9
  203. data/docs/WebHookDepositAuthorizationResponse.md +0 -13
  204. data/docs/Webhook.md +0 -13
  205. data/lib/wire4_client/api/autorizacin_de_depsitos_api.rb +0 -173
  206. data/lib/wire4_client/api/contracts_details_api.rb +0 -301
  207. data/lib/wire4_client/api/empresas_co_di_api.rb +0 -137
  208. data/lib/wire4_client/api/lmites_de_montos_api.rb +0 -160
  209. data/lib/wire4_client/api/operaciones_co_di_api.rb +0 -92
  210. data/lib/wire4_client/api/peticiones_de_pago_por_co_di_api.rb +0 -178
  211. data/lib/wire4_client/api/puntos_de_venta_co_di_api.rb +0 -151
  212. data/lib/wire4_client/models/account_detail.rb +0 -239
  213. data/lib/wire4_client/models/account_reassigned.rb +0 -385
  214. data/lib/wire4_client/models/address_company.rb +0 -275
  215. data/lib/wire4_client/models/authorization_transaction_group.rb +0 -207
  216. data/lib/wire4_client/models/authorized_beneficiaries_response.rb +0 -206
  217. data/lib/wire4_client/models/authorized_users.rb +0 -235
  218. data/lib/wire4_client/models/beneficiaries_query_register_status.rb +0 -270
  219. data/lib/wire4_client/models/certificate_request.rb +0 -248
  220. data/lib/wire4_client/models/codi_code_qr_response_dto.rb +0 -320
  221. data/lib/wire4_client/models/codi_code_request_dto.rb +0 -402
  222. data/lib/wire4_client/models/codi_operations_filters_request_dto.rb +0 -336
  223. data/lib/wire4_client/models/company_registered.rb +0 -235
  224. data/lib/wire4_client/models/company_requested.rb +0 -215
  225. data/lib/wire4_client/models/compay.rb +0 -215
  226. data/lib/wire4_client/models/configurations_limits.rb +0 -197
  227. data/lib/wire4_client/models/contract_detail_request.rb +0 -247
  228. data/lib/wire4_client/models/contract_detail_response.rb +0 -194
  229. data/lib/wire4_client/models/deposit_authorization_request.rb +0 -205
  230. data/lib/wire4_client/models/deposits_authorization_response.rb +0 -205
  231. data/lib/wire4_client/models/detailed_error_response.rb +0 -203
  232. data/lib/wire4_client/models/item.rb +0 -205
  233. data/lib/wire4_client/models/message_codi_action.rb +0 -295
  234. data/lib/wire4_client/models/message_configurations_limits.rb +0 -187
  235. data/lib/wire4_client/models/message_deposit_authorization_request.rb +0 -375
  236. data/lib/wire4_client/models/message_payment_state_pending.rb +0 -335
  237. data/lib/wire4_client/models/message_request_changed.rb +0 -229
  238. data/lib/wire4_client/models/message_sales_point.rb +0 -205
  239. data/lib/wire4_client/models/message_user_authorized.rb +0 -245
  240. data/lib/wire4_client/models/operations.rb +0 -321
  241. data/lib/wire4_client/models/pager_response_dto.rb +0 -236
  242. data/lib/wire4_client/models/payment_codi.rb +0 -269
  243. data/lib/wire4_client/models/payment_request_codi_response_dto.rb +0 -287
  244. data/lib/wire4_client/models/pre_monex_authorization.rb +0 -291
  245. data/lib/wire4_client/models/sales_point.rb +0 -205
  246. data/lib/wire4_client/models/sales_point_found.rb +0 -279
  247. data/lib/wire4_client/models/sales_point_request.rb +0 -254
  248. data/lib/wire4_client/models/sales_point_respose.rb +0 -215
  249. data/lib/wire4_client/models/transaction_error_code.rb +0 -201
  250. data/lib/wire4_client/models/update_configurations_request_dto.rb +0 -192
  251. data/lib/wire4_client/models/urls_redirect.rb +0 -205
  252. data/lib/wire4_client/models/user_company.rb +0 -269
  253. data/lib/wire4_client/models/web_hook_deposit_authorization_request.rb +0 -195
  254. data/lib/wire4_client/models/web_hook_deposit_authorization_response.rb +0 -237
  255. data/lib/wire4_client/models/webhook.rb +0 -271
  256. data/spec/api/autorizacin_de_depsitos_api_spec.rb +0 -62
  257. data/spec/api/contracts_details_api_spec.rb +0 -90
  258. data/spec/api/empresas_co_di_api_spec.rb +0 -60
  259. data/spec/api/lmites_de_montos_api_spec.rb +0 -62
  260. data/spec/api/operaciones_co_di_api_spec.rb +0 -52
  261. data/spec/api/peticiones_de_pago_por_co_di_api_spec.rb +0 -63
  262. data/spec/api/puntos_de_venta_co_di_api_spec.rb +0 -62
  263. data/spec/models/account_detail_spec.rb +0 -71
  264. data/spec/models/account_reassigned_spec.rb +0 -125
  265. data/spec/models/authorization_transaction_group_spec.rb +0 -47
  266. data/spec/models/authorized_beneficiaries_response_spec.rb +0 -53
  267. data/spec/models/authorized_users_spec.rb +0 -71
  268. data/spec/models/beneficiaries_query_register_status_spec.rb +0 -75
  269. data/spec/models/certificate_request_spec.rb +0 -59
  270. data/spec/models/codi_code_qr_response_dto_spec.rb +0 -103
  271. data/spec/models/codi_code_request_dto_spec.rb +0 -81
  272. data/spec/models/codi_operation_response_dto_spec.rb +0 -77
  273. data/spec/models/codi_operations_filters_request_dto_spec.rb +0 -87
  274. data/spec/models/company_registered_spec.rb +0 -71
  275. data/spec/models/company_requested_spec.rb +0 -59
  276. data/spec/models/compay_spec.rb +0 -59
  277. data/spec/models/configurations_limits_spec.rb +0 -47
  278. data/spec/models/contract_detail_request_spec.rb +0 -59
  279. data/spec/models/contract_detail_response_spec.rb +0 -47
  280. data/spec/models/deposit_authorization_request_spec.rb +0 -53
  281. data/spec/models/deposits_authorization_response_spec.rb +0 -53
  282. data/spec/models/detailed_error_response_spec.rb +0 -53
  283. data/spec/models/item_spec.rb +0 -53
  284. data/spec/models/message_codi_action_spec.rb +0 -107
  285. data/spec/models/message_configurations_limits_spec.rb +0 -41
  286. data/spec/models/message_deposit_authorization_request_spec.rb +0 -155
  287. data/spec/models/message_payment_state_pending_spec.rb +0 -131
  288. data/spec/models/message_request_changed_spec.rb +0 -51
  289. data/spec/models/message_sales_point_spec.rb +0 -53
  290. data/spec/models/message_user_authorized_spec.rb +0 -77
  291. data/spec/models/operations_spec.rb +0 -103
  292. data/spec/models/pager_response_dto_spec.rb +0 -71
  293. data/spec/models/payment_codi_spec.rb +0 -75
  294. data/spec/models/payment_request_codi_response_dto_spec.rb +0 -101
  295. data/spec/models/pre_monex_authorization_spec.rb +0 -59
  296. data/spec/models/sales_point_found_spec.rb +0 -81
  297. data/spec/models/sales_point_request_spec.rb +0 -59
  298. data/spec/models/sales_point_respose_spec.rb +0 -59
  299. data/spec/models/sales_point_spec.rb +0 -53
  300. data/spec/models/transaction_error_code_spec.rb +0 -53
  301. data/spec/models/update_configurations_request_dto_spec.rb +0 -41
  302. data/spec/models/urls_redirect_spec.rb +0 -47
  303. data/spec/models/user_company_spec.rb +0 -89
  304. data/spec/models/web_hook_deposit_authorization_request_spec.rb +0 -47
  305. data/spec/models/web_hook_deposit_authorization_response_spec.rb +0 -71
  306. data/spec/models/webhook_spec.rb +0 -75
  307. data/wire4_client-1.0.9.gem +0 -0
@@ -1,375 +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
- # El mensaje que se envía mediante (webHook) con la información de un deposito que necesita ser autorizado
17
- class MessageDepositAuthorizationRequest
18
- # Monto de la transferencia
19
- attr_accessor :amount
20
-
21
- # Cuenta del beneficiario
22
- attr_accessor :beneficiary_account
23
-
24
- # Nombre del beneficiario
25
- attr_accessor :beneficiary_name
26
-
27
- # RFC del beneficiario
28
- attr_accessor :beneficiary_rfc
29
-
30
- # Clave de rastreo de la transferencia
31
- attr_accessor :clave_rastreo
32
-
33
- # Fecha de confirmación de la transferencia
34
- attr_accessor :confirm_date
35
-
36
- # Código de moneda de la transferencia, puede ser MXP, USD
37
- attr_accessor :currency_code
38
-
39
- # Fecha de recepción de la transferencia
40
- attr_accessor :deposit_date
41
-
42
- # Nombre del depositante, en caso que la transferencia se reciba en una cuenta de depositante
43
- attr_accessor :depositant
44
-
45
- # CLABE del depositante, en caso que la transferencia se reciba en una cuenta de depositante
46
- attr_accessor :depositant_clabe
47
-
48
- # Correo electrónico del depositante, en caso que la transferencia se reciba en una cuenta de depositante
49
- attr_accessor :depositant_email
50
-
51
- # RFC del depositante, en caso que la transferencia se reciba en una cuenta de depositante
52
- attr_accessor :depositant_rfc
53
-
54
- # Concepto de la transferencia
55
- attr_accessor :description
56
-
57
- # Descripción de Monex para la transferencia
58
- attr_accessor :monex_description
59
-
60
- # Identificador asignado por Monex a la transferencia
61
- attr_accessor :monex_transaction_id
62
-
63
- # Referecia de la transferencia
64
- attr_accessor :reference
65
-
66
- # Cuenta del ordenante, podría ser un número celular, TDD o Cuenta CLABE interbancaria
67
- attr_accessor :sender_account
68
-
69
- # Información del banco del ordenante
70
- attr_accessor :sender_bank
71
-
72
- # Nombre del ordenante
73
- attr_accessor :sender_name
74
-
75
- # 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
@@ -1,335 +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
- # El mensaje que se envía mediante (webHook) con la información de una transferencia que esta pendiente de ser completada
17
- class MessagePaymentStatePending
18
- # Cuenta del ordenante
19
- attr_accessor :account
20
-
21
- # Monto de la transferencia
22
- attr_accessor :amount
23
-
24
- # Cuenta del beneficiario
25
- attr_accessor :beneficiary_account
26
-
27
- # Banco del beneficiario
28
- attr_accessor :beneficiary_bank
29
-
30
- # Nombre del beneficiario
31
- attr_accessor :beneficiary_name
32
-
33
- # Concepto de la transferencia de salida
34
- attr_accessor :concept
35
-
36
- # Código de la moneda de la transferencia de salida
37
- attr_accessor :currency_code
38
-
39
- # Mensaje de detención de Monex, indica la causa por la cuál esta detenida la operación en Monex
40
- attr_accessor :detention_message
41
-
42
- # Mensaje de error
43
- attr_accessor :error_message
44
-
45
- # El identificador de la transferencia de salida
46
- attr_accessor :order_id
47
-
48
- # El identificador de la orden de pago de Monex de la transferencia de salida
49
- attr_accessor :payment_order_id
50
-
51
- # Estatus que identifica la causa por la que la transferencia esta en pendiente, los posibles estatus son: FI=Fondos Insuficientes | FM=Firma mancomunada, en espera de ingreso de segundo token de autorización | DP=Se detecto una transferencia duplicada que esta en espera de confirmación o de eliminación
52
- attr_accessor :pending_reason
53
-
54
- # Referecia de la transferencia
55
- attr_accessor :reference
56
-
57
- # El identificador, en esta API, de la petición de envío de la transferencia de salida
58
- attr_accessor :request_id
59
-
60
- # El estado de la transferencia de salida, deberá ser PENDING
61
- attr_accessor :status_code
62
-
63
- # El identificador de Monex de la transferencia de salida, podría no estar presente por lo que Usted debería hacer referencias mediate el paymentOrderID
64
- attr_accessor :transaction_id
65
-
66
- # Attribute mapping from ruby-style variable name to JSON key.
67
- def self.attribute_map
68
- {
69
- :'account' => :'account',
70
- :'amount' => :'amount',
71
- :'beneficiary_account' => :'beneficiary_account',
72
- :'beneficiary_bank' => :'beneficiary_bank',
73
- :'beneficiary_name' => :'beneficiary_name',
74
- :'concept' => :'concept',
75
- :'currency_code' => :'currency_code',
76
- :'detention_message' => :'detention_message',
77
- :'error_message' => :'error_message',
78
- :'order_id' => :'order_id',
79
- :'payment_order_id' => :'payment_order_id',
80
- :'pending_reason' => :'pending_reason',
81
- :'reference' => :'reference',
82
- :'request_id' => :'request_id',
83
- :'status_code' => :'status_code',
84
- :'transaction_id' => :'transaction_id'
85
- }
86
- end
87
-
88
- # Attribute type mapping.
89
- def self.swagger_types
90
- {
91
- :'account' => :'String',
92
- :'amount' => :'Float',
93
- :'beneficiary_account' => :'String',
94
- :'beneficiary_bank' => :'MessageInstitution',
95
- :'beneficiary_name' => :'String',
96
- :'concept' => :'String',
97
- :'currency_code' => :'String',
98
- :'detention_message' => :'String',
99
- :'error_message' => :'String',
100
- :'order_id' => :'String',
101
- :'payment_order_id' => :'Integer',
102
- :'pending_reason' => :'String',
103
- :'reference' => :'Integer',
104
- :'request_id' => :'String',
105
- :'status_code' => :'String',
106
- :'transaction_id' => :'Integer'
107
- }
108
- end
109
-
110
- # Initializes the object
111
- # @param [Hash] attributes Model attributes in the form of hash
112
- def initialize(attributes = {})
113
- return unless attributes.is_a?(Hash)
114
-
115
- # convert string to symbol for hash key
116
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
117
-
118
- if attributes.has_key?(:'account')
119
- self.account = attributes[:'account']
120
- end
121
-
122
- if attributes.has_key?(:'amount')
123
- self.amount = attributes[:'amount']
124
- end
125
-
126
- if attributes.has_key?(:'beneficiary_account')
127
- self.beneficiary_account = attributes[:'beneficiary_account']
128
- end
129
-
130
- if attributes.has_key?(:'beneficiary_bank')
131
- self.beneficiary_bank = attributes[:'beneficiary_bank']
132
- end
133
-
134
- if attributes.has_key?(:'beneficiary_name')
135
- self.beneficiary_name = attributes[:'beneficiary_name']
136
- end
137
-
138
- if attributes.has_key?(:'concept')
139
- self.concept = attributes[:'concept']
140
- end
141
-
142
- if attributes.has_key?(:'currency_code')
143
- self.currency_code = attributes[:'currency_code']
144
- end
145
-
146
- if attributes.has_key?(:'detention_message')
147
- self.detention_message = attributes[:'detention_message']
148
- end
149
-
150
- if attributes.has_key?(:'error_message')
151
- self.error_message = attributes[:'error_message']
152
- end
153
-
154
- if attributes.has_key?(:'order_id')
155
- self.order_id = attributes[:'order_id']
156
- end
157
-
158
- if attributes.has_key?(:'payment_order_id')
159
- self.payment_order_id = attributes[:'payment_order_id']
160
- end
161
-
162
- if attributes.has_key?(:'pending_reason')
163
- self.pending_reason = attributes[:'pending_reason']
164
- end
165
-
166
- if attributes.has_key?(:'reference')
167
- self.reference = attributes[:'reference']
168
- end
169
-
170
- if attributes.has_key?(:'request_id')
171
- self.request_id = attributes[:'request_id']
172
- end
173
-
174
- if attributes.has_key?(:'status_code')
175
- self.status_code = attributes[:'status_code']
176
- end
177
-
178
- if attributes.has_key?(:'transaction_id')
179
- self.transaction_id = attributes[:'transaction_id']
180
- end
181
- end
182
-
183
- # Show invalid properties with the reasons. Usually used together with valid?
184
- # @return Array for valid properties with the reasons
185
- def list_invalid_properties
186
- invalid_properties = Array.new
187
- invalid_properties
188
- end
189
-
190
- # Check to see if the all the properties in the model are valid
191
- # @return true if the model is valid
192
- def valid?
193
- true
194
- end
195
-
196
- # Checks equality by comparing each attribute.
197
- # @param [Object] Object to be compared
198
- def ==(o)
199
- return true if self.equal?(o)
200
- self.class == o.class &&
201
- account == o.account &&
202
- amount == o.amount &&
203
- beneficiary_account == o.beneficiary_account &&
204
- beneficiary_bank == o.beneficiary_bank &&
205
- beneficiary_name == o.beneficiary_name &&
206
- concept == o.concept &&
207
- currency_code == o.currency_code &&
208
- detention_message == o.detention_message &&
209
- error_message == o.error_message &&
210
- order_id == o.order_id &&
211
- payment_order_id == o.payment_order_id &&
212
- pending_reason == o.pending_reason &&
213
- reference == o.reference &&
214
- request_id == o.request_id &&
215
- status_code == o.status_code &&
216
- transaction_id == o.transaction_id
217
- end
218
-
219
- # @see the `==` method
220
- # @param [Object] Object to be compared
221
- def eql?(o)
222
- self == o
223
- end
224
-
225
- # Calculates hash code according to all attributes.
226
- # @return [Fixnum] Hash code
227
- def hash
228
- [account, amount, beneficiary_account, beneficiary_bank, beneficiary_name, concept, currency_code, detention_message, error_message, order_id, payment_order_id, pending_reason, reference, request_id, status_code, transaction_id].hash
229
- end
230
-
231
- # Builds the object from hash
232
- # @param [Hash] attributes Model attributes in the form of hash
233
- # @return [Object] Returns the model itself
234
- def build_from_hash(attributes)
235
- return nil unless attributes.is_a?(Hash)
236
- self.class.swagger_types.each_pair do |key, type|
237
- if type =~ /\AArray<(.*)>/i
238
- # check to ensure the input is an array given that the the attribute
239
- # is documented as an array but the input is not
240
- if attributes[self.class.attribute_map[key]].is_a?(Array)
241
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
242
- end
243
- elsif !attributes[self.class.attribute_map[key]].nil?
244
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
245
- end # or else data not found in attributes(hash), not an issue as the data can be optional
246
- end
247
-
248
- self
249
- end
250
-
251
- # Deserializes the data based on type
252
- # @param string type Data type
253
- # @param string value Value to be deserialized
254
- # @return [Object] Deserialized data
255
- def _deserialize(type, value)
256
- case type.to_sym
257
- when :DateTime
258
- DateTime.parse(value)
259
- when :Date
260
- Date.parse(value)
261
- when :String
262
- value.to_s
263
- when :Integer
264
- value.to_i
265
- when :Float
266
- value.to_f
267
- when :BOOLEAN
268
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
269
- true
270
- else
271
- false
272
- end
273
- when :Object
274
- # generic object (usually a Hash), return directly
275
- value
276
- when /\AArray<(?<inner_type>.+)>\z/
277
- inner_type = Regexp.last_match[:inner_type]
278
- value.map { |v| _deserialize(inner_type, v) }
279
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
280
- k_type = Regexp.last_match[:k_type]
281
- v_type = Regexp.last_match[:v_type]
282
- {}.tap do |hash|
283
- value.each do |k, v|
284
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
285
- end
286
- end
287
- else # model
288
- temp_model = Wire4Client.const_get(type).new
289
- temp_model.build_from_hash(value)
290
- end
291
- end
292
-
293
- # Returns the string representation of the object
294
- # @return [String] String presentation of the object
295
- def to_s
296
- to_hash.to_s
297
- end
298
-
299
- # to_body is an alias to to_hash (backward compatibility)
300
- # @return [Hash] Returns the object in the form of hash
301
- def to_body
302
- to_hash
303
- end
304
-
305
- # Returns the object in the form of hash
306
- # @return [Hash] Returns the object in the form of hash
307
- def to_hash
308
- hash = {}
309
- self.class.attribute_map.each_pair do |attr, param|
310
- value = self.send(attr)
311
- next if value.nil?
312
- hash[param] = _to_hash(value)
313
- end
314
- hash
315
- end
316
-
317
- # Outputs non-array value in the form of hash
318
- # For object, use to_hash. Otherwise, just return the value
319
- # @param [Object] value Any valid value
320
- # @return [Hash] Returns the value in the form of hash
321
- def _to_hash(value)
322
- if value.is_a?(Array)
323
- value.compact.map { |v| _to_hash(v) }
324
- elsif value.is_a?(Hash)
325
- {}.tap do |hash|
326
- value.each { |k, v| hash[k] = _to_hash(v) }
327
- end
328
- elsif value.respond_to? :to_hash
329
- value.to_hash
330
- else
331
- value
332
- end
333
- end
334
- end
335
- end