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,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 PayoutInstrumentsApi
|
|
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_payout_instrument(payout_instrument_request, opts = {})
|
|
27
|
+
data, _status_code, _headers = create_payout_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_payout_instrument_with_http_info(payout_instrument_request, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: PayoutInstrumentsApi.create_payout_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 PayoutInstrumentsApi.create_payout_instrument"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/payout-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: PayoutInstrumentsApi#create_payout_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 payout_instrument_id [String] The unique id of the Payout Instrument Resource.
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @return [DeactivateResponse]
|
|
88
|
+
def deactivate_payout_instrument(payout_instrument_id, opts = {})
|
|
89
|
+
data, _status_code, _headers = deactivate_payout_instrument_with_http_info(payout_instrument_id, opts)
|
|
90
|
+
data
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Deactivates the Payout Instrument Resource in the system.
|
|
94
|
+
# @param payout_instrument_id [String] The unique id of the Payout 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_payout_instrument_with_http_info(payout_instrument_id, opts = {})
|
|
98
|
+
if @api_client.config.debugging
|
|
99
|
+
@api_client.config.logger.debug 'Calling API: PayoutInstrumentsApi.deactivate_payout_instrument ...'
|
|
100
|
+
end
|
|
101
|
+
# verify the required parameter 'payout_instrument_id' is set
|
|
102
|
+
if @api_client.config.client_side_validation && payout_instrument_id.nil?
|
|
103
|
+
fail ArgumentError, "Missing the required parameter 'payout_instrument_id' when calling PayoutInstrumentsApi.deactivate_payout_instrument"
|
|
104
|
+
end
|
|
105
|
+
# resource path
|
|
106
|
+
local_var_path = '/payout-instruments/{payoutInstrumentId}'.sub('{' + 'payoutInstrumentId' + '}', CGI.escape(payout_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: PayoutInstrumentsApi#deactivate_payout_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 payout_instrument_id [String] The unique id of the Payout Instrument Resource.
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @return [PayoutInstrumentResource]
|
|
148
|
+
def get_payout_instrument(payout_instrument_id, opts = {})
|
|
149
|
+
data, _status_code, _headers = get_payout_instrument_with_http_info(payout_instrument_id, opts)
|
|
150
|
+
data
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Retrieves an Payout Instrument Resource from the system for the given payoutInstrumentId.
|
|
154
|
+
# @param payout_instrument_id [String] The unique id of the Payout 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_payout_instrument_with_http_info(payout_instrument_id, opts = {})
|
|
158
|
+
if @api_client.config.debugging
|
|
159
|
+
@api_client.config.logger.debug 'Calling API: PayoutInstrumentsApi.get_payout_instrument ...'
|
|
160
|
+
end
|
|
161
|
+
# verify the required parameter 'payout_instrument_id' is set
|
|
162
|
+
if @api_client.config.client_side_validation && payout_instrument_id.nil?
|
|
163
|
+
fail ArgumentError, "Missing the required parameter 'payout_instrument_id' when calling PayoutInstrumentsApi.get_payout_instrument"
|
|
164
|
+
end
|
|
165
|
+
# resource path
|
|
166
|
+
local_var_path = '/payout-instruments/{payoutInstrumentId}'.sub('{' + 'payoutInstrumentId' + '}', CGI.escape(payout_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: PayoutInstrumentsApi#get_payout_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_payout_instruments(opts = {})
|
|
210
|
+
data, _status_code, _headers = get_payout_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_payout_instruments_with_http_info(opts = {})
|
|
220
|
+
if @api_client.config.debugging
|
|
221
|
+
@api_client.config.logger.debug 'Calling API: PayoutInstrumentsApi.get_payout_instruments ...'
|
|
222
|
+
end
|
|
223
|
+
# resource path
|
|
224
|
+
local_var_path = '/payout-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: PayoutInstrumentsApi#get_payout_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 payout_instrument_id [String] The unique id of the Payout 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_payout_instrument(payout_instrument_id, payout_instrument_update_request, opts = {})
|
|
270
|
+
data, _status_code, _headers = update_payout_instrument_with_http_info(payout_instrument_id, payout_instrument_update_request, opts)
|
|
271
|
+
data
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Updates the PayoutInstrument Resource.
|
|
275
|
+
# @param payout_instrument_id [String] The unique id of the Payout 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_payout_instrument_with_http_info(payout_instrument_id, payout_instrument_update_request, opts = {})
|
|
280
|
+
if @api_client.config.debugging
|
|
281
|
+
@api_client.config.logger.debug 'Calling API: PayoutInstrumentsApi.update_payout_instrument ...'
|
|
282
|
+
end
|
|
283
|
+
# verify the required parameter 'payout_instrument_id' is set
|
|
284
|
+
if @api_client.config.client_side_validation && payout_instrument_id.nil?
|
|
285
|
+
fail ArgumentError, "Missing the required parameter 'payout_instrument_id' when calling PayoutInstrumentsApi.update_payout_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 PayoutInstrumentsApi.update_payout_instrument"
|
|
290
|
+
end
|
|
291
|
+
# resource path
|
|
292
|
+
local_var_path = '/payout-instruments/{payoutInstrumentId}'.sub('{' + 'payoutInstrumentId' + '}', CGI.escape(payout_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: PayoutInstrumentsApi#update_payout_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
328
|
+
end
|
|
329
|
+
return data, status_code, headers
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
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 PayoutProductsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Retrieves a Payout Product
|
|
23
|
+
# Retrieves a Payout Product
|
|
24
|
+
# @param product_id [String] The unique id of Product Resource.
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [PayoutProductResource]
|
|
27
|
+
def get_payout_product(product_id, opts = {})
|
|
28
|
+
data, _status_code, _headers = get_payout_product_with_http_info(product_id, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Retrieves a Payout Product
|
|
33
|
+
# Retrieves a Payout Product
|
|
34
|
+
# @param product_id [String] The unique id of Product Resource.
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(PayoutProductResource, Integer, Hash)>] PayoutProductResource data, response status code and response headers
|
|
37
|
+
def get_payout_product_with_http_info(product_id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: PayoutProductsApi.get_payout_product ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'product_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling PayoutProductsApi.get_payout_product"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/payout-products/{productId}'.sub('{' + 'productId' + '}', CGI.escape(product_id.to_s).gsub('%2F', '/'))
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = opts[:form_params] || {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = opts[:body]
|
|
61
|
+
|
|
62
|
+
# return_type
|
|
63
|
+
return_type = opts[:return_type] || 'PayoutProductResource'
|
|
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(:GET, local_var_path, new_options)
|
|
78
|
+
if @api_client.config.debugging
|
|
79
|
+
@api_client.config.logger.debug "API called: PayoutProductsApi#get_payout_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
|
+
end
|
|
81
|
+
return data, status_code, headers
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|