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,321 +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 de las operaciones
|
17
|
-
class Operations
|
18
|
-
# Monto de la petición
|
19
|
-
attr_accessor :amount
|
20
|
-
|
21
|
-
# Empresa CoDi
|
22
|
-
attr_accessor :company
|
23
|
-
|
24
|
-
# Descripción de la petición
|
25
|
-
attr_accessor :description
|
26
|
-
|
27
|
-
# Fecha de vencimiento de la petición
|
28
|
-
attr_accessor :due_date
|
29
|
-
|
30
|
-
# Order id de la petición
|
31
|
-
attr_accessor :order_id
|
32
|
-
|
33
|
-
# Pago
|
34
|
-
attr_accessor :payment
|
35
|
-
|
36
|
-
# Numero de telefono
|
37
|
-
attr_accessor :phone_number
|
38
|
-
|
39
|
-
# Punto de venta
|
40
|
-
attr_accessor :sales_point
|
41
|
-
|
42
|
-
# Estatus de la petición
|
43
|
-
attr_accessor :status
|
44
|
-
|
45
|
-
# Tipo de petición de cobro
|
46
|
-
attr_accessor :type
|
47
|
-
|
48
|
-
class EnumAttributeValidator
|
49
|
-
attr_reader :datatype
|
50
|
-
attr_reader :allowable_values
|
51
|
-
|
52
|
-
def initialize(datatype, allowable_values)
|
53
|
-
@allowable_values = allowable_values.map do |value|
|
54
|
-
case datatype.to_s
|
55
|
-
when /Integer/i
|
56
|
-
value.to_i
|
57
|
-
when /Float/i
|
58
|
-
value.to_f
|
59
|
-
else
|
60
|
-
value
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
def valid?(value)
|
66
|
-
!value || allowable_values.include?(value)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
71
|
-
def self.attribute_map
|
72
|
-
{
|
73
|
-
:'amount' => :'amount',
|
74
|
-
:'company' => :'company',
|
75
|
-
:'description' => :'description',
|
76
|
-
:'due_date' => :'due_date',
|
77
|
-
:'order_id' => :'order_id',
|
78
|
-
:'payment' => :'payment',
|
79
|
-
:'phone_number' => :'phone_number',
|
80
|
-
:'sales_point' => :'sales_point',
|
81
|
-
:'status' => :'status',
|
82
|
-
:'type' => :'type'
|
83
|
-
}
|
84
|
-
end
|
85
|
-
|
86
|
-
# Attribute type mapping.
|
87
|
-
def self.swagger_types
|
88
|
-
{
|
89
|
-
:'amount' => :'Float',
|
90
|
-
:'company' => :'Compay',
|
91
|
-
:'description' => :'String',
|
92
|
-
:'due_date' => :'DateTime',
|
93
|
-
:'order_id' => :'String',
|
94
|
-
:'payment' => :'PaymentCODI',
|
95
|
-
:'phone_number' => :'String',
|
96
|
-
:'sales_point' => :'SalesPoint',
|
97
|
-
:'status' => :'String',
|
98
|
-
:'type' => :'String'
|
99
|
-
}
|
100
|
-
end
|
101
|
-
|
102
|
-
# Initializes the object
|
103
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
-
def initialize(attributes = {})
|
105
|
-
return unless attributes.is_a?(Hash)
|
106
|
-
|
107
|
-
# convert string to symbol for hash key
|
108
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
109
|
-
|
110
|
-
if attributes.has_key?(:'amount')
|
111
|
-
self.amount = attributes[:'amount']
|
112
|
-
end
|
113
|
-
|
114
|
-
if attributes.has_key?(:'company')
|
115
|
-
self.company = attributes[:'company']
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes.has_key?(:'description')
|
119
|
-
self.description = attributes[:'description']
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.has_key?(:'due_date')
|
123
|
-
self.due_date = attributes[:'due_date']
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes.has_key?(:'order_id')
|
127
|
-
self.order_id = attributes[:'order_id']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.has_key?(:'payment')
|
131
|
-
self.payment = attributes[:'payment']
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.has_key?(:'phone_number')
|
135
|
-
self.phone_number = attributes[:'phone_number']
|
136
|
-
end
|
137
|
-
|
138
|
-
if attributes.has_key?(:'sales_point')
|
139
|
-
self.sales_point = attributes[:'sales_point']
|
140
|
-
end
|
141
|
-
|
142
|
-
if attributes.has_key?(:'status')
|
143
|
-
self.status = attributes[:'status']
|
144
|
-
end
|
145
|
-
|
146
|
-
if attributes.has_key?(:'type')
|
147
|
-
self.type = attributes[:'type']
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
152
|
-
# @return Array for valid properties with the reasons
|
153
|
-
def list_invalid_properties
|
154
|
-
invalid_properties = Array.new
|
155
|
-
invalid_properties
|
156
|
-
end
|
157
|
-
|
158
|
-
# Check to see if the all the properties in the model are valid
|
159
|
-
# @return true if the model is valid
|
160
|
-
def valid?
|
161
|
-
status_validator = EnumAttributeValidator.new('String', ['RECEIVED', 'COMPLETED', 'CANCELLED'])
|
162
|
-
return false unless status_validator.valid?(@status)
|
163
|
-
type_validator = EnumAttributeValidator.new('String', ['PUSH_NOTIFICATION', 'QR_CODE'])
|
164
|
-
return false unless type_validator.valid?(@type)
|
165
|
-
true
|
166
|
-
end
|
167
|
-
|
168
|
-
# Custom attribute writer method checking allowed values (enum).
|
169
|
-
# @param [Object] status Object to be assigned
|
170
|
-
def status=(status)
|
171
|
-
validator = EnumAttributeValidator.new('String', ['RECEIVED', 'COMPLETED', 'CANCELLED'])
|
172
|
-
unless validator.valid?(status)
|
173
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
174
|
-
end
|
175
|
-
@status = status
|
176
|
-
end
|
177
|
-
|
178
|
-
# Custom attribute writer method checking allowed values (enum).
|
179
|
-
# @param [Object] type Object to be assigned
|
180
|
-
def type=(type)
|
181
|
-
validator = EnumAttributeValidator.new('String', ['PUSH_NOTIFICATION', 'QR_CODE'])
|
182
|
-
unless validator.valid?(type)
|
183
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
184
|
-
end
|
185
|
-
@type = type
|
186
|
-
end
|
187
|
-
|
188
|
-
# Checks equality by comparing each attribute.
|
189
|
-
# @param [Object] Object to be compared
|
190
|
-
def ==(o)
|
191
|
-
return true if self.equal?(o)
|
192
|
-
self.class == o.class &&
|
193
|
-
amount == o.amount &&
|
194
|
-
company == o.company &&
|
195
|
-
description == o.description &&
|
196
|
-
due_date == o.due_date &&
|
197
|
-
order_id == o.order_id &&
|
198
|
-
payment == o.payment &&
|
199
|
-
phone_number == o.phone_number &&
|
200
|
-
sales_point == o.sales_point &&
|
201
|
-
status == o.status &&
|
202
|
-
type == o.type
|
203
|
-
end
|
204
|
-
|
205
|
-
# @see the `==` method
|
206
|
-
# @param [Object] Object to be compared
|
207
|
-
def eql?(o)
|
208
|
-
self == o
|
209
|
-
end
|
210
|
-
|
211
|
-
# Calculates hash code according to all attributes.
|
212
|
-
# @return [Fixnum] Hash code
|
213
|
-
def hash
|
214
|
-
[amount, company, description, due_date, order_id, payment, phone_number, sales_point, status, type].hash
|
215
|
-
end
|
216
|
-
|
217
|
-
# Builds the object from hash
|
218
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
219
|
-
# @return [Object] Returns the model itself
|
220
|
-
def build_from_hash(attributes)
|
221
|
-
return nil unless attributes.is_a?(Hash)
|
222
|
-
self.class.swagger_types.each_pair do |key, type|
|
223
|
-
if type =~ /\AArray<(.*)>/i
|
224
|
-
# check to ensure the input is an array given that the the attribute
|
225
|
-
# is documented as an array but the input is not
|
226
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
227
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
228
|
-
end
|
229
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
230
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
231
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
232
|
-
end
|
233
|
-
|
234
|
-
self
|
235
|
-
end
|
236
|
-
|
237
|
-
# Deserializes the data based on type
|
238
|
-
# @param string type Data type
|
239
|
-
# @param string value Value to be deserialized
|
240
|
-
# @return [Object] Deserialized data
|
241
|
-
def _deserialize(type, value)
|
242
|
-
case type.to_sym
|
243
|
-
when :DateTime
|
244
|
-
DateTime.parse(value)
|
245
|
-
when :Date
|
246
|
-
Date.parse(value)
|
247
|
-
when :String
|
248
|
-
value.to_s
|
249
|
-
when :Integer
|
250
|
-
value.to_i
|
251
|
-
when :Float
|
252
|
-
value.to_f
|
253
|
-
when :BOOLEAN
|
254
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
255
|
-
true
|
256
|
-
else
|
257
|
-
false
|
258
|
-
end
|
259
|
-
when :Object
|
260
|
-
# generic object (usually a Hash), return directly
|
261
|
-
value
|
262
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
263
|
-
inner_type = Regexp.last_match[:inner_type]
|
264
|
-
value.map { |v| _deserialize(inner_type, v) }
|
265
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
266
|
-
k_type = Regexp.last_match[:k_type]
|
267
|
-
v_type = Regexp.last_match[:v_type]
|
268
|
-
{}.tap do |hash|
|
269
|
-
value.each do |k, v|
|
270
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
271
|
-
end
|
272
|
-
end
|
273
|
-
else # model
|
274
|
-
temp_model = Wire4Client.const_get(type).new
|
275
|
-
temp_model.build_from_hash(value)
|
276
|
-
end
|
277
|
-
end
|
278
|
-
|
279
|
-
# Returns the string representation of the object
|
280
|
-
# @return [String] String presentation of the object
|
281
|
-
def to_s
|
282
|
-
to_hash.to_s
|
283
|
-
end
|
284
|
-
|
285
|
-
# to_body is an alias to to_hash (backward compatibility)
|
286
|
-
# @return [Hash] Returns the object in the form of hash
|
287
|
-
def to_body
|
288
|
-
to_hash
|
289
|
-
end
|
290
|
-
|
291
|
-
# Returns the object in the form of hash
|
292
|
-
# @return [Hash] Returns the object in the form of hash
|
293
|
-
def to_hash
|
294
|
-
hash = {}
|
295
|
-
self.class.attribute_map.each_pair do |attr, param|
|
296
|
-
value = self.send(attr)
|
297
|
-
next if value.nil?
|
298
|
-
hash[param] = _to_hash(value)
|
299
|
-
end
|
300
|
-
hash
|
301
|
-
end
|
302
|
-
|
303
|
-
# Outputs non-array value in the form of hash
|
304
|
-
# For object, use to_hash. Otherwise, just return the value
|
305
|
-
# @param [Object] value Any valid value
|
306
|
-
# @return [Hash] Returns the value in the form of hash
|
307
|
-
def _to_hash(value)
|
308
|
-
if value.is_a?(Array)
|
309
|
-
value.compact.map { |v| _to_hash(v) }
|
310
|
-
elsif value.is_a?(Hash)
|
311
|
-
{}.tap do |hash|
|
312
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
313
|
-
end
|
314
|
-
elsif value.respond_to? :to_hash
|
315
|
-
value.to_hash
|
316
|
-
else
|
317
|
-
value
|
318
|
-
end
|
319
|
-
end
|
320
|
-
end
|
321
|
-
end
|
@@ -1,236 +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 PagerResponseDto
|
17
|
-
# Contenido de la respuesta paginada
|
18
|
-
attr_accessor :content
|
19
|
-
|
20
|
-
# Numero de elementos en la pagina
|
21
|
-
attr_accessor :number_of_elements
|
22
|
-
|
23
|
-
# Número de pagina
|
24
|
-
attr_accessor :page
|
25
|
-
|
26
|
-
# Tamaño de la pagina
|
27
|
-
attr_accessor :size
|
28
|
-
|
29
|
-
# Numero total de elementos de la consulta
|
30
|
-
attr_accessor :total_items
|
31
|
-
|
32
|
-
# Numero total de paginas
|
33
|
-
attr_accessor :total_pages
|
34
|
-
|
35
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
-
def self.attribute_map
|
37
|
-
{
|
38
|
-
:'content' => :'content',
|
39
|
-
:'number_of_elements' => :'number_of_elements',
|
40
|
-
:'page' => :'page',
|
41
|
-
:'size' => :'size',
|
42
|
-
:'total_items' => :'total_items',
|
43
|
-
:'total_pages' => :'total_pages'
|
44
|
-
}
|
45
|
-
end
|
46
|
-
|
47
|
-
# Attribute type mapping.
|
48
|
-
def self.swagger_types
|
49
|
-
{
|
50
|
-
:'content' => :'Array<Operations>',
|
51
|
-
:'number_of_elements' => :'Integer',
|
52
|
-
:'page' => :'Integer',
|
53
|
-
:'size' => :'Integer',
|
54
|
-
:'total_items' => :'Integer',
|
55
|
-
:'total_pages' => :'Integer'
|
56
|
-
}
|
57
|
-
end
|
58
|
-
|
59
|
-
# Initializes the object
|
60
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
-
def initialize(attributes = {})
|
62
|
-
return unless attributes.is_a?(Hash)
|
63
|
-
|
64
|
-
# convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
|
-
|
67
|
-
if attributes.has_key?(:'content')
|
68
|
-
if (value = attributes[:'content']).is_a?(Array)
|
69
|
-
self.content = value
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
if attributes.has_key?(:'number_of_elements')
|
74
|
-
self.number_of_elements = attributes[:'number_of_elements']
|
75
|
-
end
|
76
|
-
|
77
|
-
if attributes.has_key?(:'page')
|
78
|
-
self.page = attributes[:'page']
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes.has_key?(:'size')
|
82
|
-
self.size = attributes[:'size']
|
83
|
-
end
|
84
|
-
|
85
|
-
if attributes.has_key?(:'total_items')
|
86
|
-
self.total_items = attributes[:'total_items']
|
87
|
-
end
|
88
|
-
|
89
|
-
if attributes.has_key?(:'total_pages')
|
90
|
-
self.total_pages = attributes[:'total_pages']
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
95
|
-
# @return Array for valid properties with the reasons
|
96
|
-
def list_invalid_properties
|
97
|
-
invalid_properties = Array.new
|
98
|
-
invalid_properties
|
99
|
-
end
|
100
|
-
|
101
|
-
# Check to see if the all the properties in the model are valid
|
102
|
-
# @return true if the model is valid
|
103
|
-
def valid?
|
104
|
-
true
|
105
|
-
end
|
106
|
-
|
107
|
-
# Checks equality by comparing each attribute.
|
108
|
-
# @param [Object] Object to be compared
|
109
|
-
def ==(o)
|
110
|
-
return true if self.equal?(o)
|
111
|
-
self.class == o.class &&
|
112
|
-
content == o.content &&
|
113
|
-
number_of_elements == o.number_of_elements &&
|
114
|
-
page == o.page &&
|
115
|
-
size == o.size &&
|
116
|
-
total_items == o.total_items &&
|
117
|
-
total_pages == o.total_pages
|
118
|
-
end
|
119
|
-
|
120
|
-
# @see the `==` method
|
121
|
-
# @param [Object] Object to be compared
|
122
|
-
def eql?(o)
|
123
|
-
self == o
|
124
|
-
end
|
125
|
-
|
126
|
-
# Calculates hash code according to all attributes.
|
127
|
-
# @return [Fixnum] Hash code
|
128
|
-
def hash
|
129
|
-
[content, number_of_elements, page, size, total_items, total_pages].hash
|
130
|
-
end
|
131
|
-
|
132
|
-
# Builds the object from hash
|
133
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
-
# @return [Object] Returns the model itself
|
135
|
-
def build_from_hash(attributes)
|
136
|
-
return nil unless attributes.is_a?(Hash)
|
137
|
-
self.class.swagger_types.each_pair do |key, type|
|
138
|
-
if type =~ /\AArray<(.*)>/i
|
139
|
-
# check to ensure the input is an array given that the the attribute
|
140
|
-
# is documented as an array but the input is not
|
141
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
142
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
143
|
-
end
|
144
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
145
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
146
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
147
|
-
end
|
148
|
-
|
149
|
-
self
|
150
|
-
end
|
151
|
-
|
152
|
-
# Deserializes the data based on type
|
153
|
-
# @param string type Data type
|
154
|
-
# @param string value Value to be deserialized
|
155
|
-
# @return [Object] Deserialized data
|
156
|
-
def _deserialize(type, value)
|
157
|
-
case type.to_sym
|
158
|
-
when :DateTime
|
159
|
-
DateTime.parse(value)
|
160
|
-
when :Date
|
161
|
-
Date.parse(value)
|
162
|
-
when :String
|
163
|
-
value.to_s
|
164
|
-
when :Integer
|
165
|
-
value.to_i
|
166
|
-
when :Float
|
167
|
-
value.to_f
|
168
|
-
when :BOOLEAN
|
169
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
170
|
-
true
|
171
|
-
else
|
172
|
-
false
|
173
|
-
end
|
174
|
-
when :Object
|
175
|
-
# generic object (usually a Hash), return directly
|
176
|
-
value
|
177
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
178
|
-
inner_type = Regexp.last_match[:inner_type]
|
179
|
-
value.map { |v| _deserialize(inner_type, v) }
|
180
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
181
|
-
k_type = Regexp.last_match[:k_type]
|
182
|
-
v_type = Regexp.last_match[:v_type]
|
183
|
-
{}.tap do |hash|
|
184
|
-
value.each do |k, v|
|
185
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
186
|
-
end
|
187
|
-
end
|
188
|
-
else # model
|
189
|
-
temp_model = Wire4Client.const_get(type).new
|
190
|
-
temp_model.build_from_hash(value)
|
191
|
-
end
|
192
|
-
end
|
193
|
-
|
194
|
-
# Returns the string representation of the object
|
195
|
-
# @return [String] String presentation of the object
|
196
|
-
def to_s
|
197
|
-
to_hash.to_s
|
198
|
-
end
|
199
|
-
|
200
|
-
# to_body is an alias to to_hash (backward compatibility)
|
201
|
-
# @return [Hash] Returns the object in the form of hash
|
202
|
-
def to_body
|
203
|
-
to_hash
|
204
|
-
end
|
205
|
-
|
206
|
-
# Returns the object in the form of hash
|
207
|
-
# @return [Hash] Returns the object in the form of hash
|
208
|
-
def to_hash
|
209
|
-
hash = {}
|
210
|
-
self.class.attribute_map.each_pair do |attr, param|
|
211
|
-
value = self.send(attr)
|
212
|
-
next if value.nil?
|
213
|
-
hash[param] = _to_hash(value)
|
214
|
-
end
|
215
|
-
hash
|
216
|
-
end
|
217
|
-
|
218
|
-
# Outputs non-array value in the form of hash
|
219
|
-
# For object, use to_hash. Otherwise, just return the value
|
220
|
-
# @param [Object] value Any valid value
|
221
|
-
# @return [Hash] Returns the value in the form of hash
|
222
|
-
def _to_hash(value)
|
223
|
-
if value.is_a?(Array)
|
224
|
-
value.compact.map { |v| _to_hash(v) }
|
225
|
-
elsif value.is_a?(Hash)
|
226
|
-
{}.tap do |hash|
|
227
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
228
|
-
end
|
229
|
-
elsif value.respond_to? :to_hash
|
230
|
-
value.to_hash
|
231
|
-
else
|
232
|
-
value
|
233
|
-
end
|
234
|
-
end
|
235
|
-
end
|
236
|
-
end
|