bf_ruby2 2.2016.237 → 3.2017.174
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +39 -0
- data/.rspec +2 -0
- data/.swagger-codegen-ignore +23 -0
- data/.swagger-codegen/VERSION +1 -0
- data/Gemfile +7 -0
- data/README.md +112 -58
- data/Rakefile +8 -0
- data/bf_ruby2.gemspec +6 -16
- data/docs/Product.md +1 -1
- data/docs/ProductRatePlan.md +1 -1
- data/docs/TokenizationApi.md +4 -4
- data/git_push.sh +0 -12
- data/lib/bf_ruby2.rb +23 -34
- data/lib/bf_ruby2/api/accounts_api.rb +148 -183
- data/lib/bf_ruby2/api/addresses_api.rb +13 -28
- data/lib/bf_ruby2/api/amendments_api.rb +80 -117
- data/lib/bf_ruby2/api/analytics_api.rb +88 -121
- data/lib/bf_ruby2/api/auditlogs_api.rb +33 -60
- data/lib/bf_ruby2/api/charges_api.rb +51 -84
- data/lib/bf_ruby2/api/clients_api.rb +22 -45
- data/lib/bf_ruby2/api/configurations_api.rb +23 -48
- data/lib/bf_ruby2/api/couponbook_api.rb +56 -89
- data/lib/bf_ruby2/api/couponbookdefinition_api.rb +35 -62
- data/lib/bf_ruby2/api/coupondefinition_api.rb +28 -53
- data/lib/bf_ruby2/api/couponinstance_api.rb +65 -102
- data/lib/bf_ruby2/api/couponmodifier_api.rb +39 -68
- data/lib/bf_ruby2/api/couponrule_api.rb +28 -53
- data/lib/bf_ruby2/api/coupons_api.rb +52 -81
- data/lib/bf_ruby2/api/creditnotes_api.rb +43 -64
- data/lib/bf_ruby2/api/cybersourcetokens_api.rb +34 -53
- data/lib/bf_ruby2/api/dunninglines_api.rb +37 -64
- data/lib/bf_ruby2/api/emailproviders_api.rb +22 -45
- data/lib/bf_ruby2/api/emails_api.rb +19 -36
- data/lib/bf_ruby2/api/emailsubscriptions_api.rb +37 -58
- data/lib/bf_ruby2/api/fixedtermdefinitions_api.rb +13 -28
- data/lib/bf_ruby2/api/fixedterms_api.rb +7 -20
- data/lib/bf_ruby2/api/invoices_api.rb +296 -397
- data/lib/bf_ruby2/api/metadata_api.rb +19 -42
- data/lib/bf_ruby2/api/notifications_api.rb +44 -69
- data/lib/bf_ruby2/api/organizations_api.rb +37 -70
- data/lib/bf_ruby2/api/passwords_api.rb +7 -20
- data/lib/bf_ruby2/api/paymentmethods_api.rb +48 -81
- data/lib/bf_ruby2/api/paymentmethodsubscriptionlinks_api.rb +16 -29
- data/lib/bf_ruby2/api/payments_api.rb +52 -85
- data/lib/bf_ruby2/api/periods_api.rb +10 -31
- data/lib/bf_ruby2/api/permissions_api.rb +32 -61
- data/lib/bf_ruby2/api/pricingcalculator_api.rb +19 -36
- data/lib/bf_ruby2/api/pricingcomponents_api.rb +36 -63
- data/lib/bf_ruby2/api/pricingcomponenttiers_api.rb +30 -55
- data/lib/bf_ruby2/api/pricingcomponentvaluechanges_api.rb +37 -64
- data/lib/bf_ruby2/api/pricingcomponentvalues_api.rb +30 -55
- data/lib/bf_ruby2/api/productrateplans_api.rb +101 -134
- data/lib/bf_ruby2/api/products_api.rb +59 -88
- data/lib/bf_ruby2/api/profiles_api.rb +30 -55
- data/lib/bf_ruby2/api/quotes_api.rb +7 -20
- data/lib/bf_ruby2/api/receipts_api.rb +41 -78
- data/lib/bf_ruby2/api/refunds_api.rb +49 -80
- data/lib/bf_ruby2/api/roles_api.rb +42 -65
- data/lib/bf_ruby2/api/search_api.rb +7 -20
- data/lib/bf_ruby2/api/subscriptions_api.rb +414 -477
- data/lib/bf_ruby2/api/synch_app_configs_api.rb +26 -45
- data/lib/bf_ruby2/api/synch_configs_api.rb +35 -62
- data/lib/bf_ruby2/api/synch_jobs_api.rb +50 -81
- data/lib/bf_ruby2/api/taxationlinks_api.rb +36 -63
- data/lib/bf_ruby2/api/taxationstrategies_api.rb +58 -93
- data/lib/bf_ruby2/api/time_api.rb +7 -20
- data/lib/bf_ruby2/api/tokenization_api.rb +29 -60
- data/lib/bf_ruby2/api/unitofmeasure_api.rb +22 -45
- data/lib/bf_ruby2/api/usage_api.rb +43 -62
- data/lib/bf_ruby2/api/usageperiods_api.rb +25 -44
- data/lib/bf_ruby2/api/usageroundingstrategies_api.rb +27 -46
- data/lib/bf_ruby2/api/usagesessions_api.rb +25 -48
- data/lib/bf_ruby2/api/usernames_api.rb +7 -20
- data/lib/bf_ruby2/api/users_api.rb +67 -102
- data/lib/bf_ruby2/api/vaultedgateways_api.rb +79 -116
- data/lib/bf_ruby2/api/webhooks_api.rb +43 -70
- data/lib/bf_ruby2/api_client.rb +52 -42
- data/lib/bf_ruby2/api_error.rb +15 -18
- data/lib/bf_ruby2/configuration.rb +7 -12
- data/lib/bf_ruby2/models/account.rb +12 -15
- data/lib/bf_ruby2/models/account_ltv_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/account_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/account_payments_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/add_charge_request.rb +8 -15
- data/lib/bf_ruby2/models/add_charge_to_account_response.rb +4 -15
- data/lib/bf_ruby2/models/add_charge_to_account_response_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/add_charges_to_account_api_request.rb +4 -15
- data/lib/bf_ruby2/models/add_coupon_code_request.rb +8 -15
- data/lib/bf_ruby2/models/add_payment_method_request.rb +4 -15
- data/lib/bf_ruby2/models/add_taxation_strategy_request.rb +4 -15
- data/lib/bf_ruby2/models/address.rb +24 -15
- data/lib/bf_ruby2/models/address_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/aggregating_component.rb +12 -15
- data/lib/bf_ruby2/models/amendment.rb +24 -15
- data/lib/bf_ruby2/models/amendment_discard_amendment.rb +28 -15
- data/lib/bf_ruby2/models/amendment_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/amendment_price_n_time_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/api_configuration_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/api_quote.rb +12 -15
- data/lib/bf_ruby2/models/api_quote_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/api_quote_response_quantity.rb +4 -15
- data/lib/bf_ruby2/models/audit_entry.rb +40 -15
- data/lib/bf_ruby2/models/audit_entry_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/auth_capture_request.rb +8 -15
- data/lib/bf_ruby2/models/authorize_net_token_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/bank_account_verification_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/batch_update_pricing_component_values_request.rb +8 -15
- data/lib/bf_ruby2/models/bf_error.rb +4 -15
- data/lib/bf_ruby2/models/bf_permission.rb +4 -15
- data/lib/bf_ruby2/models/bf_permission_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/billforward_managed_payments_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/billing_entity_base.rb +4 -15
- data/lib/bf_ruby2/models/braintree_auth_capture_request.rb +12 -15
- data/lib/bf_ruby2/models/braintree_capture_request.rb +24 -15
- data/lib/bf_ruby2/models/braintree_token_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/cancel_subscription_request.rb +12 -15
- data/lib/bf_ruby2/models/cancellation_amendment.rb +36 -15
- data/lib/bf_ruby2/models/cass_churn_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/cass_payment_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/cass_upgrade_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/client.rb +44 -15
- data/lib/bf_ruby2/models/client_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/component_change.rb +36 -15
- data/lib/bf_ruby2/models/component_cost.rb +4 -15
- data/lib/bf_ruby2/models/compound_usage.rb +12 -15
- data/lib/bf_ruby2/models/compound_usage_session.rb +8 -15
- data/lib/bf_ruby2/models/coupon.rb +32 -15
- data/lib/bf_ruby2/models/coupon_book.rb +44 -15
- data/lib/bf_ruby2/models/coupon_book_definition.rb +52 -15
- data/lib/bf_ruby2/models/coupon_book_definition_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/coupon_book_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/coupon_definition.rb +56 -15
- data/lib/bf_ruby2/models/coupon_definition_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/coupon_discount.rb +4 -15
- data/lib/bf_ruby2/models/coupon_discount_estimate.rb +28 -15
- data/lib/bf_ruby2/models/coupon_instance.rb +48 -15
- data/lib/bf_ruby2/models/coupon_instance_existing_value.rb +12 -15
- data/lib/bf_ruby2/models/coupon_instance_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/coupon_modifier_base.rb +40 -15
- data/lib/bf_ruby2/models/coupon_modifier_base_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/coupon_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/coupon_rule.rb +56 -15
- data/lib/bf_ruby2/models/coupon_rule_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/coupon_unique_codes_request.rb +12 -15
- data/lib/bf_ruby2/models/coupon_unique_codes_response.rb +4 -15
- data/lib/bf_ruby2/models/coupon_unique_codes_response_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/coupon_wrapper_response.rb +4 -15
- data/lib/bf_ruby2/models/create_account_profile_request.rb +8 -15
- data/lib/bf_ruby2/models/create_account_request.rb +4 -15
- data/lib/bf_ruby2/models/create_address_request.rb +28 -15
- data/lib/bf_ruby2/models/create_aggregating_component_request.rb +8 -15
- data/lib/bf_ruby2/models/create_aggregating_subscription_request.rb +12 -15
- data/lib/bf_ruby2/models/create_profile_address_request.rb +24 -15
- data/lib/bf_ruby2/models/create_subscription_batch_request.rb +4 -15
- data/lib/bf_ruby2/models/create_subscription_charge_amendment.rb +36 -15
- data/lib/bf_ruby2/models/create_subscription_request.rb +16 -15
- data/lib/bf_ruby2/models/credit_account_request.rb +12 -15
- data/lib/bf_ruby2/models/credit_note.rb +24 -15
- data/lib/bf_ruby2/models/credit_note_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/credit_subscription_request.rb +8 -15
- data/lib/bf_ruby2/models/cybersource_token_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/data_synchronisation_app_configuration_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/data_synchronisation_configuration.rb +32 -15
- data/lib/bf_ruby2/models/data_synchronisation_configuration_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/data_synchronization_job_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/debts_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/dunning_line.rb +32 -15
- data/lib/bf_ruby2/models/dunning_line_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/dynamic_metadata.rb +4 -15
- data/lib/bf_ruby2/models/email.rb +12 -15
- data/lib/bf_ruby2/models/email_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/email_provider.rb +24 -15
- data/lib/bf_ruby2/models/email_provider_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/email_subscription.rb +16 -15
- data/lib/bf_ruby2/models/email_subscription_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/end_trial_amendment.rb +24 -15
- data/lib/bf_ruby2/models/event.rb +36 -15
- data/lib/bf_ruby2/models/event_data.rb +12 -15
- data/lib/bf_ruby2/models/file_sham.rb +4 -15
- data/lib/bf_ruby2/models/fixed_term.rb +56 -15
- data/lib/bf_ruby2/models/fixed_term_definition_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/fixed_term_expiry_amendment.rb +28 -15
- data/lib/bf_ruby2/models/fixed_term_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/flat_pricing_component.rb +48 -15
- data/lib/bf_ruby2/models/import_invoice_line.rb +4 -15
- data/lib/bf_ruby2/models/insertable_billing_entity.rb +40 -15
- data/lib/bf_ruby2/models/invoice.rb +60 -15
- data/lib/bf_ruby2/models/invoice_charge_request.rb +4 -15
- data/lib/bf_ruby2/models/invoice_line.rb +76 -15
- data/lib/bf_ruby2/models/invoice_line_payment.rb +108 -15
- data/lib/bf_ruby2/models/invoice_line_payment_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/invoice_next_execution_attempt_amendment.rb +32 -15
- data/lib/bf_ruby2/models/invoice_outstanding_charges_amendment.rb +28 -15
- data/lib/bf_ruby2/models/invoice_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/invoice_payment.rb +48 -15
- data/lib/bf_ruby2/models/invoice_recalculation_amendment.rb +40 -15
- data/lib/bf_ruby2/models/invoice_recalculation_request.rb +20 -15
- data/lib/bf_ruby2/models/issue_invoice_amendment.rb +28 -15
- data/lib/bf_ruby2/models/metadata_key_values_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/migration_request.rb +16 -15
- data/lib/bf_ruby2/models/model_alias.rb +20 -15
- data/lib/bf_ruby2/models/mutable_billing_entity.rb +48 -15
- data/lib/bf_ruby2/models/nested_charge_request.rb +4 -15
- data/lib/bf_ruby2/models/notification.rb +40 -15
- data/lib/bf_ruby2/models/notification_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/organization.rb +20 -15
- data/lib/bf_ruby2/models/organization_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/password.rb +20 -15
- data/lib/bf_ruby2/models/password_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/password_reset_request.rb +8 -15
- data/lib/bf_ruby2/models/pause_request.rb +4 -15
- data/lib/bf_ruby2/models/payment.rb +52 -15
- data/lib/bf_ruby2/models/payment_method.rb +28 -15
- data/lib/bf_ruby2/models/payment_method_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/payment_method_subscription_link.rb +12 -15
- data/lib/bf_ruby2/models/payment_method_subscription_link_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/payment_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/payment_retry_request.rb +4 -15
- data/lib/bf_ruby2/models/pending_component_value_change.rb +4 -15
- data/lib/bf_ruby2/models/period.rb +28 -15
- data/lib/bf_ruby2/models/period_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/permission_action_entity_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/permission_resource_entity_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/price_calculation_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/pricing_component.rb +48 -15
- data/lib/bf_ruby2/models/pricing_component_coupon_modifier.rb +40 -15
- data/lib/bf_ruby2/models/pricing_component_migration_value.rb +12 -15
- data/lib/bf_ruby2/models/pricing_component_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/pricing_component_quantity_request.rb +12 -15
- data/lib/bf_ruby2/models/pricing_component_tier.rb +16 -15
- data/lib/bf_ruby2/models/pricing_component_tier_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/pricing_component_value.rb +20 -15
- data/lib/bf_ruby2/models/pricing_component_value_change_amendment.rb +28 -15
- data/lib/bf_ruby2/models/pricing_component_value_change_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/pricing_component_value_migration_amendment_mapping.rb +16 -15
- data/lib/bf_ruby2/models/pricing_component_value_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/pricing_component_value_request.rb +8 -15
- data/lib/bf_ruby2/models/pricing_component_value_response_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/product.rb +37 -16
- data/lib/bf_ruby2/models/product_coupon_modifier.rb +40 -15
- data/lib/bf_ruby2/models/product_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/product_payments_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/product_rate_plan.rb +45 -16
- data/lib/bf_ruby2/models/product_rate_plan_migration_amendment.rb +36 -15
- data/lib/bf_ruby2/models/product_rate_plan_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/product_rate_plan_payments_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/profile.rb +28 -15
- data/lib/bf_ruby2/models/profile_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/quote_request.rb +20 -15
- data/lib/bf_ruby2/models/quote_request_value.rb +12 -15
- data/lib/bf_ruby2/models/recalculate_charge_batch_request.rb +4 -15
- data/lib/bf_ruby2/models/recalculate_charge_batch_response.rb +4 -15
- data/lib/bf_ruby2/models/recalculate_charge_batch_response_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/recalculate_charge_request.rb +8 -15
- data/lib/bf_ruby2/models/receipt.rb +24 -15
- data/lib/bf_ruby2/models/receipt_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/refund.rb +36 -15
- data/lib/bf_ruby2/models/refund_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/resume_request.rb +4 -15
- data/lib/bf_ruby2/models/resume_subscription_amendment.rb +24 -15
- data/lib/bf_ruby2/models/revenue_attribution.rb +88 -15
- data/lib/bf_ruby2/models/revenue_attribution_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/revive_subscription_request.rb +8 -15
- data/lib/bf_ruby2/models/role.rb +4 -15
- data/lib/bf_ruby2/models/role_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/rule_satisfaction.rb +4 -15
- data/lib/bf_ruby2/models/search_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/service_end_amendment.rb +24 -15
- data/lib/bf_ruby2/models/single_recalculate_charge_request.rb +12 -15
- data/lib/bf_ruby2/models/stripe_ach_token_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/stripe_auth_capture_request.rb +12 -15
- data/lib/bf_ruby2/models/stripe_object.rb +4 -15
- data/lib/bf_ruby2/models/stripe_token_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/subscription.rb +52 -15
- data/lib/bf_ruby2/models/subscription_cancellation_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/subscription_charge.rb +28 -15
- data/lib/bf_ruby2/models/subscription_charge_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/subscription_ltv_result_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/subscription_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/swagger_type_list.rb +4 -15
- data/lib/bf_ruby2/models/swagger_type_list_inv.rb +8 -15
- data/lib/bf_ruby2/models/swagger_type_list_subs.rb +12 -15
- data/lib/bf_ruby2/models/taxation_link_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/taxation_strategy_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/tiered_pricing_component.rb +48 -15
- data/lib/bf_ruby2/models/tiered_volume_pricing_component.rb +48 -15
- data/lib/bf_ruby2/models/time_request.rb +4 -15
- data/lib/bf_ruby2/models/time_response.rb +4 -15
- data/lib/bf_ruby2/models/time_response_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/time_zone.rb +4 -15
- data/lib/bf_ruby2/models/timer_amendment.rb +24 -15
- data/lib/bf_ruby2/models/tokenization_pre_auth_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/trust_commerce_token_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/unit_discount.rb +4 -15
- data/lib/bf_ruby2/models/unit_of_measure.rb +20 -15
- data/lib/bf_ruby2/models/unit_of_measure_coupon_modifier.rb +40 -15
- data/lib/bf_ruby2/models/unit_of_measure_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/update_address_request.rb +12 -15
- data/lib/bf_ruby2/models/update_component_value_amendment.rb +40 -15
- data/lib/bf_ruby2/models/update_pricing_component_value_change_result.rb +4 -15
- data/lib/bf_ruby2/models/update_pricing_component_value_request.rb +11 -22
- data/lib/bf_ruby2/models/update_pricing_component_value_response.rb +4 -15
- data/lib/bf_ruby2/models/update_pricing_component_value_response_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/update_profile_request.rb +8 -15
- data/lib/bf_ruby2/models/update_role_request.rb +8 -15
- data/lib/bf_ruby2/models/update_subscription_request.rb +8 -15
- data/lib/bf_ruby2/models/usage.rb +36 -15
- data/lib/bf_ruby2/models/usage_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/usage_period_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/usage_rounding_strategy_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/usage_session.rb +24 -15
- data/lib/bf_ruby2/models/usage_session_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/user.rb +40 -15
- data/lib/bf_ruby2/models/user_creation_request.rb +36 -15
- data/lib/bf_ruby2/models/user_creation_response_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/user_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/username.rb +16 -15
- data/lib/bf_ruby2/models/username_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/models/webhook_paged_metadata.rb +32 -15
- data/lib/bf_ruby2/version.rb +2 -13
- data/spec/api/accounts_api_spec.rb +15 -13
- data/spec/api/addresses_api_spec.rb +2 -13
- data/spec/api/amendments_api_spec.rb +2 -13
- data/spec/api/analytics_api_spec.rb +2 -13
- data/spec/api/auditlogs_api_spec.rb +2 -13
- data/spec/api/charges_api_spec.rb +14 -13
- data/spec/api/clients_api_spec.rb +2 -13
- data/spec/api/configurations_api_spec.rb +2 -13
- data/spec/api/couponbook_api_spec.rb +2 -13
- data/spec/api/couponbookdefinition_api_spec.rb +2 -13
- data/spec/api/coupondefinition_api_spec.rb +2 -13
- data/spec/api/couponinstance_api_spec.rb +2 -13
- data/spec/api/couponmodifier_api_spec.rb +2 -13
- data/spec/api/couponrule_api_spec.rb +2 -13
- data/spec/api/coupons_api_spec.rb +2 -13
- data/spec/api/creditnotes_api_spec.rb +2 -13
- data/spec/api/cybersourcetokens_api_spec.rb +2 -13
- data/spec/api/dunninglines_api_spec.rb +2 -13
- data/spec/api/emailproviders_api_spec.rb +2 -13
- data/spec/api/emails_api_spec.rb +2 -13
- data/spec/api/emailsubscriptions_api_spec.rb +2 -13
- data/spec/api/fixedtermdefinitions_api_spec.rb +2 -13
- data/spec/api/fixedterms_api_spec.rb +2 -13
- data/spec/api/invoices_api_spec.rb +2 -13
- data/spec/api/metadata_api_spec.rb +2 -13
- data/spec/api/notifications_api_spec.rb +2 -13
- data/spec/api/organizations_api_spec.rb +2 -13
- data/spec/api/passwords_api_spec.rb +2 -13
- data/spec/api/paymentmethods_api_spec.rb +2 -13
- data/spec/api/paymentmethodsubscriptionlinks_api_spec.rb +2 -13
- data/spec/api/payments_api_spec.rb +2 -13
- data/spec/api/periods_api_spec.rb +2 -13
- data/spec/api/permissions_api_spec.rb +2 -13
- data/spec/api/pricingcalculator_api_spec.rb +2 -13
- data/spec/api/pricingcomponents_api_spec.rb +2 -13
- data/spec/api/pricingcomponenttiers_api_spec.rb +2 -13
- data/spec/api/pricingcomponentvaluechanges_api_spec.rb +2 -13
- data/spec/api/pricingcomponentvalues_api_spec.rb +2 -13
- data/spec/api/productrateplans_api_spec.rb +2 -13
- data/spec/api/products_api_spec.rb +2 -13
- data/spec/api/profiles_api_spec.rb +2 -13
- data/spec/api/quotes_api_spec.rb +2 -13
- data/spec/api/receipts_api_spec.rb +2 -13
- data/spec/api/refunds_api_spec.rb +2 -13
- data/spec/api/roles_api_spec.rb +2 -13
- data/spec/api/search_api_spec.rb +2 -13
- data/spec/api/subscriptions_api_spec.rb +15 -13
- data/spec/api/synch_app_configs_api_spec.rb +2 -13
- data/spec/api/synch_configs_api_spec.rb +2 -13
- data/spec/api/synch_jobs_api_spec.rb +2 -13
- data/spec/api/taxationlinks_api_spec.rb +2 -13
- data/spec/api/taxationstrategies_api_spec.rb +2 -13
- data/spec/api/time_api_spec.rb +2 -13
- data/spec/api/tokenization_api_spec.rb +4 -15
- data/spec/api/unitofmeasure_api_spec.rb +2 -13
- data/spec/api/usage_api_spec.rb +2 -13
- data/spec/api/usageperiods_api_spec.rb +2 -13
- data/spec/api/usageroundingstrategies_api_spec.rb +2 -13
- data/spec/api/usagesessions_api_spec.rb +2 -13
- data/spec/api/usernames_api_spec.rb +2 -13
- data/spec/api/users_api_spec.rb +2 -13
- data/spec/api/vaultedgateways_api_spec.rb +2 -13
- data/spec/api/webhooks_api_spec.rb +2 -13
- data/spec/api_client_spec.rb +1 -12
- data/spec/configuration_spec.rb +1 -12
- data/spec/models/account_ltv_result_paged_metadata_spec.rb +2 -13
- data/spec/models/account_paged_metadata_spec.rb +2 -13
- data/spec/models/account_payments_result_paged_metadata_spec.rb +2 -13
- data/spec/models/account_spec.rb +2 -13
- data/spec/models/add_charge_request_spec.rb +2 -13
- data/spec/models/add_charge_to_account_response_paged_metadata_spec.rb +2 -13
- data/spec/models/add_charge_to_account_response_spec.rb +2 -13
- data/spec/models/add_charges_to_account_api_request_spec.rb +2 -13
- data/spec/models/add_coupon_code_request_spec.rb +2 -13
- data/spec/models/add_payment_method_request_spec.rb +2 -13
- data/spec/models/add_taxation_strategy_request_spec.rb +2 -13
- data/spec/models/address_paged_metadata_spec.rb +2 -13
- data/spec/models/address_spec.rb +2 -13
- data/spec/models/aggregating_component_spec.rb +2 -13
- data/spec/models/amendment_discard_amendment_spec.rb +2 -13
- data/spec/models/amendment_paged_metadata_spec.rb +2 -13
- data/spec/models/amendment_price_n_time_paged_metadata_spec.rb +2 -13
- data/spec/models/amendment_spec.rb +2 -13
- data/spec/models/api_configuration_paged_metadata_spec.rb +2 -13
- data/spec/models/api_quote_paged_metadata_spec.rb +2 -13
- data/spec/models/api_quote_response_quantity_spec.rb +2 -13
- data/spec/models/api_quote_spec.rb +2 -13
- data/spec/models/audit_entry_paged_metadata_spec.rb +2 -13
- data/spec/models/audit_entry_spec.rb +2 -13
- data/spec/models/auth_capture_request_spec.rb +2 -13
- data/spec/models/authorize_net_token_paged_metadata_spec.rb +2 -13
- data/spec/models/bank_account_verification_paged_metadata_spec.rb +2 -13
- data/spec/models/batch_update_pricing_component_values_request_spec.rb +2 -13
- data/spec/models/bf_error_spec.rb +2 -13
- data/spec/models/bf_permission_paged_metadata_spec.rb +2 -13
- data/spec/models/bf_permission_spec.rb +2 -13
- data/spec/models/billforward_managed_payments_result_paged_metadata_spec.rb +2 -13
- data/spec/models/billing_entity_base_spec.rb +2 -13
- data/spec/models/braintree_auth_capture_request_spec.rb +2 -13
- data/spec/models/braintree_capture_request_spec.rb +2 -13
- data/spec/models/braintree_token_paged_metadata_spec.rb +2 -13
- data/spec/models/cancel_subscription_request_spec.rb +2 -13
- data/spec/models/cancellation_amendment_spec.rb +2 -13
- data/spec/models/cass_churn_result_paged_metadata_spec.rb +2 -13
- data/spec/models/cass_payment_result_paged_metadata_spec.rb +2 -13
- data/spec/models/cass_upgrade_result_paged_metadata_spec.rb +2 -13
- data/spec/models/client_paged_metadata_spec.rb +2 -13
- data/spec/models/client_spec.rb +2 -13
- data/spec/models/component_change_spec.rb +2 -13
- data/spec/models/component_cost_spec.rb +2 -13
- data/spec/models/compound_usage_session_spec.rb +2 -13
- data/spec/models/compound_usage_spec.rb +2 -13
- data/spec/models/coupon_book_definition_paged_metadata_spec.rb +2 -13
- data/spec/models/coupon_book_definition_spec.rb +2 -13
- data/spec/models/coupon_book_paged_metadata_spec.rb +2 -13
- data/spec/models/coupon_book_spec.rb +2 -13
- data/spec/models/coupon_definition_paged_metadata_spec.rb +2 -13
- data/spec/models/coupon_definition_spec.rb +2 -13
- data/spec/models/coupon_discount_estimate_spec.rb +2 -13
- data/spec/models/coupon_discount_spec.rb +2 -13
- data/spec/models/coupon_instance_existing_value_spec.rb +2 -13
- data/spec/models/coupon_instance_paged_metadata_spec.rb +2 -13
- data/spec/models/coupon_instance_spec.rb +2 -13
- data/spec/models/coupon_modifier_base_paged_metadata_spec.rb +2 -13
- data/spec/models/coupon_modifier_base_spec.rb +2 -13
- data/spec/models/coupon_paged_metadata_spec.rb +2 -13
- data/spec/models/coupon_rule_paged_metadata_spec.rb +2 -13
- data/spec/models/coupon_rule_spec.rb +2 -13
- data/spec/models/coupon_spec.rb +2 -13
- data/spec/models/coupon_unique_codes_request_spec.rb +2 -13
- data/spec/models/coupon_unique_codes_response_paged_metadata_spec.rb +2 -13
- data/spec/models/coupon_unique_codes_response_spec.rb +2 -13
- data/spec/models/coupon_wrapper_response_spec.rb +2 -13
- data/spec/models/create_account_profile_request_spec.rb +2 -13
- data/spec/models/create_account_request_spec.rb +2 -13
- data/spec/models/create_address_request_spec.rb +2 -13
- data/spec/models/create_aggregating_component_request_spec.rb +2 -13
- data/spec/models/create_aggregating_subscription_request_spec.rb +2 -13
- data/spec/models/create_profile_address_request_spec.rb +2 -13
- data/spec/models/create_subscription_batch_request_spec.rb +2 -13
- data/spec/models/create_subscription_charge_amendment_spec.rb +2 -23
- data/spec/models/create_subscription_request_spec.rb +14 -13
- data/spec/models/credit_account_request_spec.rb +2 -13
- data/spec/models/credit_note_paged_metadata_spec.rb +2 -13
- data/spec/models/credit_note_spec.rb +2 -13
- data/spec/models/credit_subscription_request_spec.rb +2 -13
- data/spec/models/cybersource_token_paged_metadata_spec.rb +2 -13
- data/spec/models/data_synchronisation_app_configuration_paged_metadata_spec.rb +2 -13
- data/spec/models/data_synchronisation_configuration_paged_metadata_spec.rb +2 -13
- data/spec/models/data_synchronisation_configuration_spec.rb +2 -13
- data/spec/models/data_synchronization_job_paged_metadata_spec.rb +2 -13
- data/spec/models/debts_result_paged_metadata_spec.rb +2 -13
- data/spec/models/dunning_line_paged_metadata_spec.rb +2 -13
- data/spec/models/dunning_line_spec.rb +2 -13
- data/spec/models/dynamic_metadata_spec.rb +2 -13
- data/spec/models/email_paged_metadata_spec.rb +2 -13
- data/spec/models/email_provider_paged_metadata_spec.rb +2 -13
- data/spec/models/email_provider_spec.rb +2 -13
- data/spec/models/email_spec.rb +2 -13
- data/spec/models/email_subscription_paged_metadata_spec.rb +2 -13
- data/spec/models/email_subscription_spec.rb +2 -13
- data/spec/models/end_trial_amendment_spec.rb +2 -13
- data/spec/models/event_data_spec.rb +2 -13
- data/spec/models/event_spec.rb +2 -13
- data/spec/models/file_sham_spec.rb +2 -13
- data/spec/models/fixed_term_definition_paged_metadata_spec.rb +2 -13
- data/spec/models/fixed_term_expiry_amendment_spec.rb +2 -13
- data/spec/models/fixed_term_paged_metadata_spec.rb +2 -13
- data/spec/models/fixed_term_spec.rb +2 -13
- data/spec/models/flat_pricing_component_spec.rb +2 -13
- data/spec/models/import_invoice_line_spec.rb +2 -13
- data/spec/models/insertable_billing_entity_spec.rb +2 -13
- data/spec/models/invoice_charge_request_spec.rb +2 -13
- data/spec/models/invoice_line_payment_paged_metadata_spec.rb +2 -13
- data/spec/models/invoice_line_payment_spec.rb +2 -13
- data/spec/models/invoice_line_spec.rb +2 -13
- data/spec/models/invoice_next_execution_attempt_amendment_spec.rb +2 -13
- data/spec/models/invoice_outstanding_charges_amendment_spec.rb +2 -13
- data/spec/models/invoice_paged_metadata_spec.rb +2 -13
- data/spec/models/invoice_payment_spec.rb +2 -13
- data/spec/models/invoice_recalculation_amendment_spec.rb +2 -13
- data/spec/models/invoice_recalculation_request_spec.rb +2 -13
- data/spec/models/invoice_spec.rb +20 -13
- data/spec/models/issue_invoice_amendment_spec.rb +2 -13
- data/spec/models/metadata_key_values_paged_metadata_spec.rb +2 -13
- data/spec/models/migration_request_spec.rb +2 -13
- data/spec/models/model_alias_spec.rb +2 -13
- data/spec/models/mutable_billing_entity_spec.rb +2 -13
- data/spec/models/nested_charge_request_spec.rb +2 -13
- data/spec/models/notification_paged_metadata_spec.rb +2 -13
- data/spec/models/notification_spec.rb +2 -13
- data/spec/models/organization_paged_metadata_spec.rb +2 -13
- data/spec/models/organization_spec.rb +2 -13
- data/spec/models/password_paged_metadata_spec.rb +2 -13
- data/spec/models/password_reset_request_spec.rb +2 -13
- data/spec/models/password_spec.rb +2 -13
- data/spec/models/pause_request_spec.rb +2 -13
- data/spec/models/payment_method_paged_metadata_spec.rb +2 -13
- data/spec/models/payment_method_spec.rb +2 -13
- data/spec/models/payment_method_subscription_link_paged_metadata_spec.rb +2 -13
- data/spec/models/payment_method_subscription_link_spec.rb +2 -13
- data/spec/models/payment_paged_metadata_spec.rb +2 -13
- data/spec/models/payment_retry_request_spec.rb +2 -13
- data/spec/models/payment_spec.rb +2 -13
- data/spec/models/pending_component_value_change_spec.rb +2 -13
- data/spec/models/period_paged_metadata_spec.rb +2 -13
- data/spec/models/period_spec.rb +2 -13
- data/spec/models/permission_action_entity_paged_metadata_spec.rb +2 -13
- data/spec/models/permission_resource_entity_paged_metadata_spec.rb +2 -13
- data/spec/models/price_calculation_paged_metadata_spec.rb +2 -13
- data/spec/models/pricing_component_coupon_modifier_spec.rb +2 -13
- data/spec/models/pricing_component_migration_value_spec.rb +2 -13
- data/spec/models/pricing_component_paged_metadata_spec.rb +2 -13
- data/spec/models/pricing_component_quantity_request_spec.rb +2 -13
- data/spec/models/pricing_component_spec.rb +2 -13
- data/spec/models/pricing_component_tier_paged_metadata_spec.rb +2 -13
- data/spec/models/pricing_component_tier_spec.rb +2 -13
- data/spec/models/pricing_component_value_change_amendment_spec.rb +2 -13
- data/spec/models/pricing_component_value_change_paged_metadata_spec.rb +2 -13
- data/spec/models/pricing_component_value_migration_amendment_mapping_spec.rb +2 -13
- data/spec/models/pricing_component_value_paged_metadata_spec.rb +2 -13
- data/spec/models/pricing_component_value_request_spec.rb +2 -13
- data/spec/models/pricing_component_value_response_paged_metadata_spec.rb +2 -13
- data/spec/models/pricing_component_value_spec.rb +2 -13
- data/spec/models/product_coupon_modifier_spec.rb +2 -13
- data/spec/models/product_paged_metadata_spec.rb +2 -13
- data/spec/models/product_payments_result_paged_metadata_spec.rb +2 -13
- data/spec/models/product_rate_plan_migration_amendment_spec.rb +2 -13
- data/spec/models/product_rate_plan_paged_metadata_spec.rb +2 -13
- data/spec/models/product_rate_plan_payments_result_paged_metadata_spec.rb +2 -13
- data/spec/models/product_rate_plan_spec.rb +2 -13
- data/spec/models/product_spec.rb +2 -13
- data/spec/models/profile_paged_metadata_spec.rb +2 -13
- data/spec/models/profile_spec.rb +2 -13
- data/spec/models/quote_request_spec.rb +2 -13
- data/spec/models/quote_request_value_spec.rb +2 -13
- data/spec/models/recalculate_charge_batch_request_spec.rb +2 -13
- data/spec/models/recalculate_charge_batch_response_paged_metadata_spec.rb +2 -13
- data/spec/models/recalculate_charge_batch_response_spec.rb +2 -13
- data/spec/models/recalculate_charge_request_spec.rb +2 -13
- data/spec/models/receipt_paged_metadata_spec.rb +2 -13
- data/spec/models/receipt_spec.rb +2 -13
- data/spec/models/refund_paged_metadata_spec.rb +2 -13
- data/spec/models/refund_spec.rb +2 -13
- data/spec/models/resume_request_spec.rb +2 -13
- data/spec/models/resume_subscription_amendment_spec.rb +2 -13
- data/spec/models/revenue_attribution_paged_metadata_spec.rb +2 -13
- data/spec/models/revenue_attribution_spec.rb +2 -13
- data/spec/models/revive_subscription_request_spec.rb +2 -13
- data/spec/models/role_paged_metadata_spec.rb +2 -13
- data/spec/models/role_spec.rb +2 -13
- data/spec/models/rule_satisfaction_spec.rb +2 -13
- data/spec/models/search_result_paged_metadata_spec.rb +2 -13
- data/spec/models/service_end_amendment_spec.rb +2 -13
- data/spec/models/single_recalculate_charge_request_spec.rb +2 -13
- data/spec/models/stripe_ach_token_paged_metadata_spec.rb +2 -13
- data/spec/models/stripe_auth_capture_request_spec.rb +2 -13
- data/spec/models/stripe_object_spec.rb +2 -13
- data/spec/models/stripe_token_paged_metadata_spec.rb +2 -13
- data/spec/models/subscription_cancellation_paged_metadata_spec.rb +2 -13
- data/spec/models/subscription_charge_paged_metadata_spec.rb +2 -13
- data/spec/models/subscription_charge_spec.rb +2 -13
- data/spec/models/subscription_ltv_result_paged_metadata_spec.rb +2 -13
- data/spec/models/subscription_paged_metadata_spec.rb +2 -13
- data/spec/models/subscription_spec.rb +8 -13
- data/spec/models/swagger_type_list_inv_spec.rb +2 -13
- data/spec/models/swagger_type_list_spec.rb +2 -13
- data/spec/models/swagger_type_list_subs_spec.rb +2 -13
- data/spec/models/taxation_link_paged_metadata_spec.rb +2 -13
- data/spec/models/taxation_strategy_paged_metadata_spec.rb +2 -13
- data/spec/models/tiered_pricing_component_spec.rb +2 -13
- data/spec/models/tiered_volume_pricing_component_spec.rb +2 -13
- data/spec/models/time_request_spec.rb +2 -13
- data/spec/models/time_response_paged_metadata_spec.rb +2 -13
- data/spec/models/time_response_spec.rb +2 -13
- data/spec/models/time_zone_spec.rb +2 -13
- data/spec/models/timer_amendment_spec.rb +2 -13
- data/spec/models/tokenization_pre_auth_paged_metadata_spec.rb +2 -13
- data/spec/models/trust_commerce_token_paged_metadata_spec.rb +2 -13
- data/spec/models/unit_discount_spec.rb +2 -13
- data/spec/models/unit_of_measure_coupon_modifier_spec.rb +2 -13
- data/spec/models/unit_of_measure_paged_metadata_spec.rb +2 -13
- data/spec/models/unit_of_measure_spec.rb +2 -13
- data/spec/models/update_address_request_spec.rb +2 -13
- data/spec/models/update_component_value_amendment_spec.rb +2 -13
- data/spec/models/update_pricing_component_value_change_result_spec.rb +2 -13
- data/spec/models/update_pricing_component_value_request_spec.rb +2 -13
- data/spec/models/update_pricing_component_value_response_paged_metadata_spec.rb +2 -13
- data/spec/models/update_pricing_component_value_response_spec.rb +2 -13
- data/spec/models/update_profile_request_spec.rb +2 -13
- data/spec/models/update_role_request_spec.rb +2 -13
- data/spec/models/update_subscription_request_spec.rb +2 -13
- data/spec/models/usage_paged_metadata_spec.rb +2 -13
- data/spec/models/usage_period_paged_metadata_spec.rb +2 -13
- data/spec/models/usage_rounding_strategy_paged_metadata_spec.rb +2 -13
- data/spec/models/usage_session_paged_metadata_spec.rb +2 -13
- data/spec/models/usage_session_spec.rb +2 -13
- data/spec/models/usage_spec.rb +2 -13
- data/spec/models/user_creation_request_spec.rb +2 -13
- data/spec/models/user_creation_response_paged_metadata_spec.rb +2 -13
- data/spec/models/user_paged_metadata_spec.rb +2 -13
- data/spec/models/user_spec.rb +2 -13
- data/spec/models/username_paged_metadata_spec.rb +2 -13
- data/spec/models/username_spec.rb +2 -13
- data/spec/models/webhook_paged_metadata_spec.rb +2 -13
- data/spec/spec_helper.rb +1 -12
- metadata +12 -9
- data/bf_ruby2-1.0.0.gem +0 -0
- data/bf_ruby2-1.2016.229.gem +0 -0
- data/bf_ruby2-1.2016.230.gem +0 -0
@@ -6,18 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -53,25 +42,25 @@ module Bfwd
|
|
53
42
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.add_taxation_strategy_to_rate_plan ..."
|
54
43
|
end
|
55
44
|
# verify the required parameter 'product_rate_plan_id' is set
|
56
|
-
|
45
|
+
if @api_client.config.client_side_validation && product_rate_plan_id.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan_id' when calling ProductrateplansApi.add_taxation_strategy_to_rate_plan"
|
47
|
+
end
|
57
48
|
# verify the required parameter 'taxation_strategy' is set
|
58
|
-
|
49
|
+
if @api_client.config.client_side_validation && taxation_strategy.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'taxation_strategy' when calling ProductrateplansApi.add_taxation_strategy_to_rate_plan"
|
51
|
+
end
|
59
52
|
# resource path
|
60
|
-
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/tax".sub('{
|
53
|
+
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/tax".sub('{' + 'product-rate-plan-ID' + '}', product_rate_plan_id.to_s)
|
61
54
|
|
62
55
|
# query parameters
|
63
56
|
query_params = {}
|
64
57
|
|
65
58
|
# header parameters
|
66
59
|
header_params = {}
|
67
|
-
|
68
60
|
# HTTP header 'Accept' (if needed)
|
69
|
-
|
70
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
71
|
-
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
72
62
|
# HTTP header 'Content-Type'
|
73
|
-
|
74
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
75
64
|
|
76
65
|
# form parameters
|
77
66
|
form_params = {}
|
@@ -112,23 +101,21 @@ module Bfwd
|
|
112
101
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.create_rate_plan ..."
|
113
102
|
end
|
114
103
|
# verify the required parameter 'product_rate_plan' is set
|
115
|
-
|
104
|
+
if @api_client.config.client_side_validation && product_rate_plan.nil?
|
105
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan' when calling ProductrateplansApi.create_rate_plan"
|
106
|
+
end
|
116
107
|
# resource path
|
117
|
-
local_var_path = "/product-rate-plans"
|
108
|
+
local_var_path = "/product-rate-plans"
|
118
109
|
|
119
110
|
# query parameters
|
120
111
|
query_params = {}
|
121
112
|
|
122
113
|
# header parameters
|
123
114
|
header_params = {}
|
124
|
-
|
125
115
|
# HTTP header 'Accept' (if needed)
|
126
|
-
|
127
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
128
|
-
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
129
117
|
# HTTP header 'Content-Type'
|
130
|
-
|
131
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
118
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
132
119
|
|
133
120
|
# form parameters
|
134
121
|
form_params = {}
|
@@ -171,9 +158,11 @@ module Bfwd
|
|
171
158
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.delete_metadata_for_rate_plan ..."
|
172
159
|
end
|
173
160
|
# verify the required parameter 'product_rate_plan_id' is set
|
174
|
-
|
161
|
+
if @api_client.config.client_side_validation && product_rate_plan_id.nil?
|
162
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan_id' when calling ProductrateplansApi.delete_metadata_for_rate_plan"
|
163
|
+
end
|
175
164
|
# resource path
|
176
|
-
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/metadata".sub('{
|
165
|
+
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/metadata".sub('{' + 'product-rate-plan-ID' + '}', product_rate_plan_id.to_s)
|
177
166
|
|
178
167
|
# query parameters
|
179
168
|
query_params = {}
|
@@ -181,14 +170,10 @@ module Bfwd
|
|
181
170
|
|
182
171
|
# header parameters
|
183
172
|
header_params = {}
|
184
|
-
|
185
173
|
# HTTP header 'Accept' (if needed)
|
186
|
-
|
187
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
188
|
-
|
174
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
189
175
|
# HTTP header 'Content-Type'
|
190
|
-
|
191
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
176
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
192
177
|
|
193
178
|
# form parameters
|
194
179
|
form_params = {}
|
@@ -240,11 +225,11 @@ module Bfwd
|
|
240
225
|
if @api_client.config.debugging
|
241
226
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.get_all_rate_plans ..."
|
242
227
|
end
|
243
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
228
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
244
229
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
245
230
|
end
|
246
231
|
# resource path
|
247
|
-
local_var_path = "/product-rate-plans"
|
232
|
+
local_var_path = "/product-rate-plans"
|
248
233
|
|
249
234
|
# query parameters
|
250
235
|
query_params = {}
|
@@ -258,14 +243,8 @@ module Bfwd
|
|
258
243
|
|
259
244
|
# header parameters
|
260
245
|
header_params = {}
|
261
|
-
|
262
246
|
# HTTP header 'Accept' (if needed)
|
263
|
-
|
264
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
265
|
-
|
266
|
-
# HTTP header 'Content-Type'
|
267
|
-
local_header_content_type = []
|
268
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
247
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8', 'text/plain'])
|
269
248
|
|
270
249
|
# form parameters
|
271
250
|
form_params = {}
|
@@ -316,12 +295,14 @@ module Bfwd
|
|
316
295
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.get_available_taxation_strategies_for_rate_plan ..."
|
317
296
|
end
|
318
297
|
# verify the required parameter 'product_rate_plan_id' is set
|
319
|
-
|
320
|
-
|
298
|
+
if @api_client.config.client_side_validation && product_rate_plan_id.nil?
|
299
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan_id' when calling ProductrateplansApi.get_available_taxation_strategies_for_rate_plan"
|
300
|
+
end
|
301
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
321
302
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
322
303
|
end
|
323
304
|
# resource path
|
324
|
-
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/tax".sub('{
|
305
|
+
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/tax".sub('{' + 'product-rate-plan-ID' + '}', product_rate_plan_id.to_s)
|
325
306
|
|
326
307
|
# query parameters
|
327
308
|
query_params = {}
|
@@ -333,14 +314,10 @@ module Bfwd
|
|
333
314
|
|
334
315
|
# header parameters
|
335
316
|
header_params = {}
|
336
|
-
|
337
317
|
# HTTP header 'Accept' (if needed)
|
338
|
-
|
339
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
340
|
-
|
318
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
341
319
|
# HTTP header 'Content-Type'
|
342
|
-
|
343
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
320
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
344
321
|
|
345
322
|
# form parameters
|
346
323
|
form_params = {}
|
@@ -383,9 +360,11 @@ module Bfwd
|
|
383
360
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.get_metadata_for_rate_plan ..."
|
384
361
|
end
|
385
362
|
# verify the required parameter 'product_rate_plan_id' is set
|
386
|
-
|
363
|
+
if @api_client.config.client_side_validation && product_rate_plan_id.nil?
|
364
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan_id' when calling ProductrateplansApi.get_metadata_for_rate_plan"
|
365
|
+
end
|
387
366
|
# resource path
|
388
|
-
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/metadata".sub('{
|
367
|
+
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/metadata".sub('{' + 'product-rate-plan-ID' + '}', product_rate_plan_id.to_s)
|
389
368
|
|
390
369
|
# query parameters
|
391
370
|
query_params = {}
|
@@ -393,14 +372,10 @@ module Bfwd
|
|
393
372
|
|
394
373
|
# header parameters
|
395
374
|
header_params = {}
|
396
|
-
|
397
375
|
# HTTP header 'Accept' (if needed)
|
398
|
-
|
399
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
400
|
-
|
376
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
401
377
|
# HTTP header 'Content-Type'
|
402
|
-
|
403
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
378
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8', 'text/plain'])
|
404
379
|
|
405
380
|
# form parameters
|
406
381
|
form_params = {}
|
@@ -453,12 +428,14 @@ module Bfwd
|
|
453
428
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.get_product_rate_plan_by_id ..."
|
454
429
|
end
|
455
430
|
# verify the required parameter 'product_rate_plan_id' is set
|
456
|
-
|
457
|
-
|
431
|
+
if @api_client.config.client_side_validation && product_rate_plan_id.nil?
|
432
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan_id' when calling ProductrateplansApi.get_product_rate_plan_by_id"
|
433
|
+
end
|
434
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
458
435
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
459
436
|
end
|
460
437
|
# resource path
|
461
|
-
local_var_path = "/product-rate-plans/{product-rate-plan-ID}".sub('{
|
438
|
+
local_var_path = "/product-rate-plans/{product-rate-plan-ID}".sub('{' + 'product-rate-plan-ID' + '}', product_rate_plan_id.to_s)
|
462
439
|
|
463
440
|
# query parameters
|
464
441
|
query_params = {}
|
@@ -471,14 +448,10 @@ module Bfwd
|
|
471
448
|
|
472
449
|
# header parameters
|
473
450
|
header_params = {}
|
474
|
-
|
475
451
|
# HTTP header 'Accept' (if needed)
|
476
|
-
|
477
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
478
|
-
|
452
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
479
453
|
# HTTP header 'Content-Type'
|
480
|
-
|
481
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
454
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
482
455
|
|
483
456
|
# form parameters
|
484
457
|
form_params = {}
|
@@ -531,12 +504,14 @@ module Bfwd
|
|
531
504
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.get_rate_plan_by_product ..."
|
532
505
|
end
|
533
506
|
# verify the required parameter 'product_id' is set
|
534
|
-
|
535
|
-
|
507
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
508
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling ProductrateplansApi.get_rate_plan_by_product"
|
509
|
+
end
|
510
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
536
511
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
537
512
|
end
|
538
513
|
# resource path
|
539
|
-
local_var_path = "/product-rate-plans/product/{product-ID}".sub('{
|
514
|
+
local_var_path = "/product-rate-plans/product/{product-ID}".sub('{' + 'product-ID' + '}', product_id.to_s)
|
540
515
|
|
541
516
|
# query parameters
|
542
517
|
query_params = {}
|
@@ -549,14 +524,10 @@ module Bfwd
|
|
549
524
|
|
550
525
|
# header parameters
|
551
526
|
header_params = {}
|
552
|
-
|
553
527
|
# HTTP header 'Accept' (if needed)
|
554
|
-
|
555
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
556
|
-
|
528
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
557
529
|
# HTTP header 'Content-Type'
|
558
|
-
|
559
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
530
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
560
531
|
|
561
532
|
# form parameters
|
562
533
|
form_params = {}
|
@@ -611,14 +582,18 @@ module Bfwd
|
|
611
582
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.get_rate_plan_by_product_and_rate_plan ..."
|
612
583
|
end
|
613
584
|
# verify the required parameter 'product_id' is set
|
614
|
-
|
585
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
586
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling ProductrateplansApi.get_rate_plan_by_product_and_rate_plan"
|
587
|
+
end
|
615
588
|
# verify the required parameter 'rate_plan_id' is set
|
616
|
-
|
617
|
-
|
589
|
+
if @api_client.config.client_side_validation && rate_plan_id.nil?
|
590
|
+
fail ArgumentError, "Missing the required parameter 'rate_plan_id' when calling ProductrateplansApi.get_rate_plan_by_product_and_rate_plan"
|
591
|
+
end
|
592
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
618
593
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
619
594
|
end
|
620
595
|
# resource path
|
621
|
-
local_var_path = "/product-rate-plans/product/{product-ID}/rate-plan/{rate-plan-ID}".sub('{
|
596
|
+
local_var_path = "/product-rate-plans/product/{product-ID}/rate-plan/{rate-plan-ID}".sub('{' + 'product-ID' + '}', product_id.to_s).sub('{' + 'rate-plan-ID' + '}', rate_plan_id.to_s)
|
622
597
|
|
623
598
|
# query parameters
|
624
599
|
query_params = {}
|
@@ -631,14 +606,10 @@ module Bfwd
|
|
631
606
|
|
632
607
|
# header parameters
|
633
608
|
header_params = {}
|
634
|
-
|
635
609
|
# HTTP header 'Accept' (if needed)
|
636
|
-
|
637
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
638
|
-
|
610
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
639
611
|
# HTTP header 'Content-Type'
|
640
|
-
|
641
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
612
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
642
613
|
|
643
614
|
# form parameters
|
644
615
|
form_params = {}
|
@@ -683,11 +654,15 @@ module Bfwd
|
|
683
654
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.remove_taxation_strategy_from_rate_plan ..."
|
684
655
|
end
|
685
656
|
# verify the required parameter 'product_rate_plan_id' is set
|
686
|
-
|
657
|
+
if @api_client.config.client_side_validation && product_rate_plan_id.nil?
|
658
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan_id' when calling ProductrateplansApi.remove_taxation_strategy_from_rate_plan"
|
659
|
+
end
|
687
660
|
# verify the required parameter 'taxation_strategy_id' is set
|
688
|
-
|
661
|
+
if @api_client.config.client_side_validation && taxation_strategy_id.nil?
|
662
|
+
fail ArgumentError, "Missing the required parameter 'taxation_strategy_id' when calling ProductrateplansApi.remove_taxation_strategy_from_rate_plan"
|
663
|
+
end
|
689
664
|
# resource path
|
690
|
-
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/tax/{taxation-strategy-ID}".sub('{
|
665
|
+
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/tax/{taxation-strategy-ID}".sub('{' + 'product-rate-plan-ID' + '}', product_rate_plan_id.to_s).sub('{' + 'taxation-strategy-ID' + '}', taxation_strategy_id.to_s)
|
691
666
|
|
692
667
|
# query parameters
|
693
668
|
query_params = {}
|
@@ -695,14 +670,10 @@ module Bfwd
|
|
695
670
|
|
696
671
|
# header parameters
|
697
672
|
header_params = {}
|
698
|
-
|
699
673
|
# HTTP header 'Accept' (if needed)
|
700
|
-
|
701
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
702
|
-
|
674
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
703
675
|
# HTTP header 'Content-Type'
|
704
|
-
|
705
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
676
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
706
677
|
|
707
678
|
# form parameters
|
708
679
|
form_params = {}
|
@@ -745,9 +716,11 @@ module Bfwd
|
|
745
716
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.retire_rate_plan ..."
|
746
717
|
end
|
747
718
|
# verify the required parameter 'product_rate_plan_id' is set
|
748
|
-
|
719
|
+
if @api_client.config.client_side_validation && product_rate_plan_id.nil?
|
720
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan_id' when calling ProductrateplansApi.retire_rate_plan"
|
721
|
+
end
|
749
722
|
# resource path
|
750
|
-
local_var_path = "/product-rate-plans/{product-rate-plan-ID}".sub('{
|
723
|
+
local_var_path = "/product-rate-plans/{product-rate-plan-ID}".sub('{' + 'product-rate-plan-ID' + '}', product_rate_plan_id.to_s)
|
751
724
|
|
752
725
|
# query parameters
|
753
726
|
query_params = {}
|
@@ -755,14 +728,10 @@ module Bfwd
|
|
755
728
|
|
756
729
|
# header parameters
|
757
730
|
header_params = {}
|
758
|
-
|
759
731
|
# HTTP header 'Accept' (if needed)
|
760
|
-
|
761
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
762
|
-
|
732
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
763
733
|
# HTTP header 'Content-Type'
|
764
|
-
|
765
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
734
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
766
735
|
|
767
736
|
# form parameters
|
768
737
|
form_params = {}
|
@@ -807,11 +776,15 @@ module Bfwd
|
|
807
776
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.set_metadata_for_rate_plan ..."
|
808
777
|
end
|
809
778
|
# verify the required parameter 'metadata' is set
|
810
|
-
|
779
|
+
if @api_client.config.client_side_validation && metadata.nil?
|
780
|
+
fail ArgumentError, "Missing the required parameter 'metadata' when calling ProductrateplansApi.set_metadata_for_rate_plan"
|
781
|
+
end
|
811
782
|
# verify the required parameter 'product_rate_plan_id' is set
|
812
|
-
|
783
|
+
if @api_client.config.client_side_validation && product_rate_plan_id.nil?
|
784
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan_id' when calling ProductrateplansApi.set_metadata_for_rate_plan"
|
785
|
+
end
|
813
786
|
# resource path
|
814
|
-
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/metadata".sub('{
|
787
|
+
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/metadata".sub('{' + 'product-rate-plan-ID' + '}', product_rate_plan_id.to_s)
|
815
788
|
|
816
789
|
# query parameters
|
817
790
|
query_params = {}
|
@@ -819,14 +792,10 @@ module Bfwd
|
|
819
792
|
|
820
793
|
# header parameters
|
821
794
|
header_params = {}
|
822
|
-
|
823
795
|
# HTTP header 'Accept' (if needed)
|
824
|
-
|
825
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
826
|
-
|
796
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
827
797
|
# HTTP header 'Content-Type'
|
828
|
-
|
829
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
798
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
830
799
|
|
831
800
|
# form parameters
|
832
801
|
form_params = {}
|
@@ -867,23 +836,21 @@ module Bfwd
|
|
867
836
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.update_rate_plan ..."
|
868
837
|
end
|
869
838
|
# verify the required parameter 'product_rate_plan' is set
|
870
|
-
|
839
|
+
if @api_client.config.client_side_validation && product_rate_plan.nil?
|
840
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan' when calling ProductrateplansApi.update_rate_plan"
|
841
|
+
end
|
871
842
|
# resource path
|
872
|
-
local_var_path = "/product-rate-plans"
|
843
|
+
local_var_path = "/product-rate-plans"
|
873
844
|
|
874
845
|
# query parameters
|
875
846
|
query_params = {}
|
876
847
|
|
877
848
|
# header parameters
|
878
849
|
header_params = {}
|
879
|
-
|
880
850
|
# HTTP header 'Accept' (if needed)
|
881
|
-
|
882
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
883
|
-
|
851
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
884
852
|
# HTTP header 'Content-Type'
|
885
|
-
|
886
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
853
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
887
854
|
|
888
855
|
# form parameters
|
889
856
|
form_params = {}
|
@@ -928,11 +895,15 @@ module Bfwd
|
|
928
895
|
@api_client.config.logger.debug "Calling API: ProductrateplansApi.upsert_metadata_for_rate_plan ..."
|
929
896
|
end
|
930
897
|
# verify the required parameter 'metadata' is set
|
931
|
-
|
898
|
+
if @api_client.config.client_side_validation && metadata.nil?
|
899
|
+
fail ArgumentError, "Missing the required parameter 'metadata' when calling ProductrateplansApi.upsert_metadata_for_rate_plan"
|
900
|
+
end
|
932
901
|
# verify the required parameter 'product_rate_plan_id' is set
|
933
|
-
|
902
|
+
if @api_client.config.client_side_validation && product_rate_plan_id.nil?
|
903
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan_id' when calling ProductrateplansApi.upsert_metadata_for_rate_plan"
|
904
|
+
end
|
934
905
|
# resource path
|
935
|
-
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/metadata".sub('{
|
906
|
+
local_var_path = "/product-rate-plans/{product-rate-plan-ID}/metadata".sub('{' + 'product-rate-plan-ID' + '}', product_rate_plan_id.to_s)
|
936
907
|
|
937
908
|
# query parameters
|
938
909
|
query_params = {}
|
@@ -940,14 +911,10 @@ module Bfwd
|
|
940
911
|
|
941
912
|
# header parameters
|
942
913
|
header_params = {}
|
943
|
-
|
944
914
|
# HTTP header 'Accept' (if needed)
|
945
|
-
|
946
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
947
|
-
|
915
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
948
916
|
# HTTP header 'Content-Type'
|
949
|
-
|
950
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
917
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
951
918
|
|
952
919
|
# form parameters
|
953
920
|
form_params = {}
|