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.
- 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,10 +0,0 @@
|
|
1
|
-
# Wire4Client::TransactionErrorCode
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**code** | **String** | | [optional]
|
7
|
-
**error** | **String** | | [optional]
|
8
|
-
**order_id** | **String** | | [optional]
|
9
|
-
|
10
|
-
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Wire4Client::UpdateConfigurationsRequestDTO
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**configurations** | [**Array<ConfigurationsLimits>**](ConfigurationsLimits.md) | Listado de configuraciones para actualizar |
|
7
|
-
|
8
|
-
|
data/docs/UrlsRedirect.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
# Wire4Client::UrlsRedirect
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**cancel_return_url** | **String** | Url a la que se redirigira en caso de que el cliente cancele el registro |
|
7
|
-
**return_url** | **String** | Url a la que se redireccionara en caso exitoso |
|
8
|
-
|
9
|
-
|
data/docs/UserCompany.md
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# Wire4Client::UserCompany
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**emails** | **Array<String>** | Una lista de los correos del usuario | [optional]
|
7
|
-
**legal_representative** | **BOOLEAN** | Indica sí es representate legal | [optional]
|
8
|
-
**masked_name** | **String** | El nombre del usuario enmascarado | [optional]
|
9
|
-
**masked_user_name** | **String** | El nombre del usuario de acceso enmascarado | [optional]
|
10
|
-
**name** | **String** | El nombre del usuario | [optional]
|
11
|
-
**phone_numbers** | **Array<String>** | Una lista de los teléfonos del usuario | [optional]
|
12
|
-
**surname_father** | **String** | El apellido paterno del usuario | [optional]
|
13
|
-
**surname_mother** | **String** | El apellido materno del usuario | [optional]
|
14
|
-
**user_name** | **String** | El nombre del usuario de acceso | [optional]
|
15
|
-
|
16
|
-
|
@@ -1,9 +0,0 @@
|
|
1
|
-
# Wire4Client::WebHookDepositAuthorizationRequest
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**name** | **String** | Nombre del webhook. | [optional]
|
7
|
-
**url** | **String** | URL a la cual Wire4 enviará las notificaciones cuando un evento ocurra. | [optional]
|
8
|
-
|
9
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# Wire4Client::WebHookDepositAuthorizationResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**events** | **Array<String>** | Tipo de evento manejado por el webhook, para mas referencia sobre los tipos de eventos soportados, revise la siguiente liga: https://developers.wire4.mx/#section/Eventos. | [optional]
|
7
|
-
**name** | **String** | Nombre del webhook. | [optional]
|
8
|
-
**secret** | **String** | Llave con la cual se debe de identificar que el webhook fue enviado por Wire4, para mayor información revisar la guía de notificaciones (https://wire4.mx/#/guides/notificaciones), en la sección de \"Comprobación de firmas de Webhook\". | [optional]
|
9
|
-
**status** | **String** | Estatus en el que se encuentra el webhook. | [optional]
|
10
|
-
**url** | **String** | URL a la cual Wire4 enviará las notificaciones cuando un evento ocurra. | [optional]
|
11
|
-
**wh_uuid** | **String** | Identificador del webhook. | [optional]
|
12
|
-
|
13
|
-
|
data/docs/Webhook.md
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# Wire4Client::Webhook
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**events** | **Array<String>** | Tipo de evento manejado por el webhook, para mas referencia sobre los tipos de eventos soportados, revise la siguiente liga: https://developers.wire4.mx/#section/Eventos. | [optional]
|
7
|
-
**name** | **String** | Nombre del webhook. | [optional]
|
8
|
-
**secret** | **String** | Llave con la cual se debe de identificar que el webhook fue enviado por Wire4, para mayor información revisar la guía de notificaciones (https://wire4.mx/#/guides/notificaciones), en la sección de \"Comprobación de firmas de Webhook\". | [optional]
|
9
|
-
**status** | **String** | Estatus en el que se encuentra el webhook. | [optional]
|
10
|
-
**url** | **String** | URL a la cual Wire4 enviará las notificaciones cuando un evento ocurra. | [optional]
|
11
|
-
**wh_id** | **String** | Identificador del webhook. | [optional]
|
12
|
-
|
13
|
-
|
@@ -1,173 +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 'uri'
|
14
|
-
|
15
|
-
module Wire4Client
|
16
|
-
class AutorizacinDeDepsitosApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Consulta autorización de depósitos
|
23
|
-
# Obtiene la información de la autorización de depósitos del contrato relacionado a la subscripción.
|
24
|
-
# @param authorization Header para token
|
25
|
-
# @param subscription El identificador de la suscripción a esta API
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [DepositsAuthorizationResponse]
|
28
|
-
def get_deposit_auth_configurations(authorization, subscription, opts = {})
|
29
|
-
data, _status_code, _headers = get_deposit_auth_configurations_with_http_info(authorization, subscription, opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Consulta autorización de depósitos
|
34
|
-
# Obtiene la información de la autorización de depósitos del contrato relacionado a la subscripción.
|
35
|
-
# @param authorization Header para token
|
36
|
-
# @param subscription El identificador de la suscripción a esta API
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [Array<(DepositsAuthorizationResponse, Fixnum, Hash)>] DepositsAuthorizationResponse data, response status code and response headers
|
39
|
-
def get_deposit_auth_configurations_with_http_info(authorization, subscription, opts = {})
|
40
|
-
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: AutorizacinDeDepsitosApi.get_deposit_auth_configurations ...'
|
42
|
-
end
|
43
|
-
# verify the required parameter 'authorization' is set
|
44
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling AutorizacinDeDepsitosApi.get_deposit_auth_configurations"
|
46
|
-
end
|
47
|
-
# verify the required parameter 'subscription' is set
|
48
|
-
if @api_client.config.client_side_validation && subscription.nil?
|
49
|
-
fail ArgumentError, "Missing the required parameter 'subscription' when calling AutorizacinDeDepsitosApi.get_deposit_auth_configurations"
|
50
|
-
end
|
51
|
-
if @api_client.config.client_side_validation && subscription.to_s.length > 36
|
52
|
-
fail ArgumentError, 'invalid value for "subscription" when calling AutorizacinDeDepsitosApi.get_deposit_auth_configurations, the character length must be smaller than or equal to 36.'
|
53
|
-
end
|
54
|
-
|
55
|
-
if @api_client.config.client_side_validation && subscription.to_s.length < 36
|
56
|
-
fail ArgumentError, 'invalid value for "subscription" when calling AutorizacinDeDepsitosApi.get_deposit_auth_configurations, the character length must be great than or equal to 36.'
|
57
|
-
end
|
58
|
-
|
59
|
-
if @api_client.config.client_side_validation && subscription !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
|
60
|
-
fail ArgumentError, "invalid value for 'subscription' when calling AutorizacinDeDepsitosApi.get_deposit_auth_configurations, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
|
61
|
-
end
|
62
|
-
|
63
|
-
# resource path
|
64
|
-
local_var_path = '/subscriptions/{subscription}/configurations/deposit-authorization'.sub('{' + 'subscription' + '}', subscription.to_s)
|
65
|
-
|
66
|
-
# query parameters
|
67
|
-
query_params = {}
|
68
|
-
|
69
|
-
# header parameters
|
70
|
-
header_params = {}
|
71
|
-
# HTTP header 'Accept' (if needed)
|
72
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
73
|
-
header_params[:'Authorization'] = authorization
|
74
|
-
|
75
|
-
# form parameters
|
76
|
-
form_params = {}
|
77
|
-
|
78
|
-
# http body (model)
|
79
|
-
post_body = nil
|
80
|
-
auth_names = []
|
81
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
82
|
-
:header_params => header_params,
|
83
|
-
:query_params => query_params,
|
84
|
-
:form_params => form_params,
|
85
|
-
:body => post_body,
|
86
|
-
:auth_names => auth_names,
|
87
|
-
:return_type => 'DepositsAuthorizationResponse')
|
88
|
-
if @api_client.config.debugging
|
89
|
-
@api_client.config.logger.debug "API called: AutorizacinDeDepsitosApi#get_deposit_auth_configurations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
-
end
|
91
|
-
return data, status_code, headers
|
92
|
-
end
|
93
|
-
# Des/Habilitar autorización de depósitos
|
94
|
-
# Des/Habilitar autorización de depósitos, devuelve la información final de la autorización de depósitos del contrato relacionado a la subscripción al terminar.
|
95
|
-
# @param authorization Header para token
|
96
|
-
# @param register Deposit Authorization info
|
97
|
-
# @param subscription El identificador de la suscripción a esta API
|
98
|
-
# @param [Hash] opts the optional parameters
|
99
|
-
# @return [DepositsAuthorizationResponse]
|
100
|
-
def put_deposit_auth_configurations(authorization, register, subscription, opts = {})
|
101
|
-
data, _status_code, _headers = put_deposit_auth_configurations_with_http_info(authorization, register, subscription, opts)
|
102
|
-
data
|
103
|
-
end
|
104
|
-
|
105
|
-
# Des/Habilitar autorización de depósitos
|
106
|
-
# Des/Habilitar autorización de depósitos, devuelve la información final de la autorización de depósitos del contrato relacionado a la subscripción al terminar.
|
107
|
-
# @param authorization Header para token
|
108
|
-
# @param register Deposit Authorization info
|
109
|
-
# @param subscription El identificador de la suscripción a esta API
|
110
|
-
# @param [Hash] opts the optional parameters
|
111
|
-
# @return [Array<(DepositsAuthorizationResponse, Fixnum, Hash)>] DepositsAuthorizationResponse data, response status code and response headers
|
112
|
-
def put_deposit_auth_configurations_with_http_info(authorization, register, subscription, opts = {})
|
113
|
-
if @api_client.config.debugging
|
114
|
-
@api_client.config.logger.debug 'Calling API: AutorizacinDeDepsitosApi.put_deposit_auth_configurations ...'
|
115
|
-
end
|
116
|
-
# verify the required parameter 'authorization' is set
|
117
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
118
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling AutorizacinDeDepsitosApi.put_deposit_auth_configurations"
|
119
|
-
end
|
120
|
-
# verify the required parameter 'register' is set
|
121
|
-
if @api_client.config.client_side_validation && register.nil?
|
122
|
-
fail ArgumentError, "Missing the required parameter 'register' when calling AutorizacinDeDepsitosApi.put_deposit_auth_configurations"
|
123
|
-
end
|
124
|
-
# verify the required parameter 'subscription' is set
|
125
|
-
if @api_client.config.client_side_validation && subscription.nil?
|
126
|
-
fail ArgumentError, "Missing the required parameter 'subscription' when calling AutorizacinDeDepsitosApi.put_deposit_auth_configurations"
|
127
|
-
end
|
128
|
-
if @api_client.config.client_side_validation && subscription.to_s.length > 36
|
129
|
-
fail ArgumentError, 'invalid value for "subscription" when calling AutorizacinDeDepsitosApi.put_deposit_auth_configurations, the character length must be smaller than or equal to 36.'
|
130
|
-
end
|
131
|
-
|
132
|
-
if @api_client.config.client_side_validation && subscription.to_s.length < 36
|
133
|
-
fail ArgumentError, 'invalid value for "subscription" when calling AutorizacinDeDepsitosApi.put_deposit_auth_configurations, the character length must be great than or equal to 36.'
|
134
|
-
end
|
135
|
-
|
136
|
-
if @api_client.config.client_side_validation && subscription !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
|
137
|
-
fail ArgumentError, "invalid value for 'subscription' when calling AutorizacinDeDepsitosApi.put_deposit_auth_configurations, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
|
138
|
-
end
|
139
|
-
|
140
|
-
# resource path
|
141
|
-
local_var_path = '/subscriptions/{subscription}/configurations/deposit-authorization'.sub('{' + 'subscription' + '}', subscription.to_s)
|
142
|
-
|
143
|
-
# query parameters
|
144
|
-
query_params = {}
|
145
|
-
|
146
|
-
# header parameters
|
147
|
-
header_params = {}
|
148
|
-
# HTTP header 'Accept' (if needed)
|
149
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
150
|
-
# HTTP header 'Content-Type'
|
151
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
152
|
-
header_params[:'Authorization'] = authorization
|
153
|
-
|
154
|
-
# form parameters
|
155
|
-
form_params = {}
|
156
|
-
|
157
|
-
# http body (model)
|
158
|
-
post_body = @api_client.object_to_http_body(register)
|
159
|
-
auth_names = []
|
160
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
161
|
-
:header_params => header_params,
|
162
|
-
:query_params => query_params,
|
163
|
-
:form_params => form_params,
|
164
|
-
:body => post_body,
|
165
|
-
:auth_names => auth_names,
|
166
|
-
:return_type => 'DepositsAuthorizationResponse')
|
167
|
-
if @api_client.config.debugging
|
168
|
-
@api_client.config.logger.debug "API called: AutorizacinDeDepsitosApi#put_deposit_auth_configurations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
169
|
-
end
|
170
|
-
return data, status_code, headers
|
171
|
-
end
|
172
|
-
end
|
173
|
-
end
|
@@ -1,301 +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 'uri'
|
14
|
-
|
15
|
-
module Wire4Client
|
16
|
-
class ContractsDetailsApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Devuelve la URL para autorización del usuario Monex
|
23
|
-
# Se obtiene la URL para la autorización del usuario Monex.
|
24
|
-
# @param authorization Header para token
|
25
|
-
# @param pre_monex_authorization Información para la autorización
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [TokenRequiredResponse]
|
28
|
-
def create_authorization(authorization, pre_monex_authorization, opts = {})
|
29
|
-
data, _status_code, _headers = create_authorization_with_http_info(authorization, pre_monex_authorization, opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Devuelve la URL para autorización del usuario Monex
|
34
|
-
# Se obtiene la URL para la autorización del usuario Monex.
|
35
|
-
# @param authorization Header para token
|
36
|
-
# @param pre_monex_authorization Información para la autorización
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
|
39
|
-
def create_authorization_with_http_info(authorization, pre_monex_authorization, opts = {})
|
40
|
-
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: ContractsDetailsApi.create_authorization ...'
|
42
|
-
end
|
43
|
-
# verify the required parameter 'authorization' is set
|
44
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ContractsDetailsApi.create_authorization"
|
46
|
-
end
|
47
|
-
# verify the required parameter 'pre_monex_authorization' is set
|
48
|
-
if @api_client.config.client_side_validation && pre_monex_authorization.nil?
|
49
|
-
fail ArgumentError, "Missing the required parameter 'pre_monex_authorization' when calling ContractsDetailsApi.create_authorization"
|
50
|
-
end
|
51
|
-
# resource path
|
52
|
-
local_var_path = '/onboarding/accounts/authorize'
|
53
|
-
|
54
|
-
# query parameters
|
55
|
-
query_params = {}
|
56
|
-
|
57
|
-
# header parameters
|
58
|
-
header_params = {}
|
59
|
-
# HTTP header 'Accept' (if needed)
|
60
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
-
# HTTP header 'Content-Type'
|
62
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
63
|
-
header_params[:'Authorization'] = authorization
|
64
|
-
|
65
|
-
# form parameters
|
66
|
-
form_params = {}
|
67
|
-
|
68
|
-
# http body (model)
|
69
|
-
post_body = @api_client.object_to_http_body(pre_monex_authorization)
|
70
|
-
auth_names = []
|
71
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
72
|
-
:header_params => header_params,
|
73
|
-
:query_params => query_params,
|
74
|
-
:form_params => form_params,
|
75
|
-
:body => post_body,
|
76
|
-
:auth_names => auth_names,
|
77
|
-
:return_type => 'TokenRequiredResponse')
|
78
|
-
if @api_client.config.debugging
|
79
|
-
@api_client.config.logger.debug "API called: ContractsDetailsApi#create_authorization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
-
end
|
81
|
-
return data, status_code, headers
|
82
|
-
end
|
83
|
-
# Obtiene los usuarios autorizados
|
84
|
-
# Obtienen los detalles de los usuarios autorizados de Monex.
|
85
|
-
# @param authorization Header para token
|
86
|
-
# @param x_access_key La llave de acceso de la aplicación
|
87
|
-
# @param request_id El identificador de la petición a esta API
|
88
|
-
# @param [Hash] opts the optional parameters
|
89
|
-
# @return [Array<AuthorizedUsers>]
|
90
|
-
def obtain_authorized_users(authorization, x_access_key, request_id, opts = {})
|
91
|
-
data, _status_code, _headers = obtain_authorized_users_with_http_info(authorization, x_access_key, request_id, opts)
|
92
|
-
data
|
93
|
-
end
|
94
|
-
|
95
|
-
# Obtiene los usuarios autorizados
|
96
|
-
# Obtienen los detalles de los usuarios autorizados de Monex.
|
97
|
-
# @param authorization Header para token
|
98
|
-
# @param x_access_key La llave de acceso de la aplicación
|
99
|
-
# @param request_id El identificador de la petición a esta API
|
100
|
-
# @param [Hash] opts the optional parameters
|
101
|
-
# @return [Array<(Array<AuthorizedUsers>, Fixnum, Hash)>] Array<AuthorizedUsers> data, response status code and response headers
|
102
|
-
def obtain_authorized_users_with_http_info(authorization, x_access_key, request_id, opts = {})
|
103
|
-
if @api_client.config.debugging
|
104
|
-
@api_client.config.logger.debug 'Calling API: ContractsDetailsApi.obtain_authorized_users ...'
|
105
|
-
end
|
106
|
-
# verify the required parameter 'authorization' is set
|
107
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
108
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ContractsDetailsApi.obtain_authorized_users"
|
109
|
-
end
|
110
|
-
# verify the required parameter 'x_access_key' is set
|
111
|
-
if @api_client.config.client_side_validation && x_access_key.nil?
|
112
|
-
fail ArgumentError, "Missing the required parameter 'x_access_key' when calling ContractsDetailsApi.obtain_authorized_users"
|
113
|
-
end
|
114
|
-
# verify the required parameter 'request_id' is set
|
115
|
-
if @api_client.config.client_side_validation && request_id.nil?
|
116
|
-
fail ArgumentError, "Missing the required parameter 'request_id' when calling ContractsDetailsApi.obtain_authorized_users"
|
117
|
-
end
|
118
|
-
if @api_client.config.client_side_validation && request_id.to_s.length > 36
|
119
|
-
fail ArgumentError, 'invalid value for "request_id" when calling ContractsDetailsApi.obtain_authorized_users, the character length must be smaller than or equal to 36.'
|
120
|
-
end
|
121
|
-
|
122
|
-
if @api_client.config.client_side_validation && request_id.to_s.length < 36
|
123
|
-
fail ArgumentError, 'invalid value for "request_id" when calling ContractsDetailsApi.obtain_authorized_users, the character length must be great than or equal to 36.'
|
124
|
-
end
|
125
|
-
|
126
|
-
if @api_client.config.client_side_validation && request_id !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
|
127
|
-
fail ArgumentError, "invalid value for 'request_id' when calling ContractsDetailsApi.obtain_authorized_users, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
|
128
|
-
end
|
129
|
-
|
130
|
-
# resource path
|
131
|
-
local_var_path = '/onboarding/accounts/{requestId}/authorized-users'.sub('{' + 'requestId' + '}', request_id.to_s)
|
132
|
-
|
133
|
-
# query parameters
|
134
|
-
query_params = {}
|
135
|
-
|
136
|
-
# header parameters
|
137
|
-
header_params = {}
|
138
|
-
# HTTP header 'Accept' (if needed)
|
139
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
140
|
-
header_params[:'Authorization'] = authorization
|
141
|
-
header_params[:'X-ACCESS-KEY'] = x_access_key
|
142
|
-
|
143
|
-
# form parameters
|
144
|
-
form_params = {}
|
145
|
-
|
146
|
-
# http body (model)
|
147
|
-
post_body = nil
|
148
|
-
auth_names = []
|
149
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
150
|
-
:header_params => header_params,
|
151
|
-
:query_params => query_params,
|
152
|
-
:form_params => form_params,
|
153
|
-
:body => post_body,
|
154
|
-
:auth_names => auth_names,
|
155
|
-
:return_type => 'Array<AuthorizedUsers>')
|
156
|
-
if @api_client.config.debugging
|
157
|
-
@api_client.config.logger.debug "API called: ContractsDetailsApi#obtain_authorized_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
158
|
-
end
|
159
|
-
return data, status_code, headers
|
160
|
-
end
|
161
|
-
# Obtiene los usuarios autorizados por contrato
|
162
|
-
# Obtienen los detalles de los usuarios autorizados por contrato Monex.
|
163
|
-
# @param authorization Header para token
|
164
|
-
# @param x_access_key La llave de acceso de la aplicación
|
165
|
-
# @param [Hash] opts the optional parameters
|
166
|
-
# @option opts [String] :contract El contrato Monex
|
167
|
-
# @return [Array<AuthorizedUsers>]
|
168
|
-
def obtain_authorized_users_by_contract(authorization, x_access_key, opts = {})
|
169
|
-
data, _status_code, _headers = obtain_authorized_users_by_contract_with_http_info(authorization, x_access_key, opts)
|
170
|
-
data
|
171
|
-
end
|
172
|
-
|
173
|
-
# Obtiene los usuarios autorizados por contrato
|
174
|
-
# Obtienen los detalles de los usuarios autorizados por contrato Monex.
|
175
|
-
# @param authorization Header para token
|
176
|
-
# @param x_access_key La llave de acceso de la aplicación
|
177
|
-
# @param [Hash] opts the optional parameters
|
178
|
-
# @option opts [String] :contract El contrato Monex
|
179
|
-
# @return [Array<(Array<AuthorizedUsers>, Fixnum, Hash)>] Array<AuthorizedUsers> data, response status code and response headers
|
180
|
-
def obtain_authorized_users_by_contract_with_http_info(authorization, x_access_key, opts = {})
|
181
|
-
if @api_client.config.debugging
|
182
|
-
@api_client.config.logger.debug 'Calling API: ContractsDetailsApi.obtain_authorized_users_by_contract ...'
|
183
|
-
end
|
184
|
-
# verify the required parameter 'authorization' is set
|
185
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
186
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ContractsDetailsApi.obtain_authorized_users_by_contract"
|
187
|
-
end
|
188
|
-
# verify the required parameter 'x_access_key' is set
|
189
|
-
if @api_client.config.client_side_validation && x_access_key.nil?
|
190
|
-
fail ArgumentError, "Missing the required parameter 'x_access_key' when calling ContractsDetailsApi.obtain_authorized_users_by_contract"
|
191
|
-
end
|
192
|
-
if @api_client.config.client_side_validation && !opts[:'contract'].nil? && opts[:'contract'].to_s.length > 11
|
193
|
-
fail ArgumentError, 'invalid value for "opts[:"contract"]" when calling ContractsDetailsApi.obtain_authorized_users_by_contract, the character length must be smaller than or equal to 11.'
|
194
|
-
end
|
195
|
-
|
196
|
-
if @api_client.config.client_side_validation && !opts[:'contract'].nil? && opts[:'contract'].to_s.length < 1
|
197
|
-
fail ArgumentError, 'invalid value for "opts[:"contract"]" when calling ContractsDetailsApi.obtain_authorized_users_by_contract, the character length must be great than or equal to 1.'
|
198
|
-
end
|
199
|
-
|
200
|
-
# resource path
|
201
|
-
local_var_path = '/onboarding/accounts/authorized-users'
|
202
|
-
|
203
|
-
# query parameters
|
204
|
-
query_params = {}
|
205
|
-
query_params[:'contract'] = opts[:'contract'] if !opts[:'contract'].nil?
|
206
|
-
|
207
|
-
# header parameters
|
208
|
-
header_params = {}
|
209
|
-
# HTTP header 'Accept' (if needed)
|
210
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
211
|
-
header_params[:'Authorization'] = authorization
|
212
|
-
header_params[:'X-ACCESS-KEY'] = x_access_key
|
213
|
-
|
214
|
-
# form parameters
|
215
|
-
form_params = {}
|
216
|
-
|
217
|
-
# http body (model)
|
218
|
-
post_body = nil
|
219
|
-
auth_names = []
|
220
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
221
|
-
:header_params => header_params,
|
222
|
-
:query_params => query_params,
|
223
|
-
:form_params => form_params,
|
224
|
-
:body => post_body,
|
225
|
-
:auth_names => auth_names,
|
226
|
-
:return_type => 'Array<AuthorizedUsers>')
|
227
|
-
if @api_client.config.debugging
|
228
|
-
@api_client.config.logger.debug "API called: ContractsDetailsApi#obtain_authorized_users_by_contract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
229
|
-
end
|
230
|
-
return data, status_code, headers
|
231
|
-
end
|
232
|
-
# Obtiene los detalles de la empresa del contrato
|
233
|
-
# Detalles de la compañía relacionada con el contrato de Monex.
|
234
|
-
# @param authorization Header para token
|
235
|
-
# @param x_access_key La llave de acceso de la aplicación
|
236
|
-
# @param contract_detail_request Información para obtener los detalles de la companía
|
237
|
-
# @param [Hash] opts the optional parameters
|
238
|
-
# @return [ContractDetailResponse]
|
239
|
-
def obtain_contract_details(authorization, x_access_key, contract_detail_request, opts = {})
|
240
|
-
data, _status_code, _headers = obtain_contract_details_with_http_info(authorization, x_access_key, contract_detail_request, opts)
|
241
|
-
data
|
242
|
-
end
|
243
|
-
|
244
|
-
# Obtiene los detalles de la empresa del contrato
|
245
|
-
# Detalles de la compañía relacionada con el contrato de Monex.
|
246
|
-
# @param authorization Header para token
|
247
|
-
# @param x_access_key La llave de acceso de la aplicación
|
248
|
-
# @param contract_detail_request Información para obtener los detalles de la companía
|
249
|
-
# @param [Hash] opts the optional parameters
|
250
|
-
# @return [Array<(ContractDetailResponse, Fixnum, Hash)>] ContractDetailResponse data, response status code and response headers
|
251
|
-
def obtain_contract_details_with_http_info(authorization, x_access_key, contract_detail_request, opts = {})
|
252
|
-
if @api_client.config.debugging
|
253
|
-
@api_client.config.logger.debug 'Calling API: ContractsDetailsApi.obtain_contract_details ...'
|
254
|
-
end
|
255
|
-
# verify the required parameter 'authorization' is set
|
256
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
257
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ContractsDetailsApi.obtain_contract_details"
|
258
|
-
end
|
259
|
-
# verify the required parameter 'x_access_key' is set
|
260
|
-
if @api_client.config.client_side_validation && x_access_key.nil?
|
261
|
-
fail ArgumentError, "Missing the required parameter 'x_access_key' when calling ContractsDetailsApi.obtain_contract_details"
|
262
|
-
end
|
263
|
-
# verify the required parameter 'contract_detail_request' is set
|
264
|
-
if @api_client.config.client_side_validation && contract_detail_request.nil?
|
265
|
-
fail ArgumentError, "Missing the required parameter 'contract_detail_request' when calling ContractsDetailsApi.obtain_contract_details"
|
266
|
-
end
|
267
|
-
# resource path
|
268
|
-
local_var_path = '/onboarding/accounts/details'
|
269
|
-
|
270
|
-
# query parameters
|
271
|
-
query_params = {}
|
272
|
-
|
273
|
-
# header parameters
|
274
|
-
header_params = {}
|
275
|
-
# HTTP header 'Accept' (if needed)
|
276
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
277
|
-
# HTTP header 'Content-Type'
|
278
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
279
|
-
header_params[:'Authorization'] = authorization
|
280
|
-
header_params[:'X-ACCESS-KEY'] = x_access_key
|
281
|
-
|
282
|
-
# form parameters
|
283
|
-
form_params = {}
|
284
|
-
|
285
|
-
# http body (model)
|
286
|
-
post_body = @api_client.object_to_http_body(contract_detail_request)
|
287
|
-
auth_names = []
|
288
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
289
|
-
:header_params => header_params,
|
290
|
-
:query_params => query_params,
|
291
|
-
:form_params => form_params,
|
292
|
-
:body => post_body,
|
293
|
-
:auth_names => auth_names,
|
294
|
-
:return_type => 'ContractDetailResponse')
|
295
|
-
if @api_client.config.debugging
|
296
|
-
@api_client.config.logger.debug "API called: ContractsDetailsApi#obtain_contract_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
297
|
-
end
|
298
|
-
return data, status_code, headers
|
299
|
-
end
|
300
|
-
end
|
301
|
-
end
|