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,215 +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 la información del punto de venta que se registro.
|
17
|
-
class SalesPointRespose
|
18
|
-
# Identificador del punto de venta
|
19
|
-
attr_accessor :sales_point_id
|
20
|
-
|
21
|
-
# Llave de usuario para el API Wire4
|
22
|
-
attr_accessor :user_key
|
23
|
-
|
24
|
-
# Contraseña para el API Wire4
|
25
|
-
attr_accessor :user_secret
|
26
|
-
|
27
|
-
# codiWebhook
|
28
|
-
attr_accessor :webhook
|
29
|
-
|
30
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
-
def self.attribute_map
|
32
|
-
{
|
33
|
-
:'sales_point_id' => :'sales_point_id',
|
34
|
-
:'user_key' => :'user_key',
|
35
|
-
:'user_secret' => :'user_secret',
|
36
|
-
:'webhook' => :'webhook'
|
37
|
-
}
|
38
|
-
end
|
39
|
-
|
40
|
-
# Attribute type mapping.
|
41
|
-
def self.swagger_types
|
42
|
-
{
|
43
|
-
:'sales_point_id' => :'String',
|
44
|
-
:'user_key' => :'String',
|
45
|
-
:'user_secret' => :'String',
|
46
|
-
:'webhook' => :'Webhook'
|
47
|
-
}
|
48
|
-
end
|
49
|
-
|
50
|
-
# Initializes the object
|
51
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
-
def initialize(attributes = {})
|
53
|
-
return unless attributes.is_a?(Hash)
|
54
|
-
|
55
|
-
# convert string to symbol for hash key
|
56
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
-
|
58
|
-
if attributes.has_key?(:'sales_point_id')
|
59
|
-
self.sales_point_id = attributes[:'sales_point_id']
|
60
|
-
end
|
61
|
-
|
62
|
-
if attributes.has_key?(:'user_key')
|
63
|
-
self.user_key = attributes[:'user_key']
|
64
|
-
end
|
65
|
-
|
66
|
-
if attributes.has_key?(:'user_secret')
|
67
|
-
self.user_secret = attributes[:'user_secret']
|
68
|
-
end
|
69
|
-
|
70
|
-
if attributes.has_key?(:'webhook')
|
71
|
-
self.webhook = attributes[:'webhook']
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
76
|
-
# @return Array for valid properties with the reasons
|
77
|
-
def list_invalid_properties
|
78
|
-
invalid_properties = Array.new
|
79
|
-
invalid_properties
|
80
|
-
end
|
81
|
-
|
82
|
-
# Check to see if the all the properties in the model are valid
|
83
|
-
# @return true if the model is valid
|
84
|
-
def valid?
|
85
|
-
true
|
86
|
-
end
|
87
|
-
|
88
|
-
# Checks equality by comparing each attribute.
|
89
|
-
# @param [Object] Object to be compared
|
90
|
-
def ==(o)
|
91
|
-
return true if self.equal?(o)
|
92
|
-
self.class == o.class &&
|
93
|
-
sales_point_id == o.sales_point_id &&
|
94
|
-
user_key == o.user_key &&
|
95
|
-
user_secret == o.user_secret &&
|
96
|
-
webhook == o.webhook
|
97
|
-
end
|
98
|
-
|
99
|
-
# @see the `==` method
|
100
|
-
# @param [Object] Object to be compared
|
101
|
-
def eql?(o)
|
102
|
-
self == o
|
103
|
-
end
|
104
|
-
|
105
|
-
# Calculates hash code according to all attributes.
|
106
|
-
# @return [Fixnum] Hash code
|
107
|
-
def hash
|
108
|
-
[sales_point_id, user_key, user_secret, webhook].hash
|
109
|
-
end
|
110
|
-
|
111
|
-
# Builds the object from hash
|
112
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
113
|
-
# @return [Object] Returns the model itself
|
114
|
-
def build_from_hash(attributes)
|
115
|
-
return nil unless attributes.is_a?(Hash)
|
116
|
-
self.class.swagger_types.each_pair do |key, type|
|
117
|
-
if type =~ /\AArray<(.*)>/i
|
118
|
-
# check to ensure the input is an array given that the the attribute
|
119
|
-
# is documented as an array but the input is not
|
120
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
121
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
122
|
-
end
|
123
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
124
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
125
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
126
|
-
end
|
127
|
-
|
128
|
-
self
|
129
|
-
end
|
130
|
-
|
131
|
-
# Deserializes the data based on type
|
132
|
-
# @param string type Data type
|
133
|
-
# @param string value Value to be deserialized
|
134
|
-
# @return [Object] Deserialized data
|
135
|
-
def _deserialize(type, value)
|
136
|
-
case type.to_sym
|
137
|
-
when :DateTime
|
138
|
-
DateTime.parse(value)
|
139
|
-
when :Date
|
140
|
-
Date.parse(value)
|
141
|
-
when :String
|
142
|
-
value.to_s
|
143
|
-
when :Integer
|
144
|
-
value.to_i
|
145
|
-
when :Float
|
146
|
-
value.to_f
|
147
|
-
when :BOOLEAN
|
148
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
149
|
-
true
|
150
|
-
else
|
151
|
-
false
|
152
|
-
end
|
153
|
-
when :Object
|
154
|
-
# generic object (usually a Hash), return directly
|
155
|
-
value
|
156
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
157
|
-
inner_type = Regexp.last_match[:inner_type]
|
158
|
-
value.map { |v| _deserialize(inner_type, v) }
|
159
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
160
|
-
k_type = Regexp.last_match[:k_type]
|
161
|
-
v_type = Regexp.last_match[:v_type]
|
162
|
-
{}.tap do |hash|
|
163
|
-
value.each do |k, v|
|
164
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
165
|
-
end
|
166
|
-
end
|
167
|
-
else # model
|
168
|
-
temp_model = Wire4Client.const_get(type).new
|
169
|
-
temp_model.build_from_hash(value)
|
170
|
-
end
|
171
|
-
end
|
172
|
-
|
173
|
-
# Returns the string representation of the object
|
174
|
-
# @return [String] String presentation of the object
|
175
|
-
def to_s
|
176
|
-
to_hash.to_s
|
177
|
-
end
|
178
|
-
|
179
|
-
# to_body is an alias to to_hash (backward compatibility)
|
180
|
-
# @return [Hash] Returns the object in the form of hash
|
181
|
-
def to_body
|
182
|
-
to_hash
|
183
|
-
end
|
184
|
-
|
185
|
-
# Returns the object in the form of hash
|
186
|
-
# @return [Hash] Returns the object in the form of hash
|
187
|
-
def to_hash
|
188
|
-
hash = {}
|
189
|
-
self.class.attribute_map.each_pair do |attr, param|
|
190
|
-
value = self.send(attr)
|
191
|
-
next if value.nil?
|
192
|
-
hash[param] = _to_hash(value)
|
193
|
-
end
|
194
|
-
hash
|
195
|
-
end
|
196
|
-
|
197
|
-
# Outputs non-array value in the form of hash
|
198
|
-
# For object, use to_hash. Otherwise, just return the value
|
199
|
-
# @param [Object] value Any valid value
|
200
|
-
# @return [Hash] Returns the value in the form of hash
|
201
|
-
def _to_hash(value)
|
202
|
-
if value.is_a?(Array)
|
203
|
-
value.compact.map { |v| _to_hash(v) }
|
204
|
-
elsif value.is_a?(Hash)
|
205
|
-
{}.tap do |hash|
|
206
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
207
|
-
end
|
208
|
-
elsif value.respond_to? :to_hash
|
209
|
-
value.to_hash
|
210
|
-
else
|
211
|
-
value
|
212
|
-
end
|
213
|
-
end
|
214
|
-
end
|
215
|
-
end
|
@@ -1,201 +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
|
-
class TransactionErrorCode
|
17
|
-
attr_accessor :code
|
18
|
-
|
19
|
-
attr_accessor :error
|
20
|
-
|
21
|
-
attr_accessor :order_id
|
22
|
-
|
23
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
-
def self.attribute_map
|
25
|
-
{
|
26
|
-
:'code' => :'code',
|
27
|
-
:'error' => :'error',
|
28
|
-
:'order_id' => :'order_id'
|
29
|
-
}
|
30
|
-
end
|
31
|
-
|
32
|
-
# Attribute type mapping.
|
33
|
-
def self.swagger_types
|
34
|
-
{
|
35
|
-
:'code' => :'String',
|
36
|
-
:'error' => :'String',
|
37
|
-
:'order_id' => :'String'
|
38
|
-
}
|
39
|
-
end
|
40
|
-
|
41
|
-
# Initializes the object
|
42
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
-
def initialize(attributes = {})
|
44
|
-
return unless attributes.is_a?(Hash)
|
45
|
-
|
46
|
-
# convert string to symbol for hash key
|
47
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
|
-
|
49
|
-
if attributes.has_key?(:'code')
|
50
|
-
self.code = attributes[:'code']
|
51
|
-
end
|
52
|
-
|
53
|
-
if attributes.has_key?(:'error')
|
54
|
-
self.error = attributes[:'error']
|
55
|
-
end
|
56
|
-
|
57
|
-
if attributes.has_key?(:'order_id')
|
58
|
-
self.order_id = attributes[:'order_id']
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
63
|
-
# @return Array for valid properties with the reasons
|
64
|
-
def list_invalid_properties
|
65
|
-
invalid_properties = Array.new
|
66
|
-
invalid_properties
|
67
|
-
end
|
68
|
-
|
69
|
-
# Check to see if the all the properties in the model are valid
|
70
|
-
# @return true if the model is valid
|
71
|
-
def valid?
|
72
|
-
true
|
73
|
-
end
|
74
|
-
|
75
|
-
# Checks equality by comparing each attribute.
|
76
|
-
# @param [Object] Object to be compared
|
77
|
-
def ==(o)
|
78
|
-
return true if self.equal?(o)
|
79
|
-
self.class == o.class &&
|
80
|
-
code == o.code &&
|
81
|
-
error == o.error &&
|
82
|
-
order_id == o.order_id
|
83
|
-
end
|
84
|
-
|
85
|
-
# @see the `==` method
|
86
|
-
# @param [Object] Object to be compared
|
87
|
-
def eql?(o)
|
88
|
-
self == o
|
89
|
-
end
|
90
|
-
|
91
|
-
# Calculates hash code according to all attributes.
|
92
|
-
# @return [Fixnum] Hash code
|
93
|
-
def hash
|
94
|
-
[code, error, order_id].hash
|
95
|
-
end
|
96
|
-
|
97
|
-
# Builds the object from hash
|
98
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
-
# @return [Object] Returns the model itself
|
100
|
-
def build_from_hash(attributes)
|
101
|
-
return nil unless attributes.is_a?(Hash)
|
102
|
-
self.class.swagger_types.each_pair do |key, type|
|
103
|
-
if type =~ /\AArray<(.*)>/i
|
104
|
-
# check to ensure the input is an array given that the the attribute
|
105
|
-
# is documented as an array but the input is not
|
106
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
107
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
108
|
-
end
|
109
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
110
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
111
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
112
|
-
end
|
113
|
-
|
114
|
-
self
|
115
|
-
end
|
116
|
-
|
117
|
-
# Deserializes the data based on type
|
118
|
-
# @param string type Data type
|
119
|
-
# @param string value Value to be deserialized
|
120
|
-
# @return [Object] Deserialized data
|
121
|
-
def _deserialize(type, value)
|
122
|
-
case type.to_sym
|
123
|
-
when :DateTime
|
124
|
-
DateTime.parse(value)
|
125
|
-
when :Date
|
126
|
-
Date.parse(value)
|
127
|
-
when :String
|
128
|
-
value.to_s
|
129
|
-
when :Integer
|
130
|
-
value.to_i
|
131
|
-
when :Float
|
132
|
-
value.to_f
|
133
|
-
when :BOOLEAN
|
134
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
135
|
-
true
|
136
|
-
else
|
137
|
-
false
|
138
|
-
end
|
139
|
-
when :Object
|
140
|
-
# generic object (usually a Hash), return directly
|
141
|
-
value
|
142
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
143
|
-
inner_type = Regexp.last_match[:inner_type]
|
144
|
-
value.map { |v| _deserialize(inner_type, v) }
|
145
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
146
|
-
k_type = Regexp.last_match[:k_type]
|
147
|
-
v_type = Regexp.last_match[:v_type]
|
148
|
-
{}.tap do |hash|
|
149
|
-
value.each do |k, v|
|
150
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
151
|
-
end
|
152
|
-
end
|
153
|
-
else # model
|
154
|
-
temp_model = Wire4Client.const_get(type).new
|
155
|
-
temp_model.build_from_hash(value)
|
156
|
-
end
|
157
|
-
end
|
158
|
-
|
159
|
-
# Returns the string representation of the object
|
160
|
-
# @return [String] String presentation of the object
|
161
|
-
def to_s
|
162
|
-
to_hash.to_s
|
163
|
-
end
|
164
|
-
|
165
|
-
# to_body is an alias to to_hash (backward compatibility)
|
166
|
-
# @return [Hash] Returns the object in the form of hash
|
167
|
-
def to_body
|
168
|
-
to_hash
|
169
|
-
end
|
170
|
-
|
171
|
-
# Returns the object in the form of hash
|
172
|
-
# @return [Hash] Returns the object in the form of hash
|
173
|
-
def to_hash
|
174
|
-
hash = {}
|
175
|
-
self.class.attribute_map.each_pair do |attr, param|
|
176
|
-
value = self.send(attr)
|
177
|
-
next if value.nil?
|
178
|
-
hash[param] = _to_hash(value)
|
179
|
-
end
|
180
|
-
hash
|
181
|
-
end
|
182
|
-
|
183
|
-
# Outputs non-array value in the form of hash
|
184
|
-
# For object, use to_hash. Otherwise, just return the value
|
185
|
-
# @param [Object] value Any valid value
|
186
|
-
# @return [Hash] Returns the value in the form of hash
|
187
|
-
def _to_hash(value)
|
188
|
-
if value.is_a?(Array)
|
189
|
-
value.compact.map { |v| _to_hash(v) }
|
190
|
-
elsif value.is_a?(Hash)
|
191
|
-
{}.tap do |hash|
|
192
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
193
|
-
end
|
194
|
-
elsif value.respond_to? :to_hash
|
195
|
-
value.to_hash
|
196
|
-
else
|
197
|
-
value
|
198
|
-
end
|
199
|
-
end
|
200
|
-
end
|
201
|
-
end
|
@@ -1,192 +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
|
-
# Contiene el listado de grupo de configuraciones para actualizar
|
17
|
-
class UpdateConfigurationsRequestDTO
|
18
|
-
# Listado de configuraciones para actualizar
|
19
|
-
attr_accessor :configurations
|
20
|
-
|
21
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
-
def self.attribute_map
|
23
|
-
{
|
24
|
-
:'configurations' => :'configurations'
|
25
|
-
}
|
26
|
-
end
|
27
|
-
|
28
|
-
# Attribute type mapping.
|
29
|
-
def self.swagger_types
|
30
|
-
{
|
31
|
-
:'configurations' => :'Array<ConfigurationsLimits>'
|
32
|
-
}
|
33
|
-
end
|
34
|
-
|
35
|
-
# Initializes the object
|
36
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
37
|
-
def initialize(attributes = {})
|
38
|
-
return unless attributes.is_a?(Hash)
|
39
|
-
|
40
|
-
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
|
-
|
43
|
-
if attributes.has_key?(:'configurations')
|
44
|
-
if (value = attributes[:'configurations']).is_a?(Array)
|
45
|
-
self.configurations = value
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
51
|
-
# @return Array for valid properties with the reasons
|
52
|
-
def list_invalid_properties
|
53
|
-
invalid_properties = Array.new
|
54
|
-
if @configurations.nil?
|
55
|
-
invalid_properties.push('invalid value for "configurations", configurations cannot be nil.')
|
56
|
-
end
|
57
|
-
|
58
|
-
invalid_properties
|
59
|
-
end
|
60
|
-
|
61
|
-
# Check to see if the all the properties in the model are valid
|
62
|
-
# @return true if the model is valid
|
63
|
-
def valid?
|
64
|
-
return false if @configurations.nil?
|
65
|
-
true
|
66
|
-
end
|
67
|
-
|
68
|
-
# Checks equality by comparing each attribute.
|
69
|
-
# @param [Object] Object to be compared
|
70
|
-
def ==(o)
|
71
|
-
return true if self.equal?(o)
|
72
|
-
self.class == o.class &&
|
73
|
-
configurations == o.configurations
|
74
|
-
end
|
75
|
-
|
76
|
-
# @see the `==` method
|
77
|
-
# @param [Object] Object to be compared
|
78
|
-
def eql?(o)
|
79
|
-
self == o
|
80
|
-
end
|
81
|
-
|
82
|
-
# Calculates hash code according to all attributes.
|
83
|
-
# @return [Fixnum] Hash code
|
84
|
-
def hash
|
85
|
-
[configurations].hash
|
86
|
-
end
|
87
|
-
|
88
|
-
# Builds the object from hash
|
89
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
-
# @return [Object] Returns the model itself
|
91
|
-
def build_from_hash(attributes)
|
92
|
-
return nil unless attributes.is_a?(Hash)
|
93
|
-
self.class.swagger_types.each_pair do |key, type|
|
94
|
-
if type =~ /\AArray<(.*)>/i
|
95
|
-
# check to ensure the input is an array given that the the attribute
|
96
|
-
# is documented as an array but the input is not
|
97
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
99
|
-
end
|
100
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
102
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
103
|
-
end
|
104
|
-
|
105
|
-
self
|
106
|
-
end
|
107
|
-
|
108
|
-
# Deserializes the data based on type
|
109
|
-
# @param string type Data type
|
110
|
-
# @param string value Value to be deserialized
|
111
|
-
# @return [Object] Deserialized data
|
112
|
-
def _deserialize(type, value)
|
113
|
-
case type.to_sym
|
114
|
-
when :DateTime
|
115
|
-
DateTime.parse(value)
|
116
|
-
when :Date
|
117
|
-
Date.parse(value)
|
118
|
-
when :String
|
119
|
-
value.to_s
|
120
|
-
when :Integer
|
121
|
-
value.to_i
|
122
|
-
when :Float
|
123
|
-
value.to_f
|
124
|
-
when :BOOLEAN
|
125
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
126
|
-
true
|
127
|
-
else
|
128
|
-
false
|
129
|
-
end
|
130
|
-
when :Object
|
131
|
-
# generic object (usually a Hash), return directly
|
132
|
-
value
|
133
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
134
|
-
inner_type = Regexp.last_match[:inner_type]
|
135
|
-
value.map { |v| _deserialize(inner_type, v) }
|
136
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
137
|
-
k_type = Regexp.last_match[:k_type]
|
138
|
-
v_type = Regexp.last_match[:v_type]
|
139
|
-
{}.tap do |hash|
|
140
|
-
value.each do |k, v|
|
141
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
142
|
-
end
|
143
|
-
end
|
144
|
-
else # model
|
145
|
-
temp_model = Wire4Client.const_get(type).new
|
146
|
-
temp_model.build_from_hash(value)
|
147
|
-
end
|
148
|
-
end
|
149
|
-
|
150
|
-
# Returns the string representation of the object
|
151
|
-
# @return [String] String presentation of the object
|
152
|
-
def to_s
|
153
|
-
to_hash.to_s
|
154
|
-
end
|
155
|
-
|
156
|
-
# to_body is an alias to to_hash (backward compatibility)
|
157
|
-
# @return [Hash] Returns the object in the form of hash
|
158
|
-
def to_body
|
159
|
-
to_hash
|
160
|
-
end
|
161
|
-
|
162
|
-
# Returns the object in the form of hash
|
163
|
-
# @return [Hash] Returns the object in the form of hash
|
164
|
-
def to_hash
|
165
|
-
hash = {}
|
166
|
-
self.class.attribute_map.each_pair do |attr, param|
|
167
|
-
value = self.send(attr)
|
168
|
-
next if value.nil?
|
169
|
-
hash[param] = _to_hash(value)
|
170
|
-
end
|
171
|
-
hash
|
172
|
-
end
|
173
|
-
|
174
|
-
# Outputs non-array value in the form of hash
|
175
|
-
# For object, use to_hash. Otherwise, just return the value
|
176
|
-
# @param [Object] value Any valid value
|
177
|
-
# @return [Hash] Returns the value in the form of hash
|
178
|
-
def _to_hash(value)
|
179
|
-
if value.is_a?(Array)
|
180
|
-
value.compact.map { |v| _to_hash(v) }
|
181
|
-
elsif value.is_a?(Hash)
|
182
|
-
{}.tap do |hash|
|
183
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
184
|
-
end
|
185
|
-
elsif value.respond_to? :to_hash
|
186
|
-
value.to_hash
|
187
|
-
else
|
188
|
-
value
|
189
|
-
end
|
190
|
-
end
|
191
|
-
end
|
192
|
-
end
|