DealMakerAPI 0.93.2 → 0.93.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/DealMakerAPI.gemspec +1 -1
- data/README.md +8 -4
- data/docs/IncentivePlanApi.md +142 -0
- data/docs/PatchDealIncentivePlanRequest.md +28 -0
- data/docs/PatchInvestorProfilesCorporations.md +2 -0
- data/docs/PatchInvestorProfilesIndividuals.md +2 -0
- data/docs/PatchInvestorProfilesJoints.md +2 -0
- data/docs/PatchInvestorProfilesTrusts.md +2 -0
- data/docs/PostDealIncentivePlanRequest.md +24 -0
- data/docs/V1EntitiesDealsIncentivePlansIncentiveTier.md +6 -0
- data/lib/DealMakerAPI/api/company_api.rb +1 -1
- data/lib/DealMakerAPI/api/country_api.rb +1 -1
- data/lib/DealMakerAPI/api/deal_api.rb +1 -1
- data/lib/DealMakerAPI/api/deals_api.rb +1 -1
- data/lib/DealMakerAPI/api/default_api.rb +1 -1
- data/lib/DealMakerAPI/api/incentive_plan_api.rb +151 -1
- data/lib/DealMakerAPI/api/investor_api.rb +1 -1
- data/lib/DealMakerAPI/api/investor_profile_api.rb +1 -1
- data/lib/DealMakerAPI/api/shareholder_api.rb +1 -1
- data/lib/DealMakerAPI/api/upload_api.rb +1 -1
- data/lib/DealMakerAPI/api/user_api.rb +1 -1
- data/lib/DealMakerAPI/api/users_api.rb +1 -1
- data/lib/DealMakerAPI/api_client.rb +1 -1
- data/lib/DealMakerAPI/api_error.rb +1 -1
- data/lib/DealMakerAPI/configuration.rb +1 -1
- data/lib/DealMakerAPI/models/add506c_document_request.rb +1 -1
- data/lib/DealMakerAPI/models/add_document_request.rb +1 -1
- data/lib/DealMakerAPI/models/bulk_upload_investors_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_bulk_upload_detail_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_bulk_upload_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_company_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_deal_setup_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_shareholder_action_request.rb +1 -1
- data/lib/DealMakerAPI/models/edit_investor_tags_request.rb +1 -1
- data/lib/DealMakerAPI/models/generate_url_request.rb +1 -1
- data/lib/DealMakerAPI/models/patch_deal_incentive_plan_request.rb +273 -0
- data/lib/DealMakerAPI/models/patch_investor_profiles_corporations.rb +12 -2
- data/lib/DealMakerAPI/models/patch_investor_profiles_corporations_beneficial_owners_inner.rb +1 -1
- data/lib/DealMakerAPI/models/patch_investor_profiles_individuals.rb +12 -2
- data/lib/DealMakerAPI/models/patch_investor_profiles_joints.rb +12 -2
- data/lib/DealMakerAPI/models/patch_investor_profiles_trusts.rb +12 -2
- data/lib/DealMakerAPI/models/patch_investor_profiles_trusts_trustees_inner.rb +1 -1
- data/lib/DealMakerAPI/models/patch_investor_request.rb +1 -1
- data/{spec/api_client_spec.rb → lib/DealMakerAPI/models/post_deal_incentive_plan_request.rb} +213 -171
- data/lib/DealMakerAPI/models/post_deals_id_investors.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_corporations.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_corporations_beneficial_owners_inner.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_individuals.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_joints.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_managed.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_trusts.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_trusts_trustees_inner.rb +1 -1
- data/lib/DealMakerAPI/models/post_webhooks_request.rb +1 -1
- data/lib/DealMakerAPI/models/put_deals_id_investors.rb +1 -1
- data/lib/DealMakerAPI/models/put_deals_id_script_tag_environment_request.rb +1 -1
- data/lib/DealMakerAPI/models/put_webhooks_id_request.rb +1 -1
- data/lib/DealMakerAPI/models/run_background_search_request.rb +1 -1
- data/lib/DealMakerAPI/models/send_portal_invite_request.rb +1 -1
- data/lib/DealMakerAPI/models/update_user_password_request.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_address.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_addresses.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_attachment.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_background_check_search.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_bulk_upload.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_bulk_upload_detail.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_bulk_upload_details.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_bulk_uploads.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_company.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_company_deal.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_company_deals.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_countries.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_country.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_enterprise.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_funding_metrics.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_investor_metrics.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_issuer.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_setup.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_setup_user.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deals.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deals_incentive_plan.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deals_incentive_plans_incentive_tier.rb +32 -2
- data/lib/DealMakerAPI/models/v1_entities_deals_price_details.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_dividend.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_dividends.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_express_wire_instruction.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_express_wire_instructions.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_generic_response.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_otp_access_link.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_address.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_corporation.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_account_holder.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_beneficial_owner.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_beneficiary.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_corporation.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_primary_holder.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_provider.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_signing_officer.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_trust.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_trustee.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_id.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_individual.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_item.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_managed.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_owner.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_trust.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profiles.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_user.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investors.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_money_entity.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_payments_self_serve_onboarding_digital_payments_connection_data.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_payments_self_serve_onboarding_payout_account_details_data.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_payments_self_serve_onboarding_payout_account_details_result.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_payments_self_serve_onboarding_qualification_questionnaire_result.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_presigned_url_result.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_shareholder.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_shareholders.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_shareholders_tags.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_state.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_subscription_agreement.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_user.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_webhooks_deal.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_webhooks_security_token.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deal.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deals.rb +1 -1
- data/lib/DealMakerAPI/version.rb +2 -2
- data/lib/DealMakerAPI.rb +3 -1
- data/spec/api/company_api_spec.rb +1 -1
- data/spec/api/country_api_spec.rb +1 -1
- data/spec/api/deal_api_spec.rb +1 -1
- data/spec/api/deals_api_spec.rb +1 -1
- data/spec/api/default_api_spec.rb +1 -1
- data/spec/api/incentive_plan_api_spec.rb +28 -1
- data/spec/api/investor_api_spec.rb +1 -1
- data/spec/api/investor_profile_api_spec.rb +1 -1
- data/spec/api/shareholder_api_spec.rb +1 -1
- data/spec/api/upload_api_spec.rb +1 -1
- data/spec/api/user_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +1 -1
- data/spec/models/add506c_document_request_spec.rb +1 -1
- data/spec/models/add_document_request_spec.rb +1 -1
- data/spec/models/bulk_upload_investors_request_spec.rb +1 -1
- data/spec/models/create_bulk_upload_detail_request_spec.rb +1 -1
- data/spec/models/create_bulk_upload_request_spec.rb +1 -1
- data/spec/models/create_company_request_spec.rb +1 -1
- data/spec/models/create_deal_setup_request_spec.rb +1 -1
- data/spec/models/create_shareholder_action_request_spec.rb +1 -1
- data/spec/models/edit_investor_tags_request_spec.rb +1 -1
- data/spec/models/generate_url_request_spec.rb +1 -1
- data/spec/models/patch_deal_incentive_plan_request_spec.rb +66 -0
- data/spec/models/patch_investor_profiles_corporations_beneficial_owners_inner_spec.rb +1 -1
- data/spec/models/patch_investor_profiles_corporations_spec.rb +7 -1
- data/spec/models/patch_investor_profiles_individuals_spec.rb +7 -1
- data/spec/models/patch_investor_profiles_joints_spec.rb +7 -1
- data/spec/models/patch_investor_profiles_trusts_spec.rb +7 -1
- data/spec/models/patch_investor_profiles_trusts_trustees_inner_spec.rb +1 -1
- data/spec/models/patch_investor_request_spec.rb +1 -1
- data/spec/{configuration_spec.rb → models/post_deal_incentive_plan_request_spec.rb} +34 -22
- data/spec/models/post_deals_id_investors_spec.rb +1 -1
- data/spec/models/post_investor_profiles_corporations_beneficial_owners_inner_spec.rb +1 -1
- data/spec/models/post_investor_profiles_corporations_spec.rb +1 -1
- data/spec/models/post_investor_profiles_individuals_spec.rb +1 -1
- data/spec/models/post_investor_profiles_joints_spec.rb +1 -1
- data/spec/models/post_investor_profiles_managed_spec.rb +1 -1
- data/spec/models/post_investor_profiles_trusts_spec.rb +1 -1
- data/spec/models/post_investor_profiles_trusts_trustees_inner_spec.rb +1 -1
- data/spec/models/post_webhooks_request_spec.rb +1 -1
- data/spec/models/put_deals_id_investors_spec.rb +1 -1
- data/spec/models/put_deals_id_script_tag_environment_request_spec.rb +1 -1
- data/spec/models/put_webhooks_id_request_spec.rb +1 -1
- data/spec/models/run_background_search_request_spec.rb +1 -1
- data/spec/models/send_portal_invite_request_spec.rb +1 -1
- data/spec/models/update_user_password_request_spec.rb +1 -1
- data/spec/models/v1_entities_address_spec.rb +1 -1
- data/spec/models/v1_entities_addresses_spec.rb +1 -1
- data/spec/models/v1_entities_attachment_spec.rb +1 -1
- data/spec/models/v1_entities_background_check_search_spec.rb +1 -1
- data/spec/models/v1_entities_bulk_upload_detail_spec.rb +1 -1
- data/spec/models/v1_entities_bulk_upload_details_spec.rb +1 -1
- data/spec/models/v1_entities_bulk_upload_spec.rb +1 -1
- data/spec/models/v1_entities_bulk_uploads_spec.rb +1 -1
- data/spec/models/v1_entities_company_deal_spec.rb +1 -1
- data/spec/models/v1_entities_company_deals_spec.rb +1 -1
- data/spec/models/v1_entities_company_spec.rb +1 -1
- data/spec/models/v1_entities_countries_spec.rb +1 -1
- data/spec/models/v1_entities_country_spec.rb +1 -1
- data/spec/models/v1_entities_deal_enterprise_spec.rb +1 -1
- data/spec/models/v1_entities_deal_funding_metrics_spec.rb +1 -1
- data/spec/models/v1_entities_deal_investor_metrics_spec.rb +1 -1
- data/spec/models/v1_entities_deal_issuer_spec.rb +1 -1
- data/spec/models/v1_entities_deal_setup_spec.rb +1 -1
- data/spec/models/v1_entities_deal_setup_user_spec.rb +1 -1
- data/spec/models/v1_entities_deal_spec.rb +1 -1
- data/spec/models/v1_entities_deals_incentive_plan_spec.rb +1 -1
- data/spec/models/v1_entities_deals_incentive_plans_incentive_tier_spec.rb +19 -1
- data/spec/models/v1_entities_deals_price_details_spec.rb +1 -1
- data/spec/models/v1_entities_deals_spec.rb +1 -1
- data/spec/models/v1_entities_dividend_spec.rb +1 -1
- data/spec/models/v1_entities_dividends_spec.rb +1 -1
- data/spec/models/v1_entities_express_wire_instruction_spec.rb +1 -1
- data/spec/models/v1_entities_express_wire_instructions_spec.rb +1 -1
- data/spec/models/v1_entities_generic_response_spec.rb +1 -1
- data/spec/models/v1_entities_investor_otp_access_link_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_address_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_corporation_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_beneficial_owner_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_beneficiary_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_corporation_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_primary_holder_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_provider_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_signing_officer_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_trust_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_trustee_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_id_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_individual_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_item_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_joint_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_managed_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_owner_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_trust_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profiles_spec.rb +1 -1
- data/spec/models/v1_entities_investor_spec.rb +1 -1
- data/spec/models/v1_entities_investor_user_spec.rb +1 -1
- data/spec/models/v1_entities_investors_spec.rb +1 -1
- data/spec/models/v1_entities_money_entity_spec.rb +1 -1
- data/spec/models/v1_entities_payments_self_serve_onboarding_digital_payments_connection_data_spec.rb +1 -1
- data/spec/models/v1_entities_payments_self_serve_onboarding_payout_account_details_data_spec.rb +1 -1
- data/spec/models/v1_entities_payments_self_serve_onboarding_payout_account_details_result_spec.rb +1 -1
- data/spec/models/v1_entities_payments_self_serve_onboarding_qualification_questionnaire_result_spec.rb +1 -1
- data/spec/models/v1_entities_presigned_url_result_spec.rb +1 -1
- data/spec/models/v1_entities_shareholder_spec.rb +1 -1
- data/spec/models/v1_entities_shareholders_spec.rb +1 -1
- data/spec/models/v1_entities_shareholders_tags_spec.rb +1 -1
- data/spec/models/v1_entities_state_spec.rb +1 -1
- data/spec/models/v1_entities_subscription_agreement_spec.rb +1 -1
- data/spec/models/v1_entities_user_spec.rb +1 -1
- data/spec/models/v1_entities_webhooks_deal_spec.rb +1 -1
- data/spec/models/v1_entities_webhooks_security_token_spec.rb +1 -1
- data/spec/models/v1_entities_webhooks_subscription_deal_spec.rb +1 -1
- data/spec/models/v1_entities_webhooks_subscription_deals_spec.rb +1 -1
- data/spec/models/v1_entities_webhooks_subscription_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +10 -6
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.75.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.
|
|
9
|
+
OpenAPI Generator version: 7.3.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -16,6 +16,9 @@ require 'time'
|
|
|
16
16
|
module DealMakerAPI
|
|
17
17
|
# Patch trust investor profile
|
|
18
18
|
class PatchInvestorProfilesTrusts
|
|
19
|
+
# The email associated with the profile to be updated.
|
|
20
|
+
attr_accessor :email
|
|
21
|
+
|
|
19
22
|
# The United States accredited investor information.
|
|
20
23
|
attr_accessor :us_accredited_category
|
|
21
24
|
|
|
@@ -82,6 +85,7 @@ module DealMakerAPI
|
|
|
82
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
83
86
|
def self.attribute_map
|
|
84
87
|
{
|
|
88
|
+
:'email' => :'email',
|
|
85
89
|
:'us_accredited_category' => :'us_accredited_category',
|
|
86
90
|
:'ca_accredited_investor' => :'ca_accredited_investor',
|
|
87
91
|
:'name' => :'name',
|
|
@@ -107,6 +111,7 @@ module DealMakerAPI
|
|
|
107
111
|
# Attribute type mapping.
|
|
108
112
|
def self.openapi_types
|
|
109
113
|
{
|
|
114
|
+
:'email' => :'String',
|
|
110
115
|
:'us_accredited_category' => :'String',
|
|
111
116
|
:'ca_accredited_investor' => :'String',
|
|
112
117
|
:'name' => :'String',
|
|
@@ -145,6 +150,10 @@ module DealMakerAPI
|
|
|
145
150
|
h[k.to_sym] = v
|
|
146
151
|
}
|
|
147
152
|
|
|
153
|
+
if attributes.key?(:'email')
|
|
154
|
+
self.email = attributes[:'email']
|
|
155
|
+
end
|
|
156
|
+
|
|
148
157
|
if attributes.key?(:'us_accredited_category')
|
|
149
158
|
self.us_accredited_category = attributes[:'us_accredited_category']
|
|
150
159
|
end
|
|
@@ -248,6 +257,7 @@ module DealMakerAPI
|
|
|
248
257
|
def ==(o)
|
|
249
258
|
return true if self.equal?(o)
|
|
250
259
|
self.class == o.class &&
|
|
260
|
+
email == o.email &&
|
|
251
261
|
us_accredited_category == o.us_accredited_category &&
|
|
252
262
|
ca_accredited_investor == o.ca_accredited_investor &&
|
|
253
263
|
name == o.name &&
|
|
@@ -273,7 +283,7 @@ module DealMakerAPI
|
|
|
273
283
|
# Calculates hash code according to all attributes.
|
|
274
284
|
# @return [Integer] Hash code
|
|
275
285
|
def hash
|
|
276
|
-
[us_accredited_category, ca_accredited_investor, name, date, phone_number, street_address, unit2, city, region, postal_code, income, net_worth, reg_cf_prior_offerings_amount, trustees].hash
|
|
286
|
+
[email, us_accredited_category, ca_accredited_investor, name, date, phone_number, street_address, unit2, city, region, postal_code, income, net_worth, reg_cf_prior_offerings_amount, trustees].hash
|
|
277
287
|
end
|
|
278
288
|
|
|
279
289
|
# Builds the object from hash
|
data/{spec/api_client_spec.rb → lib/DealMakerAPI/models/post_deal_incentive_plan_request.rb}
RENAMED
|
@@ -6,223 +6,265 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.75.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.
|
|
9
|
+
OpenAPI Generator version: 7.3.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
|
-
require '
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
it 'removes http from host' do
|
|
20
|
-
DealMakerAPI.configure { |c| c.host = 'http://example.com' }
|
|
21
|
-
expect(DealMakerAPI::Configuration.default.host).to eq('example.com')
|
|
22
|
-
end
|
|
16
|
+
module DealMakerAPI
|
|
17
|
+
class PostDealIncentivePlanRequest
|
|
18
|
+
# The incentive plan active date.
|
|
19
|
+
attr_accessor :active_at
|
|
23
20
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
expect(DealMakerAPI::ApiClient.default.config.host).to eq('wookiee.com')
|
|
27
|
-
end
|
|
21
|
+
# The incentive plan funded by offset in days.
|
|
22
|
+
attr_accessor :funded_by_offset
|
|
28
23
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
expect(DealMakerAPI::Configuration.default.host).to eq('hobo.com')
|
|
32
|
-
end
|
|
33
|
-
end
|
|
24
|
+
# The incentive plan tier percentage.
|
|
25
|
+
attr_accessor :tiers_incentive_percentage
|
|
34
26
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
DealMakerAPI.configure { |c| c.base_path = 'v4/dog' }
|
|
38
|
-
expect(DealMakerAPI::Configuration.default.base_path).to eq('/v4/dog')
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
it "doesn't prepend a slash if one is already there" do
|
|
42
|
-
DealMakerAPI.configure { |c| c.base_path = '/v4/dog' }
|
|
43
|
-
expect(DealMakerAPI::Configuration.default.base_path).to eq('/v4/dog')
|
|
44
|
-
end
|
|
27
|
+
# The incentive plan tier end date.
|
|
28
|
+
attr_accessor :tiers_end_at
|
|
45
29
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'active_at' => :'active_at',
|
|
34
|
+
:'funded_by_offset' => :'funded_by_offset',
|
|
35
|
+
:'tiers_incentive_percentage' => :'tiers[incentive_percentage]',
|
|
36
|
+
:'tiers_end_at' => :'tiers[end_at]'
|
|
37
|
+
}
|
|
51
38
|
end
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
describe 'params_encoding in #build_request' do
|
|
55
|
-
let(:config) { DealMakerAPI::Configuration.new }
|
|
56
|
-
let(:api_client) { DealMakerAPI::ApiClient.new(config) }
|
|
57
39
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
|
41
|
+
def self.acceptable_attributes
|
|
42
|
+
attribute_map.values
|
|
43
|
+
end
|
|
61
44
|
|
|
62
|
-
|
|
63
|
-
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.openapi_types
|
|
47
|
+
{
|
|
48
|
+
:'active_at' => :'Time',
|
|
49
|
+
:'funded_by_offset' => :'Integer',
|
|
50
|
+
:'tiers_incentive_percentage' => :'Array<Float>',
|
|
51
|
+
:'tiers_end_at' => :'Array<Time>'
|
|
52
|
+
}
|
|
64
53
|
end
|
|
65
54
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
])
|
|
70
59
|
end
|
|
71
|
-
end
|
|
72
60
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DealMakerAPI::PostDealIncentivePlanRequest` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DealMakerAPI::PostDealIncentivePlanRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
72
|
+
end
|
|
73
|
+
h[k.to_sym] = v
|
|
74
|
+
}
|
|
76
75
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
if attributes.key?(:'active_at')
|
|
77
|
+
self.active_at = attributes[:'active_at']
|
|
78
|
+
else
|
|
79
|
+
self.active_at = nil
|
|
80
|
+
end
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
if attributes.key?(:'funded_by_offset')
|
|
83
|
+
self.funded_by_offset = attributes[:'funded_by_offset']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'tiers_incentive_percentage')
|
|
87
|
+
if (value = attributes[:'tiers_incentive_percentage']).is_a?(Array)
|
|
88
|
+
self.tiers_incentive_percentage = value
|
|
89
|
+
end
|
|
90
|
+
else
|
|
91
|
+
self.tiers_incentive_percentage = nil
|
|
92
|
+
end
|
|
84
93
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
94
|
+
if attributes.key?(:'tiers_end_at')
|
|
95
|
+
if (value = attributes[:'tiers_end_at']).is_a?(Array)
|
|
96
|
+
self.tiers_end_at = value
|
|
97
|
+
end
|
|
98
|
+
else
|
|
99
|
+
self.tiers_end_at = nil
|
|
100
|
+
end
|
|
89
101
|
end
|
|
90
|
-
end
|
|
91
102
|
|
|
103
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
104
|
+
# @return Array for valid properties with the reasons
|
|
105
|
+
def list_invalid_properties
|
|
106
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
107
|
+
invalid_properties = Array.new
|
|
108
|
+
if @active_at.nil?
|
|
109
|
+
invalid_properties.push('invalid value for "active_at", active_at cannot be nil.')
|
|
110
|
+
end
|
|
92
111
|
|
|
112
|
+
if @tiers_incentive_percentage.nil?
|
|
113
|
+
invalid_properties.push('invalid value for "tiers_incentive_percentage", tiers_incentive_percentage cannot be nil.')
|
|
114
|
+
end
|
|
93
115
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
headers = { 'Content-Type' => 'application/json' }
|
|
98
|
-
response = double('response', headers: headers, body: '[12, 34]')
|
|
99
|
-
data = api_client.deserialize(response, 'Array<Integer>')
|
|
100
|
-
expect(data).to be_instance_of(Array)
|
|
101
|
-
expect(data).to eq([12, 34])
|
|
102
|
-
end
|
|
116
|
+
if @tiers_end_at.nil?
|
|
117
|
+
invalid_properties.push('invalid value for "tiers_end_at", tiers_end_at cannot be nil.')
|
|
118
|
+
end
|
|
103
119
|
|
|
104
|
-
|
|
105
|
-
api_client = DealMakerAPI::ApiClient.new
|
|
106
|
-
headers = { 'Content-Type' => 'application/json' }
|
|
107
|
-
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
|
108
|
-
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
|
109
|
-
expect(data).to be_instance_of(Array)
|
|
110
|
-
expect(data).to eq([[12, 34], [56]])
|
|
120
|
+
invalid_properties
|
|
111
121
|
end
|
|
112
122
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
# Check to see if the all the properties in the model are valid
|
|
124
|
+
# @return true if the model is valid
|
|
125
|
+
def valid?
|
|
126
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
127
|
+
return false if @active_at.nil?
|
|
128
|
+
return false if @tiers_incentive_percentage.nil?
|
|
129
|
+
return false if @tiers_end_at.nil?
|
|
130
|
+
true
|
|
120
131
|
end
|
|
121
|
-
end
|
|
122
132
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
|
133
|
+
# Checks equality by comparing each attribute.
|
|
134
|
+
# @param [Object] Object to be compared
|
|
135
|
+
def ==(o)
|
|
136
|
+
return true if self.equal?(o)
|
|
137
|
+
self.class == o.class &&
|
|
138
|
+
active_at == o.active_at &&
|
|
139
|
+
funded_by_offset == o.funded_by_offset &&
|
|
140
|
+
tiers_incentive_percentage == o.tiers_incentive_percentage &&
|
|
141
|
+
tiers_end_at == o.tiers_end_at
|
|
133
142
|
end
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
describe '#build_collection_param' do
|
|
137
|
-
let(:param) { ['aa', 'bb', 'cc'] }
|
|
138
|
-
let(:api_client) { DealMakerAPI::ApiClient.new }
|
|
139
143
|
|
|
140
|
-
|
|
141
|
-
|
|
144
|
+
# @see the `==` method
|
|
145
|
+
# @param [Object] Object to be compared
|
|
146
|
+
def eql?(o)
|
|
147
|
+
self == o
|
|
142
148
|
end
|
|
143
149
|
|
|
144
|
-
|
|
145
|
-
|
|
150
|
+
# Calculates hash code according to all attributes.
|
|
151
|
+
# @return [Integer] Hash code
|
|
152
|
+
def hash
|
|
153
|
+
[active_at, funded_by_offset, tiers_incentive_percentage, tiers_end_at].hash
|
|
146
154
|
end
|
|
147
155
|
|
|
148
|
-
|
|
149
|
-
|
|
156
|
+
# Builds the object from hash
|
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
158
|
+
# @return [Object] Returns the model itself
|
|
159
|
+
def self.build_from_hash(attributes)
|
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
|
161
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
162
|
+
transformed_hash = {}
|
|
163
|
+
openapi_types.each_pair do |key, type|
|
|
164
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
165
|
+
transformed_hash["#{key}"] = nil
|
|
166
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
167
|
+
# check to ensure the input is an array given that the attribute
|
|
168
|
+
# is documented as an array but the input is not
|
|
169
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
170
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
171
|
+
end
|
|
172
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
173
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
new(transformed_hash)
|
|
150
177
|
end
|
|
151
178
|
|
|
152
|
-
|
|
153
|
-
|
|
179
|
+
# Deserializes the data based on type
|
|
180
|
+
# @param string type Data type
|
|
181
|
+
# @param string value Value to be deserialized
|
|
182
|
+
# @return [Object] Deserialized data
|
|
183
|
+
def self._deserialize(type, value)
|
|
184
|
+
case type.to_sym
|
|
185
|
+
when :Time
|
|
186
|
+
Time.parse(value)
|
|
187
|
+
when :Date
|
|
188
|
+
Date.parse(value)
|
|
189
|
+
when :String
|
|
190
|
+
value.to_s
|
|
191
|
+
when :Integer
|
|
192
|
+
value.to_i
|
|
193
|
+
when :Float
|
|
194
|
+
value.to_f
|
|
195
|
+
when :Boolean
|
|
196
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
197
|
+
true
|
|
198
|
+
else
|
|
199
|
+
false
|
|
200
|
+
end
|
|
201
|
+
when :Object
|
|
202
|
+
# generic object (usually a Hash), return directly
|
|
203
|
+
value
|
|
204
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
205
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
206
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
207
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
208
|
+
k_type = Regexp.last_match[:k_type]
|
|
209
|
+
v_type = Regexp.last_match[:v_type]
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each do |k, v|
|
|
212
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
else # model
|
|
216
|
+
# models (e.g. Pet) or oneOf
|
|
217
|
+
klass = DealMakerAPI.const_get(type)
|
|
218
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
219
|
+
end
|
|
154
220
|
end
|
|
155
221
|
|
|
156
|
-
|
|
157
|
-
|
|
222
|
+
# Returns the string representation of the object
|
|
223
|
+
# @return [String] String presentation of the object
|
|
224
|
+
def to_s
|
|
225
|
+
to_hash.to_s
|
|
158
226
|
end
|
|
159
227
|
|
|
160
|
-
|
|
161
|
-
|
|
228
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
|
230
|
+
def to_body
|
|
231
|
+
to_hash
|
|
162
232
|
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
describe '#json_mime?' do
|
|
166
|
-
let(:api_client) { DealMakerAPI::ApiClient.new }
|
|
167
233
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
234
|
+
# Returns the object in the form of hash
|
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
|
236
|
+
def to_hash
|
|
237
|
+
hash = {}
|
|
238
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
239
|
+
value = self.send(attr)
|
|
240
|
+
if value.nil?
|
|
241
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
242
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
243
|
+
end
|
|
175
244
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
245
|
+
hash[param] = _to_hash(value)
|
|
246
|
+
end
|
|
247
|
+
hash
|
|
179
248
|
end
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
describe '#select_header_accept' do
|
|
183
|
-
let(:api_client) { DealMakerAPI::ApiClient.new }
|
|
184
|
-
|
|
185
|
-
it 'works' do
|
|
186
|
-
expect(api_client.select_header_accept(nil)).to be_nil
|
|
187
|
-
expect(api_client.select_header_accept([])).to be_nil
|
|
188
|
-
|
|
189
|
-
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
|
190
|
-
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
191
|
-
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
192
249
|
|
|
193
|
-
|
|
194
|
-
|
|
250
|
+
# Outputs non-array value in the form of hash
|
|
251
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
252
|
+
# @param [Object] value Any valid value
|
|
253
|
+
# @return [Hash] Returns the value in the form of hash
|
|
254
|
+
def _to_hash(value)
|
|
255
|
+
if value.is_a?(Array)
|
|
256
|
+
value.compact.map { |v| _to_hash(v) }
|
|
257
|
+
elsif value.is_a?(Hash)
|
|
258
|
+
{}.tap do |hash|
|
|
259
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
260
|
+
end
|
|
261
|
+
elsif value.respond_to? :to_hash
|
|
262
|
+
value.to_hash
|
|
263
|
+
else
|
|
264
|
+
value
|
|
265
|
+
end
|
|
195
266
|
end
|
|
196
|
-
end
|
|
197
267
|
|
|
198
|
-
describe '#select_header_content_type' do
|
|
199
|
-
let(:api_client) { DealMakerAPI::ApiClient.new }
|
|
200
|
-
|
|
201
|
-
it 'works' do
|
|
202
|
-
expect(api_client.select_header_content_type(nil)).to be_nil
|
|
203
|
-
expect(api_client.select_header_content_type([])).to be_nil
|
|
204
|
-
|
|
205
|
-
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
|
206
|
-
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
207
|
-
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
208
|
-
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
|
209
|
-
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
|
210
|
-
end
|
|
211
268
|
end
|
|
212
269
|
|
|
213
|
-
describe '#sanitize_filename' do
|
|
214
|
-
let(:api_client) { DealMakerAPI::ApiClient.new }
|
|
215
|
-
|
|
216
|
-
it 'works' do
|
|
217
|
-
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
|
218
|
-
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
|
219
|
-
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
|
220
|
-
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
|
221
|
-
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
|
222
|
-
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
|
223
|
-
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
|
224
|
-
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
|
225
|
-
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
|
226
|
-
end
|
|
227
|
-
end
|
|
228
270
|
end
|