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: CouponbookApi.create_coupon_book ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'coupon_book' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && coupon_book.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'coupon_book' when calling CouponbookApi.create_coupon_book"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/coupon-books"
|
47
|
+
local_var_path = "/coupon-books"
|
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 = {}
|
@@ -110,9 +97,11 @@ module Bfwd
|
|
110
97
|
@api_client.config.logger.debug "Calling API: CouponbookApi.delete_coupon_book ..."
|
111
98
|
end
|
112
99
|
# verify the required parameter 'coupon_book_id' is set
|
113
|
-
|
100
|
+
if @api_client.config.client_side_validation && coupon_book_id.nil?
|
101
|
+
fail ArgumentError, "Missing the required parameter 'coupon_book_id' when calling CouponbookApi.delete_coupon_book"
|
102
|
+
end
|
114
103
|
# resource path
|
115
|
-
local_var_path = "/coupon-books/{coupon-book-ID}".sub('{
|
104
|
+
local_var_path = "/coupon-books/{coupon-book-ID}".sub('{' + 'coupon-book-ID' + '}', coupon_book_id.to_s)
|
116
105
|
|
117
106
|
# query parameters
|
118
107
|
query_params = {}
|
@@ -120,14 +109,10 @@ module Bfwd
|
|
120
109
|
|
121
110
|
# header parameters
|
122
111
|
header_params = {}
|
123
|
-
|
124
112
|
# HTTP header 'Accept' (if needed)
|
125
|
-
|
126
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
127
|
-
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
128
114
|
# HTTP header 'Content-Type'
|
129
|
-
|
130
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
115
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
131
116
|
|
132
117
|
# form parameters
|
133
118
|
form_params = {}
|
@@ -180,14 +165,18 @@ module Bfwd
|
|
180
165
|
@api_client.config.logger.debug "Calling API: CouponbookApi.get_all_attachable_coupon_books ..."
|
181
166
|
end
|
182
167
|
# verify the required parameter 'attachableness' is set
|
183
|
-
|
168
|
+
if @api_client.config.client_side_validation && attachableness.nil?
|
169
|
+
fail ArgumentError, "Missing the required parameter 'attachableness' when calling CouponbookApi.get_all_attachable_coupon_books"
|
170
|
+
end
|
184
171
|
# verify the required parameter 'has_code' is set
|
185
|
-
|
186
|
-
|
172
|
+
if @api_client.config.client_side_validation && has_code.nil?
|
173
|
+
fail ArgumentError, "Missing the required parameter 'has_code' when calling CouponbookApi.get_all_attachable_coupon_books"
|
174
|
+
end
|
175
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
187
176
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
188
177
|
end
|
189
178
|
# resource path
|
190
|
-
local_var_path = "/coupon-books/attachable/{attachableness}/{has_code}".sub('{
|
179
|
+
local_var_path = "/coupon-books/attachable/{attachableness}/{has_code}".sub('{' + 'attachableness' + '}', attachableness.to_s).sub('{' + 'has_code' + '}', has_code.to_s)
|
191
180
|
|
192
181
|
# query parameters
|
193
182
|
query_params = {}
|
@@ -199,14 +188,8 @@ module Bfwd
|
|
199
188
|
|
200
189
|
# header parameters
|
201
190
|
header_params = {}
|
202
|
-
|
203
191
|
# HTTP header 'Accept' (if needed)
|
204
|
-
|
205
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
206
|
-
|
207
|
-
# HTTP header 'Content-Type'
|
208
|
-
local_header_content_type = []
|
209
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
192
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
210
193
|
|
211
194
|
# form parameters
|
212
195
|
form_params = {}
|
@@ -256,11 +239,11 @@ module Bfwd
|
|
256
239
|
if @api_client.config.debugging
|
257
240
|
@api_client.config.logger.debug "Calling API: CouponbookApi.get_all_coupon_books ..."
|
258
241
|
end
|
259
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
242
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
260
243
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
261
244
|
end
|
262
245
|
# resource path
|
263
|
-
local_var_path = "/coupon-books"
|
246
|
+
local_var_path = "/coupon-books"
|
264
247
|
|
265
248
|
# query parameters
|
266
249
|
query_params = {}
|
@@ -273,14 +256,8 @@ module Bfwd
|
|
273
256
|
|
274
257
|
# header parameters
|
275
258
|
header_params = {}
|
276
|
-
|
277
259
|
# 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
|
-
|
281
|
-
# HTTP header 'Content-Type'
|
282
|
-
local_header_content_type = []
|
283
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
284
261
|
|
285
262
|
# form parameters
|
286
263
|
form_params = {}
|
@@ -323,9 +300,11 @@ module Bfwd
|
|
323
300
|
@api_client.config.logger.debug "Calling API: CouponbookApi.get_coupon_book_by_book_code ..."
|
324
301
|
end
|
325
302
|
# verify the required parameter 'book_code' is set
|
326
|
-
|
303
|
+
if @api_client.config.client_side_validation && book_code.nil?
|
304
|
+
fail ArgumentError, "Missing the required parameter 'book_code' when calling CouponbookApi.get_coupon_book_by_book_code"
|
305
|
+
end
|
327
306
|
# resource path
|
328
|
-
local_var_path = "/coupon-books/book-code/{book-code}".sub('{
|
307
|
+
local_var_path = "/coupon-books/book-code/{book-code}".sub('{' + 'book-code' + '}', book_code.to_s)
|
329
308
|
|
330
309
|
# query parameters
|
331
310
|
query_params = {}
|
@@ -333,14 +312,10 @@ module Bfwd
|
|
333
312
|
|
334
313
|
# header parameters
|
335
314
|
header_params = {}
|
336
|
-
|
337
315
|
# 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
|
-
|
316
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
341
317
|
# HTTP header 'Content-Type'
|
342
|
-
|
343
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
318
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
344
319
|
|
345
320
|
# form parameters
|
346
321
|
form_params = {}
|
@@ -393,12 +368,14 @@ module Bfwd
|
|
393
368
|
@api_client.config.logger.debug "Calling API: CouponbookApi.get_coupon_book_by_coupon_book_definition_id ..."
|
394
369
|
end
|
395
370
|
# verify the required parameter 'coupon_book_definition_id' is set
|
396
|
-
|
397
|
-
|
371
|
+
if @api_client.config.client_side_validation && coupon_book_definition_id.nil?
|
372
|
+
fail ArgumentError, "Missing the required parameter 'coupon_book_definition_id' when calling CouponbookApi.get_coupon_book_by_coupon_book_definition_id"
|
373
|
+
end
|
374
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
398
375
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
399
376
|
end
|
400
377
|
# resource path
|
401
|
-
local_var_path = "/coupon-books/coupon-book-definition/{coupon-book-definition-ID}".sub('{
|
378
|
+
local_var_path = "/coupon-books/coupon-book-definition/{coupon-book-definition-ID}".sub('{' + 'coupon-book-definition-ID' + '}', coupon_book_definition_id.to_s)
|
402
379
|
|
403
380
|
# query parameters
|
404
381
|
query_params = {}
|
@@ -411,14 +388,10 @@ module Bfwd
|
|
411
388
|
|
412
389
|
# header parameters
|
413
390
|
header_params = {}
|
414
|
-
|
415
391
|
# HTTP header 'Accept' (if needed)
|
416
|
-
|
417
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
418
|
-
|
392
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
419
393
|
# HTTP header 'Content-Type'
|
420
|
-
|
421
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
394
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
422
395
|
|
423
396
|
# form parameters
|
424
397
|
form_params = {}
|
@@ -461,9 +434,11 @@ module Bfwd
|
|
461
434
|
@api_client.config.logger.debug "Calling API: CouponbookApi.get_coupon_book_by_coupon_code ..."
|
462
435
|
end
|
463
436
|
# verify the required parameter 'coupon_code' is set
|
464
|
-
|
437
|
+
if @api_client.config.client_side_validation && coupon_code.nil?
|
438
|
+
fail ArgumentError, "Missing the required parameter 'coupon_code' when calling CouponbookApi.get_coupon_book_by_coupon_code"
|
439
|
+
end
|
465
440
|
# resource path
|
466
|
-
local_var_path = "/coupon-books/coupon/{coupon-code}".sub('{
|
441
|
+
local_var_path = "/coupon-books/coupon/{coupon-code}".sub('{' + 'coupon-code' + '}', coupon_code.to_s)
|
467
442
|
|
468
443
|
# query parameters
|
469
444
|
query_params = {}
|
@@ -471,14 +446,10 @@ module Bfwd
|
|
471
446
|
|
472
447
|
# header parameters
|
473
448
|
header_params = {}
|
474
|
-
|
475
449
|
# HTTP header 'Accept' (if needed)
|
476
|
-
|
477
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
478
|
-
|
450
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
479
451
|
# HTTP header 'Content-Type'
|
480
|
-
|
481
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
452
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
482
453
|
|
483
454
|
# form parameters
|
484
455
|
form_params = {}
|
@@ -521,9 +492,11 @@ module Bfwd
|
|
521
492
|
@api_client.config.logger.debug "Calling API: CouponbookApi.get_coupon_book_by_id ..."
|
522
493
|
end
|
523
494
|
# verify the required parameter 'coupon_book_id' is set
|
524
|
-
|
495
|
+
if @api_client.config.client_side_validation && coupon_book_id.nil?
|
496
|
+
fail ArgumentError, "Missing the required parameter 'coupon_book_id' when calling CouponbookApi.get_coupon_book_by_id"
|
497
|
+
end
|
525
498
|
# resource path
|
526
|
-
local_var_path = "/coupon-books/{coupon-book-ID}".sub('{
|
499
|
+
local_var_path = "/coupon-books/{coupon-book-ID}".sub('{' + 'coupon-book-ID' + '}', coupon_book_id.to_s)
|
527
500
|
|
528
501
|
# query parameters
|
529
502
|
query_params = {}
|
@@ -531,14 +504,10 @@ module Bfwd
|
|
531
504
|
|
532
505
|
# header parameters
|
533
506
|
header_params = {}
|
534
|
-
|
535
507
|
# HTTP header 'Accept' (if needed)
|
536
|
-
|
537
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
538
|
-
|
508
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
539
509
|
# HTTP header 'Content-Type'
|
540
|
-
|
541
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
510
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
542
511
|
|
543
512
|
# form parameters
|
544
513
|
form_params = {}
|
@@ -579,23 +548,21 @@ module Bfwd
|
|
579
548
|
@api_client.config.logger.debug "Calling API: CouponbookApi.update_coupon_book ..."
|
580
549
|
end
|
581
550
|
# verify the required parameter 'coupon_book' is set
|
582
|
-
|
551
|
+
if @api_client.config.client_side_validation && coupon_book.nil?
|
552
|
+
fail ArgumentError, "Missing the required parameter 'coupon_book' when calling CouponbookApi.update_coupon_book"
|
553
|
+
end
|
583
554
|
# resource path
|
584
|
-
local_var_path = "/coupon-books"
|
555
|
+
local_var_path = "/coupon-books"
|
585
556
|
|
586
557
|
# query parameters
|
587
558
|
query_params = {}
|
588
559
|
|
589
560
|
# header parameters
|
590
561
|
header_params = {}
|
591
|
-
|
592
562
|
# HTTP header 'Accept' (if needed)
|
593
|
-
|
594
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
595
|
-
|
563
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
596
564
|
# HTTP header 'Content-Type'
|
597
|
-
|
598
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
565
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
599
566
|
|
600
567
|
# form parameters
|
601
568
|
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
|
|
@@ -51,23 +40,21 @@ module Bfwd
|
|
51
40
|
@api_client.config.logger.debug "Calling API: CouponbookdefinitionApi.create_coupon_book_definition ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'coupon_book_definition' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && coupon_book_definition.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'coupon_book_definition' when calling CouponbookdefinitionApi.create_coupon_book_definition"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/coupon-book-definitions"
|
47
|
+
local_var_path = "/coupon-book-definitions"
|
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 = {}
|
@@ -110,9 +97,11 @@ module Bfwd
|
|
110
97
|
@api_client.config.logger.debug "Calling API: CouponbookdefinitionApi.delete_coupon_book_definition ..."
|
111
98
|
end
|
112
99
|
# verify the required parameter 'coupon_book_definition_id' is set
|
113
|
-
|
100
|
+
if @api_client.config.client_side_validation && coupon_book_definition_id.nil?
|
101
|
+
fail ArgumentError, "Missing the required parameter 'coupon_book_definition_id' when calling CouponbookdefinitionApi.delete_coupon_book_definition"
|
102
|
+
end
|
114
103
|
# resource path
|
115
|
-
local_var_path = "/coupon-book-definitions/{coupon-book-definition-ID}".sub('{
|
104
|
+
local_var_path = "/coupon-book-definitions/{coupon-book-definition-ID}".sub('{' + 'coupon-book-definition-ID' + '}', coupon_book_definition_id.to_s)
|
116
105
|
|
117
106
|
# query parameters
|
118
107
|
query_params = {}
|
@@ -120,14 +109,10 @@ module Bfwd
|
|
120
109
|
|
121
110
|
# header parameters
|
122
111
|
header_params = {}
|
123
|
-
|
124
112
|
# HTTP header 'Accept' (if needed)
|
125
|
-
|
126
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
127
|
-
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
128
114
|
# HTTP header 'Content-Type'
|
129
|
-
|
130
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
115
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
131
116
|
|
132
117
|
# form parameters
|
133
118
|
form_params = {}
|
@@ -177,11 +162,11 @@ module Bfwd
|
|
177
162
|
if @api_client.config.debugging
|
178
163
|
@api_client.config.logger.debug "Calling API: CouponbookdefinitionApi.get_all_coupon_book_definitions ..."
|
179
164
|
end
|
180
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
165
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
181
166
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
182
167
|
end
|
183
168
|
# resource path
|
184
|
-
local_var_path = "/coupon-book-definitions"
|
169
|
+
local_var_path = "/coupon-book-definitions"
|
185
170
|
|
186
171
|
# query parameters
|
187
172
|
query_params = {}
|
@@ -194,14 +179,8 @@ module Bfwd
|
|
194
179
|
|
195
180
|
# header parameters
|
196
181
|
header_params = {}
|
197
|
-
|
198
182
|
# HTTP header 'Accept' (if needed)
|
199
|
-
|
200
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
201
|
-
|
202
|
-
# HTTP header 'Content-Type'
|
203
|
-
local_header_content_type = []
|
204
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
183
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
205
184
|
|
206
185
|
# form parameters
|
207
186
|
form_params = {}
|
@@ -254,12 +233,14 @@ module Bfwd
|
|
254
233
|
@api_client.config.logger.debug "Calling API: CouponbookdefinitionApi.get_coupon_book_definition_by_coupon_definition_id ..."
|
255
234
|
end
|
256
235
|
# verify the required parameter 'coupon_definition_id' is set
|
257
|
-
|
258
|
-
|
236
|
+
if @api_client.config.client_side_validation && coupon_definition_id.nil?
|
237
|
+
fail ArgumentError, "Missing the required parameter 'coupon_definition_id' when calling CouponbookdefinitionApi.get_coupon_book_definition_by_coupon_definition_id"
|
238
|
+
end
|
239
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
259
240
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
260
241
|
end
|
261
242
|
# resource path
|
262
|
-
local_var_path = "/coupon-book-definitions/coupon-definition/{coupon-definition-ID}".sub('{
|
243
|
+
local_var_path = "/coupon-book-definitions/coupon-definition/{coupon-definition-ID}".sub('{' + 'coupon-definition-ID' + '}', coupon_definition_id.to_s)
|
263
244
|
|
264
245
|
# query parameters
|
265
246
|
query_params = {}
|
@@ -272,14 +253,10 @@ module Bfwd
|
|
272
253
|
|
273
254
|
# header parameters
|
274
255
|
header_params = {}
|
275
|
-
|
276
256
|
# HTTP header 'Accept' (if needed)
|
277
|
-
|
278
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
279
|
-
|
257
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
280
258
|
# HTTP header 'Content-Type'
|
281
|
-
|
282
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
259
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
283
260
|
|
284
261
|
# form parameters
|
285
262
|
form_params = {}
|
@@ -322,9 +299,11 @@ module Bfwd
|
|
322
299
|
@api_client.config.logger.debug "Calling API: CouponbookdefinitionApi.get_coupon_book_definition_by_id ..."
|
323
300
|
end
|
324
301
|
# verify the required parameter 'coupon_book_definition_id' is set
|
325
|
-
|
302
|
+
if @api_client.config.client_side_validation && coupon_book_definition_id.nil?
|
303
|
+
fail ArgumentError, "Missing the required parameter 'coupon_book_definition_id' when calling CouponbookdefinitionApi.get_coupon_book_definition_by_id"
|
304
|
+
end
|
326
305
|
# resource path
|
327
|
-
local_var_path = "/coupon-book-definitions/{coupon-book-definition-ID}".sub('{
|
306
|
+
local_var_path = "/coupon-book-definitions/{coupon-book-definition-ID}".sub('{' + 'coupon-book-definition-ID' + '}', coupon_book_definition_id.to_s)
|
328
307
|
|
329
308
|
# query parameters
|
330
309
|
query_params = {}
|
@@ -332,14 +311,10 @@ module Bfwd
|
|
332
311
|
|
333
312
|
# header parameters
|
334
313
|
header_params = {}
|
335
|
-
|
336
314
|
# HTTP header 'Accept' (if needed)
|
337
|
-
|
338
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
339
|
-
|
315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
340
316
|
# HTTP header 'Content-Type'
|
341
|
-
|
342
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
317
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
343
318
|
|
344
319
|
# form parameters
|
345
320
|
form_params = {}
|
@@ -380,23 +355,21 @@ module Bfwd
|
|
380
355
|
@api_client.config.logger.debug "Calling API: CouponbookdefinitionApi.update_coupon_book_definition ..."
|
381
356
|
end
|
382
357
|
# verify the required parameter 'coupon_book_definition' is set
|
383
|
-
|
358
|
+
if @api_client.config.client_side_validation && coupon_book_definition.nil?
|
359
|
+
fail ArgumentError, "Missing the required parameter 'coupon_book_definition' when calling CouponbookdefinitionApi.update_coupon_book_definition"
|
360
|
+
end
|
384
361
|
# resource path
|
385
|
-
local_var_path = "/coupon-book-definitions"
|
362
|
+
local_var_path = "/coupon-book-definitions"
|
386
363
|
|
387
364
|
# query parameters
|
388
365
|
query_params = {}
|
389
366
|
|
390
367
|
# header parameters
|
391
368
|
header_params = {}
|
392
|
-
|
393
369
|
# HTTP header 'Accept' (if needed)
|
394
|
-
|
395
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
396
|
-
|
370
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
397
371
|
# HTTP header 'Content-Type'
|
398
|
-
|
399
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
372
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
400
373
|
|
401
374
|
# form parameters
|
402
375
|
form_params = {}
|