yapstone-so 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,278 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module Yapstone
|
16
|
+
# The customer history as a traveler.
|
17
|
+
class TravelerResource
|
18
|
+
# The date the customer started as a traveler.
|
19
|
+
attr_accessor :started_on
|
20
|
+
|
21
|
+
# The number of inquries.
|
22
|
+
attr_accessor :inquiry_count
|
23
|
+
|
24
|
+
# The number of charges.
|
25
|
+
attr_accessor :charge_count
|
26
|
+
|
27
|
+
# The number of ratings.
|
28
|
+
attr_accessor :rating_count
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'started_on' => :'startedOn',
|
34
|
+
:'inquiry_count' => :'inquiryCount',
|
35
|
+
:'charge_count' => :'chargeCount',
|
36
|
+
:'rating_count' => :'ratingCount'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'started_on' => :'Date',
|
44
|
+
:'inquiry_count' => :'Integer',
|
45
|
+
:'charge_count' => :'Integer',
|
46
|
+
:'rating_count' => :'Integer'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
if (!attributes.is_a?(Hash))
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Yapstone::TravelerResource` initialize method"
|
55
|
+
end
|
56
|
+
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Yapstone::TravelerResource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
end
|
62
|
+
h[k.to_sym] = v
|
63
|
+
}
|
64
|
+
|
65
|
+
if attributes.key?(:'started_on')
|
66
|
+
self.started_on = attributes[:'started_on']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'inquiry_count')
|
70
|
+
self.inquiry_count = attributes[:'inquiry_count']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'charge_count')
|
74
|
+
self.charge_count = attributes[:'charge_count']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'rating_count')
|
78
|
+
self.rating_count = attributes[:'rating_count']
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
83
|
+
# @return Array for valid properties with the reasons
|
84
|
+
def list_invalid_properties
|
85
|
+
invalid_properties = Array.new
|
86
|
+
if @started_on.nil?
|
87
|
+
invalid_properties.push('invalid value for "started_on", started_on cannot be nil.')
|
88
|
+
end
|
89
|
+
|
90
|
+
if !@inquiry_count.nil? && @inquiry_count < 0
|
91
|
+
invalid_properties.push('invalid value for "inquiry_count", must be greater than or equal to 0.')
|
92
|
+
end
|
93
|
+
|
94
|
+
if !@charge_count.nil? && @charge_count < 0
|
95
|
+
invalid_properties.push('invalid value for "charge_count", must be greater than or equal to 0.')
|
96
|
+
end
|
97
|
+
|
98
|
+
if !@rating_count.nil? && @rating_count < 0
|
99
|
+
invalid_properties.push('invalid value for "rating_count", must be greater than or equal to 0.')
|
100
|
+
end
|
101
|
+
|
102
|
+
invalid_properties
|
103
|
+
end
|
104
|
+
|
105
|
+
# Check to see if the all the properties in the model are valid
|
106
|
+
# @return true if the model is valid
|
107
|
+
def valid?
|
108
|
+
return false if @started_on.nil?
|
109
|
+
return false if !@inquiry_count.nil? && @inquiry_count < 0
|
110
|
+
return false if !@charge_count.nil? && @charge_count < 0
|
111
|
+
return false if !@rating_count.nil? && @rating_count < 0
|
112
|
+
true
|
113
|
+
end
|
114
|
+
|
115
|
+
# Custom attribute writer method with validation
|
116
|
+
# @param [Object] inquiry_count Value to be assigned
|
117
|
+
def inquiry_count=(inquiry_count)
|
118
|
+
if !inquiry_count.nil? && inquiry_count < 0
|
119
|
+
fail ArgumentError, 'invalid value for "inquiry_count", must be greater than or equal to 0.'
|
120
|
+
end
|
121
|
+
|
122
|
+
@inquiry_count = inquiry_count
|
123
|
+
end
|
124
|
+
|
125
|
+
# Custom attribute writer method with validation
|
126
|
+
# @param [Object] charge_count Value to be assigned
|
127
|
+
def charge_count=(charge_count)
|
128
|
+
if !charge_count.nil? && charge_count < 0
|
129
|
+
fail ArgumentError, 'invalid value for "charge_count", must be greater than or equal to 0.'
|
130
|
+
end
|
131
|
+
|
132
|
+
@charge_count = charge_count
|
133
|
+
end
|
134
|
+
|
135
|
+
# Custom attribute writer method with validation
|
136
|
+
# @param [Object] rating_count Value to be assigned
|
137
|
+
def rating_count=(rating_count)
|
138
|
+
if !rating_count.nil? && rating_count < 0
|
139
|
+
fail ArgumentError, 'invalid value for "rating_count", must be greater than or equal to 0.'
|
140
|
+
end
|
141
|
+
|
142
|
+
@rating_count = rating_count
|
143
|
+
end
|
144
|
+
|
145
|
+
# Checks equality by comparing each attribute.
|
146
|
+
# @param [Object] Object to be compared
|
147
|
+
def ==(o)
|
148
|
+
return true if self.equal?(o)
|
149
|
+
self.class == o.class &&
|
150
|
+
started_on == o.started_on &&
|
151
|
+
inquiry_count == o.inquiry_count &&
|
152
|
+
charge_count == o.charge_count &&
|
153
|
+
rating_count == o.rating_count
|
154
|
+
end
|
155
|
+
|
156
|
+
# @see the `==` method
|
157
|
+
# @param [Object] Object to be compared
|
158
|
+
def eql?(o)
|
159
|
+
self == o
|
160
|
+
end
|
161
|
+
|
162
|
+
# Calculates hash code according to all attributes.
|
163
|
+
# @return [Integer] Hash code
|
164
|
+
def hash
|
165
|
+
[started_on, inquiry_count, charge_count, rating_count].hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Builds the object from hash
|
169
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
170
|
+
# @return [Object] Returns the model itself
|
171
|
+
def self.build_from_hash(attributes)
|
172
|
+
new.build_from_hash(attributes)
|
173
|
+
end
|
174
|
+
|
175
|
+
# Builds the object from hash
|
176
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
177
|
+
# @return [Object] Returns the model itself
|
178
|
+
def build_from_hash(attributes)
|
179
|
+
return nil unless attributes.is_a?(Hash)
|
180
|
+
self.class.openapi_types.each_pair do |key, type|
|
181
|
+
if type =~ /\AArray<(.*)>/i
|
182
|
+
# check to ensure the input is an array given that the attribute
|
183
|
+
# is documented as an array but the input is not
|
184
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
185
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
186
|
+
end
|
187
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
188
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
189
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
190
|
+
end
|
191
|
+
|
192
|
+
self
|
193
|
+
end
|
194
|
+
|
195
|
+
# Deserializes the data based on type
|
196
|
+
# @param string type Data type
|
197
|
+
# @param string value Value to be deserialized
|
198
|
+
# @return [Object] Deserialized data
|
199
|
+
def _deserialize(type, value)
|
200
|
+
case type.to_sym
|
201
|
+
when :DateTime
|
202
|
+
DateTime.parse(value)
|
203
|
+
when :Date
|
204
|
+
Date.parse(value)
|
205
|
+
when :String
|
206
|
+
value.to_s
|
207
|
+
when :Integer
|
208
|
+
value.to_i
|
209
|
+
when :Float
|
210
|
+
value.to_f
|
211
|
+
when :Boolean
|
212
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
213
|
+
true
|
214
|
+
else
|
215
|
+
false
|
216
|
+
end
|
217
|
+
when :Object
|
218
|
+
# generic object (usually a Hash), return directly
|
219
|
+
value
|
220
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
221
|
+
inner_type = Regexp.last_match[:inner_type]
|
222
|
+
value.map { |v| _deserialize(inner_type, v) }
|
223
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
224
|
+
k_type = Regexp.last_match[:k_type]
|
225
|
+
v_type = Regexp.last_match[:v_type]
|
226
|
+
{}.tap do |hash|
|
227
|
+
value.each do |k, v|
|
228
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
else # model
|
232
|
+
Yapstone.const_get(type).build_from_hash(value)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# Returns the string representation of the object
|
237
|
+
# @return [String] String presentation of the object
|
238
|
+
def to_s
|
239
|
+
to_hash.to_s
|
240
|
+
end
|
241
|
+
|
242
|
+
# to_body is an alias to to_hash (backward compatibility)
|
243
|
+
# @return [Hash] Returns the object in the form of hash
|
244
|
+
def to_body
|
245
|
+
to_hash
|
246
|
+
end
|
247
|
+
|
248
|
+
# Returns the object in the form of hash
|
249
|
+
# @return [Hash] Returns the object in the form of hash
|
250
|
+
def to_hash
|
251
|
+
hash = {}
|
252
|
+
self.class.attribute_map.each_pair do |attr, param|
|
253
|
+
value = self.send(attr)
|
254
|
+
next if value.nil?
|
255
|
+
hash[param] = _to_hash(value)
|
256
|
+
end
|
257
|
+
hash
|
258
|
+
end
|
259
|
+
|
260
|
+
# Outputs non-array value in the form of hash
|
261
|
+
# For object, use to_hash. Otherwise, just return the value
|
262
|
+
# @param [Object] value Any valid value
|
263
|
+
# @return [Hash] Returns the value in the form of hash
|
264
|
+
def _to_hash(value)
|
265
|
+
if value.is_a?(Array)
|
266
|
+
value.compact.map { |v| _to_hash(v) }
|
267
|
+
elsif value.is_a?(Hash)
|
268
|
+
{}.tap do |hash|
|
269
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
270
|
+
end
|
271
|
+
elsif value.respond_to? :to_hash
|
272
|
+
value.to_hash
|
273
|
+
else
|
274
|
+
value
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|
278
|
+
end
|
@@ -0,0 +1,15 @@
|
|
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
|
+
module Yapstone
|
14
|
+
VERSION = '1.0.0'
|
15
|
+
end
|
data/lib/yapstone-so.rb
ADDED
@@ -0,0 +1,174 @@
|
|
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
|
+
# Common files
|
14
|
+
require 'yapstone-so/api_client'
|
15
|
+
require 'yapstone-so/api_error'
|
16
|
+
require 'yapstone-so/version'
|
17
|
+
require 'yapstone-so/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'yapstone-so/models/abstract_entity'
|
21
|
+
require 'yapstone-so/models/action_resource'
|
22
|
+
require 'yapstone-so/models/action_status_resource'
|
23
|
+
require 'yapstone-so/models/address_resource'
|
24
|
+
require 'yapstone-so/models/applicant_consent_request'
|
25
|
+
require 'yapstone-so/models/applicant_consent_resource'
|
26
|
+
require 'yapstone-so/models/applicant_consent_type'
|
27
|
+
require 'yapstone-so/models/applicant_resource'
|
28
|
+
require 'yapstone-so/models/asset_request'
|
29
|
+
require 'yapstone-so/models/asset_request_all_of'
|
30
|
+
require 'yapstone-so/models/asset_request_common'
|
31
|
+
require 'yapstone-so/models/asset_resource'
|
32
|
+
require 'yapstone-so/models/asset_resource_all_of'
|
33
|
+
require 'yapstone-so/models/asset_update_request'
|
34
|
+
require 'yapstone-so/models/asset_update_request_all_of'
|
35
|
+
require 'yapstone-so/models/assets_resource'
|
36
|
+
require 'yapstone-so/models/assets_resource_all_of'
|
37
|
+
require 'yapstone-so/models/bank_account_data_resource'
|
38
|
+
require 'yapstone-so/models/bank_account_resource'
|
39
|
+
require 'yapstone-so/models/beneficial_owner_request'
|
40
|
+
require 'yapstone-so/models/beneficial_owner_resource'
|
41
|
+
require 'yapstone-so/models/beneficial_owners_patch'
|
42
|
+
require 'yapstone-so/models/business_applicant_admin_fields_resource'
|
43
|
+
require 'yapstone-so/models/business_applicant_admin_resource'
|
44
|
+
require 'yapstone-so/models/business_applicant_request'
|
45
|
+
require 'yapstone-so/models/business_applicant_resource'
|
46
|
+
require 'yapstone-so/models/business_applicant_resource_all_of'
|
47
|
+
require 'yapstone-so/models/business_applicant_update_request'
|
48
|
+
require 'yapstone-so/models/business_applicants_resource'
|
49
|
+
require 'yapstone-so/models/business_applicants_resource_all_of'
|
50
|
+
require 'yapstone-so/models/business_id_type'
|
51
|
+
require 'yapstone-so/models/business_identification_resource'
|
52
|
+
require 'yapstone-so/models/business_owner_resource'
|
53
|
+
require 'yapstone-so/models/business_profile_resource'
|
54
|
+
require 'yapstone-so/models/business_update_identification_resource'
|
55
|
+
require 'yapstone-so/models/capability_resource'
|
56
|
+
require 'yapstone-so/models/card_data_resource'
|
57
|
+
require 'yapstone-so/models/consent'
|
58
|
+
require 'yapstone-so/models/consent_request'
|
59
|
+
require 'yapstone-so/models/consent_resource'
|
60
|
+
require 'yapstone-so/models/consent_type'
|
61
|
+
require 'yapstone-so/models/contract_create_request'
|
62
|
+
require 'yapstone-so/models/contract_resource'
|
63
|
+
require 'yapstone-so/models/contract_resource_dto'
|
64
|
+
require 'yapstone-so/models/contract_resource_dto_all_of'
|
65
|
+
require 'yapstone-so/models/contract_update_request'
|
66
|
+
require 'yapstone-so/models/customer_history_resource'
|
67
|
+
require 'yapstone-so/models/deactivate_request'
|
68
|
+
require 'yapstone-so/models/deactivate_response'
|
69
|
+
require 'yapstone-so/models/direct_debit_consent_resource'
|
70
|
+
require 'yapstone-so/models/direct_debit_frequency_type'
|
71
|
+
require 'yapstone-so/models/direct_debit_scheme_type'
|
72
|
+
require 'yapstone-so/models/direct_debt_capability_resource'
|
73
|
+
require 'yapstone-so/models/entities_resource'
|
74
|
+
require 'yapstone-so/models/entity_history_resource'
|
75
|
+
require 'yapstone-so/models/entity_product_status_resource'
|
76
|
+
require 'yapstone-so/models/entity_update_event'
|
77
|
+
require 'yapstone-so/models/entity_updated_attribute'
|
78
|
+
require 'yapstone-so/models/errors'
|
79
|
+
require 'yapstone-so/models/expiration_date_resource'
|
80
|
+
require 'yapstone-so/models/gender'
|
81
|
+
require 'yapstone-so/models/gov_identification_resource'
|
82
|
+
require 'yapstone-so/models/gov_identification_update_resource'
|
83
|
+
require 'yapstone-so/models/government_id_type'
|
84
|
+
require 'yapstone-so/models/individual_applicant_admin_fields_resource'
|
85
|
+
require 'yapstone-so/models/individual_applicant_admin_resource'
|
86
|
+
require 'yapstone-so/models/individual_applicant_request'
|
87
|
+
require 'yapstone-so/models/individual_applicant_resource'
|
88
|
+
require 'yapstone-so/models/individual_applicant_update_request'
|
89
|
+
require 'yapstone-so/models/individual_applicants_resource'
|
90
|
+
require 'yapstone-so/models/individual_applicants_resource_all_of'
|
91
|
+
require 'yapstone-so/models/individual_owner_resource'
|
92
|
+
require 'yapstone-so/models/inline_response200'
|
93
|
+
require 'yapstone-so/models/issuer_scope'
|
94
|
+
require 'yapstone-so/models/market_place_applicant_resource'
|
95
|
+
require 'yapstone-so/models/market_place_property_resource'
|
96
|
+
require 'yapstone-so/models/marketplace_product_add'
|
97
|
+
require 'yapstone-so/models/marketplace_product_basic'
|
98
|
+
require 'yapstone-so/models/marketplace_product_extra'
|
99
|
+
require 'yapstone-so/models/marketplace_product_extra_all_of'
|
100
|
+
require 'yapstone-so/models/marketplace_product_payout_instrument_resource'
|
101
|
+
require 'yapstone-so/models/marketplace_product_payout_instrument_update'
|
102
|
+
require 'yapstone-so/models/marketplace_product_resource'
|
103
|
+
require 'yapstone-so/models/marketplace_product_sub_resource'
|
104
|
+
require 'yapstone-so/models/marketplace_product_update'
|
105
|
+
require 'yapstone-so/models/meta'
|
106
|
+
require 'yapstone-so/models/money_resource'
|
107
|
+
require 'yapstone-so/models/name_resource'
|
108
|
+
require 'yapstone-so/models/owner_request'
|
109
|
+
require 'yapstone-so/models/owner_resource'
|
110
|
+
require 'yapstone-so/models/pagination'
|
111
|
+
require 'yapstone-so/models/patch_operation'
|
112
|
+
require 'yapstone-so/models/payout_instrument_request'
|
113
|
+
require 'yapstone-so/models/payout_instrument_resource'
|
114
|
+
require 'yapstone-so/models/payout_instrument_resource_common_entities'
|
115
|
+
require 'yapstone-so/models/payout_instrument_update_request'
|
116
|
+
require 'yapstone-so/models/payout_instruments_resource'
|
117
|
+
require 'yapstone-so/models/payout_instruments_resource_all_of'
|
118
|
+
require 'yapstone-so/models/payout_product_add'
|
119
|
+
require 'yapstone-so/models/payout_product_resource'
|
120
|
+
require 'yapstone-so/models/payout_product_sub_resource'
|
121
|
+
require 'yapstone-so/models/payout_product_sub_resource_all_of'
|
122
|
+
require 'yapstone-so/models/phone_resource'
|
123
|
+
require 'yapstone-so/models/price_setting_resource'
|
124
|
+
require 'yapstone-so/models/primary_contact_resource'
|
125
|
+
require 'yapstone-so/models/product'
|
126
|
+
require 'yapstone-so/models/product_read'
|
127
|
+
require 'yapstone-so/models/product_write'
|
128
|
+
require 'yapstone-so/models/profile_resource'
|
129
|
+
require 'yapstone-so/models/property_history_resource'
|
130
|
+
require 'yapstone-so/models/property_info_resource'
|
131
|
+
require 'yapstone-so/models/property_owner_resource'
|
132
|
+
require 'yapstone-so/models/property_resource'
|
133
|
+
require 'yapstone-so/models/property_tracker_resource'
|
134
|
+
require 'yapstone-so/models/registration_resource'
|
135
|
+
require 'yapstone-so/models/reservation_setting_resource'
|
136
|
+
require 'yapstone-so/models/resource'
|
137
|
+
require 'yapstone-so/models/social_network_resource'
|
138
|
+
require 'yapstone-so/models/status_reason_resource'
|
139
|
+
require 'yapstone-so/models/status_request'
|
140
|
+
require 'yapstone-so/models/status_resource'
|
141
|
+
require 'yapstone-so/models/stay_setting_resource'
|
142
|
+
require 'yapstone-so/models/suspension_reason_resource'
|
143
|
+
require 'yapstone-so/models/traveler_resource'
|
144
|
+
|
145
|
+
# APIs
|
146
|
+
require 'yapstone-so/api/assets_api'
|
147
|
+
require 'yapstone-so/api/authentication_api'
|
148
|
+
require 'yapstone-so/api/business_applicants_api'
|
149
|
+
require 'yapstone-so/api/contracts_api'
|
150
|
+
require 'yapstone-so/api/individual_applicants_api'
|
151
|
+
require 'yapstone-so/api/instruments_api'
|
152
|
+
require 'yapstone-so/api/marketplace_products_api'
|
153
|
+
require 'yapstone-so/api/marketplaces_api'
|
154
|
+
require 'yapstone-so/api/payout_instruments_api'
|
155
|
+
require 'yapstone-so/api/payout_products_api'
|
156
|
+
require 'yapstone-so/api/payouts_api'
|
157
|
+
|
158
|
+
module Yapstone
|
159
|
+
class << self
|
160
|
+
# Customize default settings for the SDK using block.
|
161
|
+
# Yapstone.configure do |config|
|
162
|
+
# config.username = "xxx"
|
163
|
+
# config.password = "xxx"
|
164
|
+
# end
|
165
|
+
# If no block given, return the default Configuration object.
|
166
|
+
def configure
|
167
|
+
if block_given?
|
168
|
+
yield(Configuration.default)
|
169
|
+
else
|
170
|
+
Configuration.default
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
@@ -0,0 +1,93 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Yapstone::AssetsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AssetsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = Yapstone::AssetsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AssetsApi' do
|
30
|
+
it 'should create an instance of AssetsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Yapstone::AssetsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create_asset
|
36
|
+
# Creates an Asset Resource in the system.
|
37
|
+
# @param asset_request The Asset Request Resource to be created.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [AssetResource]
|
40
|
+
describe 'create_asset test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for deactivate_asset
|
47
|
+
# Deactivates the Asset Resource in the system.
|
48
|
+
# @param asset_id The unique id of the Asset Resource.
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [DeactivateResponse]
|
51
|
+
describe 'deactivate_asset test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for get_asset
|
58
|
+
# Retrieves an Asset Resource from the system for the given assetId.
|
59
|
+
# @param asset_id The unique id of the Asset Resource.
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @return [AssetResource]
|
62
|
+
describe 'get_asset test' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# unit tests for get_assets
|
69
|
+
# Get Asset Resources the actor has access to in the system.
|
70
|
+
# @param [Hash] opts the optional parameters
|
71
|
+
# @option opts [Integer] :page page number
|
72
|
+
# @option opts [Integer] :size Maximum number of records to return per page
|
73
|
+
# @option opts [String] :external_id The identifier used by an external client.
|
74
|
+
# @return [AssetsResource]
|
75
|
+
describe 'get_assets test' do
|
76
|
+
it 'should work' do
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# unit tests for update_asset
|
82
|
+
# Updates the Asset Resource.
|
83
|
+
# @param asset_id The unique id of the Asset Resource.
|
84
|
+
# @param asset_update_request The Asset Request Resource to be created.
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [AssetResource]
|
87
|
+
describe 'update_asset test' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Yapstone::AuthenticationApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AuthenticationApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = Yapstone::AuthenticationApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AuthenticationApi' do
|
30
|
+
it 'should create an instance of AuthenticationApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Yapstone::AuthenticationApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for authenticate_partner
|
36
|
+
# Authenticate Partner
|
37
|
+
# Get an access token. It is OAuth2, and you must use the client credentials grant type. The token will allow you to authenticate with the other internal payments API endpoints.
|
38
|
+
# @param grant_type To do OAuth2 authentication, you must indicate the grant type, then adhere to it structurally. Yapstone API endpoints authenticate with OAuth2 and the grant type client credentials. This type of authentication is used to access resources on your own system rather than access a user's resources.
|
39
|
+
# @param authorization Provide client_id:client_secret as base64 encoded basic auth.
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [InlineResponse200]
|
42
|
+
describe 'authenticate_partner test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|