yapstone-so 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 +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/README.md +260 -0
- data/Rakefile +10 -0
- data/docs/AbstractEntity.md +17 -0
- data/docs/ActionResource.md +25 -0
- data/docs/ActionStatusResource.md +21 -0
- data/docs/AddressResource.md +31 -0
- data/docs/ApplicantConsentRequest.md +25 -0
- data/docs/ApplicantConsentResource.md +27 -0
- data/docs/ApplicantConsentType.md +16 -0
- data/docs/ApplicantResource.md +39 -0
- data/docs/AssetRequest.md +25 -0
- data/docs/AssetRequestAllOf.md +17 -0
- data/docs/AssetRequestCommon.md +23 -0
- data/docs/AssetResource.md +29 -0
- data/docs/AssetResourceAllOf.md +19 -0
- data/docs/AssetUpdateRequest.md +27 -0
- data/docs/AssetUpdateRequestAllOf.md +19 -0
- data/docs/AssetsApi.md +276 -0
- data/docs/AssetsResource.md +19 -0
- data/docs/AssetsResourceAllOf.md +17 -0
- data/docs/AuthenticationApi.md +58 -0
- data/docs/BankAccountDataResource.md +23 -0
- data/docs/BankAccountResource.md +25 -0
- data/docs/BeneficialOwnerRequest.md +27 -0
- data/docs/BeneficialOwnerResource.md +31 -0
- data/docs/BeneficialOwnersPatch.md +21 -0
- data/docs/BusinessApplicantAdminFieldsResource.md +17 -0
- data/docs/BusinessApplicantAdminResource.md +49 -0
- data/docs/BusinessApplicantRequest.md +39 -0
- data/docs/BusinessApplicantResource.md +23 -0
- data/docs/BusinessApplicantResourceAllOf.md +23 -0
- data/docs/BusinessApplicantUpdateRequest.md +41 -0
- data/docs/BusinessApplicantsApi.md +276 -0
- data/docs/BusinessApplicantsResource.md +19 -0
- data/docs/BusinessApplicantsResourceAllOf.md +17 -0
- data/docs/BusinessIdType.md +16 -0
- data/docs/BusinessIdentificationResource.md +25 -0
- data/docs/BusinessOwnerResource.md +17 -0
- data/docs/BusinessProfileResource.md +33 -0
- data/docs/BusinessUpdateIdentificationResource.md +25 -0
- data/docs/CapabilityResource.md +19 -0
- data/docs/CardDataResource.md +35 -0
- data/docs/Consent.md +25 -0
- data/docs/ConsentRequest.md +25 -0
- data/docs/ConsentResource.md +27 -0
- data/docs/ConsentType.md +16 -0
- data/docs/ContractCreateRequest.md +21 -0
- data/docs/ContractResource.md +23 -0
- data/docs/ContractResourceDTO.md +17 -0
- data/docs/ContractResourceDTOAllOf.md +17 -0
- data/docs/ContractUpdateRequest.md +19 -0
- data/docs/ContractsApi.md +227 -0
- data/docs/CustomerHistoryResource.md +19 -0
- data/docs/DeactivateRequest.md +19 -0
- data/docs/DeactivateResponse.md +21 -0
- data/docs/DirectDebitConsentResource.md +19 -0
- data/docs/DirectDebitFrequencyType.md +16 -0
- data/docs/DirectDebitSchemeType.md +16 -0
- data/docs/DirectDebtCapabilityResource.md +23 -0
- data/docs/EntitiesResource.md +17 -0
- data/docs/EntityHistoryResource.md +17 -0
- data/docs/EntityProductStatusResource.md +19 -0
- data/docs/EntityUpdateEvent.md +23 -0
- data/docs/EntityUpdatedAttribute.md +21 -0
- data/docs/Errors.md +19 -0
- data/docs/ExpirationDateResource.md +19 -0
- data/docs/Gender.md +16 -0
- data/docs/GovIdentificationResource.md +29 -0
- data/docs/GovIdentificationUpdateResource.md +29 -0
- data/docs/GovernmentIdType.md +16 -0
- data/docs/IndividualApplicantAdminFieldsResource.md +17 -0
- data/docs/IndividualApplicantAdminResource.md +43 -0
- data/docs/IndividualApplicantRequest.md +33 -0
- data/docs/IndividualApplicantResource.md +17 -0
- data/docs/IndividualApplicantUpdateRequest.md +35 -0
- data/docs/IndividualApplicantsApi.md +276 -0
- data/docs/IndividualApplicantsResource.md +19 -0
- data/docs/IndividualApplicantsResourceAllOf.md +17 -0
- data/docs/IndividualOwnerResource.md +19 -0
- data/docs/InlineResponse200.md +25 -0
- data/docs/InstrumentsApi.md +274 -0
- data/docs/IssuerScope.md +16 -0
- data/docs/MarketPlaceApplicantResource.md +17 -0
- data/docs/MarketPlacePropertyResource.md +27 -0
- data/docs/MarketplaceProductAdd.md +27 -0
- data/docs/MarketplaceProductBasic.md +23 -0
- data/docs/MarketplaceProductExtra.md +33 -0
- data/docs/MarketplaceProductExtraAllOf.md +25 -0
- data/docs/MarketplaceProductPayoutInstrumentResource.md +19 -0
- data/docs/MarketplaceProductPayoutInstrumentUpdate.md +21 -0
- data/docs/MarketplaceProductResource.md +39 -0
- data/docs/MarketplaceProductSubResource.md +37 -0
- data/docs/MarketplaceProductUpdate.md +37 -0
- data/docs/MarketplaceProductsApi.md +116 -0
- data/docs/MarketplacesApi.md +227 -0
- data/docs/Meta.md +21 -0
- data/docs/MoneyResource.md +19 -0
- data/docs/NameResource.md +27 -0
- data/docs/OwnerRequest.md +21 -0
- data/docs/OwnerResource.md +23 -0
- data/docs/Pagination.md +21 -0
- data/docs/PatchOperation.md +16 -0
- data/docs/PayoutInstrumentRequest.md +29 -0
- data/docs/PayoutInstrumentResource.md +35 -0
- data/docs/PayoutInstrumentResourceCommonEntities.md +23 -0
- data/docs/PayoutInstrumentUpdateRequest.md +31 -0
- data/docs/PayoutInstrumentsApi.md +274 -0
- data/docs/PayoutInstrumentsResource.md +19 -0
- data/docs/PayoutInstrumentsResourceAllOf.md +17 -0
- data/docs/PayoutProductAdd.md +19 -0
- data/docs/PayoutProductResource.md +27 -0
- data/docs/PayoutProductSubResource.md +25 -0
- data/docs/PayoutProductSubResourceAllOf.md +23 -0
- data/docs/PayoutProductsApi.md +61 -0
- data/docs/PayoutsApi.md +227 -0
- data/docs/PhoneResource.md +19 -0
- data/docs/PriceSettingResource.md +29 -0
- data/docs/PrimaryContactResource.md +35 -0
- data/docs/Product.md +16 -0
- data/docs/ProductRead.md +17 -0
- data/docs/ProductWrite.md +17 -0
- data/docs/ProfileResource.md +35 -0
- data/docs/PropertyHistoryResource.md +27 -0
- data/docs/PropertyInfoResource.md +23 -0
- data/docs/PropertyOwnerResource.md +31 -0
- data/docs/PropertyResource.md +27 -0
- data/docs/PropertyTrackerResource.md +23 -0
- data/docs/RegistrationResource.md +21 -0
- data/docs/ReservationSettingResource.md +19 -0
- data/docs/Resource.md +17 -0
- data/docs/SocialNetworkResource.md +19 -0
- data/docs/StatusReasonResource.md +23 -0
- data/docs/StatusRequest.md +17 -0
- data/docs/StatusResource.md +21 -0
- data/docs/StaySettingResource.md +19 -0
- data/docs/SuspensionReasonResource.md +17 -0
- data/docs/TravelerResource.md +23 -0
- data/git_push.sh +55 -0
- data/lib/yapstone-so/api/assets_api.rb +335 -0
- data/lib/yapstone-so/api/authentication_api.rb +92 -0
- data/lib/yapstone-so/api/business_applicants_api.rb +339 -0
- data/lib/yapstone-so/api/contracts_api.rb +284 -0
- data/lib/yapstone-so/api/individual_applicants_api.rb +339 -0
- data/lib/yapstone-so/api/instruments_api.rb +332 -0
- data/lib/yapstone-so/api/marketplace_products_api.rb +154 -0
- data/lib/yapstone-so/api/marketplaces_api.rb +304 -0
- data/lib/yapstone-so/api/payout_instruments_api.rb +332 -0
- data/lib/yapstone-so/api/payout_products_api.rb +84 -0
- data/lib/yapstone-so/api/payouts_api.rb +304 -0
- data/lib/yapstone-so/api_client.rb +386 -0
- data/lib/yapstone-so/api_error.rb +57 -0
- data/lib/yapstone-so/configuration.rb +249 -0
- data/lib/yapstone-so/models/abstract_entity.rb +232 -0
- data/lib/yapstone-so/models/action_resource.rb +238 -0
- data/lib/yapstone-so/models/action_status_resource.rb +260 -0
- data/lib/yapstone-so/models/address_resource.rb +444 -0
- data/lib/yapstone-so/models/applicant_consent_request.rb +317 -0
- data/lib/yapstone-so/models/applicant_consent_resource.rb +271 -0
- data/lib/yapstone-so/models/applicant_consent_type.rb +39 -0
- data/lib/yapstone-so/models/applicant_resource.rb +391 -0
- data/lib/yapstone-so/models/asset_request.rb +325 -0
- data/lib/yapstone-so/models/asset_request_all_of.rb +199 -0
- data/lib/yapstone-so/models/asset_request_common.rb +305 -0
- data/lib/yapstone-so/models/asset_resource.rb +344 -0
- data/lib/yapstone-so/models/asset_resource_all_of.rb +206 -0
- data/lib/yapstone-so/models/asset_update_request.rb +334 -0
- data/lib/yapstone-so/models/asset_update_request_all_of.rb +208 -0
- data/lib/yapstone-so/models/assets_resource.rb +225 -0
- data/lib/yapstone-so/models/assets_resource_all_of.rb +204 -0
- data/lib/yapstone-so/models/bank_account_data_resource.rb +228 -0
- data/lib/yapstone-so/models/bank_account_resource.rb +334 -0
- data/lib/yapstone-so/models/beneficial_owner_request.rb +293 -0
- data/lib/yapstone-so/models/beneficial_owner_resource.rb +312 -0
- data/lib/yapstone-so/models/beneficial_owners_patch.rb +221 -0
- data/lib/yapstone-so/models/business_applicant_admin_fields_resource.rb +198 -0
- data/lib/yapstone-so/models/business_applicant_admin_resource.rb +442 -0
- data/lib/yapstone-so/models/business_applicant_request.rb +375 -0
- data/lib/yapstone-so/models/business_applicant_resource.rb +239 -0
- data/lib/yapstone-so/models/business_applicant_resource_all_of.rb +226 -0
- data/lib/yapstone-so/models/business_applicant_update_request.rb +360 -0
- data/lib/yapstone-so/models/business_applicants_resource.rb +225 -0
- data/lib/yapstone-so/models/business_applicants_resource_all_of.rb +204 -0
- data/lib/yapstone-so/models/business_id_type.rb +37 -0
- data/lib/yapstone-so/models/business_identification_resource.rb +267 -0
- data/lib/yapstone-so/models/business_owner_resource.rb +231 -0
- data/lib/yapstone-so/models/business_profile_resource.rb +416 -0
- data/lib/yapstone-so/models/business_update_identification_resource.rb +253 -0
- data/lib/yapstone-so/models/capability_resource.rb +249 -0
- data/lib/yapstone-so/models/card_data_resource.rb +382 -0
- data/lib/yapstone-so/models/consent.rb +329 -0
- data/lib/yapstone-so/models/consent_request.rb +318 -0
- data/lib/yapstone-so/models/consent_resource.rb +272 -0
- data/lib/yapstone-so/models/consent_type.rb +36 -0
- data/lib/yapstone-so/models/contract_create_request.rb +260 -0
- data/lib/yapstone-so/models/contract_resource.rb +270 -0
- data/lib/yapstone-so/models/contract_resource_dto.rb +205 -0
- data/lib/yapstone-so/models/contract_resource_dto_all_of.rb +198 -0
- data/lib/yapstone-so/models/contract_update_request.rb +250 -0
- data/lib/yapstone-so/models/customer_history_resource.rb +206 -0
- data/lib/yapstone-so/models/deactivate_request.rb +228 -0
- data/lib/yapstone-so/models/deactivate_response.rb +221 -0
- data/lib/yapstone-so/models/direct_debit_consent_resource.rb +252 -0
- data/lib/yapstone-so/models/direct_debit_frequency_type.rb +36 -0
- data/lib/yapstone-so/models/direct_debit_scheme_type.rb +37 -0
- data/lib/yapstone-so/models/direct_debt_capability_resource.rb +283 -0
- data/lib/yapstone-so/models/entities_resource.rb +202 -0
- data/lib/yapstone-so/models/entity_history_resource.rb +200 -0
- data/lib/yapstone-so/models/entity_product_status_resource.rb +206 -0
- data/lib/yapstone-so/models/entity_update_event.rb +230 -0
- data/lib/yapstone-so/models/entity_updated_attribute.rb +218 -0
- data/lib/yapstone-so/models/errors.rb +205 -0
- data/lib/yapstone-so/models/expiration_date_resource.rb +238 -0
- data/lib/yapstone-so/models/gender.rb +37 -0
- data/lib/yapstone-so/models/gov_identification_resource.rb +336 -0
- data/lib/yapstone-so/models/gov_identification_update_resource.rb +322 -0
- data/lib/yapstone-so/models/government_id_type.rb +43 -0
- data/lib/yapstone-so/models/individual_applicant_admin_fields_resource.rb +198 -0
- data/lib/yapstone-so/models/individual_applicant_admin_resource.rb +411 -0
- data/lib/yapstone-so/models/individual_applicant_request.rb +345 -0
- data/lib/yapstone-so/models/individual_applicant_resource.rb +207 -0
- data/lib/yapstone-so/models/individual_applicant_update_request.rb +330 -0
- data/lib/yapstone-so/models/individual_applicants_resource.rb +225 -0
- data/lib/yapstone-so/models/individual_applicants_resource_all_of.rb +204 -0
- data/lib/yapstone-so/models/individual_owner_resource.rb +296 -0
- data/lib/yapstone-so/models/inline_response200.rb +232 -0
- data/lib/yapstone-so/models/issuer_scope.rb +39 -0
- data/lib/yapstone-so/models/market_place_applicant_resource.rb +197 -0
- data/lib/yapstone-so/models/market_place_property_resource.rb +261 -0
- data/lib/yapstone-so/models/marketplace_product_add.rb +293 -0
- data/lib/yapstone-so/models/marketplace_product_basic.rb +261 -0
- data/lib/yapstone-so/models/marketplace_product_extra.rb +328 -0
- data/lib/yapstone-so/models/marketplace_product_extra_all_of.rb +268 -0
- data/lib/yapstone-so/models/marketplace_product_payout_instrument_resource.rb +217 -0
- data/lib/yapstone-so/models/marketplace_product_payout_instrument_update.rb +233 -0
- data/lib/yapstone-so/models/marketplace_product_resource.rb +363 -0
- data/lib/yapstone-so/models/marketplace_product_sub_resource.rb +353 -0
- data/lib/yapstone-so/models/marketplace_product_update.rb +352 -0
- data/lib/yapstone-so/models/meta.rb +231 -0
- data/lib/yapstone-so/models/money_resource.rb +218 -0
- data/lib/yapstone-so/models/name_resource.rb +444 -0
- data/lib/yapstone-so/models/owner_request.rb +305 -0
- data/lib/yapstone-so/models/owner_resource.rb +315 -0
- data/lib/yapstone-so/models/pagination.rb +224 -0
- data/lib/yapstone-so/models/patch_operation.rb +37 -0
- data/lib/yapstone-so/models/payout_instrument_request.rb +340 -0
- data/lib/yapstone-so/models/payout_instrument_resource.rb +371 -0
- data/lib/yapstone-so/models/payout_instrument_resource_common_entities.rb +300 -0
- data/lib/yapstone-so/models/payout_instrument_update_request.rb +349 -0
- data/lib/yapstone-so/models/payout_instruments_resource.rb +225 -0
- data/lib/yapstone-so/models/payout_instruments_resource_all_of.rb +204 -0
- data/lib/yapstone-so/models/payout_product_add.rb +217 -0
- data/lib/yapstone-so/models/payout_product_resource.rb +255 -0
- data/lib/yapstone-so/models/payout_product_sub_resource.rb +245 -0
- data/lib/yapstone-so/models/payout_product_sub_resource_all_of.rb +224 -0
- data/lib/yapstone-so/models/phone_resource.rb +228 -0
- data/lib/yapstone-so/models/price_setting_resource.rb +301 -0
- data/lib/yapstone-so/models/primary_contact_resource.rb +417 -0
- data/lib/yapstone-so/models/product.rb +36 -0
- data/lib/yapstone-so/models/product_read.rb +199 -0
- data/lib/yapstone-so/models/product_write.rb +199 -0
- data/lib/yapstone-so/models/profile_resource.rb +422 -0
- data/lib/yapstone-so/models/property_history_resource.rb +245 -0
- data/lib/yapstone-so/models/property_info_resource.rb +229 -0
- data/lib/yapstone-so/models/property_owner_resource.rb +341 -0
- data/lib/yapstone-so/models/property_resource.rb +315 -0
- data/lib/yapstone-so/models/property_tracker_resource.rb +228 -0
- data/lib/yapstone-so/models/registration_resource.rb +253 -0
- data/lib/yapstone-so/models/reservation_setting_resource.rb +206 -0
- data/lib/yapstone-so/models/resource.rb +198 -0
- data/lib/yapstone-so/models/social_network_resource.rb +291 -0
- data/lib/yapstone-so/models/status_reason_resource.rb +267 -0
- data/lib/yapstone-so/models/status_request.rb +232 -0
- data/lib/yapstone-so/models/status_resource.rb +259 -0
- data/lib/yapstone-so/models/stay_setting_resource.rb +208 -0
- data/lib/yapstone-so/models/suspension_reason_resource.rb +198 -0
- data/lib/yapstone-so/models/traveler_resource.rb +278 -0
- data/lib/yapstone-so/version.rb +15 -0
- data/lib/yapstone-so.rb +174 -0
- data/spec/api/assets_api_spec.rb +93 -0
- data/spec/api/authentication_api_spec.rb +48 -0
- data/spec/api/business_applicants_api_spec.rb +93 -0
- data/spec/api/contracts_api_spec.rb +84 -0
- data/spec/api/individual_applicants_api_spec.rb +93 -0
- data/spec/api/instruments_api_spec.rb +92 -0
- data/spec/api/marketplace_products_api_spec.rb +60 -0
- data/spec/api/marketplaces_api_spec.rb +85 -0
- data/spec/api/payout_instruments_api_spec.rb +92 -0
- data/spec/api/payout_products_api_spec.rb +47 -0
- data/spec/api/payouts_api_spec.rb +85 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/abstract_entity_spec.rb +41 -0
- data/spec/models/action_resource_spec.rb +65 -0
- data/spec/models/action_status_resource_spec.rb +57 -0
- data/spec/models/address_resource_spec.rb +83 -0
- data/spec/models/applicant_consent_request_spec.rb +65 -0
- data/spec/models/applicant_consent_resource_spec.rb +71 -0
- data/spec/models/applicant_consent_type_spec.rb +35 -0
- data/spec/models/applicant_resource_spec.rb +107 -0
- data/spec/models/asset_request_all_of_spec.rb +41 -0
- data/spec/models/asset_request_common_spec.rb +63 -0
- data/spec/models/asset_request_spec.rb +69 -0
- data/spec/models/asset_resource_all_of_spec.rb +47 -0
- data/spec/models/asset_resource_spec.rb +81 -0
- data/spec/models/asset_update_request_all_of_spec.rb +47 -0
- data/spec/models/asset_update_request_spec.rb +75 -0
- data/spec/models/assets_resource_all_of_spec.rb +41 -0
- data/spec/models/assets_resource_spec.rb +47 -0
- data/spec/models/bank_account_data_resource_spec.rb +59 -0
- data/spec/models/bank_account_resource_spec.rb +69 -0
- data/spec/models/beneficial_owner_request_spec.rb +71 -0
- data/spec/models/beneficial_owner_resource_spec.rb +83 -0
- data/spec/models/beneficial_owners_patch_spec.rb +53 -0
- data/spec/models/business_applicant_admin_fields_resource_spec.rb +41 -0
- data/spec/models/business_applicant_admin_resource_spec.rb +137 -0
- data/spec/models/business_applicant_request_spec.rb +107 -0
- data/spec/models/business_applicant_resource_all_of_spec.rb +59 -0
- data/spec/models/business_applicant_resource_spec.rb +59 -0
- data/spec/models/business_applicant_update_request_spec.rb +113 -0
- data/spec/models/business_applicants_resource_all_of_spec.rb +41 -0
- data/spec/models/business_applicants_resource_spec.rb +47 -0
- data/spec/models/business_id_type_spec.rb +35 -0
- data/spec/models/business_identification_resource_spec.rb +65 -0
- data/spec/models/business_owner_resource_spec.rb +41 -0
- data/spec/models/business_profile_resource_spec.rb +93 -0
- data/spec/models/business_update_identification_resource_spec.rb +65 -0
- data/spec/models/capability_resource_spec.rb +51 -0
- data/spec/models/card_data_resource_spec.rb +107 -0
- data/spec/models/consent_request_spec.rb +65 -0
- data/spec/models/consent_resource_spec.rb +71 -0
- data/spec/models/consent_spec.rb +69 -0
- data/spec/models/consent_type_spec.rb +35 -0
- data/spec/models/contract_create_request_spec.rb +53 -0
- data/spec/models/contract_resource_dto_all_of_spec.rb +41 -0
- data/spec/models/contract_resource_dto_spec.rb +41 -0
- data/spec/models/contract_resource_spec.rb +59 -0
- data/spec/models/contract_update_request_spec.rb +47 -0
- data/spec/models/customer_history_resource_spec.rb +47 -0
- data/spec/models/deactivate_request_spec.rb +47 -0
- data/spec/models/deactivate_response_spec.rb +53 -0
- data/spec/models/direct_debit_consent_resource_spec.rb +51 -0
- data/spec/models/direct_debit_frequency_type_spec.rb +35 -0
- data/spec/models/direct_debit_scheme_type_spec.rb +35 -0
- data/spec/models/direct_debt_capability_resource_spec.rb +67 -0
- data/spec/models/entities_resource_spec.rb +41 -0
- data/spec/models/entity_history_resource_spec.rb +41 -0
- data/spec/models/entity_product_status_resource_spec.rb +47 -0
- data/spec/models/entity_update_event_spec.rb +59 -0
- data/spec/models/entity_updated_attribute_spec.rb +53 -0
- data/spec/models/errors_spec.rb +47 -0
- data/spec/models/expiration_date_resource_spec.rb +47 -0
- data/spec/models/gender_spec.rb +35 -0
- data/spec/models/gov_identification_resource_spec.rb +77 -0
- data/spec/models/gov_identification_update_resource_spec.rb +77 -0
- data/spec/models/government_id_type_spec.rb +35 -0
- data/spec/models/individual_applicant_admin_fields_resource_spec.rb +41 -0
- data/spec/models/individual_applicant_admin_resource_spec.rb +119 -0
- data/spec/models/individual_applicant_request_spec.rb +89 -0
- data/spec/models/individual_applicant_resource_spec.rb +41 -0
- data/spec/models/individual_applicant_update_request_spec.rb +95 -0
- data/spec/models/individual_applicants_resource_all_of_spec.rb +41 -0
- data/spec/models/individual_applicants_resource_spec.rb +47 -0
- data/spec/models/individual_owner_resource_spec.rb +47 -0
- data/spec/models/inline_response200_spec.rb +65 -0
- data/spec/models/issuer_scope_spec.rb +35 -0
- data/spec/models/market_place_applicant_resource_spec.rb +41 -0
- data/spec/models/market_place_property_resource_spec.rb +71 -0
- data/spec/models/marketplace_product_add_spec.rb +75 -0
- data/spec/models/marketplace_product_basic_spec.rb +63 -0
- data/spec/models/marketplace_product_extra_all_of_spec.rb +69 -0
- data/spec/models/marketplace_product_extra_spec.rb +97 -0
- data/spec/models/marketplace_product_payout_instrument_resource_spec.rb +47 -0
- data/spec/models/marketplace_product_payout_instrument_update_spec.rb +53 -0
- data/spec/models/marketplace_product_resource_spec.rb +115 -0
- data/spec/models/marketplace_product_sub_resource_spec.rb +109 -0
- data/spec/models/marketplace_product_update_spec.rb +109 -0
- data/spec/models/meta_spec.rb +53 -0
- data/spec/models/money_resource_spec.rb +47 -0
- data/spec/models/name_resource_spec.rb +75 -0
- data/spec/models/owner_request_spec.rb +53 -0
- data/spec/models/owner_resource_spec.rb +59 -0
- data/spec/models/pagination_spec.rb +53 -0
- data/spec/models/patch_operation_spec.rb +35 -0
- data/spec/models/payout_instrument_request_spec.rb +81 -0
- data/spec/models/payout_instrument_resource_common_entities_spec.rb +63 -0
- data/spec/models/payout_instrument_resource_spec.rb +99 -0
- data/spec/models/payout_instrument_update_request_spec.rb +87 -0
- data/spec/models/payout_instruments_resource_all_of_spec.rb +41 -0
- data/spec/models/payout_instruments_resource_spec.rb +47 -0
- data/spec/models/payout_product_add_spec.rb +47 -0
- data/spec/models/payout_product_resource_spec.rb +71 -0
- data/spec/models/payout_product_sub_resource_all_of_spec.rb +59 -0
- data/spec/models/payout_product_sub_resource_spec.rb +65 -0
- data/spec/models/phone_resource_spec.rb +47 -0
- data/spec/models/price_setting_resource_spec.rb +85 -0
- data/spec/models/primary_contact_resource_spec.rb +95 -0
- data/spec/models/product_read_spec.rb +41 -0
- data/spec/models/product_spec.rb +35 -0
- data/spec/models/product_write_spec.rb +41 -0
- data/spec/models/profile_resource_spec.rb +95 -0
- data/spec/models/property_history_resource_spec.rb +71 -0
- data/spec/models/property_info_resource_spec.rb +59 -0
- data/spec/models/property_owner_resource_spec.rb +83 -0
- data/spec/models/property_resource_spec.rb +71 -0
- data/spec/models/property_tracker_resource_spec.rb +59 -0
- data/spec/models/registration_resource_spec.rb +53 -0
- data/spec/models/reservation_setting_resource_spec.rb +47 -0
- data/spec/models/resource_spec.rb +41 -0
- data/spec/models/social_network_resource_spec.rb +51 -0
- data/spec/models/status_reason_resource_spec.rb +63 -0
- data/spec/models/status_request_spec.rb +45 -0
- data/spec/models/status_resource_spec.rb +57 -0
- data/spec/models/stay_setting_resource_spec.rb +47 -0
- data/spec/models/suspension_reason_resource_spec.rb +41 -0
- data/spec/models/traveler_resource_spec.rb +59 -0
- data/spec/spec_helper.rb +111 -0
- data/yapstone-so.gemspec +45 -0
- metadata +781 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Yapstone Staged On-Boarding Services
|
|
3
|
+
|
|
4
|
+
#Set of API's that allow clients to onboard with Yapstone.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.1.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Yapstone
|
|
16
|
+
class IndividualApplicantsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Creates an Applicant Resource in the system.
|
|
23
|
+
# @param individual_applicant_request [IndividualApplicantRequest] The Applicant Resource to be created.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [IndividualApplicantResource]
|
|
26
|
+
def create_individual_applicant(individual_applicant_request, opts = {})
|
|
27
|
+
data, _status_code, _headers = create_individual_applicant_with_http_info(individual_applicant_request, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Creates an Applicant Resource in the system.
|
|
32
|
+
# @param individual_applicant_request [IndividualApplicantRequest] The Applicant Resource to be created.
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(IndividualApplicantResource, Integer, Hash)>] IndividualApplicantResource data, response status code and response headers
|
|
35
|
+
def create_individual_applicant_with_http_info(individual_applicant_request, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: IndividualApplicantsApi.create_individual_applicant ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'individual_applicant_request' is set
|
|
40
|
+
if @api_client.config.client_side_validation && individual_applicant_request.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'individual_applicant_request' when calling IndividualApplicantsApi.create_individual_applicant"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/individual-applicants'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
53
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = opts[:form_params] || {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = opts[:body] || @api_client.object_to_http_body(individual_applicant_request)
|
|
61
|
+
|
|
62
|
+
# return_type
|
|
63
|
+
return_type = opts[:return_type] || 'IndividualApplicantResource'
|
|
64
|
+
|
|
65
|
+
# auth_names
|
|
66
|
+
auth_names = opts[:auth_names] || ['Bearer']
|
|
67
|
+
|
|
68
|
+
new_options = opts.merge(
|
|
69
|
+
:header_params => header_params,
|
|
70
|
+
:query_params => query_params,
|
|
71
|
+
:form_params => form_params,
|
|
72
|
+
:body => post_body,
|
|
73
|
+
:auth_names => auth_names,
|
|
74
|
+
:return_type => return_type
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
78
|
+
if @api_client.config.debugging
|
|
79
|
+
@api_client.config.logger.debug "API called: IndividualApplicantsApi#create_individual_applicant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
|
+
end
|
|
81
|
+
return data, status_code, headers
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Deactivates the Individual Applicant Resource in the system.
|
|
85
|
+
# @param applicant_id [String] The unique id of the Individual Applicant Resource.
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @return [DeactivateResponse]
|
|
88
|
+
def deactivate_applicant(applicant_id, opts = {})
|
|
89
|
+
data, _status_code, _headers = deactivate_applicant_with_http_info(applicant_id, opts)
|
|
90
|
+
data
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Deactivates the Individual Applicant Resource in the system.
|
|
94
|
+
# @param applicant_id [String] The unique id of the Individual Applicant Resource.
|
|
95
|
+
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @return [Array<(DeactivateResponse, Integer, Hash)>] DeactivateResponse data, response status code and response headers
|
|
97
|
+
def deactivate_applicant_with_http_info(applicant_id, opts = {})
|
|
98
|
+
if @api_client.config.debugging
|
|
99
|
+
@api_client.config.logger.debug 'Calling API: IndividualApplicantsApi.deactivate_applicant ...'
|
|
100
|
+
end
|
|
101
|
+
# verify the required parameter 'applicant_id' is set
|
|
102
|
+
if @api_client.config.client_side_validation && applicant_id.nil?
|
|
103
|
+
fail ArgumentError, "Missing the required parameter 'applicant_id' when calling IndividualApplicantsApi.deactivate_applicant"
|
|
104
|
+
end
|
|
105
|
+
# resource path
|
|
106
|
+
local_var_path = '/individual-applicants/{applicantId}'.sub('{' + 'applicantId' + '}', CGI.escape(applicant_id.to_s).gsub('%2F', '/'))
|
|
107
|
+
|
|
108
|
+
# query parameters
|
|
109
|
+
query_params = opts[:query_params] || {}
|
|
110
|
+
|
|
111
|
+
# header parameters
|
|
112
|
+
header_params = opts[:header_params] || {}
|
|
113
|
+
# HTTP header 'Accept' (if needed)
|
|
114
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
115
|
+
|
|
116
|
+
# form parameters
|
|
117
|
+
form_params = opts[:form_params] || {}
|
|
118
|
+
|
|
119
|
+
# http body (model)
|
|
120
|
+
post_body = opts[:body]
|
|
121
|
+
|
|
122
|
+
# return_type
|
|
123
|
+
return_type = opts[:return_type] || 'DeactivateResponse'
|
|
124
|
+
|
|
125
|
+
# auth_names
|
|
126
|
+
auth_names = opts[:auth_names] || ['Bearer']
|
|
127
|
+
|
|
128
|
+
new_options = opts.merge(
|
|
129
|
+
:header_params => header_params,
|
|
130
|
+
:query_params => query_params,
|
|
131
|
+
:form_params => form_params,
|
|
132
|
+
:body => post_body,
|
|
133
|
+
:auth_names => auth_names,
|
|
134
|
+
:return_type => return_type
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
138
|
+
if @api_client.config.debugging
|
|
139
|
+
@api_client.config.logger.debug "API called: IndividualApplicantsApi#deactivate_applicant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
|
+
end
|
|
141
|
+
return data, status_code, headers
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Retrieves an Individual Applicant Resource from the system for the given applicantId.
|
|
145
|
+
# @param applicant_id [String] The unique id of the Individual Applicant Resource.
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @return [IndividualApplicantResource]
|
|
148
|
+
def get_individual_applicant(applicant_id, opts = {})
|
|
149
|
+
data, _status_code, _headers = get_individual_applicant_with_http_info(applicant_id, opts)
|
|
150
|
+
data
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Retrieves an Individual Applicant Resource from the system for the given applicantId.
|
|
154
|
+
# @param applicant_id [String] The unique id of the Individual Applicant Resource.
|
|
155
|
+
# @param [Hash] opts the optional parameters
|
|
156
|
+
# @return [Array<(IndividualApplicantResource, Integer, Hash)>] IndividualApplicantResource data, response status code and response headers
|
|
157
|
+
def get_individual_applicant_with_http_info(applicant_id, opts = {})
|
|
158
|
+
if @api_client.config.debugging
|
|
159
|
+
@api_client.config.logger.debug 'Calling API: IndividualApplicantsApi.get_individual_applicant ...'
|
|
160
|
+
end
|
|
161
|
+
# verify the required parameter 'applicant_id' is set
|
|
162
|
+
if @api_client.config.client_side_validation && applicant_id.nil?
|
|
163
|
+
fail ArgumentError, "Missing the required parameter 'applicant_id' when calling IndividualApplicantsApi.get_individual_applicant"
|
|
164
|
+
end
|
|
165
|
+
# resource path
|
|
166
|
+
local_var_path = '/individual-applicants/{applicantId}'.sub('{' + 'applicantId' + '}', CGI.escape(applicant_id.to_s).gsub('%2F', '/'))
|
|
167
|
+
|
|
168
|
+
# query parameters
|
|
169
|
+
query_params = opts[:query_params] || {}
|
|
170
|
+
|
|
171
|
+
# header parameters
|
|
172
|
+
header_params = opts[:header_params] || {}
|
|
173
|
+
# HTTP header 'Accept' (if needed)
|
|
174
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
175
|
+
|
|
176
|
+
# form parameters
|
|
177
|
+
form_params = opts[:form_params] || {}
|
|
178
|
+
|
|
179
|
+
# http body (model)
|
|
180
|
+
post_body = opts[:body]
|
|
181
|
+
|
|
182
|
+
# return_type
|
|
183
|
+
return_type = opts[:return_type] || 'IndividualApplicantResource'
|
|
184
|
+
|
|
185
|
+
# auth_names
|
|
186
|
+
auth_names = opts[:auth_names] || ['Bearer']
|
|
187
|
+
|
|
188
|
+
new_options = opts.merge(
|
|
189
|
+
:header_params => header_params,
|
|
190
|
+
:query_params => query_params,
|
|
191
|
+
:form_params => form_params,
|
|
192
|
+
:body => post_body,
|
|
193
|
+
:auth_names => auth_names,
|
|
194
|
+
:return_type => return_type
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
198
|
+
if @api_client.config.debugging
|
|
199
|
+
@api_client.config.logger.debug "API called: IndividualApplicantsApi#get_individual_applicant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
200
|
+
end
|
|
201
|
+
return data, status_code, headers
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Get all Individual Applicant Resources the actor has access to in the system.
|
|
205
|
+
# @param external_id [String] The identifier used by an external client.
|
|
206
|
+
# @param [Hash] opts the optional parameters
|
|
207
|
+
# @option opts [Integer] :page page number
|
|
208
|
+
# @option opts [Integer] :size Maximum number of records to return per page
|
|
209
|
+
# @return [IndividualApplicantsResource]
|
|
210
|
+
def get_individual_applicants(external_id, opts = {})
|
|
211
|
+
data, _status_code, _headers = get_individual_applicants_with_http_info(external_id, opts)
|
|
212
|
+
data
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Get all Individual Applicant Resources the actor has access to in the system.
|
|
216
|
+
# @param external_id [String] The identifier used by an external client.
|
|
217
|
+
# @param [Hash] opts the optional parameters
|
|
218
|
+
# @option opts [Integer] :page page number
|
|
219
|
+
# @option opts [Integer] :size Maximum number of records to return per page
|
|
220
|
+
# @return [Array<(IndividualApplicantsResource, Integer, Hash)>] IndividualApplicantsResource data, response status code and response headers
|
|
221
|
+
def get_individual_applicants_with_http_info(external_id, opts = {})
|
|
222
|
+
if @api_client.config.debugging
|
|
223
|
+
@api_client.config.logger.debug 'Calling API: IndividualApplicantsApi.get_individual_applicants ...'
|
|
224
|
+
end
|
|
225
|
+
# verify the required parameter 'external_id' is set
|
|
226
|
+
if @api_client.config.client_side_validation && external_id.nil?
|
|
227
|
+
fail ArgumentError, "Missing the required parameter 'external_id' when calling IndividualApplicantsApi.get_individual_applicants"
|
|
228
|
+
end
|
|
229
|
+
# resource path
|
|
230
|
+
local_var_path = '/individual-applicants'
|
|
231
|
+
|
|
232
|
+
# query parameters
|
|
233
|
+
query_params = opts[:query_params] || {}
|
|
234
|
+
query_params[:'externalId'] = external_id
|
|
235
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
236
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
237
|
+
|
|
238
|
+
# header parameters
|
|
239
|
+
header_params = opts[:header_params] || {}
|
|
240
|
+
# HTTP header 'Accept' (if needed)
|
|
241
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
242
|
+
|
|
243
|
+
# form parameters
|
|
244
|
+
form_params = opts[:form_params] || {}
|
|
245
|
+
|
|
246
|
+
# http body (model)
|
|
247
|
+
post_body = opts[:body]
|
|
248
|
+
|
|
249
|
+
# return_type
|
|
250
|
+
return_type = opts[:return_type] || 'IndividualApplicantsResource'
|
|
251
|
+
|
|
252
|
+
# auth_names
|
|
253
|
+
auth_names = opts[:auth_names] || ['Bearer']
|
|
254
|
+
|
|
255
|
+
new_options = opts.merge(
|
|
256
|
+
:header_params => header_params,
|
|
257
|
+
:query_params => query_params,
|
|
258
|
+
:form_params => form_params,
|
|
259
|
+
:body => post_body,
|
|
260
|
+
:auth_names => auth_names,
|
|
261
|
+
:return_type => return_type
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
265
|
+
if @api_client.config.debugging
|
|
266
|
+
@api_client.config.logger.debug "API called: IndividualApplicantsApi#get_individual_applicants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
267
|
+
end
|
|
268
|
+
return data, status_code, headers
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Updates the Individual Applicant Resource.
|
|
272
|
+
# @param applicant_id [String] The unique id of the Individual Applicant Resource.
|
|
273
|
+
# @param individual_applicant_update_request [IndividualApplicantUpdateRequest] The Applicant Request Resource to be updated.
|
|
274
|
+
# @param [Hash] opts the optional parameters
|
|
275
|
+
# @return [IndividualApplicantResource]
|
|
276
|
+
def update_individual_applicant(applicant_id, individual_applicant_update_request, opts = {})
|
|
277
|
+
data, _status_code, _headers = update_individual_applicant_with_http_info(applicant_id, individual_applicant_update_request, opts)
|
|
278
|
+
data
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# Updates the Individual Applicant Resource.
|
|
282
|
+
# @param applicant_id [String] The unique id of the Individual Applicant Resource.
|
|
283
|
+
# @param individual_applicant_update_request [IndividualApplicantUpdateRequest] The Applicant Request Resource to be updated.
|
|
284
|
+
# @param [Hash] opts the optional parameters
|
|
285
|
+
# @return [Array<(IndividualApplicantResource, Integer, Hash)>] IndividualApplicantResource data, response status code and response headers
|
|
286
|
+
def update_individual_applicant_with_http_info(applicant_id, individual_applicant_update_request, opts = {})
|
|
287
|
+
if @api_client.config.debugging
|
|
288
|
+
@api_client.config.logger.debug 'Calling API: IndividualApplicantsApi.update_individual_applicant ...'
|
|
289
|
+
end
|
|
290
|
+
# verify the required parameter 'applicant_id' is set
|
|
291
|
+
if @api_client.config.client_side_validation && applicant_id.nil?
|
|
292
|
+
fail ArgumentError, "Missing the required parameter 'applicant_id' when calling IndividualApplicantsApi.update_individual_applicant"
|
|
293
|
+
end
|
|
294
|
+
# verify the required parameter 'individual_applicant_update_request' is set
|
|
295
|
+
if @api_client.config.client_side_validation && individual_applicant_update_request.nil?
|
|
296
|
+
fail ArgumentError, "Missing the required parameter 'individual_applicant_update_request' when calling IndividualApplicantsApi.update_individual_applicant"
|
|
297
|
+
end
|
|
298
|
+
# resource path
|
|
299
|
+
local_var_path = '/individual-applicants/{applicantId}'.sub('{' + 'applicantId' + '}', CGI.escape(applicant_id.to_s).gsub('%2F', '/'))
|
|
300
|
+
|
|
301
|
+
# query parameters
|
|
302
|
+
query_params = opts[:query_params] || {}
|
|
303
|
+
|
|
304
|
+
# header parameters
|
|
305
|
+
header_params = opts[:header_params] || {}
|
|
306
|
+
# HTTP header 'Accept' (if needed)
|
|
307
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
308
|
+
# HTTP header 'Content-Type'
|
|
309
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json'])
|
|
310
|
+
|
|
311
|
+
# form parameters
|
|
312
|
+
form_params = opts[:form_params] || {}
|
|
313
|
+
|
|
314
|
+
# http body (model)
|
|
315
|
+
post_body = opts[:body] || @api_client.object_to_http_body(individual_applicant_update_request)
|
|
316
|
+
|
|
317
|
+
# return_type
|
|
318
|
+
return_type = opts[:return_type] || 'IndividualApplicantResource'
|
|
319
|
+
|
|
320
|
+
# auth_names
|
|
321
|
+
auth_names = opts[:auth_names] || ['Bearer']
|
|
322
|
+
|
|
323
|
+
new_options = opts.merge(
|
|
324
|
+
:header_params => header_params,
|
|
325
|
+
:query_params => query_params,
|
|
326
|
+
:form_params => form_params,
|
|
327
|
+
:body => post_body,
|
|
328
|
+
:auth_names => auth_names,
|
|
329
|
+
:return_type => return_type
|
|
330
|
+
)
|
|
331
|
+
|
|
332
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
333
|
+
if @api_client.config.debugging
|
|
334
|
+
@api_client.config.logger.debug "API called: IndividualApplicantsApi#update_individual_applicant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
335
|
+
end
|
|
336
|
+
return data, status_code, headers
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
end
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Yapstone Staged On-Boarding Services
|
|
3
|
+
|
|
4
|
+
#Set of API's that allow clients to onboard with Yapstone.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.1.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Yapstone
|
|
16
|
+
class InstrumentsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Creates an Payout Instrument Resource in the system.
|
|
23
|
+
# @param payout_instrument_request [PayoutInstrumentRequest] The Payout Instrument Request Resource to be created.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [PayoutInstrumentResource]
|
|
26
|
+
def create_instrument(payout_instrument_request, opts = {})
|
|
27
|
+
data, _status_code, _headers = create_instrument_with_http_info(payout_instrument_request, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Creates an Payout Instrument Resource in the system.
|
|
32
|
+
# @param payout_instrument_request [PayoutInstrumentRequest] The Payout Instrument Request Resource to be created.
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(PayoutInstrumentResource, Integer, Hash)>] PayoutInstrumentResource data, response status code and response headers
|
|
35
|
+
def create_instrument_with_http_info(payout_instrument_request, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: InstrumentsApi.create_instrument ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'payout_instrument_request' is set
|
|
40
|
+
if @api_client.config.client_side_validation && payout_instrument_request.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'payout_instrument_request' when calling InstrumentsApi.create_instrument"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/instruments'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
53
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = opts[:form_params] || {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = opts[:body] || @api_client.object_to_http_body(payout_instrument_request)
|
|
61
|
+
|
|
62
|
+
# return_type
|
|
63
|
+
return_type = opts[:return_type] || 'PayoutInstrumentResource'
|
|
64
|
+
|
|
65
|
+
# auth_names
|
|
66
|
+
auth_names = opts[:auth_names] || ['Bearer']
|
|
67
|
+
|
|
68
|
+
new_options = opts.merge(
|
|
69
|
+
:header_params => header_params,
|
|
70
|
+
:query_params => query_params,
|
|
71
|
+
:form_params => form_params,
|
|
72
|
+
:body => post_body,
|
|
73
|
+
:auth_names => auth_names,
|
|
74
|
+
:return_type => return_type
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
78
|
+
if @api_client.config.debugging
|
|
79
|
+
@api_client.config.logger.debug "API called: InstrumentsApi#create_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
|
+
end
|
|
81
|
+
return data, status_code, headers
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Deactivates the Payout Instrument Resource in the system.
|
|
85
|
+
# @param instrument_id [String] The unique id of the Instrument Resource.
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @return [DeactivateResponse]
|
|
88
|
+
def deactivate_instrument(instrument_id, opts = {})
|
|
89
|
+
data, _status_code, _headers = deactivate_instrument_with_http_info(instrument_id, opts)
|
|
90
|
+
data
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Deactivates the Payout Instrument Resource in the system.
|
|
94
|
+
# @param instrument_id [String] The unique id of the Instrument Resource.
|
|
95
|
+
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @return [Array<(DeactivateResponse, Integer, Hash)>] DeactivateResponse data, response status code and response headers
|
|
97
|
+
def deactivate_instrument_with_http_info(instrument_id, opts = {})
|
|
98
|
+
if @api_client.config.debugging
|
|
99
|
+
@api_client.config.logger.debug 'Calling API: InstrumentsApi.deactivate_instrument ...'
|
|
100
|
+
end
|
|
101
|
+
# verify the required parameter 'instrument_id' is set
|
|
102
|
+
if @api_client.config.client_side_validation && instrument_id.nil?
|
|
103
|
+
fail ArgumentError, "Missing the required parameter 'instrument_id' when calling InstrumentsApi.deactivate_instrument"
|
|
104
|
+
end
|
|
105
|
+
# resource path
|
|
106
|
+
local_var_path = '/instruments/{instrumentId}'.sub('{' + 'instrumentId' + '}', CGI.escape(instrument_id.to_s).gsub('%2F', '/'))
|
|
107
|
+
|
|
108
|
+
# query parameters
|
|
109
|
+
query_params = opts[:query_params] || {}
|
|
110
|
+
|
|
111
|
+
# header parameters
|
|
112
|
+
header_params = opts[:header_params] || {}
|
|
113
|
+
# HTTP header 'Accept' (if needed)
|
|
114
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
115
|
+
|
|
116
|
+
# form parameters
|
|
117
|
+
form_params = opts[:form_params] || {}
|
|
118
|
+
|
|
119
|
+
# http body (model)
|
|
120
|
+
post_body = opts[:body]
|
|
121
|
+
|
|
122
|
+
# return_type
|
|
123
|
+
return_type = opts[:return_type] || 'DeactivateResponse'
|
|
124
|
+
|
|
125
|
+
# auth_names
|
|
126
|
+
auth_names = opts[:auth_names] || ['Bearer']
|
|
127
|
+
|
|
128
|
+
new_options = opts.merge(
|
|
129
|
+
:header_params => header_params,
|
|
130
|
+
:query_params => query_params,
|
|
131
|
+
:form_params => form_params,
|
|
132
|
+
:body => post_body,
|
|
133
|
+
:auth_names => auth_names,
|
|
134
|
+
:return_type => return_type
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
138
|
+
if @api_client.config.debugging
|
|
139
|
+
@api_client.config.logger.debug "API called: InstrumentsApi#deactivate_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
|
+
end
|
|
141
|
+
return data, status_code, headers
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Retrieves an Payout Instrument Resource from the system for the given payoutInstrumentId.
|
|
145
|
+
# @param instrument_id [String] The unique id of the Instrument Resource.
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @return [PayoutInstrumentResource]
|
|
148
|
+
def get_instrument(instrument_id, opts = {})
|
|
149
|
+
data, _status_code, _headers = get_instrument_with_http_info(instrument_id, opts)
|
|
150
|
+
data
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Retrieves an Payout Instrument Resource from the system for the given payoutInstrumentId.
|
|
154
|
+
# @param instrument_id [String] The unique id of the Instrument Resource.
|
|
155
|
+
# @param [Hash] opts the optional parameters
|
|
156
|
+
# @return [Array<(PayoutInstrumentResource, Integer, Hash)>] PayoutInstrumentResource data, response status code and response headers
|
|
157
|
+
def get_instrument_with_http_info(instrument_id, opts = {})
|
|
158
|
+
if @api_client.config.debugging
|
|
159
|
+
@api_client.config.logger.debug 'Calling API: InstrumentsApi.get_instrument ...'
|
|
160
|
+
end
|
|
161
|
+
# verify the required parameter 'instrument_id' is set
|
|
162
|
+
if @api_client.config.client_side_validation && instrument_id.nil?
|
|
163
|
+
fail ArgumentError, "Missing the required parameter 'instrument_id' when calling InstrumentsApi.get_instrument"
|
|
164
|
+
end
|
|
165
|
+
# resource path
|
|
166
|
+
local_var_path = '/instruments/{instrumentId}'.sub('{' + 'instrumentId' + '}', CGI.escape(instrument_id.to_s).gsub('%2F', '/'))
|
|
167
|
+
|
|
168
|
+
# query parameters
|
|
169
|
+
query_params = opts[:query_params] || {}
|
|
170
|
+
|
|
171
|
+
# header parameters
|
|
172
|
+
header_params = opts[:header_params] || {}
|
|
173
|
+
# HTTP header 'Accept' (if needed)
|
|
174
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
175
|
+
|
|
176
|
+
# form parameters
|
|
177
|
+
form_params = opts[:form_params] || {}
|
|
178
|
+
|
|
179
|
+
# http body (model)
|
|
180
|
+
post_body = opts[:body]
|
|
181
|
+
|
|
182
|
+
# return_type
|
|
183
|
+
return_type = opts[:return_type] || 'PayoutInstrumentResource'
|
|
184
|
+
|
|
185
|
+
# auth_names
|
|
186
|
+
auth_names = opts[:auth_names] || ['Bearer']
|
|
187
|
+
|
|
188
|
+
new_options = opts.merge(
|
|
189
|
+
:header_params => header_params,
|
|
190
|
+
:query_params => query_params,
|
|
191
|
+
:form_params => form_params,
|
|
192
|
+
:body => post_body,
|
|
193
|
+
:auth_names => auth_names,
|
|
194
|
+
:return_type => return_type
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
198
|
+
if @api_client.config.debugging
|
|
199
|
+
@api_client.config.logger.debug "API called: InstrumentsApi#get_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
200
|
+
end
|
|
201
|
+
return data, status_code, headers
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Get all Payout Instrument Resources the actor has access to in the system.
|
|
205
|
+
# @param [Hash] opts the optional parameters
|
|
206
|
+
# @option opts [Integer] :page page number
|
|
207
|
+
# @option opts [Integer] :size Maximum number of records to return per page
|
|
208
|
+
# @return [PayoutInstrumentsResource]
|
|
209
|
+
def get_instruments(opts = {})
|
|
210
|
+
data, _status_code, _headers = get_instruments_with_http_info(opts)
|
|
211
|
+
data
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Get all Payout Instrument Resources the actor has access to in the system.
|
|
215
|
+
# @param [Hash] opts the optional parameters
|
|
216
|
+
# @option opts [Integer] :page page number
|
|
217
|
+
# @option opts [Integer] :size Maximum number of records to return per page
|
|
218
|
+
# @return [Array<(PayoutInstrumentsResource, Integer, Hash)>] PayoutInstrumentsResource data, response status code and response headers
|
|
219
|
+
def get_instruments_with_http_info(opts = {})
|
|
220
|
+
if @api_client.config.debugging
|
|
221
|
+
@api_client.config.logger.debug 'Calling API: InstrumentsApi.get_instruments ...'
|
|
222
|
+
end
|
|
223
|
+
# resource path
|
|
224
|
+
local_var_path = '/instruments'
|
|
225
|
+
|
|
226
|
+
# query parameters
|
|
227
|
+
query_params = opts[:query_params] || {}
|
|
228
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
229
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
|
230
|
+
|
|
231
|
+
# header parameters
|
|
232
|
+
header_params = opts[:header_params] || {}
|
|
233
|
+
# HTTP header 'Accept' (if needed)
|
|
234
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
235
|
+
|
|
236
|
+
# form parameters
|
|
237
|
+
form_params = opts[:form_params] || {}
|
|
238
|
+
|
|
239
|
+
# http body (model)
|
|
240
|
+
post_body = opts[:body]
|
|
241
|
+
|
|
242
|
+
# return_type
|
|
243
|
+
return_type = opts[:return_type] || 'PayoutInstrumentsResource'
|
|
244
|
+
|
|
245
|
+
# auth_names
|
|
246
|
+
auth_names = opts[:auth_names] || ['Bearer']
|
|
247
|
+
|
|
248
|
+
new_options = opts.merge(
|
|
249
|
+
:header_params => header_params,
|
|
250
|
+
:query_params => query_params,
|
|
251
|
+
:form_params => form_params,
|
|
252
|
+
:body => post_body,
|
|
253
|
+
:auth_names => auth_names,
|
|
254
|
+
:return_type => return_type
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
258
|
+
if @api_client.config.debugging
|
|
259
|
+
@api_client.config.logger.debug "API called: InstrumentsApi#get_instruments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
260
|
+
end
|
|
261
|
+
return data, status_code, headers
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# Updates the PayoutInstrument Resource.
|
|
265
|
+
# @param instrument_id [String] The unique id of the Instrument Resource.
|
|
266
|
+
# @param payout_instrument_update_request [PayoutInstrumentUpdateRequest] The PayoutInstrument Request Resource to be updated.
|
|
267
|
+
# @param [Hash] opts the optional parameters
|
|
268
|
+
# @return [PayoutInstrumentResource]
|
|
269
|
+
def update_instrument(instrument_id, payout_instrument_update_request, opts = {})
|
|
270
|
+
data, _status_code, _headers = update_instrument_with_http_info(instrument_id, payout_instrument_update_request, opts)
|
|
271
|
+
data
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Updates the PayoutInstrument Resource.
|
|
275
|
+
# @param instrument_id [String] The unique id of the Instrument Resource.
|
|
276
|
+
# @param payout_instrument_update_request [PayoutInstrumentUpdateRequest] The PayoutInstrument Request Resource to be updated.
|
|
277
|
+
# @param [Hash] opts the optional parameters
|
|
278
|
+
# @return [Array<(PayoutInstrumentResource, Integer, Hash)>] PayoutInstrumentResource data, response status code and response headers
|
|
279
|
+
def update_instrument_with_http_info(instrument_id, payout_instrument_update_request, opts = {})
|
|
280
|
+
if @api_client.config.debugging
|
|
281
|
+
@api_client.config.logger.debug 'Calling API: InstrumentsApi.update_instrument ...'
|
|
282
|
+
end
|
|
283
|
+
# verify the required parameter 'instrument_id' is set
|
|
284
|
+
if @api_client.config.client_side_validation && instrument_id.nil?
|
|
285
|
+
fail ArgumentError, "Missing the required parameter 'instrument_id' when calling InstrumentsApi.update_instrument"
|
|
286
|
+
end
|
|
287
|
+
# verify the required parameter 'payout_instrument_update_request' is set
|
|
288
|
+
if @api_client.config.client_side_validation && payout_instrument_update_request.nil?
|
|
289
|
+
fail ArgumentError, "Missing the required parameter 'payout_instrument_update_request' when calling InstrumentsApi.update_instrument"
|
|
290
|
+
end
|
|
291
|
+
# resource path
|
|
292
|
+
local_var_path = '/instruments/{instrumentId}'.sub('{' + 'instrumentId' + '}', CGI.escape(instrument_id.to_s).gsub('%2F', '/'))
|
|
293
|
+
|
|
294
|
+
# query parameters
|
|
295
|
+
query_params = opts[:query_params] || {}
|
|
296
|
+
|
|
297
|
+
# header parameters
|
|
298
|
+
header_params = opts[:header_params] || {}
|
|
299
|
+
# HTTP header 'Accept' (if needed)
|
|
300
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
301
|
+
# HTTP header 'Content-Type'
|
|
302
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json'])
|
|
303
|
+
|
|
304
|
+
# form parameters
|
|
305
|
+
form_params = opts[:form_params] || {}
|
|
306
|
+
|
|
307
|
+
# http body (model)
|
|
308
|
+
post_body = opts[:body] || @api_client.object_to_http_body(payout_instrument_update_request)
|
|
309
|
+
|
|
310
|
+
# return_type
|
|
311
|
+
return_type = opts[:return_type] || 'PayoutInstrumentResource'
|
|
312
|
+
|
|
313
|
+
# auth_names
|
|
314
|
+
auth_names = opts[:auth_names] || ['Bearer']
|
|
315
|
+
|
|
316
|
+
new_options = opts.merge(
|
|
317
|
+
:header_params => header_params,
|
|
318
|
+
:query_params => query_params,
|
|
319
|
+
:form_params => form_params,
|
|
320
|
+
:body => post_body,
|
|
321
|
+
:auth_names => auth_names,
|
|
322
|
+
:return_type => return_type
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
326
|
+
if @api_client.config.debugging
|
|
327
|
+
@api_client.config.logger.debug "API called: InstrumentsApi#update_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
328
|
+
end
|
|
329
|
+
return data, status_code, headers
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
end
|