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
|
|
@@ -51,23 +40,21 @@ module Bfwd
|
|
51
40
|
@api_client.config.logger.debug "Calling API: RolesApi.create_role ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'role_request' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && role_request.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'role_request' when calling RolesApi.create_role"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/roles"
|
47
|
+
local_var_path = "/roles"
|
57
48
|
|
58
49
|
# query parameters
|
59
50
|
query_params = {}
|
60
51
|
|
61
52
|
# header parameters
|
62
53
|
header_params = {}
|
63
|
-
|
64
54
|
# HTTP header 'Accept' (if needed)
|
65
|
-
|
66
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
-
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
68
56
|
# HTTP header 'Content-Type'
|
69
|
-
|
70
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
71
58
|
|
72
59
|
# form parameters
|
73
60
|
form_params = {}
|
@@ -117,11 +104,11 @@ module Bfwd
|
|
117
104
|
if @api_client.config.debugging
|
118
105
|
@api_client.config.logger.debug "Calling API: RolesApi.get_all_roles ..."
|
119
106
|
end
|
120
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
107
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
121
108
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
122
109
|
end
|
123
110
|
# resource path
|
124
|
-
local_var_path = "/roles"
|
111
|
+
local_var_path = "/roles"
|
125
112
|
|
126
113
|
# query parameters
|
127
114
|
query_params = {}
|
@@ -134,14 +121,8 @@ module Bfwd
|
|
134
121
|
|
135
122
|
# header parameters
|
136
123
|
header_params = {}
|
137
|
-
|
138
124
|
# HTTP header 'Accept' (if needed)
|
139
|
-
|
140
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
141
|
-
|
142
|
-
# HTTP header 'Content-Type'
|
143
|
-
local_header_content_type = []
|
144
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
145
126
|
|
146
127
|
# form parameters
|
147
128
|
form_params = {}
|
@@ -186,9 +167,11 @@ module Bfwd
|
|
186
167
|
@api_client.config.logger.debug "Calling API: RolesApi.get_role_by_id ..."
|
187
168
|
end
|
188
169
|
# verify the required parameter 'role' is set
|
189
|
-
|
170
|
+
if @api_client.config.client_side_validation && role.nil?
|
171
|
+
fail ArgumentError, "Missing the required parameter 'role' when calling RolesApi.get_role_by_id"
|
172
|
+
end
|
190
173
|
# resource path
|
191
|
-
local_var_path = "/roles/{role}".sub('{
|
174
|
+
local_var_path = "/roles/{role}".sub('{' + 'role' + '}', role.to_s)
|
192
175
|
|
193
176
|
# query parameters
|
194
177
|
query_params = {}
|
@@ -197,14 +180,10 @@ module Bfwd
|
|
197
180
|
|
198
181
|
# header parameters
|
199
182
|
header_params = {}
|
200
|
-
|
201
183
|
# HTTP header 'Accept' (if needed)
|
202
|
-
|
203
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
204
|
-
|
184
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
205
185
|
# HTTP header 'Content-Type'
|
206
|
-
|
207
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
186
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
208
187
|
|
209
188
|
# form parameters
|
210
189
|
form_params = {}
|
@@ -251,21 +230,27 @@ module Bfwd
|
|
251
230
|
@api_client.config.logger.debug "Calling API: RolesApi.remove_permission_from_role ..."
|
252
231
|
end
|
253
232
|
# verify the required parameter 'role' is set
|
254
|
-
|
233
|
+
if @api_client.config.client_side_validation && role.nil?
|
234
|
+
fail ArgumentError, "Missing the required parameter 'role' when calling RolesApi.remove_permission_from_role"
|
235
|
+
end
|
255
236
|
# verify the required parameter 'resource' is set
|
256
|
-
|
237
|
+
if @api_client.config.client_side_validation && resource.nil?
|
238
|
+
fail ArgumentError, "Missing the required parameter 'resource' when calling RolesApi.remove_permission_from_role"
|
239
|
+
end
|
257
240
|
# verify enum value
|
258
|
-
|
241
|
+
if @api_client.config.client_side_validation && !['All', 'Account', 'Address', 'Amendment', 'Analytics', 'Audit', 'BFAdmin', 'BFJS', 'Charge', 'Client', 'Configuration', 'CouponBook', 'CouponBookDefinition', 'CouponDefinition', 'CouponInstance', 'CouponModifier', 'CouponRule', 'Coupon', 'Credit', 'CybersourceToken', 'Dunning', 'Email', 'FixedTerm', 'Gateway', 'Invoice', 'Notification', 'Organization', 'Password', 'PaymentMethod', 'Payment', 'Permission', 'PricingComponent', 'PricingComponentTier', 'PricingComponentValueChange', 'PricingComponentValue', 'ProductRatePlan', 'Product', 'ProductResources', 'Profile', 'Quote', 'Receipt', 'Refund', 'Salesforce', 'Search', 'Subscription', 'Tax', 'UnitOfMeasure', 'Usage', 'Username', 'User', 'UserResources', 'Webhook'].include?(resource)
|
259
242
|
fail ArgumentError, "invalid value for 'resource', must be one of All, Account, Address, Amendment, Analytics, Audit, BFAdmin, BFJS, Charge, Client, Configuration, CouponBook, CouponBookDefinition, CouponDefinition, CouponInstance, CouponModifier, CouponRule, Coupon, Credit, CybersourceToken, Dunning, Email, FixedTerm, Gateway, Invoice, Notification, Organization, Password, PaymentMethod, Payment, Permission, PricingComponent, PricingComponentTier, PricingComponentValueChange, PricingComponentValue, ProductRatePlan, Product, ProductResources, Profile, Quote, Receipt, Refund, Salesforce, Search, Subscription, Tax, UnitOfMeasure, Usage, Username, User, UserResources, Webhook"
|
260
243
|
end
|
261
244
|
# verify the required parameter 'action' is set
|
262
|
-
|
245
|
+
if @api_client.config.client_side_validation && action.nil?
|
246
|
+
fail ArgumentError, "Missing the required parameter 'action' when calling RolesApi.remove_permission_from_role"
|
247
|
+
end
|
263
248
|
# verify enum value
|
264
|
-
|
249
|
+
if @api_client.config.client_side_validation && !['All', 'AddToInvoice', 'AddToProductRatePlan', 'AddToSubscription', 'Advance', 'Aggregate', 'RemoveFromInvoice', 'RemoveFromProductRatePlan', 'RemoveFromSubscription', 'Cancel', 'Create', 'Delete', 'Edit', 'Execute', 'Freeze', 'Import', 'InvoiceCharges', 'Issue', 'Migrate', 'Read', 'Recalculate', 'Reset', 'Resume', 'Revive', 'Stop', 'Tokenize', 'Void'].include?(action)
|
265
250
|
fail ArgumentError, "invalid value for 'action', must be one of All, AddToInvoice, AddToProductRatePlan, AddToSubscription, Advance, Aggregate, RemoveFromInvoice, RemoveFromProductRatePlan, RemoveFromSubscription, Cancel, Create, Delete, Edit, Execute, Freeze, Import, InvoiceCharges, Issue, Migrate, Read, Recalculate, Reset, Resume, Revive, Stop, Tokenize, Void"
|
266
251
|
end
|
267
252
|
# resource path
|
268
|
-
local_var_path = "/roles/{role}/permission/{resource}/{action}".sub('{
|
253
|
+
local_var_path = "/roles/{role}/permission/{resource}/{action}".sub('{' + 'role' + '}', role.to_s).sub('{' + 'resource' + '}', resource.to_s).sub('{' + 'action' + '}', action.to_s)
|
269
254
|
|
270
255
|
# query parameters
|
271
256
|
query_params = {}
|
@@ -273,14 +258,10 @@ module Bfwd
|
|
273
258
|
|
274
259
|
# header parameters
|
275
260
|
header_params = {}
|
276
|
-
|
277
261
|
# HTTP header 'Accept' (if needed)
|
278
|
-
|
279
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
280
|
-
|
262
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
281
263
|
# HTTP header 'Content-Type'
|
282
|
-
|
283
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
264
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
284
265
|
|
285
266
|
# form parameters
|
286
267
|
form_params = {}
|
@@ -323,9 +304,11 @@ module Bfwd
|
|
323
304
|
@api_client.config.logger.debug "Calling API: RolesApi.revoke_role ..."
|
324
305
|
end
|
325
306
|
# verify the required parameter 'role' is set
|
326
|
-
|
307
|
+
if @api_client.config.client_side_validation && role.nil?
|
308
|
+
fail ArgumentError, "Missing the required parameter 'role' when calling RolesApi.revoke_role"
|
309
|
+
end
|
327
310
|
# resource path
|
328
|
-
local_var_path = "/roles/{role}".sub('{
|
311
|
+
local_var_path = "/roles/{role}".sub('{' + 'role' + '}', role.to_s)
|
329
312
|
|
330
313
|
# query parameters
|
331
314
|
query_params = {}
|
@@ -333,14 +316,10 @@ module Bfwd
|
|
333
316
|
|
334
317
|
# header parameters
|
335
318
|
header_params = {}
|
336
|
-
|
337
319
|
# 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
|
-
|
320
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
341
321
|
# HTTP header 'Content-Type'
|
342
|
-
|
343
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
322
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
344
323
|
|
345
324
|
# form parameters
|
346
325
|
form_params = {}
|
@@ -381,23 +360,21 @@ module Bfwd
|
|
381
360
|
@api_client.config.logger.debug "Calling API: RolesApi.update_role ..."
|
382
361
|
end
|
383
362
|
# verify the required parameter 'role_request' is set
|
384
|
-
|
363
|
+
if @api_client.config.client_side_validation && role_request.nil?
|
364
|
+
fail ArgumentError, "Missing the required parameter 'role_request' when calling RolesApi.update_role"
|
365
|
+
end
|
385
366
|
# resource path
|
386
|
-
local_var_path = "/roles"
|
367
|
+
local_var_path = "/roles"
|
387
368
|
|
388
369
|
# query parameters
|
389
370
|
query_params = {}
|
390
371
|
|
391
372
|
# header parameters
|
392
373
|
header_params = {}
|
393
|
-
|
394
374
|
# HTTP header 'Accept' (if needed)
|
395
|
-
|
396
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
397
|
-
|
375
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
398
376
|
# HTTP header 'Content-Type'
|
399
|
-
|
400
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
377
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
401
378
|
|
402
379
|
# form parameters
|
403
380
|
form_params = {}
|
@@ -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
|
|
@@ -63,9 +52,11 @@ module Bfwd
|
|
63
52
|
@api_client.config.logger.debug "Calling API: SearchApi.perform_search ..."
|
64
53
|
end
|
65
54
|
# verify the required parameter 'query_string' is set
|
66
|
-
|
55
|
+
if @api_client.config.client_side_validation && query_string.nil?
|
56
|
+
fail ArgumentError, "Missing the required parameter 'query_string' when calling SearchApi.perform_search"
|
57
|
+
end
|
67
58
|
# resource path
|
68
|
-
local_var_path = "/search/{query-string}".sub('{
|
59
|
+
local_var_path = "/search/{query-string}".sub('{' + 'query-string' + '}', query_string.to_s)
|
69
60
|
|
70
61
|
# query parameters
|
71
62
|
query_params = {}
|
@@ -78,14 +69,10 @@ module Bfwd
|
|
78
69
|
|
79
70
|
# header parameters
|
80
71
|
header_params = {}
|
81
|
-
|
82
72
|
# HTTP header 'Accept' (if needed)
|
83
|
-
|
84
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
85
|
-
|
73
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
86
74
|
# HTTP header 'Content-Type'
|
87
|
-
|
88
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
75
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
89
76
|
|
90
77
|
# form parameters
|
91
78
|
form_params = {}
|
@@ -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: SubscriptionsApi.add_charge_to_subscription ..."
|
54
43
|
end
|
55
44
|
# verify the required parameter 'subscription_id' is set
|
56
|
-
|
45
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.add_charge_to_subscription"
|
47
|
+
end
|
57
48
|
# verify the required parameter 'charge' is set
|
58
|
-
|
49
|
+
if @api_client.config.client_side_validation && charge.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'charge' when calling SubscriptionsApi.add_charge_to_subscription"
|
51
|
+
end
|
59
52
|
# resource path
|
60
|
-
local_var_path = "/subscriptions/{subscription-ID}/charge".sub('{
|
53
|
+
local_var_path = "/subscriptions/{subscription-ID}/charge".sub('{' + 'subscription-ID' + '}', subscription_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 = {}
|
@@ -114,25 +103,25 @@ module Bfwd
|
|
114
103
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.add_coupon_to_subscription ..."
|
115
104
|
end
|
116
105
|
# verify the required parameter 'subscription_id' is set
|
117
|
-
|
106
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.add_coupon_to_subscription"
|
108
|
+
end
|
118
109
|
# verify the required parameter 'request' is set
|
119
|
-
|
110
|
+
if @api_client.config.client_side_validation && request.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.add_coupon_to_subscription"
|
112
|
+
end
|
120
113
|
# resource path
|
121
|
-
local_var_path = "/subscriptions/{subscription-ID}/coupons".sub('{
|
114
|
+
local_var_path = "/subscriptions/{subscription-ID}/coupons".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
122
115
|
|
123
116
|
# query parameters
|
124
117
|
query_params = {}
|
125
118
|
|
126
119
|
# header parameters
|
127
120
|
header_params = {}
|
128
|
-
|
129
121
|
# HTTP header 'Accept' (if needed)
|
130
|
-
|
131
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
132
|
-
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
133
123
|
# HTTP header 'Content-Type'
|
134
|
-
|
135
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
124
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
136
125
|
|
137
126
|
# form parameters
|
138
127
|
form_params = {}
|
@@ -175,25 +164,25 @@ module Bfwd
|
|
175
164
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.add_credit_note_to_subscription ..."
|
176
165
|
end
|
177
166
|
# verify the required parameter 'subscription_id' is set
|
178
|
-
|
167
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
168
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.add_credit_note_to_subscription"
|
169
|
+
end
|
179
170
|
# verify the required parameter 'credit_note' is set
|
180
|
-
|
171
|
+
if @api_client.config.client_side_validation && credit_note.nil?
|
172
|
+
fail ArgumentError, "Missing the required parameter 'credit_note' when calling SubscriptionsApi.add_credit_note_to_subscription"
|
173
|
+
end
|
181
174
|
# resource path
|
182
|
-
local_var_path = "/subscriptions/{subscription-ID}/credit".sub('{
|
175
|
+
local_var_path = "/subscriptions/{subscription-ID}/credit".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
183
176
|
|
184
177
|
# query parameters
|
185
178
|
query_params = {}
|
186
179
|
|
187
180
|
# header parameters
|
188
181
|
header_params = {}
|
189
|
-
|
190
182
|
# HTTP header 'Accept' (if needed)
|
191
|
-
|
192
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
193
|
-
|
183
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
194
184
|
# HTTP header 'Content-Type'
|
195
|
-
|
196
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
185
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
197
186
|
|
198
187
|
# form parameters
|
199
188
|
form_params = {}
|
@@ -236,25 +225,25 @@ module Bfwd
|
|
236
225
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.add_payment_method_to_subscription ..."
|
237
226
|
end
|
238
227
|
# verify the required parameter 'subscription_id' is set
|
239
|
-
|
228
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
229
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.add_payment_method_to_subscription"
|
230
|
+
end
|
240
231
|
# verify the required parameter 'payment_method' is set
|
241
|
-
|
232
|
+
if @api_client.config.client_side_validation && payment_method.nil?
|
233
|
+
fail ArgumentError, "Missing the required parameter 'payment_method' when calling SubscriptionsApi.add_payment_method_to_subscription"
|
234
|
+
end
|
242
235
|
# resource path
|
243
|
-
local_var_path = "/subscriptions/{subscription-ID}/payment-methods".sub('{
|
236
|
+
local_var_path = "/subscriptions/{subscription-ID}/payment-methods".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
244
237
|
|
245
238
|
# query parameters
|
246
239
|
query_params = {}
|
247
240
|
|
248
241
|
# header parameters
|
249
242
|
header_params = {}
|
250
|
-
|
251
243
|
# HTTP header 'Accept' (if needed)
|
252
|
-
|
253
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
254
|
-
|
244
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
255
245
|
# HTTP header 'Content-Type'
|
256
|
-
|
257
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
246
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
258
247
|
|
259
248
|
# form parameters
|
260
249
|
form_params = {}
|
@@ -297,25 +286,25 @@ module Bfwd
|
|
297
286
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.advance_subscription ..."
|
298
287
|
end
|
299
288
|
# verify the required parameter 'subscription_id' is set
|
300
|
-
|
289
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
290
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.advance_subscription"
|
291
|
+
end
|
301
292
|
# verify the required parameter 'request' is set
|
302
|
-
|
293
|
+
if @api_client.config.client_side_validation && request.nil?
|
294
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.advance_subscription"
|
295
|
+
end
|
303
296
|
# resource path
|
304
|
-
local_var_path = "/subscriptions/{subscription-ID}/advance".sub('{
|
297
|
+
local_var_path = "/subscriptions/{subscription-ID}/advance".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
305
298
|
|
306
299
|
# query parameters
|
307
300
|
query_params = {}
|
308
301
|
|
309
302
|
# header parameters
|
310
303
|
header_params = {}
|
311
|
-
|
312
304
|
# HTTP header 'Accept' (if needed)
|
313
|
-
|
314
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
315
|
-
|
305
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
316
306
|
# HTTP header 'Content-Type'
|
317
|
-
|
318
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
307
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
319
308
|
|
320
309
|
# form parameters
|
321
310
|
form_params = {}
|
@@ -366,12 +355,14 @@ module Bfwd
|
|
366
355
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.available_payment_methods_for_subscription ..."
|
367
356
|
end
|
368
357
|
# verify the required parameter 'subscription_id' is set
|
369
|
-
|
370
|
-
|
358
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
359
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.available_payment_methods_for_subscription"
|
360
|
+
end
|
361
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
371
362
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
372
363
|
end
|
373
364
|
# resource path
|
374
|
-
local_var_path = "/subscriptions/{subscription-ID}/payment-methods".sub('{
|
365
|
+
local_var_path = "/subscriptions/{subscription-ID}/payment-methods".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
375
366
|
|
376
367
|
# query parameters
|
377
368
|
query_params = {}
|
@@ -383,14 +374,10 @@ module Bfwd
|
|
383
374
|
|
384
375
|
# header parameters
|
385
376
|
header_params = {}
|
386
|
-
|
387
377
|
# HTTP header 'Accept' (if needed)
|
388
|
-
|
389
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
390
|
-
|
378
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
391
379
|
# HTTP header 'Content-Type'
|
392
|
-
|
393
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
380
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
394
381
|
|
395
382
|
# form parameters
|
396
383
|
form_params = {}
|
@@ -431,23 +418,21 @@ module Bfwd
|
|
431
418
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.batch_create_subscriptions ..."
|
432
419
|
end
|
433
420
|
# verify the required parameter 'request' is set
|
434
|
-
|
421
|
+
if @api_client.config.client_side_validation && request.nil?
|
422
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.batch_create_subscriptions"
|
423
|
+
end
|
435
424
|
# resource path
|
436
|
-
local_var_path = "/subscriptions/batch"
|
425
|
+
local_var_path = "/subscriptions/batch"
|
437
426
|
|
438
427
|
# query parameters
|
439
428
|
query_params = {}
|
440
429
|
|
441
430
|
# header parameters
|
442
431
|
header_params = {}
|
443
|
-
|
444
432
|
# HTTP header 'Accept' (if needed)
|
445
|
-
|
446
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
447
|
-
|
433
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
448
434
|
# HTTP header 'Content-Type'
|
449
|
-
|
450
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
435
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
451
436
|
|
452
437
|
# form parameters
|
453
438
|
form_params = {}
|
@@ -490,25 +475,25 @@ module Bfwd
|
|
490
475
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.cancel_subscription ..."
|
491
476
|
end
|
492
477
|
# verify the required parameter 'subscription_id' is set
|
493
|
-
|
478
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
479
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.cancel_subscription"
|
480
|
+
end
|
494
481
|
# verify the required parameter 'subscription_cancellation' is set
|
495
|
-
|
482
|
+
if @api_client.config.client_side_validation && subscription_cancellation.nil?
|
483
|
+
fail ArgumentError, "Missing the required parameter 'subscription_cancellation' when calling SubscriptionsApi.cancel_subscription"
|
484
|
+
end
|
496
485
|
# resource path
|
497
|
-
local_var_path = "/subscriptions/{subscription-ID}/cancel".sub('{
|
486
|
+
local_var_path = "/subscriptions/{subscription-ID}/cancel".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
498
487
|
|
499
488
|
# query parameters
|
500
489
|
query_params = {}
|
501
490
|
|
502
491
|
# header parameters
|
503
492
|
header_params = {}
|
504
|
-
|
505
493
|
# HTTP header 'Accept' (if needed)
|
506
|
-
|
507
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
508
|
-
|
494
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
509
495
|
# HTTP header 'Content-Type'
|
510
|
-
|
511
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
496
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
512
497
|
|
513
498
|
# form parameters
|
514
499
|
form_params = {}
|
@@ -549,23 +534,21 @@ module Bfwd
|
|
549
534
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.create_aggregating_subscription ..."
|
550
535
|
end
|
551
536
|
# verify the required parameter 'request' is set
|
552
|
-
|
537
|
+
if @api_client.config.client_side_validation && request.nil?
|
538
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.create_aggregating_subscription"
|
539
|
+
end
|
553
540
|
# resource path
|
554
|
-
local_var_path = "/subscriptions/aggregating"
|
541
|
+
local_var_path = "/subscriptions/aggregating"
|
555
542
|
|
556
543
|
# query parameters
|
557
544
|
query_params = {}
|
558
545
|
|
559
546
|
# header parameters
|
560
547
|
header_params = {}
|
561
|
-
|
562
548
|
# HTTP header 'Accept' (if needed)
|
563
|
-
|
564
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
565
|
-
|
549
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
566
550
|
# HTTP header 'Content-Type'
|
567
|
-
|
568
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
551
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
569
552
|
|
570
553
|
# form parameters
|
571
554
|
form_params = {}
|
@@ -606,23 +589,21 @@ module Bfwd
|
|
606
589
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.create_subscription ..."
|
607
590
|
end
|
608
591
|
# verify the required parameter 'subscription' is set
|
609
|
-
|
592
|
+
if @api_client.config.client_side_validation && subscription.nil?
|
593
|
+
fail ArgumentError, "Missing the required parameter 'subscription' when calling SubscriptionsApi.create_subscription"
|
594
|
+
end
|
610
595
|
# resource path
|
611
|
-
local_var_path = "/subscriptions"
|
596
|
+
local_var_path = "/subscriptions"
|
612
597
|
|
613
598
|
# query parameters
|
614
599
|
query_params = {}
|
615
600
|
|
616
601
|
# header parameters
|
617
602
|
header_params = {}
|
618
|
-
|
619
603
|
# HTTP header 'Accept' (if needed)
|
620
|
-
|
621
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
622
|
-
|
604
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
623
605
|
# HTTP header 'Content-Type'
|
624
|
-
|
625
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
606
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
626
607
|
|
627
608
|
# form parameters
|
628
609
|
form_params = {}
|
@@ -663,23 +644,21 @@ module Bfwd
|
|
663
644
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.create_subscription_v2 ..."
|
664
645
|
end
|
665
646
|
# verify the required parameter 'request' is set
|
666
|
-
|
647
|
+
if @api_client.config.client_side_validation && request.nil?
|
648
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.create_subscription_v2"
|
649
|
+
end
|
667
650
|
# resource path
|
668
|
-
local_var_path = "/subscriptions/create"
|
651
|
+
local_var_path = "/subscriptions/create"
|
669
652
|
|
670
653
|
# query parameters
|
671
654
|
query_params = {}
|
672
655
|
|
673
656
|
# header parameters
|
674
657
|
header_params = {}
|
675
|
-
|
676
658
|
# HTTP header 'Accept' (if needed)
|
677
|
-
|
678
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
679
|
-
|
659
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
680
660
|
# HTTP header 'Content-Type'
|
681
|
-
|
682
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
661
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
683
662
|
|
684
663
|
# form parameters
|
685
664
|
form_params = {}
|
@@ -722,25 +701,25 @@ module Bfwd
|
|
722
701
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.create_timer ..."
|
723
702
|
end
|
724
703
|
# verify the required parameter 'subscription_id' is set
|
725
|
-
|
704
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
705
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.create_timer"
|
706
|
+
end
|
726
707
|
# verify the required parameter 'request' is set
|
727
|
-
|
708
|
+
if @api_client.config.client_side_validation && request.nil?
|
709
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.create_timer"
|
710
|
+
end
|
728
711
|
# resource path
|
729
|
-
local_var_path = "/subscriptions/{subscription-ID}/timer".sub('{
|
712
|
+
local_var_path = "/subscriptions/{subscription-ID}/timer".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
730
713
|
|
731
714
|
# query parameters
|
732
715
|
query_params = {}
|
733
716
|
|
734
717
|
# header parameters
|
735
718
|
header_params = {}
|
736
|
-
|
737
719
|
# HTTP header 'Accept' (if needed)
|
738
|
-
|
739
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
740
|
-
|
720
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
741
721
|
# HTTP header 'Content-Type'
|
742
|
-
|
743
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
722
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
744
723
|
|
745
724
|
# form parameters
|
746
725
|
form_params = {}
|
@@ -783,9 +762,11 @@ module Bfwd
|
|
783
762
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.delete_metadata_for_subscription ..."
|
784
763
|
end
|
785
764
|
# verify the required parameter 'subscription_id' is set
|
786
|
-
|
765
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
766
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.delete_metadata_for_subscription"
|
767
|
+
end
|
787
768
|
# resource path
|
788
|
-
local_var_path = "/subscriptions/{subscription-ID}/metadata".sub('{
|
769
|
+
local_var_path = "/subscriptions/{subscription-ID}/metadata".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
789
770
|
|
790
771
|
# query parameters
|
791
772
|
query_params = {}
|
@@ -793,14 +774,10 @@ module Bfwd
|
|
793
774
|
|
794
775
|
# header parameters
|
795
776
|
header_params = {}
|
796
|
-
|
797
777
|
# HTTP header 'Accept' (if needed)
|
798
|
-
|
799
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
800
|
-
|
778
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
801
779
|
# HTTP header 'Content-Type'
|
802
|
-
|
803
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
780
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
804
781
|
|
805
782
|
# form parameters
|
806
783
|
form_params = {}
|
@@ -843,25 +820,25 @@ module Bfwd
|
|
843
820
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.freeze_subscription ..."
|
844
821
|
end
|
845
822
|
# verify the required parameter 'subscription_id' is set
|
846
|
-
|
823
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
824
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.freeze_subscription"
|
825
|
+
end
|
847
826
|
# verify the required parameter 'request' is set
|
848
|
-
|
827
|
+
if @api_client.config.client_side_validation && request.nil?
|
828
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.freeze_subscription"
|
829
|
+
end
|
849
830
|
# resource path
|
850
|
-
local_var_path = "/subscriptions/{subscription-ID}/freeze".sub('{
|
831
|
+
local_var_path = "/subscriptions/{subscription-ID}/freeze".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
851
832
|
|
852
833
|
# query parameters
|
853
834
|
query_params = {}
|
854
835
|
|
855
836
|
# header parameters
|
856
837
|
header_params = {}
|
857
|
-
|
858
838
|
# HTTP header 'Accept' (if needed)
|
859
|
-
|
860
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
861
|
-
|
839
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
862
840
|
# HTTP header 'Content-Type'
|
863
|
-
|
864
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
841
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
865
842
|
|
866
843
|
# form parameters
|
867
844
|
form_params = {}
|
@@ -919,11 +896,11 @@ module Bfwd
|
|
919
896
|
if @api_client.config.debugging
|
920
897
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_all_subscriptions ..."
|
921
898
|
end
|
922
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
899
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
923
900
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
924
901
|
end
|
925
902
|
# resource path
|
926
|
-
local_var_path = "/subscriptions"
|
903
|
+
local_var_path = "/subscriptions"
|
927
904
|
|
928
905
|
# query parameters
|
929
906
|
query_params = {}
|
@@ -940,14 +917,10 @@ module Bfwd
|
|
940
917
|
|
941
918
|
# header parameters
|
942
919
|
header_params = {}
|
943
|
-
|
944
920
|
# 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
|
-
|
921
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
948
922
|
# HTTP header 'Content-Type'
|
949
|
-
|
950
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
923
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
951
924
|
|
952
925
|
# form parameters
|
953
926
|
form_params = {}
|
@@ -1000,12 +973,14 @@ module Bfwd
|
|
1000
973
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_applicable_coupons_for_subscription ..."
|
1001
974
|
end
|
1002
975
|
# verify the required parameter 'subscription_id' is set
|
1003
|
-
|
1004
|
-
|
976
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
977
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_applicable_coupons_for_subscription"
|
978
|
+
end
|
979
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1005
980
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
1006
981
|
end
|
1007
982
|
# resource path
|
1008
|
-
local_var_path = "/subscriptions/{subscription-ID}/applicable-coupons".sub('{
|
983
|
+
local_var_path = "/subscriptions/{subscription-ID}/applicable-coupons".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
1009
984
|
|
1010
985
|
# query parameters
|
1011
986
|
query_params = {}
|
@@ -1018,14 +993,10 @@ module Bfwd
|
|
1018
993
|
|
1019
994
|
# header parameters
|
1020
995
|
header_params = {}
|
1021
|
-
|
1022
996
|
# HTTP header 'Accept' (if needed)
|
1023
|
-
|
1024
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1025
|
-
|
997
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1026
998
|
# HTTP header 'Content-Type'
|
1027
|
-
|
1028
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
999
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1029
1000
|
|
1030
1001
|
# form parameters
|
1031
1002
|
form_params = {}
|
@@ -1078,12 +1049,14 @@ module Bfwd
|
|
1078
1049
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_available_credit_subscription ..."
|
1079
1050
|
end
|
1080
1051
|
# verify the required parameter 'subscription_id' is set
|
1081
|
-
|
1082
|
-
|
1052
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
1053
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_available_credit_subscription"
|
1054
|
+
end
|
1055
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1083
1056
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
1084
1057
|
end
|
1085
1058
|
# resource path
|
1086
|
-
local_var_path = "/subscriptions/{subscription-ID}/credit".sub('{
|
1059
|
+
local_var_path = "/subscriptions/{subscription-ID}/credit".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
1087
1060
|
|
1088
1061
|
# query parameters
|
1089
1062
|
query_params = {}
|
@@ -1096,14 +1069,10 @@ module Bfwd
|
|
1096
1069
|
|
1097
1070
|
# header parameters
|
1098
1071
|
header_params = {}
|
1099
|
-
|
1100
1072
|
# HTTP header 'Accept' (if needed)
|
1101
|
-
|
1102
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1103
|
-
|
1073
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1104
1074
|
# HTTP header 'Content-Type'
|
1105
|
-
|
1106
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1075
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1107
1076
|
|
1108
1077
|
# form parameters
|
1109
1078
|
form_params = {}
|
@@ -1160,18 +1129,20 @@ module Bfwd
|
|
1160
1129
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_charges_on_subscription ..."
|
1161
1130
|
end
|
1162
1131
|
# verify the required parameter 'subscription_id' is set
|
1163
|
-
|
1164
|
-
|
1132
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
1133
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_charges_on_subscription"
|
1134
|
+
end
|
1135
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1165
1136
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
1166
1137
|
end
|
1167
|
-
if opts[:'state'] && !['Voided', 'Pending', 'AwaitingPayment', 'Paid', 'Failed'].include?(opts[:'state'])
|
1138
|
+
if @api_client.config.client_side_validation && opts[:'state'] && !['Voided', 'Pending', 'AwaitingPayment', 'Paid', 'Failed'].include?(opts[:'state'])
|
1168
1139
|
fail ArgumentError, 'invalid value for "state", must be one of Voided, Pending, AwaitingPayment, Paid, Failed'
|
1169
1140
|
end
|
1170
|
-
if opts[:'type'] && !['Setup', 'Upgrade', 'Manual', 'ProductRatePlanMigration', 'Arrears', 'Advance', 'Coupon', 'Usage', 'PricingComponent'].include?(opts[:'type'])
|
1141
|
+
if @api_client.config.client_side_validation && opts[:'type'] && !['Setup', 'Upgrade', 'Manual', 'ProductRatePlanMigration', 'Arrears', 'Advance', 'Coupon', 'Usage', 'PricingComponent'].include?(opts[:'type'])
|
1171
1142
|
fail ArgumentError, 'invalid value for "type", must be one of Setup, Upgrade, Manual, ProductRatePlanMigration, Arrears, Advance, Coupon, Usage, PricingComponent'
|
1172
1143
|
end
|
1173
1144
|
# resource path
|
1174
|
-
local_var_path = "/subscriptions/{subscription-ID}/charges".sub('{
|
1145
|
+
local_var_path = "/subscriptions/{subscription-ID}/charges".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
1175
1146
|
|
1176
1147
|
# query parameters
|
1177
1148
|
query_params = {}
|
@@ -1186,14 +1157,10 @@ module Bfwd
|
|
1186
1157
|
|
1187
1158
|
# header parameters
|
1188
1159
|
header_params = {}
|
1189
|
-
|
1190
1160
|
# HTTP header 'Accept' (if needed)
|
1191
|
-
|
1192
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1193
|
-
|
1161
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1194
1162
|
# HTTP header 'Content-Type'
|
1195
|
-
|
1196
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1163
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1197
1164
|
|
1198
1165
|
# form parameters
|
1199
1166
|
form_params = {}
|
@@ -1246,12 +1213,14 @@ module Bfwd
|
|
1246
1213
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_children_of_subscription ..."
|
1247
1214
|
end
|
1248
1215
|
# verify the required parameter 'subscription_id' is set
|
1249
|
-
|
1250
|
-
|
1216
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
1217
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_children_of_subscription"
|
1218
|
+
end
|
1219
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1251
1220
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
1252
1221
|
end
|
1253
1222
|
# resource path
|
1254
|
-
local_var_path = "/subscriptions/{subscription-ID}/children".sub('{
|
1223
|
+
local_var_path = "/subscriptions/{subscription-ID}/children".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
1255
1224
|
|
1256
1225
|
# query parameters
|
1257
1226
|
query_params = {}
|
@@ -1264,14 +1233,10 @@ module Bfwd
|
|
1264
1233
|
|
1265
1234
|
# header parameters
|
1266
1235
|
header_params = {}
|
1267
|
-
|
1268
1236
|
# HTTP header 'Accept' (if needed)
|
1269
|
-
|
1270
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1271
|
-
|
1237
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1272
1238
|
# HTTP header 'Content-Type'
|
1273
|
-
|
1274
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1239
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1275
1240
|
|
1276
1241
|
# form parameters
|
1277
1242
|
form_params = {}
|
@@ -1324,12 +1289,14 @@ module Bfwd
|
|
1324
1289
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_coupons_on_subscription ..."
|
1325
1290
|
end
|
1326
1291
|
# verify the required parameter 'subscription_id' is set
|
1327
|
-
|
1328
|
-
|
1292
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
1293
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_coupons_on_subscription"
|
1294
|
+
end
|
1295
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1329
1296
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
1330
1297
|
end
|
1331
1298
|
# resource path
|
1332
|
-
local_var_path = "/subscriptions/{subscription-ID}/coupons".sub('{
|
1299
|
+
local_var_path = "/subscriptions/{subscription-ID}/coupons".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
1333
1300
|
|
1334
1301
|
# query parameters
|
1335
1302
|
query_params = {}
|
@@ -1342,14 +1309,10 @@ module Bfwd
|
|
1342
1309
|
|
1343
1310
|
# header parameters
|
1344
1311
|
header_params = {}
|
1345
|
-
|
1346
1312
|
# HTTP header 'Accept' (if needed)
|
1347
|
-
|
1348
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1349
|
-
|
1313
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1350
1314
|
# HTTP header 'Content-Type'
|
1351
|
-
|
1352
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1315
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1353
1316
|
|
1354
1317
|
# form parameters
|
1355
1318
|
form_params = {}
|
@@ -1402,18 +1365,22 @@ module Bfwd
|
|
1402
1365
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_invoices_for_subscription_by_state ..."
|
1403
1366
|
end
|
1404
1367
|
# verify the required parameter 'subscription_id' is set
|
1405
|
-
|
1368
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
1369
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_invoices_for_subscription_by_state"
|
1370
|
+
end
|
1406
1371
|
# verify the required parameter 'state' is set
|
1407
|
-
|
1372
|
+
if @api_client.config.client_side_validation && state.nil?
|
1373
|
+
fail ArgumentError, "Missing the required parameter 'state' when calling SubscriptionsApi.get_invoices_for_subscription_by_state"
|
1374
|
+
end
|
1408
1375
|
# verify enum value
|
1409
|
-
|
1376
|
+
if @api_client.config.client_side_validation && !['Paid', 'Unpaid', 'Pending', 'Voided'].include?(state)
|
1410
1377
|
fail ArgumentError, "invalid value for 'state', must be one of Paid, Unpaid, Pending, Voided"
|
1411
1378
|
end
|
1412
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1379
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1413
1380
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
1414
1381
|
end
|
1415
1382
|
# resource path
|
1416
|
-
local_var_path = "/subscriptions/{subscriptionID}/invoices/{state}".sub('{
|
1383
|
+
local_var_path = "/subscriptions/{subscriptionID}/invoices/{state}".sub('{' + 'subscriptionID' + '}', subscription_id.to_s).sub('{' + 'state' + '}', state.to_s)
|
1417
1384
|
|
1418
1385
|
# query parameters
|
1419
1386
|
query_params = {}
|
@@ -1425,14 +1392,10 @@ module Bfwd
|
|
1425
1392
|
|
1426
1393
|
# header parameters
|
1427
1394
|
header_params = {}
|
1428
|
-
|
1429
1395
|
# HTTP header 'Accept' (if needed)
|
1430
|
-
|
1431
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1432
|
-
|
1396
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1433
1397
|
# HTTP header 'Content-Type'
|
1434
|
-
|
1435
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1398
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1436
1399
|
|
1437
1400
|
# form parameters
|
1438
1401
|
form_params = {}
|
@@ -1475,9 +1438,11 @@ module Bfwd
|
|
1475
1438
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_metadata_for_subscription ..."
|
1476
1439
|
end
|
1477
1440
|
# verify the required parameter 'subscription_id' is set
|
1478
|
-
|
1441
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
1442
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_metadata_for_subscription"
|
1443
|
+
end
|
1479
1444
|
# resource path
|
1480
|
-
local_var_path = "/subscriptions/{subscription-ID}/metadata".sub('{
|
1445
|
+
local_var_path = "/subscriptions/{subscription-ID}/metadata".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
1481
1446
|
|
1482
1447
|
# query parameters
|
1483
1448
|
query_params = {}
|
@@ -1485,14 +1450,10 @@ module Bfwd
|
|
1485
1450
|
|
1486
1451
|
# header parameters
|
1487
1452
|
header_params = {}
|
1488
|
-
|
1489
1453
|
# HTTP header 'Accept' (if needed)
|
1490
|
-
|
1491
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1492
|
-
|
1454
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1493
1455
|
# HTTP header 'Content-Type'
|
1494
|
-
|
1495
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1456
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1496
1457
|
|
1497
1458
|
# form parameters
|
1498
1459
|
form_params = {}
|
@@ -1535,9 +1496,11 @@ module Bfwd
|
|
1535
1496
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_parent_subscription ..."
|
1536
1497
|
end
|
1537
1498
|
# verify the required parameter 'subscription_id' is set
|
1538
|
-
|
1499
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
1500
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_parent_subscription"
|
1501
|
+
end
|
1539
1502
|
# resource path
|
1540
|
-
local_var_path = "/subscriptions/{subscription-ID}/parent".sub('{
|
1503
|
+
local_var_path = "/subscriptions/{subscription-ID}/parent".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
1541
1504
|
|
1542
1505
|
# query parameters
|
1543
1506
|
query_params = {}
|
@@ -1545,14 +1508,10 @@ module Bfwd
|
|
1545
1508
|
|
1546
1509
|
# header parameters
|
1547
1510
|
header_params = {}
|
1548
|
-
|
1549
1511
|
# HTTP header 'Accept' (if needed)
|
1550
|
-
|
1551
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1552
|
-
|
1512
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1553
1513
|
# HTTP header 'Content-Type'
|
1554
|
-
|
1555
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1514
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1556
1515
|
|
1557
1516
|
# form parameters
|
1558
1517
|
form_params = {}
|
@@ -1593,23 +1552,21 @@ module Bfwd
|
|
1593
1552
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_pricing_component_values_of_subscription ..."
|
1594
1553
|
end
|
1595
1554
|
# verify the required parameter 'subscription_id' is set
|
1596
|
-
|
1555
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
1556
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_pricing_component_values_of_subscription"
|
1557
|
+
end
|
1597
1558
|
# resource path
|
1598
|
-
local_var_path = "/subscriptions/{subscription-ID}/values".sub('{
|
1559
|
+
local_var_path = "/subscriptions/{subscription-ID}/values".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
1599
1560
|
|
1600
1561
|
# query parameters
|
1601
1562
|
query_params = {}
|
1602
1563
|
|
1603
1564
|
# header parameters
|
1604
1565
|
header_params = {}
|
1605
|
-
|
1606
1566
|
# HTTP header 'Accept' (if needed)
|
1607
|
-
|
1608
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1609
|
-
|
1567
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1610
1568
|
# HTTP header 'Content-Type'
|
1611
|
-
|
1612
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1569
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1613
1570
|
|
1614
1571
|
# form parameters
|
1615
1572
|
form_params = {}
|
@@ -1664,12 +1621,14 @@ module Bfwd
|
|
1664
1621
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_subscription_by_account_id ..."
|
1665
1622
|
end
|
1666
1623
|
# verify the required parameter 'account_id' is set
|
1667
|
-
|
1668
|
-
|
1624
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
1625
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling SubscriptionsApi.get_subscription_by_account_id"
|
1626
|
+
end
|
1627
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1669
1628
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
1670
1629
|
end
|
1671
1630
|
# resource path
|
1672
|
-
local_var_path = "/subscriptions/account/{account-ID}".sub('{
|
1631
|
+
local_var_path = "/subscriptions/account/{account-ID}".sub('{' + 'account-ID' + '}', account_id.to_s)
|
1673
1632
|
|
1674
1633
|
# query parameters
|
1675
1634
|
query_params = {}
|
@@ -1683,14 +1642,10 @@ module Bfwd
|
|
1683
1642
|
|
1684
1643
|
# header parameters
|
1685
1644
|
header_params = {}
|
1686
|
-
|
1687
1645
|
# HTTP header 'Accept' (if needed)
|
1688
|
-
|
1689
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1690
|
-
|
1646
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1691
1647
|
# HTTP header 'Content-Type'
|
1692
|
-
|
1693
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1648
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1694
1649
|
|
1695
1650
|
# form parameters
|
1696
1651
|
form_params = {}
|
@@ -1735,9 +1690,11 @@ module Bfwd
|
|
1735
1690
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_subscription_by_id ..."
|
1736
1691
|
end
|
1737
1692
|
# verify the required parameter 'subscription_id' is set
|
1738
|
-
|
1693
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
1694
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_subscription_by_id"
|
1695
|
+
end
|
1739
1696
|
# resource path
|
1740
|
-
local_var_path = "/subscriptions/{subscription-ID}".sub('{
|
1697
|
+
local_var_path = "/subscriptions/{subscription-ID}".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
1741
1698
|
|
1742
1699
|
# query parameters
|
1743
1700
|
query_params = {}
|
@@ -1746,14 +1703,10 @@ module Bfwd
|
|
1746
1703
|
|
1747
1704
|
# header parameters
|
1748
1705
|
header_params = {}
|
1749
|
-
|
1750
1706
|
# HTTP header 'Accept' (if needed)
|
1751
|
-
|
1752
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1753
|
-
|
1707
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1754
1708
|
# HTTP header 'Content-Type'
|
1755
|
-
|
1756
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1709
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1757
1710
|
|
1758
1711
|
# form parameters
|
1759
1712
|
form_params = {}
|
@@ -1808,12 +1761,14 @@ module Bfwd
|
|
1808
1761
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_subscription_by_product_id ..."
|
1809
1762
|
end
|
1810
1763
|
# verify the required parameter 'product_id' is set
|
1811
|
-
|
1812
|
-
|
1764
|
+
if @api_client.config.client_side_validation && product_id.nil?
|
1765
|
+
fail ArgumentError, "Missing the required parameter 'product_id' when calling SubscriptionsApi.get_subscription_by_product_id"
|
1766
|
+
end
|
1767
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1813
1768
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
1814
1769
|
end
|
1815
1770
|
# resource path
|
1816
|
-
local_var_path = "/subscriptions/product/{product-ID}".sub('{
|
1771
|
+
local_var_path = "/subscriptions/product/{product-ID}".sub('{' + 'product-ID' + '}', product_id.to_s)
|
1817
1772
|
|
1818
1773
|
# query parameters
|
1819
1774
|
query_params = {}
|
@@ -1827,14 +1782,10 @@ module Bfwd
|
|
1827
1782
|
|
1828
1783
|
# header parameters
|
1829
1784
|
header_params = {}
|
1830
|
-
|
1831
1785
|
# HTTP header 'Accept' (if needed)
|
1832
|
-
|
1833
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1834
|
-
|
1786
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1835
1787
|
# HTTP header 'Content-Type'
|
1836
|
-
|
1837
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1788
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1838
1789
|
|
1839
1790
|
# form parameters
|
1840
1791
|
form_params = {}
|
@@ -1889,12 +1840,14 @@ module Bfwd
|
|
1889
1840
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_subscription_by_product_rate_plan_id ..."
|
1890
1841
|
end
|
1891
1842
|
# verify the required parameter 'product_rate_plan_id' is set
|
1892
|
-
|
1893
|
-
|
1843
|
+
if @api_client.config.client_side_validation && product_rate_plan_id.nil?
|
1844
|
+
fail ArgumentError, "Missing the required parameter 'product_rate_plan_id' when calling SubscriptionsApi.get_subscription_by_product_rate_plan_id"
|
1845
|
+
end
|
1846
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1894
1847
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
1895
1848
|
end
|
1896
1849
|
# resource path
|
1897
|
-
local_var_path = "/subscriptions/product-rate-plan/{product-rate-plan-ID}".sub('{
|
1850
|
+
local_var_path = "/subscriptions/product-rate-plan/{product-rate-plan-ID}".sub('{' + 'product-rate-plan-ID' + '}', product_rate_plan_id.to_s)
|
1898
1851
|
|
1899
1852
|
# query parameters
|
1900
1853
|
query_params = {}
|
@@ -1908,14 +1861,10 @@ module Bfwd
|
|
1908
1861
|
|
1909
1862
|
# header parameters
|
1910
1863
|
header_params = {}
|
1911
|
-
|
1912
1864
|
# HTTP header 'Accept' (if needed)
|
1913
|
-
|
1914
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1915
|
-
|
1865
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1916
1866
|
# HTTP header 'Content-Type'
|
1917
|
-
|
1918
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1867
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1919
1868
|
|
1920
1869
|
# form parameters
|
1921
1870
|
form_params = {}
|
@@ -1970,16 +1919,18 @@ module Bfwd
|
|
1970
1919
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_subscription_by_state ..."
|
1971
1920
|
end
|
1972
1921
|
# verify the required parameter 'state' is set
|
1973
|
-
|
1922
|
+
if @api_client.config.client_side_validation && state.nil?
|
1923
|
+
fail ArgumentError, "Missing the required parameter 'state' when calling SubscriptionsApi.get_subscription_by_state"
|
1924
|
+
end
|
1974
1925
|
# verify enum value
|
1975
|
-
|
1926
|
+
if @api_client.config.client_side_validation && !['Trial', 'Provisioned', 'Paid', 'AwaitingPayment', 'Cancelled', 'Failed', 'Expired'].include?(state)
|
1976
1927
|
fail ArgumentError, "invalid value for 'state', must be one of Trial, Provisioned, Paid, AwaitingPayment, Cancelled, Failed, Expired"
|
1977
1928
|
end
|
1978
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1929
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
1979
1930
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
1980
1931
|
end
|
1981
1932
|
# resource path
|
1982
|
-
local_var_path = "/subscriptions/state/{state}".sub('{
|
1933
|
+
local_var_path = "/subscriptions/state/{state}".sub('{' + 'state' + '}', state.to_s)
|
1983
1934
|
|
1984
1935
|
# query parameters
|
1985
1936
|
query_params = {}
|
@@ -1993,14 +1944,10 @@ module Bfwd
|
|
1993
1944
|
|
1994
1945
|
# header parameters
|
1995
1946
|
header_params = {}
|
1996
|
-
|
1997
1947
|
# HTTP header 'Accept' (if needed)
|
1998
|
-
|
1999
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2000
|
-
|
1948
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2001
1949
|
# HTTP header 'Content-Type'
|
2002
|
-
|
2003
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1950
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2004
1951
|
|
2005
1952
|
# form parameters
|
2006
1953
|
form_params = {}
|
@@ -2043,9 +1990,11 @@ module Bfwd
|
|
2043
1990
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_subscription_by_version_id ..."
|
2044
1991
|
end
|
2045
1992
|
# verify the required parameter 'version_id' is set
|
2046
|
-
|
1993
|
+
if @api_client.config.client_side_validation && version_id.nil?
|
1994
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling SubscriptionsApi.get_subscription_by_version_id"
|
1995
|
+
end
|
2047
1996
|
# resource path
|
2048
|
-
local_var_path = "/subscriptions/version/{version-ID}".sub('{
|
1997
|
+
local_var_path = "/subscriptions/version/{version-ID}".sub('{' + 'version-ID' + '}', version_id.to_s)
|
2049
1998
|
|
2050
1999
|
# query parameters
|
2051
2000
|
query_params = {}
|
@@ -2053,14 +2002,10 @@ module Bfwd
|
|
2053
2002
|
|
2054
2003
|
# header parameters
|
2055
2004
|
header_params = {}
|
2056
|
-
|
2057
2005
|
# HTTP header 'Accept' (if needed)
|
2058
|
-
|
2059
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2060
|
-
|
2006
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2061
2007
|
# HTTP header 'Content-Type'
|
2062
|
-
|
2063
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2008
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2064
2009
|
|
2065
2010
|
# form parameters
|
2066
2011
|
form_params = {}
|
@@ -2113,14 +2058,18 @@ module Bfwd
|
|
2113
2058
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_subscriptions_by_initial_period_start ..."
|
2114
2059
|
end
|
2115
2060
|
# verify the required parameter 'lower_threshold' is set
|
2116
|
-
|
2061
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
2062
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling SubscriptionsApi.get_subscriptions_by_initial_period_start"
|
2063
|
+
end
|
2117
2064
|
# verify the required parameter 'upper_threshold' is set
|
2118
|
-
|
2119
|
-
|
2065
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
2066
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling SubscriptionsApi.get_subscriptions_by_initial_period_start"
|
2067
|
+
end
|
2068
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
2120
2069
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
2121
2070
|
end
|
2122
2071
|
# resource path
|
2123
|
-
local_var_path = "/subscriptions/initial-period-start/{lower-threshold}/{upper-threshold}".sub('{
|
2072
|
+
local_var_path = "/subscriptions/initial-period-start/{lower-threshold}/{upper-threshold}".sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
2124
2073
|
|
2125
2074
|
# query parameters
|
2126
2075
|
query_params = {}
|
@@ -2132,14 +2081,10 @@ module Bfwd
|
|
2132
2081
|
|
2133
2082
|
# header parameters
|
2134
2083
|
header_params = {}
|
2135
|
-
|
2136
2084
|
# HTTP header 'Accept' (if needed)
|
2137
|
-
|
2138
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2139
|
-
|
2085
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2140
2086
|
# HTTP header 'Content-Type'
|
2141
|
-
|
2142
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2087
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2143
2088
|
|
2144
2089
|
# form parameters
|
2145
2090
|
form_params = {}
|
@@ -2192,14 +2137,18 @@ module Bfwd
|
|
2192
2137
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_subscriptions_by_period_end ..."
|
2193
2138
|
end
|
2194
2139
|
# verify the required parameter 'lower_threshold' is set
|
2195
|
-
|
2140
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
2141
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling SubscriptionsApi.get_subscriptions_by_period_end"
|
2142
|
+
end
|
2196
2143
|
# verify the required parameter 'upper_threshold' is set
|
2197
|
-
|
2198
|
-
|
2144
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
2145
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling SubscriptionsApi.get_subscriptions_by_period_end"
|
2146
|
+
end
|
2147
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
2199
2148
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
2200
2149
|
end
|
2201
2150
|
# resource path
|
2202
|
-
local_var_path = "/subscriptions/period-end/{lower-threshold}/{upper-threshold}".sub('{
|
2151
|
+
local_var_path = "/subscriptions/period-end/{lower-threshold}/{upper-threshold}".sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
2203
2152
|
|
2204
2153
|
# query parameters
|
2205
2154
|
query_params = {}
|
@@ -2211,14 +2160,10 @@ module Bfwd
|
|
2211
2160
|
|
2212
2161
|
# header parameters
|
2213
2162
|
header_params = {}
|
2214
|
-
|
2215
2163
|
# HTTP header 'Accept' (if needed)
|
2216
|
-
|
2217
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2218
|
-
|
2164
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2219
2165
|
# HTTP header 'Content-Type'
|
2220
|
-
|
2221
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2166
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2222
2167
|
|
2223
2168
|
# form parameters
|
2224
2169
|
form_params = {}
|
@@ -2271,14 +2216,18 @@ module Bfwd
|
|
2271
2216
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_subscriptions_by_period_start ..."
|
2272
2217
|
end
|
2273
2218
|
# verify the required parameter 'lower_threshold' is set
|
2274
|
-
|
2219
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
2220
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling SubscriptionsApi.get_subscriptions_by_period_start"
|
2221
|
+
end
|
2275
2222
|
# verify the required parameter 'upper_threshold' is set
|
2276
|
-
|
2277
|
-
|
2223
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
2224
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling SubscriptionsApi.get_subscriptions_by_period_start"
|
2225
|
+
end
|
2226
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
2278
2227
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
2279
2228
|
end
|
2280
2229
|
# resource path
|
2281
|
-
local_var_path = "/subscriptions/period-start/{lower-threshold}/{upper-threshold}".sub('{
|
2230
|
+
local_var_path = "/subscriptions/period-start/{lower-threshold}/{upper-threshold}".sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
2282
2231
|
|
2283
2232
|
# query parameters
|
2284
2233
|
query_params = {}
|
@@ -2290,14 +2239,10 @@ module Bfwd
|
|
2290
2239
|
|
2291
2240
|
# header parameters
|
2292
2241
|
header_params = {}
|
2293
|
-
|
2294
2242
|
# HTTP header 'Accept' (if needed)
|
2295
|
-
|
2296
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2297
|
-
|
2243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2298
2244
|
# HTTP header 'Content-Type'
|
2299
|
-
|
2300
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2245
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2301
2246
|
|
2302
2247
|
# form parameters
|
2303
2248
|
form_params = {}
|
@@ -2350,14 +2295,18 @@ module Bfwd
|
|
2350
2295
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_subscriptions_by_successful_periods ..."
|
2351
2296
|
end
|
2352
2297
|
# verify the required parameter 'lower_threshold' is set
|
2353
|
-
|
2298
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
2299
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling SubscriptionsApi.get_subscriptions_by_successful_periods"
|
2300
|
+
end
|
2354
2301
|
# verify the required parameter 'upper_threshold' is set
|
2355
|
-
|
2356
|
-
|
2302
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
2303
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling SubscriptionsApi.get_subscriptions_by_successful_periods"
|
2304
|
+
end
|
2305
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
2357
2306
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
2358
2307
|
end
|
2359
2308
|
# resource path
|
2360
|
-
local_var_path = "/subscriptions/successful-periods/{lower-threshold}/{upper-threshold}".sub('{
|
2309
|
+
local_var_path = "/subscriptions/successful-periods/{lower-threshold}/{upper-threshold}".sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
2361
2310
|
|
2362
2311
|
# query parameters
|
2363
2312
|
query_params = {}
|
@@ -2369,14 +2318,10 @@ module Bfwd
|
|
2369
2318
|
|
2370
2319
|
# header parameters
|
2371
2320
|
header_params = {}
|
2372
|
-
|
2373
2321
|
# HTTP header 'Accept' (if needed)
|
2374
|
-
|
2375
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2376
|
-
|
2322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2377
2323
|
# HTTP header 'Content-Type'
|
2378
|
-
|
2379
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2324
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2380
2325
|
|
2381
2326
|
# form parameters
|
2382
2327
|
form_params = {}
|
@@ -2429,9 +2374,11 @@ module Bfwd
|
|
2429
2374
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_swagger_subscription ..."
|
2430
2375
|
end
|
2431
2376
|
# verify the required parameter 'query_string' is set
|
2432
|
-
|
2377
|
+
if @api_client.config.client_side_validation && query_string.nil?
|
2378
|
+
fail ArgumentError, "Missing the required parameter 'query_string' when calling SubscriptionsApi.get_swagger_subscription"
|
2379
|
+
end
|
2433
2380
|
# resource path
|
2434
|
-
local_var_path = "/subscriptions/swagger-end-point/{query-string}".sub('{
|
2381
|
+
local_var_path = "/subscriptions/swagger-end-point/{query-string}".sub('{' + 'query-string' + '}', query_string.to_s)
|
2435
2382
|
|
2436
2383
|
# query parameters
|
2437
2384
|
query_params = {}
|
@@ -2444,14 +2391,10 @@ module Bfwd
|
|
2444
2391
|
|
2445
2392
|
# header parameters
|
2446
2393
|
header_params = {}
|
2447
|
-
|
2448
2394
|
# HTTP header 'Accept' (if needed)
|
2449
|
-
|
2450
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2451
|
-
|
2395
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2452
2396
|
# HTTP header 'Content-Type'
|
2453
|
-
|
2454
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2397
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2455
2398
|
|
2456
2399
|
# form parameters
|
2457
2400
|
form_params = {}
|
@@ -2508,18 +2451,20 @@ module Bfwd
|
|
2508
2451
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.get_timers_for_subscription ..."
|
2509
2452
|
end
|
2510
2453
|
# verify the required parameter 'subscription_id' is set
|
2511
|
-
|
2512
|
-
|
2454
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
2455
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.get_timers_for_subscription"
|
2456
|
+
end
|
2457
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
2513
2458
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
2514
2459
|
end
|
2515
|
-
if opts[:'state'] && !['Pending', 'Succeeded', 'Failed', 'Discarded'].include?(opts[:'state'])
|
2460
|
+
if @api_client.config.client_side_validation && opts[:'state'] && !['Pending', 'Succeeded', 'Failed', 'Discarded'].include?(opts[:'state'])
|
2516
2461
|
fail ArgumentError, 'invalid value for "state", must be one of Pending, Succeeded, Failed, Discarded'
|
2517
2462
|
end
|
2518
|
-
if opts[:'event'] && !['TrialExpiry', 'SubscriptionExpiry', 'PeriodEnd'].include?(opts[:'event'])
|
2463
|
+
if @api_client.config.client_side_validation && opts[:'event'] && !['TrialExpiry', 'SubscriptionExpiry', 'PeriodEnd'].include?(opts[:'event'])
|
2519
2464
|
fail ArgumentError, 'invalid value for "event", must be one of TrialExpiry, SubscriptionExpiry, PeriodEnd'
|
2520
2465
|
end
|
2521
2466
|
# resource path
|
2522
|
-
local_var_path = "/subscriptions/{subscription-ID}/timer".sub('{
|
2467
|
+
local_var_path = "/subscriptions/{subscription-ID}/timer".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
2523
2468
|
|
2524
2469
|
# query parameters
|
2525
2470
|
query_params = {}
|
@@ -2534,14 +2479,10 @@ module Bfwd
|
|
2534
2479
|
|
2535
2480
|
# header parameters
|
2536
2481
|
header_params = {}
|
2537
|
-
|
2538
2482
|
# HTTP header 'Accept' (if needed)
|
2539
|
-
|
2540
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2541
|
-
|
2483
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2542
2484
|
# HTTP header 'Content-Type'
|
2543
|
-
|
2544
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2485
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2545
2486
|
|
2546
2487
|
# form parameters
|
2547
2488
|
form_params = {}
|
@@ -2582,23 +2523,21 @@ module Bfwd
|
|
2582
2523
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.import_subscription ..."
|
2583
2524
|
end
|
2584
2525
|
# verify the required parameter 'request' is set
|
2585
|
-
|
2526
|
+
if @api_client.config.client_side_validation && request.nil?
|
2527
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.import_subscription"
|
2528
|
+
end
|
2586
2529
|
# resource path
|
2587
|
-
local_var_path = "/subscriptions/import"
|
2530
|
+
local_var_path = "/subscriptions/import"
|
2588
2531
|
|
2589
2532
|
# query parameters
|
2590
2533
|
query_params = {}
|
2591
2534
|
|
2592
2535
|
# header parameters
|
2593
2536
|
header_params = {}
|
2594
|
-
|
2595
2537
|
# HTTP header 'Accept' (if needed)
|
2596
|
-
|
2597
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2598
|
-
|
2538
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2599
2539
|
# HTTP header 'Content-Type'
|
2600
|
-
|
2601
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2540
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
2602
2541
|
|
2603
2542
|
# form parameters
|
2604
2543
|
form_params = {}
|
@@ -2641,25 +2580,25 @@ module Bfwd
|
|
2641
2580
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.invoice_charges_on_subscription ..."
|
2642
2581
|
end
|
2643
2582
|
# verify the required parameter 'subscription_id' is set
|
2644
|
-
|
2583
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
2584
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.invoice_charges_on_subscription"
|
2585
|
+
end
|
2645
2586
|
# verify the required parameter 'charge' is set
|
2646
|
-
|
2587
|
+
if @api_client.config.client_side_validation && charge.nil?
|
2588
|
+
fail ArgumentError, "Missing the required parameter 'charge' when calling SubscriptionsApi.invoice_charges_on_subscription"
|
2589
|
+
end
|
2647
2590
|
# resource path
|
2648
|
-
local_var_path = "/subscriptions/{subscription-ID}/invoice-charges".sub('{
|
2591
|
+
local_var_path = "/subscriptions/{subscription-ID}/invoice-charges".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
2649
2592
|
|
2650
2593
|
# query parameters
|
2651
2594
|
query_params = {}
|
2652
2595
|
|
2653
2596
|
# header parameters
|
2654
2597
|
header_params = {}
|
2655
|
-
|
2656
2598
|
# HTTP header 'Accept' (if needed)
|
2657
|
-
|
2658
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2659
|
-
|
2599
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2660
2600
|
# HTTP header 'Content-Type'
|
2661
|
-
|
2662
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2601
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
2663
2602
|
|
2664
2603
|
# form parameters
|
2665
2604
|
form_params = {}
|
@@ -2702,25 +2641,25 @@ module Bfwd
|
|
2702
2641
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.migrate_subscription ..."
|
2703
2642
|
end
|
2704
2643
|
# verify the required parameter 'subscription_id' is set
|
2705
|
-
|
2644
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
2645
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.migrate_subscription"
|
2646
|
+
end
|
2706
2647
|
# verify the required parameter 'request' is set
|
2707
|
-
|
2648
|
+
if @api_client.config.client_side_validation && request.nil?
|
2649
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.migrate_subscription"
|
2650
|
+
end
|
2708
2651
|
# resource path
|
2709
|
-
local_var_path = "/subscriptions/{subscription-ID}/migrate".sub('{
|
2652
|
+
local_var_path = "/subscriptions/{subscription-ID}/migrate".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
2710
2653
|
|
2711
2654
|
# query parameters
|
2712
2655
|
query_params = {}
|
2713
2656
|
|
2714
2657
|
# header parameters
|
2715
2658
|
header_params = {}
|
2716
|
-
|
2717
2659
|
# HTTP header 'Accept' (if needed)
|
2718
|
-
|
2719
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2720
|
-
|
2660
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2721
2661
|
# HTTP header 'Content-Type'
|
2722
|
-
|
2723
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2662
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
2724
2663
|
|
2725
2664
|
# form parameters
|
2726
2665
|
form_params = {}
|
@@ -2765,11 +2704,15 @@ module Bfwd
|
|
2765
2704
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.remove_coupon_from_subscription ..."
|
2766
2705
|
end
|
2767
2706
|
# verify the required parameter 'subscription_id' is set
|
2768
|
-
|
2707
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
2708
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.remove_coupon_from_subscription"
|
2709
|
+
end
|
2769
2710
|
# verify the required parameter 'coupon_code' is set
|
2770
|
-
|
2711
|
+
if @api_client.config.client_side_validation && coupon_code.nil?
|
2712
|
+
fail ArgumentError, "Missing the required parameter 'coupon_code' when calling SubscriptionsApi.remove_coupon_from_subscription"
|
2713
|
+
end
|
2771
2714
|
# resource path
|
2772
|
-
local_var_path = "/subscriptions/{subscription-ID}/coupons/{coupon-code}".sub('{
|
2715
|
+
local_var_path = "/subscriptions/{subscription-ID}/coupons/{coupon-code}".sub('{' + 'subscription-ID' + '}', subscription_id.to_s).sub('{' + 'coupon-code' + '}', coupon_code.to_s)
|
2773
2716
|
|
2774
2717
|
# query parameters
|
2775
2718
|
query_params = {}
|
@@ -2777,14 +2720,10 @@ module Bfwd
|
|
2777
2720
|
|
2778
2721
|
# header parameters
|
2779
2722
|
header_params = {}
|
2780
|
-
|
2781
2723
|
# HTTP header 'Accept' (if needed)
|
2782
|
-
|
2783
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2784
|
-
|
2724
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2785
2725
|
# HTTP header 'Content-Type'
|
2786
|
-
|
2787
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2726
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2788
2727
|
|
2789
2728
|
# form parameters
|
2790
2729
|
form_params = {}
|
@@ -2829,11 +2768,15 @@ module Bfwd
|
|
2829
2768
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.remove_credit_from_subscription ..."
|
2830
2769
|
end
|
2831
2770
|
# verify the required parameter 'subscription_id' is set
|
2832
|
-
|
2771
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
2772
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.remove_credit_from_subscription"
|
2773
|
+
end
|
2833
2774
|
# verify the required parameter 'value' is set
|
2834
|
-
|
2775
|
+
if @api_client.config.client_side_validation && value.nil?
|
2776
|
+
fail ArgumentError, "Missing the required parameter 'value' when calling SubscriptionsApi.remove_credit_from_subscription"
|
2777
|
+
end
|
2835
2778
|
# resource path
|
2836
|
-
local_var_path = "/subscriptions/{subscription-ID}/credit/{value}".sub('{
|
2779
|
+
local_var_path = "/subscriptions/{subscription-ID}/credit/{value}".sub('{' + 'subscription-ID' + '}', subscription_id.to_s).sub('{' + 'value' + '}', value.to_s)
|
2837
2780
|
|
2838
2781
|
# query parameters
|
2839
2782
|
query_params = {}
|
@@ -2841,14 +2784,10 @@ module Bfwd
|
|
2841
2784
|
|
2842
2785
|
# header parameters
|
2843
2786
|
header_params = {}
|
2844
|
-
|
2845
2787
|
# HTTP header 'Accept' (if needed)
|
2846
|
-
|
2847
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2848
|
-
|
2788
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2849
2789
|
# HTTP header 'Content-Type'
|
2850
|
-
|
2851
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2790
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2852
2791
|
|
2853
2792
|
# form parameters
|
2854
2793
|
form_params = {}
|
@@ -2893,11 +2832,15 @@ module Bfwd
|
|
2893
2832
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.remove_payment_method_from_subscription ..."
|
2894
2833
|
end
|
2895
2834
|
# verify the required parameter 'subscription_id' is set
|
2896
|
-
|
2835
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
2836
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.remove_payment_method_from_subscription"
|
2837
|
+
end
|
2897
2838
|
# verify the required parameter 'payment_method_id' is set
|
2898
|
-
|
2839
|
+
if @api_client.config.client_side_validation && payment_method_id.nil?
|
2840
|
+
fail ArgumentError, "Missing the required parameter 'payment_method_id' when calling SubscriptionsApi.remove_payment_method_from_subscription"
|
2841
|
+
end
|
2899
2842
|
# resource path
|
2900
|
-
local_var_path = "/subscriptions/{subscription-ID}/payment-methods/{payment-method-ID}".sub('{
|
2843
|
+
local_var_path = "/subscriptions/{subscription-ID}/payment-methods/{payment-method-ID}".sub('{' + 'subscription-ID' + '}', subscription_id.to_s).sub('{' + 'payment-method-ID' + '}', payment_method_id.to_s)
|
2901
2844
|
|
2902
2845
|
# query parameters
|
2903
2846
|
query_params = {}
|
@@ -2905,14 +2848,10 @@ module Bfwd
|
|
2905
2848
|
|
2906
2849
|
# header parameters
|
2907
2850
|
header_params = {}
|
2908
|
-
|
2909
2851
|
# HTTP header 'Accept' (if needed)
|
2910
|
-
|
2911
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2912
|
-
|
2852
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2913
2853
|
# HTTP header 'Content-Type'
|
2914
|
-
|
2915
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2854
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2916
2855
|
|
2917
2856
|
# form parameters
|
2918
2857
|
form_params = {}
|
@@ -2957,11 +2896,15 @@ module Bfwd
|
|
2957
2896
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.remove_pricing_component_value_change_from_subscription ..."
|
2958
2897
|
end
|
2959
2898
|
# verify the required parameter 'subscription_id' is set
|
2960
|
-
|
2899
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
2900
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.remove_pricing_component_value_change_from_subscription"
|
2901
|
+
end
|
2961
2902
|
# verify the required parameter 'pricing_component' is set
|
2962
|
-
|
2903
|
+
if @api_client.config.client_side_validation && pricing_component.nil?
|
2904
|
+
fail ArgumentError, "Missing the required parameter 'pricing_component' when calling SubscriptionsApi.remove_pricing_component_value_change_from_subscription"
|
2905
|
+
end
|
2963
2906
|
# resource path
|
2964
|
-
local_var_path = "/subscriptions/{subscription-ID}/values/{pricing-component}".sub('{
|
2907
|
+
local_var_path = "/subscriptions/{subscription-ID}/values/{pricing-component}".sub('{' + 'subscription-ID' + '}', subscription_id.to_s).sub('{' + 'pricing-component' + '}', pricing_component.to_s)
|
2965
2908
|
|
2966
2909
|
# query parameters
|
2967
2910
|
query_params = {}
|
@@ -2969,14 +2912,10 @@ module Bfwd
|
|
2969
2912
|
|
2970
2913
|
# header parameters
|
2971
2914
|
header_params = {}
|
2972
|
-
|
2973
2915
|
# HTTP header 'Accept' (if needed)
|
2974
|
-
|
2975
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
2976
|
-
|
2916
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
2977
2917
|
# HTTP header 'Content-Type'
|
2978
|
-
|
2979
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2918
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
2980
2919
|
|
2981
2920
|
# form parameters
|
2982
2921
|
form_params = {}
|
@@ -3019,25 +2958,25 @@ module Bfwd
|
|
3019
2958
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.resume_subscription ..."
|
3020
2959
|
end
|
3021
2960
|
# verify the required parameter 'subscription_id' is set
|
3022
|
-
|
2961
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
2962
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.resume_subscription"
|
2963
|
+
end
|
3023
2964
|
# verify the required parameter 'request' is set
|
3024
|
-
|
2965
|
+
if @api_client.config.client_side_validation && request.nil?
|
2966
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.resume_subscription"
|
2967
|
+
end
|
3025
2968
|
# resource path
|
3026
|
-
local_var_path = "/subscriptions/{subscription-ID}/resume".sub('{
|
2969
|
+
local_var_path = "/subscriptions/{subscription-ID}/resume".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
3027
2970
|
|
3028
2971
|
# query parameters
|
3029
2972
|
query_params = {}
|
3030
2973
|
|
3031
2974
|
# header parameters
|
3032
2975
|
header_params = {}
|
3033
|
-
|
3034
2976
|
# HTTP header 'Accept' (if needed)
|
3035
|
-
|
3036
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
3037
|
-
|
2977
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
3038
2978
|
# HTTP header 'Content-Type'
|
3039
|
-
|
3040
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
2979
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
3041
2980
|
|
3042
2981
|
# form parameters
|
3043
2982
|
form_params = {}
|
@@ -3080,25 +3019,25 @@ module Bfwd
|
|
3080
3019
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.revive_subscription ..."
|
3081
3020
|
end
|
3082
3021
|
# verify the required parameter 'subscription_id' is set
|
3083
|
-
|
3022
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
3023
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.revive_subscription"
|
3024
|
+
end
|
3084
3025
|
# verify the required parameter 'request' is set
|
3085
|
-
|
3026
|
+
if @api_client.config.client_side_validation && request.nil?
|
3027
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.revive_subscription"
|
3028
|
+
end
|
3086
3029
|
# resource path
|
3087
|
-
local_var_path = "/subscriptions/{subscription-ID}/revive".sub('{
|
3030
|
+
local_var_path = "/subscriptions/{subscription-ID}/revive".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
3088
3031
|
|
3089
3032
|
# query parameters
|
3090
3033
|
query_params = {}
|
3091
3034
|
|
3092
3035
|
# header parameters
|
3093
3036
|
header_params = {}
|
3094
|
-
|
3095
3037
|
# HTTP header 'Accept' (if needed)
|
3096
|
-
|
3097
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
3098
|
-
|
3038
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
3099
3039
|
# HTTP header 'Content-Type'
|
3100
|
-
|
3101
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
3040
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
3102
3041
|
|
3103
3042
|
# form parameters
|
3104
3043
|
form_params = {}
|
@@ -3143,11 +3082,15 @@ module Bfwd
|
|
3143
3082
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.set_metadata_for_subscription ..."
|
3144
3083
|
end
|
3145
3084
|
# verify the required parameter 'metadata' is set
|
3146
|
-
|
3085
|
+
if @api_client.config.client_side_validation && metadata.nil?
|
3086
|
+
fail ArgumentError, "Missing the required parameter 'metadata' when calling SubscriptionsApi.set_metadata_for_subscription"
|
3087
|
+
end
|
3147
3088
|
# verify the required parameter 'subscription_id' is set
|
3148
|
-
|
3089
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
3090
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.set_metadata_for_subscription"
|
3091
|
+
end
|
3149
3092
|
# resource path
|
3150
|
-
local_var_path = "/subscriptions/{subscription-ID}/metadata".sub('{
|
3093
|
+
local_var_path = "/subscriptions/{subscription-ID}/metadata".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
3151
3094
|
|
3152
3095
|
# query parameters
|
3153
3096
|
query_params = {}
|
@@ -3155,14 +3098,10 @@ module Bfwd
|
|
3155
3098
|
|
3156
3099
|
# header parameters
|
3157
3100
|
header_params = {}
|
3158
|
-
|
3159
3101
|
# HTTP header 'Accept' (if needed)
|
3160
|
-
|
3161
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
3162
|
-
|
3102
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
3163
3103
|
# HTTP header 'Content-Type'
|
3164
|
-
|
3165
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
3104
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
3166
3105
|
|
3167
3106
|
# form parameters
|
3168
3107
|
form_params = {}
|
@@ -3205,25 +3144,25 @@ module Bfwd
|
|
3205
3144
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.set_pricing_component_value_on_subscription ..."
|
3206
3145
|
end
|
3207
3146
|
# verify the required parameter 'subscription_id' is set
|
3208
|
-
|
3147
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
3148
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.set_pricing_component_value_on_subscription"
|
3149
|
+
end
|
3209
3150
|
# verify the required parameter 'pricing_component_value' is set
|
3210
|
-
|
3151
|
+
if @api_client.config.client_side_validation && pricing_component_value.nil?
|
3152
|
+
fail ArgumentError, "Missing the required parameter 'pricing_component_value' when calling SubscriptionsApi.set_pricing_component_value_on_subscription"
|
3153
|
+
end
|
3211
3154
|
# resource path
|
3212
|
-
local_var_path = "/subscriptions/{subscription-ID}/pricing-component-values".sub('{
|
3155
|
+
local_var_path = "/subscriptions/{subscription-ID}/pricing-component-values".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
3213
3156
|
|
3214
3157
|
# query parameters
|
3215
3158
|
query_params = {}
|
3216
3159
|
|
3217
3160
|
# header parameters
|
3218
3161
|
header_params = {}
|
3219
|
-
|
3220
3162
|
# HTTP header 'Accept' (if needed)
|
3221
|
-
|
3222
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
3223
|
-
|
3163
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
3224
3164
|
# HTTP header 'Content-Type'
|
3225
|
-
|
3226
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
3165
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
3227
3166
|
|
3228
3167
|
# form parameters
|
3229
3168
|
form_params = {}
|
@@ -3266,25 +3205,25 @@ module Bfwd
|
|
3266
3205
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.set_pricing_component_value_on_subscription_batch_update ..."
|
3267
3206
|
end
|
3268
3207
|
# verify the required parameter 'subscription_id' is set
|
3269
|
-
|
3208
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
3209
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.set_pricing_component_value_on_subscription_batch_update"
|
3210
|
+
end
|
3270
3211
|
# verify the required parameter 'request' is set
|
3271
|
-
|
3212
|
+
if @api_client.config.client_side_validation && request.nil?
|
3213
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.set_pricing_component_value_on_subscription_batch_update"
|
3214
|
+
end
|
3272
3215
|
# resource path
|
3273
|
-
local_var_path = "/subscriptions/{subscription-ID}/values".sub('{
|
3216
|
+
local_var_path = "/subscriptions/{subscription-ID}/values".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
3274
3217
|
|
3275
3218
|
# query parameters
|
3276
3219
|
query_params = {}
|
3277
3220
|
|
3278
3221
|
# header parameters
|
3279
3222
|
header_params = {}
|
3280
|
-
|
3281
3223
|
# HTTP header 'Accept' (if needed)
|
3282
|
-
|
3283
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
3284
|
-
|
3224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
3285
3225
|
# HTTP header 'Content-Type'
|
3286
|
-
|
3287
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
3226
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
3288
3227
|
|
3289
3228
|
# form parameters
|
3290
3229
|
form_params = {}
|
@@ -3329,27 +3268,29 @@ module Bfwd
|
|
3329
3268
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.set_pricing_component_value_on_subscription_v2 ..."
|
3330
3269
|
end
|
3331
3270
|
# verify the required parameter 'subscription_id' is set
|
3332
|
-
|
3271
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
3272
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.set_pricing_component_value_on_subscription_v2"
|
3273
|
+
end
|
3333
3274
|
# verify the required parameter 'pricing_component' is set
|
3334
|
-
|
3275
|
+
if @api_client.config.client_side_validation && pricing_component.nil?
|
3276
|
+
fail ArgumentError, "Missing the required parameter 'pricing_component' when calling SubscriptionsApi.set_pricing_component_value_on_subscription_v2"
|
3277
|
+
end
|
3335
3278
|
# verify the required parameter 'value' is set
|
3336
|
-
|
3279
|
+
if @api_client.config.client_side_validation && value.nil?
|
3280
|
+
fail ArgumentError, "Missing the required parameter 'value' when calling SubscriptionsApi.set_pricing_component_value_on_subscription_v2"
|
3281
|
+
end
|
3337
3282
|
# resource path
|
3338
|
-
local_var_path = "/subscriptions/{subscription-ID}/values/{pricing-component}".sub('{
|
3283
|
+
local_var_path = "/subscriptions/{subscription-ID}/values/{pricing-component}".sub('{' + 'subscription-ID' + '}', subscription_id.to_s).sub('{' + 'pricing-component' + '}', pricing_component.to_s)
|
3339
3284
|
|
3340
3285
|
# query parameters
|
3341
3286
|
query_params = {}
|
3342
3287
|
|
3343
3288
|
# header parameters
|
3344
3289
|
header_params = {}
|
3345
|
-
|
3346
3290
|
# HTTP header 'Accept' (if needed)
|
3347
|
-
|
3348
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
3349
|
-
|
3291
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
3350
3292
|
# HTTP header 'Content-Type'
|
3351
|
-
|
3352
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
3293
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
3353
3294
|
|
3354
3295
|
# form parameters
|
3355
3296
|
form_params = {}
|
@@ -3390,23 +3331,21 @@ module Bfwd
|
|
3390
3331
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.update_subscription ..."
|
3391
3332
|
end
|
3392
3333
|
# verify the required parameter 'subscription' is set
|
3393
|
-
|
3334
|
+
if @api_client.config.client_side_validation && subscription.nil?
|
3335
|
+
fail ArgumentError, "Missing the required parameter 'subscription' when calling SubscriptionsApi.update_subscription"
|
3336
|
+
end
|
3394
3337
|
# resource path
|
3395
|
-
local_var_path = "/subscriptions"
|
3338
|
+
local_var_path = "/subscriptions"
|
3396
3339
|
|
3397
3340
|
# query parameters
|
3398
3341
|
query_params = {}
|
3399
3342
|
|
3400
3343
|
# header parameters
|
3401
3344
|
header_params = {}
|
3402
|
-
|
3403
3345
|
# HTTP header 'Accept' (if needed)
|
3404
|
-
|
3405
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
3406
|
-
|
3346
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
3407
3347
|
# HTTP header 'Content-Type'
|
3408
|
-
|
3409
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
3348
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
3410
3349
|
|
3411
3350
|
# form parameters
|
3412
3351
|
form_params = {}
|
@@ -3447,23 +3386,21 @@ module Bfwd
|
|
3447
3386
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.update_subscription_v2 ..."
|
3448
3387
|
end
|
3449
3388
|
# verify the required parameter 'request' is set
|
3450
|
-
|
3389
|
+
if @api_client.config.client_side_validation && request.nil?
|
3390
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionsApi.update_subscription_v2"
|
3391
|
+
end
|
3451
3392
|
# resource path
|
3452
|
-
local_var_path = "/subscriptions/update"
|
3393
|
+
local_var_path = "/subscriptions/update"
|
3453
3394
|
|
3454
3395
|
# query parameters
|
3455
3396
|
query_params = {}
|
3456
3397
|
|
3457
3398
|
# header parameters
|
3458
3399
|
header_params = {}
|
3459
|
-
|
3460
3400
|
# HTTP header 'Accept' (if needed)
|
3461
|
-
|
3462
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
3463
|
-
|
3401
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
3464
3402
|
# HTTP header 'Content-Type'
|
3465
|
-
|
3466
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
3403
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
3467
3404
|
|
3468
3405
|
# form parameters
|
3469
3406
|
form_params = {}
|
@@ -3508,11 +3445,15 @@ module Bfwd
|
|
3508
3445
|
@api_client.config.logger.debug "Calling API: SubscriptionsApi.upsert_metadata_for_subscription ..."
|
3509
3446
|
end
|
3510
3447
|
# verify the required parameter 'metadata' is set
|
3511
|
-
|
3448
|
+
if @api_client.config.client_side_validation && metadata.nil?
|
3449
|
+
fail ArgumentError, "Missing the required parameter 'metadata' when calling SubscriptionsApi.upsert_metadata_for_subscription"
|
3450
|
+
end
|
3512
3451
|
# verify the required parameter 'subscription_id' is set
|
3513
|
-
|
3452
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
3453
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionsApi.upsert_metadata_for_subscription"
|
3454
|
+
end
|
3514
3455
|
# resource path
|
3515
|
-
local_var_path = "/subscriptions/{subscription-ID}/metadata".sub('{
|
3456
|
+
local_var_path = "/subscriptions/{subscription-ID}/metadata".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
3516
3457
|
|
3517
3458
|
# query parameters
|
3518
3459
|
query_params = {}
|
@@ -3520,14 +3461,10 @@ module Bfwd
|
|
3520
3461
|
|
3521
3462
|
# header parameters
|
3522
3463
|
header_params = {}
|
3523
|
-
|
3524
3464
|
# HTTP header 'Accept' (if needed)
|
3525
|
-
|
3526
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
3527
|
-
|
3465
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
3528
3466
|
# HTTP header 'Content-Type'
|
3529
|
-
|
3530
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
3467
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
3531
3468
|
|
3532
3469
|
# form parameters
|
3533
3470
|
form_params = {}
|