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
data/docs/Product.md
CHANGED
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**id** | **String** | {\"description\":\"ID uniquely identifying this product.\",\"verbs\":[\"GET\"]} | [optional]
|
10
10
|
**crm_id** | **String** | {\"description\":\"Customer-relationship-management ID of the product.\",\"verbs\":[\"GET\",\"PUT\",\"POST\"]} | [optional]
|
11
11
|
**account_id** | **String** | {\"description\":\"\",\"verbs\":[]} | [optional]
|
12
|
-
**name** | **String** | {\"description\":\"A unique name — for your benefit — used to identify this product within
|
12
|
+
**name** | **String** | {\"description\":\"A unique name &mdash; for your benefit &mdash; used to identify this product within BillForward. It should reflect the fact that this product confers some service to a customer (e.g. \\\"Gold membership\\\").<br>The product can also be defined by the frequency with which it recurs (e.g. \\\"Monthly Gold membership\\\").<br>Remember also that rate plans can override the timing prescribed by their product. If you intend to override that timing, you may consider the product's period duration to be an unimportant factor when it comes to naming it.\",\"verbs\":[\"POST\",\"PUT\",\"GET\"]} |
|
13
13
|
**public_name** | **String** | {\"description\":\"A friendly non-unique name used to identify this product\",\"verbs\":[\"POST\",\"PUT\",\"GET\"]} | [optional]
|
14
14
|
**description** | **String** | {\"description\":\"A description &mdash; for your benefit &mdash; of the product. For example: you could explain what service this product entitles a customer to.\",\"verbs\":[\"POST\",\"PUT\",\"GET\"]} |
|
15
15
|
**duration** | **Integer** | {\"description\":\"Number of length-measures which constitute the product's period.\",\"verbs\":[\"POST\",\"PUT\",\"GET\"]} |
|
data/docs/ProductRatePlan.md
CHANGED
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
|
|
20
20
|
**product_type** | **String** | {\"default\":\"recurring\",\"description\":\"The frequency of the rate plan &mdash; either recurring or non-recurring. If left unspecified: the rate plan will use the same `productType` frequency as the Product to which it belongs.\",\"verbs\":[\"POST\",\"PUT\",\"GET\"]} | [optional]
|
21
21
|
**pro_rata_mode** | **String** | {\"default\":\"WithCoupon\",\"description\":\"The pro-rata mode for the rate plan. <br><span class=\\\"label label-default\\\">None</span> &mdash; The pro-rata cost for upgrades will be ignored.<br><span class=\\\"label label-default\\\">WithCoupon</span> &mdash; The pro-rata cost for upgrades will be calculated based on the time remaining for the subscription. Discounts from any attached coupons will be deducted from the pro-rated cost.<br><span class=\\\"label label-default\\\">WithoutCoupon</span> &mdash; The pro-rata cost for upgrades will be calculated based on the time remaining for the subscription. Discounts from any attached coupons will not be deducted from the pro-rated cost. \",\"verbs\":[]} |
|
22
22
|
**create_zero_valued_invoices** | **BOOLEAN** | {\"default\":\"true\",\"description\":\"Whether invoices are created if they have a zero valued cost before any discounts are applied.\",\"verbs\":[\"POST\",\"PUT\",\"GET\"] } | [default to false]
|
23
|
-
**name** | **String** | {\"description\":\"A friendly name &mdash; for your benefit &mdash; used to identify this rate plan within some product in
|
23
|
+
**name** | **String** | {\"description\":\"A friendly name &mdash; for your benefit &mdash; used to identify this rate plan within some product in BillForward. The name should reflect the fact that this rate plan provides to the customer a price tiering system within which a subscription to its Product can be made. <br>The rate plan's name could describe the nature of its price tiering (e.g. \\\"Default pricing\\\", \\\"Student pricing\\\").<br>Remember also that rate plans can override the timing prescribed by their product. If your rate plan is defined by its overriding the default timing of its product, then that can be reflected in that rate plan's name. (e.g. \\\"Student pricing - Annual\\\").\",\"verbs\":[\"POST\",\"PUT\",\"GET\"]} |
|
24
24
|
**public_name** | **String** | {\"description\":\"A friendly non-unique name used to identify this product-rate-plan\",\"verbs\":[\"POST\",\"PUT\",\"GET\"]} | [optional]
|
25
25
|
**valid_from** | **DateTime** | {\"description\":\"The UTC DateTime specifying when the rate plan is valid from.\",\"verbs\":[\"GET\"]} | [optional]
|
26
26
|
**valid_till** | **DateTime** | {\"description\":\"The UTC DateTime specifying when the product-rate-plan is valid till.\",\"verbs\":[\"GET\"]} | [optional]
|
data/docs/TokenizationApi.md
CHANGED
@@ -220,8 +220,8 @@ api_instance = Bfwd::TokenizationApi.new
|
|
220
220
|
|
221
221
|
opts = {
|
222
222
|
organizations: ["organizations_example"], # Array<String> | A list of organization-IDs used to restrict the scope of API calls.Multiple organization-IDs may be specified by repeated use of the queryparameter. Example: ...&organizations=org1&organizations=org2
|
223
|
-
bill_forward_url_root: "bill_forward_url_root_example", # String | The URL through which BFJS connected to
|
224
|
-
access_token: "access_token_example", # String | The public token through which BFJS connected to
|
223
|
+
bill_forward_url_root: "bill_forward_url_root_example", # String | The URL through which BFJS connected to BillForward.
|
224
|
+
access_token: "access_token_example", # String | The public token through which BFJS connected to BillForward.
|
225
225
|
vps_protocol: "vps_protocol_example", # String |
|
226
226
|
tx_type: "tx_type_example", # String |
|
227
227
|
vendor_tx_code: "vendor_tx_code_example", # String |
|
@@ -249,8 +249,8 @@ end
|
|
249
249
|
Name | Type | Description | Notes
|
250
250
|
------------- | ------------- | ------------- | -------------
|
251
251
|
**organizations** | [**Array<String>**](String.md)| A list of organization-IDs used to restrict the scope of API calls.Multiple organization-IDs may be specified by repeated use of the queryparameter. Example: ...&organizations=org1&organizations=org2 | [optional]
|
252
|
-
**bill_forward_url_root** | **String**| The URL through which BFJS connected to
|
253
|
-
**access_token** | **String**| The public token through which BFJS connected to
|
252
|
+
**bill_forward_url_root** | **String**| The URL through which BFJS connected to BillForward. | [optional]
|
253
|
+
**access_token** | **String**| The public token through which BFJS connected to BillForward. | [optional]
|
254
254
|
**vps_protocol** | **String**| | [optional]
|
255
255
|
**tx_type** | **String**| | [optional]
|
256
256
|
**vendor_tx_code** | **String**| | [optional]
|
data/git_push.sh
CHANGED
@@ -2,18 +2,6 @@
|
|
2
2
|
#
|
3
3
|
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
4
|
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
#
|
17
5
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
18
6
|
#
|
19
7
|
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
data/lib/bf_ruby2.rb
CHANGED
@@ -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
|
|
@@ -47,7 +36,6 @@ require 'bf_ruby2/models/address'
|
|
47
36
|
require 'bf_ruby2/models/address_paged_metadata'
|
48
37
|
require 'bf_ruby2/models/aggregating_component'
|
49
38
|
require 'bf_ruby2/models/amendment'
|
50
|
-
require 'bf_ruby2/models/amendment_discard_amendment'
|
51
39
|
require 'bf_ruby2/models/amendment_paged_metadata'
|
52
40
|
require 'bf_ruby2/models/amendment_price_n_time_paged_metadata'
|
53
41
|
require 'bf_ruby2/models/audit_entry'
|
@@ -61,11 +49,9 @@ require 'bf_ruby2/models/bank_account_verification_paged_metadata'
|
|
61
49
|
require 'bf_ruby2/models/batch_update_pricing_component_values_request'
|
62
50
|
require 'bf_ruby2/models/billforward_managed_payments_result_paged_metadata'
|
63
51
|
require 'bf_ruby2/models/billing_entity_base'
|
64
|
-
require 'bf_ruby2/models/braintree_auth_capture_request'
|
65
52
|
require 'bf_ruby2/models/braintree_capture_request'
|
66
53
|
require 'bf_ruby2/models/braintree_token_paged_metadata'
|
67
54
|
require 'bf_ruby2/models/cancel_subscription_request'
|
68
|
-
require 'bf_ruby2/models/cancellation_amendment'
|
69
55
|
require 'bf_ruby2/models/cass_churn_result_paged_metadata'
|
70
56
|
require 'bf_ruby2/models/cass_payment_result_paged_metadata'
|
71
57
|
require 'bf_ruby2/models/cass_upgrade_result_paged_metadata'
|
@@ -103,7 +89,6 @@ require 'bf_ruby2/models/create_aggregating_component_request'
|
|
103
89
|
require 'bf_ruby2/models/create_aggregating_subscription_request'
|
104
90
|
require 'bf_ruby2/models/create_profile_address_request'
|
105
91
|
require 'bf_ruby2/models/create_subscription_batch_request'
|
106
|
-
require 'bf_ruby2/models/create_subscription_charge_amendment'
|
107
92
|
require 'bf_ruby2/models/create_subscription_request'
|
108
93
|
require 'bf_ruby2/models/credit_account_request'
|
109
94
|
require 'bf_ruby2/models/credit_note'
|
@@ -124,15 +109,12 @@ require 'bf_ruby2/models/email_provider'
|
|
124
109
|
require 'bf_ruby2/models/email_provider_paged_metadata'
|
125
110
|
require 'bf_ruby2/models/email_subscription'
|
126
111
|
require 'bf_ruby2/models/email_subscription_paged_metadata'
|
127
|
-
require 'bf_ruby2/models/end_trial_amendment'
|
128
112
|
require 'bf_ruby2/models/event'
|
129
113
|
require 'bf_ruby2/models/event_data'
|
130
114
|
require 'bf_ruby2/models/file_sham'
|
131
115
|
require 'bf_ruby2/models/fixed_term'
|
132
116
|
require 'bf_ruby2/models/fixed_term_definition_paged_metadata'
|
133
|
-
require 'bf_ruby2/models/fixed_term_expiry_amendment'
|
134
117
|
require 'bf_ruby2/models/fixed_term_paged_metadata'
|
135
|
-
require 'bf_ruby2/models/flat_pricing_component'
|
136
118
|
require 'bf_ruby2/models/import_invoice_line'
|
137
119
|
require 'bf_ruby2/models/insertable_billing_entity'
|
138
120
|
require 'bf_ruby2/models/invoice'
|
@@ -140,13 +122,9 @@ require 'bf_ruby2/models/invoice_charge_request'
|
|
140
122
|
require 'bf_ruby2/models/invoice_line'
|
141
123
|
require 'bf_ruby2/models/invoice_line_payment'
|
142
124
|
require 'bf_ruby2/models/invoice_line_payment_paged_metadata'
|
143
|
-
require 'bf_ruby2/models/invoice_next_execution_attempt_amendment'
|
144
|
-
require 'bf_ruby2/models/invoice_outstanding_charges_amendment'
|
145
125
|
require 'bf_ruby2/models/invoice_paged_metadata'
|
146
126
|
require 'bf_ruby2/models/invoice_payment'
|
147
|
-
require 'bf_ruby2/models/invoice_recalculation_amendment'
|
148
127
|
require 'bf_ruby2/models/invoice_recalculation_request'
|
149
|
-
require 'bf_ruby2/models/issue_invoice_amendment'
|
150
128
|
require 'bf_ruby2/models/metadata_key_values_paged_metadata'
|
151
129
|
require 'bf_ruby2/models/migration_request'
|
152
130
|
require 'bf_ruby2/models/model_alias'
|
@@ -174,25 +152,21 @@ require 'bf_ruby2/models/permission_action_entity_paged_metadata'
|
|
174
152
|
require 'bf_ruby2/models/permission_resource_entity_paged_metadata'
|
175
153
|
require 'bf_ruby2/models/price_calculation_paged_metadata'
|
176
154
|
require 'bf_ruby2/models/pricing_component'
|
177
|
-
require 'bf_ruby2/models/pricing_component_coupon_modifier'
|
178
155
|
require 'bf_ruby2/models/pricing_component_migration_value'
|
179
156
|
require 'bf_ruby2/models/pricing_component_paged_metadata'
|
180
157
|
require 'bf_ruby2/models/pricing_component_quantity_request'
|
181
158
|
require 'bf_ruby2/models/pricing_component_tier'
|
182
159
|
require 'bf_ruby2/models/pricing_component_tier_paged_metadata'
|
183
160
|
require 'bf_ruby2/models/pricing_component_value'
|
184
|
-
require 'bf_ruby2/models/pricing_component_value_change_amendment'
|
185
161
|
require 'bf_ruby2/models/pricing_component_value_change_paged_metadata'
|
186
162
|
require 'bf_ruby2/models/pricing_component_value_migration_amendment_mapping'
|
187
163
|
require 'bf_ruby2/models/pricing_component_value_paged_metadata'
|
188
164
|
require 'bf_ruby2/models/pricing_component_value_request'
|
189
165
|
require 'bf_ruby2/models/pricing_component_value_response_paged_metadata'
|
190
166
|
require 'bf_ruby2/models/product'
|
191
|
-
require 'bf_ruby2/models/product_coupon_modifier'
|
192
167
|
require 'bf_ruby2/models/product_paged_metadata'
|
193
168
|
require 'bf_ruby2/models/product_payments_result_paged_metadata'
|
194
169
|
require 'bf_ruby2/models/product_rate_plan'
|
195
|
-
require 'bf_ruby2/models/product_rate_plan_migration_amendment'
|
196
170
|
require 'bf_ruby2/models/product_rate_plan_paged_metadata'
|
197
171
|
require 'bf_ruby2/models/product_rate_plan_payments_result_paged_metadata'
|
198
172
|
require 'bf_ruby2/models/profile'
|
@@ -208,7 +182,6 @@ require 'bf_ruby2/models/receipt_paged_metadata'
|
|
208
182
|
require 'bf_ruby2/models/refund'
|
209
183
|
require 'bf_ruby2/models/refund_paged_metadata'
|
210
184
|
require 'bf_ruby2/models/resume_request'
|
211
|
-
require 'bf_ruby2/models/resume_subscription_amendment'
|
212
185
|
require 'bf_ruby2/models/revenue_attribution'
|
213
186
|
require 'bf_ruby2/models/revenue_attribution_paged_metadata'
|
214
187
|
require 'bf_ruby2/models/revive_subscription_request'
|
@@ -216,10 +189,8 @@ require 'bf_ruby2/models/role'
|
|
216
189
|
require 'bf_ruby2/models/role_paged_metadata'
|
217
190
|
require 'bf_ruby2/models/rule_satisfaction'
|
218
191
|
require 'bf_ruby2/models/search_result_paged_metadata'
|
219
|
-
require 'bf_ruby2/models/service_end_amendment'
|
220
192
|
require 'bf_ruby2/models/single_recalculate_charge_request'
|
221
193
|
require 'bf_ruby2/models/stripe_ach_token_paged_metadata'
|
222
|
-
require 'bf_ruby2/models/stripe_auth_capture_request'
|
223
194
|
require 'bf_ruby2/models/stripe_object'
|
224
195
|
require 'bf_ruby2/models/stripe_token_paged_metadata'
|
225
196
|
require 'bf_ruby2/models/subscription'
|
@@ -233,8 +204,6 @@ require 'bf_ruby2/models/swagger_type_list_inv'
|
|
233
204
|
require 'bf_ruby2/models/swagger_type_list_subs'
|
234
205
|
require 'bf_ruby2/models/taxation_link_paged_metadata'
|
235
206
|
require 'bf_ruby2/models/taxation_strategy_paged_metadata'
|
236
|
-
require 'bf_ruby2/models/tiered_pricing_component'
|
237
|
-
require 'bf_ruby2/models/tiered_volume_pricing_component'
|
238
207
|
require 'bf_ruby2/models/time_request'
|
239
208
|
require 'bf_ruby2/models/time_response'
|
240
209
|
require 'bf_ruby2/models/time_response_paged_metadata'
|
@@ -244,10 +213,8 @@ require 'bf_ruby2/models/tokenization_pre_auth_paged_metadata'
|
|
244
213
|
require 'bf_ruby2/models/trust_commerce_token_paged_metadata'
|
245
214
|
require 'bf_ruby2/models/unit_discount'
|
246
215
|
require 'bf_ruby2/models/unit_of_measure'
|
247
|
-
require 'bf_ruby2/models/unit_of_measure_coupon_modifier'
|
248
216
|
require 'bf_ruby2/models/unit_of_measure_paged_metadata'
|
249
217
|
require 'bf_ruby2/models/update_address_request'
|
250
|
-
require 'bf_ruby2/models/update_component_value_amendment'
|
251
218
|
require 'bf_ruby2/models/update_pricing_component_value_change_result'
|
252
219
|
require 'bf_ruby2/models/update_pricing_component_value_request'
|
253
220
|
require 'bf_ruby2/models/update_pricing_component_value_response'
|
@@ -268,6 +235,28 @@ require 'bf_ruby2/models/user_paged_metadata'
|
|
268
235
|
require 'bf_ruby2/models/username'
|
269
236
|
require 'bf_ruby2/models/username_paged_metadata'
|
270
237
|
require 'bf_ruby2/models/webhook_paged_metadata'
|
238
|
+
require 'bf_ruby2/models/amendment_discard_amendment'
|
239
|
+
require 'bf_ruby2/models/braintree_auth_capture_request'
|
240
|
+
require 'bf_ruby2/models/cancellation_amendment'
|
241
|
+
require 'bf_ruby2/models/create_subscription_charge_amendment'
|
242
|
+
require 'bf_ruby2/models/end_trial_amendment'
|
243
|
+
require 'bf_ruby2/models/fixed_term_expiry_amendment'
|
244
|
+
require 'bf_ruby2/models/flat_pricing_component'
|
245
|
+
require 'bf_ruby2/models/invoice_next_execution_attempt_amendment'
|
246
|
+
require 'bf_ruby2/models/invoice_outstanding_charges_amendment'
|
247
|
+
require 'bf_ruby2/models/invoice_recalculation_amendment'
|
248
|
+
require 'bf_ruby2/models/issue_invoice_amendment'
|
249
|
+
require 'bf_ruby2/models/pricing_component_coupon_modifier'
|
250
|
+
require 'bf_ruby2/models/pricing_component_value_change_amendment'
|
251
|
+
require 'bf_ruby2/models/product_coupon_modifier'
|
252
|
+
require 'bf_ruby2/models/product_rate_plan_migration_amendment'
|
253
|
+
require 'bf_ruby2/models/resume_subscription_amendment'
|
254
|
+
require 'bf_ruby2/models/service_end_amendment'
|
255
|
+
require 'bf_ruby2/models/stripe_auth_capture_request'
|
256
|
+
require 'bf_ruby2/models/tiered_pricing_component'
|
257
|
+
require 'bf_ruby2/models/tiered_volume_pricing_component'
|
258
|
+
require 'bf_ruby2/models/unit_of_measure_coupon_modifier'
|
259
|
+
require 'bf_ruby2/models/update_component_value_amendment'
|
271
260
|
|
272
261
|
# APIs
|
273
262
|
require 'bf_ruby2/api/accounts_api'
|
@@ -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: AccountsApi.add_charge_to_account ..."
|
54
43
|
end
|
55
44
|
# verify the required parameter 'account_id' is set
|
56
|
-
|
45
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.add_charge_to_account"
|
47
|
+
end
|
57
48
|
# verify the required parameter 'request' is set
|
58
|
-
|
49
|
+
if @api_client.config.client_side_validation && request.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling AccountsApi.add_charge_to_account"
|
51
|
+
end
|
59
52
|
# resource path
|
60
|
-
local_var_path = "/accounts/{account-ID}/invoice".sub('{
|
53
|
+
local_var_path = "/accounts/{account-ID}/invoice".sub('{' + 'account-ID' + '}', account_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: AccountsApi.add_credit_note_to_account ..."
|
115
104
|
end
|
116
105
|
# verify the required parameter 'account_id' is set
|
117
|
-
|
106
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.add_credit_note_to_account"
|
108
|
+
end
|
118
109
|
# verify the required parameter 'credit_note' is set
|
119
|
-
|
110
|
+
if @api_client.config.client_side_validation && credit_note.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'credit_note' when calling AccountsApi.add_credit_note_to_account"
|
112
|
+
end
|
120
113
|
# resource path
|
121
|
-
local_var_path = "/accounts/{account-ID}/credit".sub('{
|
114
|
+
local_var_path = "/accounts/{account-ID}/credit".sub('{' + 'account-ID' + '}', account_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 = {}
|
@@ -177,11 +166,15 @@ module Bfwd
|
|
177
166
|
@api_client.config.logger.debug "Calling API: AccountsApi.add_permission_to_account ..."
|
178
167
|
end
|
179
168
|
# verify the required parameter 'account_id' is set
|
180
|
-
|
169
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
170
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.add_permission_to_account"
|
171
|
+
end
|
181
172
|
# verify the required parameter 'role' is set
|
182
|
-
|
173
|
+
if @api_client.config.client_side_validation && role.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'role' when calling AccountsApi.add_permission_to_account"
|
175
|
+
end
|
183
176
|
# resource path
|
184
|
-
local_var_path = "/accounts/{account-ID}/roles/{role}".sub('{
|
177
|
+
local_var_path = "/accounts/{account-ID}/roles/{role}".sub('{' + 'account-ID' + '}', account_id.to_s).sub('{' + 'role' + '}', role.to_s)
|
185
178
|
|
186
179
|
# query parameters
|
187
180
|
query_params = {}
|
@@ -189,14 +182,10 @@ module Bfwd
|
|
189
182
|
|
190
183
|
# header parameters
|
191
184
|
header_params = {}
|
192
|
-
|
193
185
|
# HTTP header 'Accept' (if needed)
|
194
|
-
|
195
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
196
|
-
|
186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
197
187
|
# HTTP header 'Content-Type'
|
198
|
-
|
199
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
188
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
200
189
|
|
201
190
|
# form parameters
|
202
191
|
form_params = {}
|
@@ -237,23 +226,21 @@ module Bfwd
|
|
237
226
|
@api_client.config.logger.debug "Calling API: AccountsApi.create_account ..."
|
238
227
|
end
|
239
228
|
# verify the required parameter 'request' is set
|
240
|
-
|
229
|
+
if @api_client.config.client_side_validation && request.nil?
|
230
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling AccountsApi.create_account"
|
231
|
+
end
|
241
232
|
# resource path
|
242
|
-
local_var_path = "/accounts"
|
233
|
+
local_var_path = "/accounts"
|
243
234
|
|
244
235
|
# query parameters
|
245
236
|
query_params = {}
|
246
237
|
|
247
238
|
# header parameters
|
248
239
|
header_params = {}
|
249
|
-
|
250
240
|
# HTTP header 'Accept' (if needed)
|
251
|
-
|
252
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
253
|
-
|
241
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
254
242
|
# HTTP header 'Content-Type'
|
255
|
-
|
256
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
243
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
257
244
|
|
258
245
|
# form parameters
|
259
246
|
form_params = {}
|
@@ -298,13 +285,19 @@ module Bfwd
|
|
298
285
|
@api_client.config.logger.debug "Calling API: AccountsApi.delete_account ..."
|
299
286
|
end
|
300
287
|
# verify the required parameter 'account_id' is set
|
301
|
-
|
288
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
289
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.delete_account"
|
290
|
+
end
|
302
291
|
# verify the required parameter 'delete_gateway_data' is set
|
303
|
-
|
292
|
+
if @api_client.config.client_side_validation && delete_gateway_data.nil?
|
293
|
+
fail ArgumentError, "Missing the required parameter 'delete_gateway_data' when calling AccountsApi.delete_account"
|
294
|
+
end
|
304
295
|
# verify the required parameter 'organizations' is set
|
305
|
-
|
296
|
+
if @api_client.config.client_side_validation && organizations.nil?
|
297
|
+
fail ArgumentError, "Missing the required parameter 'organizations' when calling AccountsApi.delete_account"
|
298
|
+
end
|
306
299
|
# resource path
|
307
|
-
local_var_path = "/accounts/{account-ID}".sub('{
|
300
|
+
local_var_path = "/accounts/{account-ID}".sub('{' + 'account-ID' + '}', account_id.to_s)
|
308
301
|
|
309
302
|
# query parameters
|
310
303
|
query_params = {}
|
@@ -313,14 +306,10 @@ module Bfwd
|
|
313
306
|
|
314
307
|
# header parameters
|
315
308
|
header_params = {}
|
316
|
-
|
317
309
|
# HTTP header 'Accept' (if needed)
|
318
|
-
|
319
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
320
|
-
|
310
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
321
311
|
# HTTP header 'Content-Type'
|
322
|
-
|
323
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
312
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
324
313
|
|
325
314
|
# form parameters
|
326
315
|
form_params = {}
|
@@ -363,9 +352,11 @@ module Bfwd
|
|
363
352
|
@api_client.config.logger.debug "Calling API: AccountsApi.delete_metadata_for_account ..."
|
364
353
|
end
|
365
354
|
# verify the required parameter 'account_id' is set
|
366
|
-
|
355
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
356
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.delete_metadata_for_account"
|
357
|
+
end
|
367
358
|
# resource path
|
368
|
-
local_var_path = "/accounts/{account-ID}/metadata".sub('{
|
359
|
+
local_var_path = "/accounts/{account-ID}/metadata".sub('{' + 'account-ID' + '}', account_id.to_s)
|
369
360
|
|
370
361
|
# query parameters
|
371
362
|
query_params = {}
|
@@ -373,14 +364,10 @@ module Bfwd
|
|
373
364
|
|
374
365
|
# header parameters
|
375
366
|
header_params = {}
|
376
|
-
|
377
367
|
# HTTP header 'Accept' (if needed)
|
378
|
-
|
379
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
380
|
-
|
368
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
381
369
|
# HTTP header 'Content-Type'
|
382
|
-
|
383
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
370
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
384
371
|
|
385
372
|
# form parameters
|
386
373
|
form_params = {}
|
@@ -423,9 +410,11 @@ module Bfwd
|
|
423
410
|
@api_client.config.logger.debug "Calling API: AccountsApi.get_account_by_id ..."
|
424
411
|
end
|
425
412
|
# verify the required parameter 'account_id' is set
|
426
|
-
|
413
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
414
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_account_by_id"
|
415
|
+
end
|
427
416
|
# resource path
|
428
|
-
local_var_path = "/accounts/{account-ID}".sub('{
|
417
|
+
local_var_path = "/accounts/{account-ID}".sub('{' + 'account-ID' + '}', account_id.to_s)
|
429
418
|
|
430
419
|
# query parameters
|
431
420
|
query_params = {}
|
@@ -433,14 +422,10 @@ module Bfwd
|
|
433
422
|
|
434
423
|
# header parameters
|
435
424
|
header_params = {}
|
436
|
-
|
437
425
|
# HTTP header 'Accept' (if needed)
|
438
|
-
|
439
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
440
|
-
|
426
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
441
427
|
# HTTP header 'Content-Type'
|
442
|
-
|
443
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
428
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
444
429
|
|
445
430
|
# form parameters
|
446
431
|
form_params = {}
|
@@ -495,14 +480,18 @@ module Bfwd
|
|
495
480
|
@api_client.config.logger.debug "Calling API: AccountsApi.get_accounts_by_created ..."
|
496
481
|
end
|
497
482
|
# verify the required parameter 'lower_threshold' is set
|
498
|
-
|
483
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
484
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling AccountsApi.get_accounts_by_created"
|
485
|
+
end
|
499
486
|
# verify the required parameter 'upper_threshold' is set
|
500
|
-
|
501
|
-
|
487
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
488
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling AccountsApi.get_accounts_by_created"
|
489
|
+
end
|
490
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
502
491
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
503
492
|
end
|
504
493
|
# resource path
|
505
|
-
local_var_path = "/accounts/created/{lower-threshold}/{upper-threshold}".sub('{
|
494
|
+
local_var_path = "/accounts/created/{lower-threshold}/{upper-threshold}".sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
506
495
|
|
507
496
|
# query parameters
|
508
497
|
query_params = {}
|
@@ -515,14 +504,8 @@ module Bfwd
|
|
515
504
|
|
516
505
|
# header parameters
|
517
506
|
header_params = {}
|
518
|
-
|
519
507
|
# HTTP header 'Accept' (if needed)
|
520
|
-
|
521
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
522
|
-
|
523
|
-
# HTTP header 'Content-Type'
|
524
|
-
local_header_content_type = []
|
525
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
508
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json; charset=utf-8'])
|
526
509
|
|
527
510
|
# form parameters
|
528
511
|
form_params = {}
|
@@ -577,14 +560,18 @@ module Bfwd
|
|
577
560
|
@api_client.config.logger.debug "Calling API: AccountsApi.get_accounts_by_updated ..."
|
578
561
|
end
|
579
562
|
# verify the required parameter 'lower_threshold' is set
|
580
|
-
|
563
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
564
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling AccountsApi.get_accounts_by_updated"
|
565
|
+
end
|
581
566
|
# verify the required parameter 'upper_threshold' is set
|
582
|
-
|
583
|
-
|
567
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
568
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling AccountsApi.get_accounts_by_updated"
|
569
|
+
end
|
570
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
584
571
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
585
572
|
end
|
586
573
|
# resource path
|
587
|
-
local_var_path = "/accounts/updated/{lower-threshold}/{upper-threshold}".sub('{
|
574
|
+
local_var_path = "/accounts/updated/{lower-threshold}/{upper-threshold}".sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
588
575
|
|
589
576
|
# query parameters
|
590
577
|
query_params = {}
|
@@ -597,14 +584,8 @@ module Bfwd
|
|
597
584
|
|
598
585
|
# header parameters
|
599
586
|
header_params = {}
|
600
|
-
|
601
587
|
# HTTP header 'Accept' (if needed)
|
602
|
-
|
603
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
604
|
-
|
605
|
-
# HTTP header 'Content-Type'
|
606
|
-
local_header_content_type = []
|
607
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
588
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json; charset=utf-8'])
|
608
589
|
|
609
590
|
# form parameters
|
610
591
|
form_params = {}
|
@@ -657,12 +638,14 @@ module Bfwd
|
|
657
638
|
@api_client.config.logger.debug "Calling API: AccountsApi.get_accounts_by_user_id ..."
|
658
639
|
end
|
659
640
|
# verify the required parameter 'user_id' is set
|
660
|
-
|
661
|
-
|
641
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
642
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling AccountsApi.get_accounts_by_user_id"
|
643
|
+
end
|
644
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
662
645
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
663
646
|
end
|
664
647
|
# resource path
|
665
|
-
local_var_path = "/accounts/user/{user-ID}".sub('{
|
648
|
+
local_var_path = "/accounts/user/{user-ID}".sub('{' + 'user-ID' + '}', user_id.to_s)
|
666
649
|
|
667
650
|
# query parameters
|
668
651
|
query_params = {}
|
@@ -675,14 +658,10 @@ module Bfwd
|
|
675
658
|
|
676
659
|
# header parameters
|
677
660
|
header_params = {}
|
678
|
-
|
679
661
|
# HTTP header 'Accept' (if needed)
|
680
|
-
|
681
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
682
|
-
|
662
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
683
663
|
# HTTP header 'Content-Type'
|
684
|
-
|
685
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
664
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
686
665
|
|
687
666
|
# form parameters
|
688
667
|
form_params = {}
|
@@ -738,11 +717,11 @@ module Bfwd
|
|
738
717
|
if @api_client.config.debugging
|
739
718
|
@api_client.config.logger.debug "Calling API: AccountsApi.get_all_accounts ..."
|
740
719
|
end
|
741
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
720
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
742
721
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
743
722
|
end
|
744
723
|
# resource path
|
745
|
-
local_var_path = "/accounts"
|
724
|
+
local_var_path = "/accounts"
|
746
725
|
|
747
726
|
# query parameters
|
748
727
|
query_params = {}
|
@@ -758,14 +737,8 @@ module Bfwd
|
|
758
737
|
|
759
738
|
# header parameters
|
760
739
|
header_params = {}
|
761
|
-
|
762
740
|
# HTTP header 'Accept' (if needed)
|
763
|
-
|
764
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
765
|
-
|
766
|
-
# HTTP header 'Content-Type'
|
767
|
-
local_header_content_type = []
|
768
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
741
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json; charset=utf-8'])
|
769
742
|
|
770
743
|
# form parameters
|
771
744
|
form_params = {}
|
@@ -818,12 +791,14 @@ module Bfwd
|
|
818
791
|
@api_client.config.logger.debug "Calling API: AccountsApi.get_available_credit_on_account ..."
|
819
792
|
end
|
820
793
|
# verify the required parameter 'account_id' is set
|
821
|
-
|
822
|
-
|
794
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
795
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_available_credit_on_account"
|
796
|
+
end
|
797
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
823
798
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
824
799
|
end
|
825
800
|
# resource path
|
826
|
-
local_var_path = "/accounts/{account-ID}/credit".sub('{
|
801
|
+
local_var_path = "/accounts/{account-ID}/credit".sub('{' + 'account-ID' + '}', account_id.to_s)
|
827
802
|
|
828
803
|
# query parameters
|
829
804
|
query_params = {}
|
@@ -836,14 +811,10 @@ module Bfwd
|
|
836
811
|
|
837
812
|
# header parameters
|
838
813
|
header_params = {}
|
839
|
-
|
840
814
|
# HTTP header 'Accept' (if needed)
|
841
|
-
|
842
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
843
|
-
|
815
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
844
816
|
# HTTP header 'Content-Type'
|
845
|
-
|
846
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
817
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
847
818
|
|
848
819
|
# form parameters
|
849
820
|
form_params = {}
|
@@ -886,9 +857,11 @@ module Bfwd
|
|
886
857
|
@api_client.config.logger.debug "Calling API: AccountsApi.get_metadata_for_account ..."
|
887
858
|
end
|
888
859
|
# verify the required parameter 'account_id' is set
|
889
|
-
|
860
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
861
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_metadata_for_account"
|
862
|
+
end
|
890
863
|
# resource path
|
891
|
-
local_var_path = "/accounts/{account-ID}/metadata".sub('{
|
864
|
+
local_var_path = "/accounts/{account-ID}/metadata".sub('{' + 'account-ID' + '}', account_id.to_s)
|
892
865
|
|
893
866
|
# query parameters
|
894
867
|
query_params = {}
|
@@ -896,14 +869,10 @@ module Bfwd
|
|
896
869
|
|
897
870
|
# header parameters
|
898
871
|
header_params = {}
|
899
|
-
|
900
872
|
# HTTP header 'Accept' (if needed)
|
901
|
-
|
902
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
903
|
-
|
873
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
904
874
|
# HTTP header 'Content-Type'
|
905
|
-
|
906
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
875
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
907
876
|
|
908
877
|
# form parameters
|
909
878
|
form_params = {}
|
@@ -956,12 +925,14 @@ module Bfwd
|
|
956
925
|
@api_client.config.logger.debug "Calling API: AccountsApi.get_permissions_on_account ..."
|
957
926
|
end
|
958
927
|
# verify the required parameter 'account_id' is set
|
959
|
-
|
960
|
-
|
928
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
929
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_permissions_on_account"
|
930
|
+
end
|
931
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
961
932
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
962
933
|
end
|
963
934
|
# resource path
|
964
|
-
local_var_path = "/accounts/{account-ID}/roles".sub('{
|
935
|
+
local_var_path = "/accounts/{account-ID}/roles".sub('{' + 'account-ID' + '}', account_id.to_s)
|
965
936
|
|
966
937
|
# query parameters
|
967
938
|
query_params = {}
|
@@ -974,14 +945,10 @@ module Bfwd
|
|
974
945
|
|
975
946
|
# header parameters
|
976
947
|
header_params = {}
|
977
|
-
|
978
948
|
# HTTP header 'Accept' (if needed)
|
979
|
-
|
980
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
981
|
-
|
949
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
982
950
|
# HTTP header 'Content-Type'
|
983
|
-
|
984
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
951
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
985
952
|
|
986
953
|
# form parameters
|
987
954
|
form_params = {}
|
@@ -1026,11 +993,15 @@ module Bfwd
|
|
1026
993
|
@api_client.config.logger.debug "Calling API: AccountsApi.remove_credit_from_account ..."
|
1027
994
|
end
|
1028
995
|
# verify the required parameter 'account_id' is set
|
1029
|
-
|
996
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
997
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.remove_credit_from_account"
|
998
|
+
end
|
1030
999
|
# verify the required parameter 'value' is set
|
1031
|
-
|
1000
|
+
if @api_client.config.client_side_validation && value.nil?
|
1001
|
+
fail ArgumentError, "Missing the required parameter 'value' when calling AccountsApi.remove_credit_from_account"
|
1002
|
+
end
|
1032
1003
|
# resource path
|
1033
|
-
local_var_path = "/accounts/{account-ID}/credit/{value}".sub('{
|
1004
|
+
local_var_path = "/accounts/{account-ID}/credit/{value}".sub('{' + 'account-ID' + '}', account_id.to_s).sub('{' + 'value' + '}', value.to_s)
|
1034
1005
|
|
1035
1006
|
# query parameters
|
1036
1007
|
query_params = {}
|
@@ -1038,14 +1009,10 @@ module Bfwd
|
|
1038
1009
|
|
1039
1010
|
# header parameters
|
1040
1011
|
header_params = {}
|
1041
|
-
|
1042
1012
|
# HTTP header 'Accept' (if needed)
|
1043
|
-
|
1044
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1045
|
-
|
1013
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1046
1014
|
# HTTP header 'Content-Type'
|
1047
|
-
|
1048
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1015
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
1049
1016
|
|
1050
1017
|
# form parameters
|
1051
1018
|
form_params = {}
|
@@ -1090,11 +1057,15 @@ module Bfwd
|
|
1090
1057
|
@api_client.config.logger.debug "Calling API: AccountsApi.remove_permission_from_account ..."
|
1091
1058
|
end
|
1092
1059
|
# verify the required parameter 'account_id' is set
|
1093
|
-
|
1060
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
1061
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.remove_permission_from_account"
|
1062
|
+
end
|
1094
1063
|
# verify the required parameter 'role' is set
|
1095
|
-
|
1064
|
+
if @api_client.config.client_side_validation && role.nil?
|
1065
|
+
fail ArgumentError, "Missing the required parameter 'role' when calling AccountsApi.remove_permission_from_account"
|
1066
|
+
end
|
1096
1067
|
# resource path
|
1097
|
-
local_var_path = "/accounts/{account-ID}/roles/{role}".sub('{
|
1068
|
+
local_var_path = "/accounts/{account-ID}/roles/{role}".sub('{' + 'account-ID' + '}', account_id.to_s).sub('{' + 'role' + '}', role.to_s)
|
1098
1069
|
|
1099
1070
|
# query parameters
|
1100
1071
|
query_params = {}
|
@@ -1102,14 +1073,10 @@ module Bfwd
|
|
1102
1073
|
|
1103
1074
|
# header parameters
|
1104
1075
|
header_params = {}
|
1105
|
-
|
1106
1076
|
# HTTP header 'Accept' (if needed)
|
1107
|
-
|
1108
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1109
|
-
|
1077
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1110
1078
|
# HTTP header 'Content-Type'
|
1111
|
-
|
1112
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1079
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
1113
1080
|
|
1114
1081
|
# form parameters
|
1115
1082
|
form_params = {}
|
@@ -1154,11 +1121,15 @@ module Bfwd
|
|
1154
1121
|
@api_client.config.logger.debug "Calling API: AccountsApi.set_metadata_for_account ..."
|
1155
1122
|
end
|
1156
1123
|
# verify the required parameter 'metadata' is set
|
1157
|
-
|
1124
|
+
if @api_client.config.client_side_validation && metadata.nil?
|
1125
|
+
fail ArgumentError, "Missing the required parameter 'metadata' when calling AccountsApi.set_metadata_for_account"
|
1126
|
+
end
|
1158
1127
|
# verify the required parameter 'account_id' is set
|
1159
|
-
|
1128
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
1129
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.set_metadata_for_account"
|
1130
|
+
end
|
1160
1131
|
# resource path
|
1161
|
-
local_var_path = "/accounts/{account-ID}/metadata".sub('{
|
1132
|
+
local_var_path = "/accounts/{account-ID}/metadata".sub('{' + 'account-ID' + '}', account_id.to_s)
|
1162
1133
|
|
1163
1134
|
# query parameters
|
1164
1135
|
query_params = {}
|
@@ -1166,14 +1137,10 @@ module Bfwd
|
|
1166
1137
|
|
1167
1138
|
# header parameters
|
1168
1139
|
header_params = {}
|
1169
|
-
|
1170
1140
|
# HTTP header 'Accept' (if needed)
|
1171
|
-
|
1172
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1173
|
-
|
1141
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1174
1142
|
# HTTP header 'Content-Type'
|
1175
|
-
|
1176
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1143
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
1177
1144
|
|
1178
1145
|
# form parameters
|
1179
1146
|
form_params = {}
|
@@ -1214,23 +1181,21 @@ module Bfwd
|
|
1214
1181
|
@api_client.config.logger.debug "Calling API: AccountsApi.update_account ..."
|
1215
1182
|
end
|
1216
1183
|
# verify the required parameter 'account' is set
|
1217
|
-
|
1184
|
+
if @api_client.config.client_side_validation && account.nil?
|
1185
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling AccountsApi.update_account"
|
1186
|
+
end
|
1218
1187
|
# resource path
|
1219
|
-
local_var_path = "/accounts"
|
1188
|
+
local_var_path = "/accounts"
|
1220
1189
|
|
1221
1190
|
# query parameters
|
1222
1191
|
query_params = {}
|
1223
1192
|
|
1224
1193
|
# header parameters
|
1225
1194
|
header_params = {}
|
1226
|
-
|
1227
1195
|
# HTTP header 'Accept' (if needed)
|
1228
|
-
|
1229
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1230
|
-
|
1196
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
1231
1197
|
# HTTP header 'Content-Type'
|
1232
|
-
|
1233
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1198
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
1234
1199
|
|
1235
1200
|
# form parameters
|
1236
1201
|
form_params = {}
|
@@ -1275,11 +1240,15 @@ module Bfwd
|
|
1275
1240
|
@api_client.config.logger.debug "Calling API: AccountsApi.upsert_metadata_for_account ..."
|
1276
1241
|
end
|
1277
1242
|
# verify the required parameter 'metadata' is set
|
1278
|
-
|
1243
|
+
if @api_client.config.client_side_validation && metadata.nil?
|
1244
|
+
fail ArgumentError, "Missing the required parameter 'metadata' when calling AccountsApi.upsert_metadata_for_account"
|
1245
|
+
end
|
1279
1246
|
# verify the required parameter 'account_id' is set
|
1280
|
-
|
1247
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
1248
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.upsert_metadata_for_account"
|
1249
|
+
end
|
1281
1250
|
# resource path
|
1282
|
-
local_var_path = "/accounts/{account-ID}/metadata".sub('{
|
1251
|
+
local_var_path = "/accounts/{account-ID}/metadata".sub('{' + 'account-ID' + '}', account_id.to_s)
|
1283
1252
|
|
1284
1253
|
# query parameters
|
1285
1254
|
query_params = {}
|
@@ -1287,14 +1256,10 @@ module Bfwd
|
|
1287
1256
|
|
1288
1257
|
# header parameters
|
1289
1258
|
header_params = {}
|
1290
|
-
|
1291
1259
|
# HTTP header 'Accept' (if needed)
|
1292
|
-
|
1293
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1294
|
-
|
1260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
1295
1261
|
# HTTP header 'Content-Type'
|
1296
|
-
|
1297
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1262
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
1298
1263
|
|
1299
1264
|
# form parameters
|
1300
1265
|
form_params = {}
|