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: AnalyticsApi.get_account_debts ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'debts_per_account' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && debts_per_account.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'debts_per_account' when calling AnalyticsApi.get_account_debts"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/analytics/payments/accounts/outstanding"
|
47
|
+
local_var_path = "/analytics/payments/accounts/outstanding"
|
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(['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 = {}
|
@@ -120,14 +107,18 @@ module Bfwd
|
|
120
107
|
@api_client.config.logger.debug "Calling API: AnalyticsApi.get_account_ltv ..."
|
121
108
|
end
|
122
109
|
# verify the required parameter 'account_id' is set
|
123
|
-
|
110
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling AnalyticsApi.get_account_ltv"
|
112
|
+
end
|
124
113
|
# verify the required parameter 'end_datetime' is set
|
125
|
-
|
126
|
-
|
114
|
+
if @api_client.config.client_side_validation && end_datetime.nil?
|
115
|
+
fail ArgumentError, "Missing the required parameter 'end_datetime' when calling AnalyticsApi.get_account_ltv"
|
116
|
+
end
|
117
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
127
118
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
128
119
|
end
|
129
120
|
# resource path
|
130
|
-
local_var_path = "/analytics/account-ltv/{account-id}/{end-datetime}".sub('{
|
121
|
+
local_var_path = "/analytics/account-ltv/{account-id}/{end-datetime}".sub('{' + 'account-id' + '}', account_id.to_s).sub('{' + 'end-datetime' + '}', end_datetime.to_s)
|
131
122
|
|
132
123
|
# query parameters
|
133
124
|
query_params = {}
|
@@ -139,14 +130,8 @@ module Bfwd
|
|
139
130
|
|
140
131
|
# header parameters
|
141
132
|
header_params = {}
|
142
|
-
|
143
133
|
# HTTP header 'Accept' (if needed)
|
144
|
-
|
145
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
146
|
-
|
147
|
-
# HTTP header 'Content-Type'
|
148
|
-
local_header_content_type = []
|
149
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
134
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
150
135
|
|
151
136
|
# form parameters
|
152
137
|
form_params = {}
|
@@ -187,23 +172,21 @@ module Bfwd
|
|
187
172
|
@api_client.config.logger.debug "Calling API: AnalyticsApi.get_account_payments ..."
|
188
173
|
end
|
189
174
|
# verify the required parameter 'payments_per_account' is set
|
190
|
-
|
175
|
+
if @api_client.config.client_side_validation && payments_per_account.nil?
|
176
|
+
fail ArgumentError, "Missing the required parameter 'payments_per_account' when calling AnalyticsApi.get_account_payments"
|
177
|
+
end
|
191
178
|
# resource path
|
192
|
-
local_var_path = "/analytics/payments/accounts"
|
179
|
+
local_var_path = "/analytics/payments/accounts"
|
193
180
|
|
194
181
|
# query parameters
|
195
182
|
query_params = {}
|
196
183
|
|
197
184
|
# header parameters
|
198
185
|
header_params = {}
|
199
|
-
|
200
186
|
# HTTP header 'Accept' (if needed)
|
201
|
-
|
202
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
203
|
-
|
187
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
204
188
|
# HTTP header 'Content-Type'
|
205
|
-
|
206
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
189
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
207
190
|
|
208
191
|
# form parameters
|
209
192
|
form_params = {}
|
@@ -256,14 +239,18 @@ module Bfwd
|
|
256
239
|
@api_client.config.logger.debug "Calling API: AnalyticsApi.get_billforward_managed_payments ..."
|
257
240
|
end
|
258
241
|
# verify the required parameter 'start_datetime' is set
|
259
|
-
|
242
|
+
if @api_client.config.client_side_validation && start_datetime.nil?
|
243
|
+
fail ArgumentError, "Missing the required parameter 'start_datetime' when calling AnalyticsApi.get_billforward_managed_payments"
|
244
|
+
end
|
260
245
|
# verify the required parameter 'end_datetime' is set
|
261
|
-
|
262
|
-
|
246
|
+
if @api_client.config.client_side_validation && end_datetime.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'end_datetime' when calling AnalyticsApi.get_billforward_managed_payments"
|
248
|
+
end
|
249
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
263
250
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
264
251
|
end
|
265
252
|
# resource path
|
266
|
-
local_var_path = "/analytics/billforward-managed-payments/{start-datetime}/{end-datetime}".sub('{
|
253
|
+
local_var_path = "/analytics/billforward-managed-payments/{start-datetime}/{end-datetime}".sub('{' + 'start-datetime' + '}', start_datetime.to_s).sub('{' + 'end-datetime' + '}', end_datetime.to_s)
|
267
254
|
|
268
255
|
# query parameters
|
269
256
|
query_params = {}
|
@@ -275,14 +262,8 @@ module Bfwd
|
|
275
262
|
|
276
263
|
# header parameters
|
277
264
|
header_params = {}
|
278
|
-
|
279
265
|
# HTTP header 'Accept' (if needed)
|
280
|
-
|
281
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
282
|
-
|
283
|
-
# HTTP header 'Content-Type'
|
284
|
-
local_header_content_type = []
|
285
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
266
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
286
267
|
|
287
268
|
# form parameters
|
288
269
|
form_params = {}
|
@@ -335,14 +316,18 @@ module Bfwd
|
|
335
316
|
@api_client.config.logger.debug "Calling API: AnalyticsApi.get_churn ..."
|
336
317
|
end
|
337
318
|
# verify the required parameter 'start_datetime' is set
|
338
|
-
|
319
|
+
if @api_client.config.client_side_validation && start_datetime.nil?
|
320
|
+
fail ArgumentError, "Missing the required parameter 'start_datetime' when calling AnalyticsApi.get_churn"
|
321
|
+
end
|
339
322
|
# verify the required parameter 'end_datetime' is set
|
340
|
-
|
341
|
-
|
323
|
+
if @api_client.config.client_side_validation && end_datetime.nil?
|
324
|
+
fail ArgumentError, "Missing the required parameter 'end_datetime' when calling AnalyticsApi.get_churn"
|
325
|
+
end
|
326
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
342
327
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
343
328
|
end
|
344
329
|
# resource path
|
345
|
-
local_var_path = "/analytics/churn/{start-datetime}/{end-datetime}".sub('{
|
330
|
+
local_var_path = "/analytics/churn/{start-datetime}/{end-datetime}".sub('{' + 'start-datetime' + '}', start_datetime.to_s).sub('{' + 'end-datetime' + '}', end_datetime.to_s)
|
346
331
|
|
347
332
|
# query parameters
|
348
333
|
query_params = {}
|
@@ -354,14 +339,8 @@ module Bfwd
|
|
354
339
|
|
355
340
|
# header parameters
|
356
341
|
header_params = {}
|
357
|
-
|
358
342
|
# HTTP header 'Accept' (if needed)
|
359
|
-
|
360
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
361
|
-
|
362
|
-
# HTTP header 'Content-Type'
|
363
|
-
local_header_content_type = []
|
364
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
343
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
365
344
|
|
366
345
|
# form parameters
|
367
346
|
form_params = {}
|
@@ -414,14 +393,18 @@ module Bfwd
|
|
414
393
|
@api_client.config.logger.debug "Calling API: AnalyticsApi.get_debts ..."
|
415
394
|
end
|
416
395
|
# verify the required parameter 'start_datetime' is set
|
417
|
-
|
396
|
+
if @api_client.config.client_side_validation && start_datetime.nil?
|
397
|
+
fail ArgumentError, "Missing the required parameter 'start_datetime' when calling AnalyticsApi.get_debts"
|
398
|
+
end
|
418
399
|
# verify the required parameter 'end_datetime' is set
|
419
|
-
|
420
|
-
|
400
|
+
if @api_client.config.client_side_validation && end_datetime.nil?
|
401
|
+
fail ArgumentError, "Missing the required parameter 'end_datetime' when calling AnalyticsApi.get_debts"
|
402
|
+
end
|
403
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
421
404
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
422
405
|
end
|
423
406
|
# resource path
|
424
|
-
local_var_path = "/analytics/payments/outstanding/{start-datetime}/{end-datetime}".sub('{
|
407
|
+
local_var_path = "/analytics/payments/outstanding/{start-datetime}/{end-datetime}".sub('{' + 'start-datetime' + '}', start_datetime.to_s).sub('{' + 'end-datetime' + '}', end_datetime.to_s)
|
425
408
|
|
426
409
|
# query parameters
|
427
410
|
query_params = {}
|
@@ -433,14 +416,8 @@ module Bfwd
|
|
433
416
|
|
434
417
|
# header parameters
|
435
418
|
header_params = {}
|
436
|
-
|
437
419
|
# 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
|
-
|
441
|
-
# HTTP header 'Content-Type'
|
442
|
-
local_header_content_type = []
|
443
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
420
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
444
421
|
|
445
422
|
# form parameters
|
446
423
|
form_params = {}
|
@@ -493,14 +470,18 @@ module Bfwd
|
|
493
470
|
@api_client.config.logger.debug "Calling API: AnalyticsApi.get_payments ..."
|
494
471
|
end
|
495
472
|
# verify the required parameter 'start_datetime' is set
|
496
|
-
|
473
|
+
if @api_client.config.client_side_validation && start_datetime.nil?
|
474
|
+
fail ArgumentError, "Missing the required parameter 'start_datetime' when calling AnalyticsApi.get_payments"
|
475
|
+
end
|
497
476
|
# verify the required parameter 'end_datetime' is set
|
498
|
-
|
499
|
-
|
477
|
+
if @api_client.config.client_side_validation && end_datetime.nil?
|
478
|
+
fail ArgumentError, "Missing the required parameter 'end_datetime' when calling AnalyticsApi.get_payments"
|
479
|
+
end
|
480
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
500
481
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
501
482
|
end
|
502
483
|
# resource path
|
503
|
-
local_var_path = "/analytics/payments/{start-datetime}/{end-datetime}".sub('{
|
484
|
+
local_var_path = "/analytics/payments/{start-datetime}/{end-datetime}".sub('{' + 'start-datetime' + '}', start_datetime.to_s).sub('{' + 'end-datetime' + '}', end_datetime.to_s)
|
504
485
|
|
505
486
|
# query parameters
|
506
487
|
query_params = {}
|
@@ -512,14 +493,8 @@ module Bfwd
|
|
512
493
|
|
513
494
|
# header parameters
|
514
495
|
header_params = {}
|
515
|
-
|
516
496
|
# HTTP header 'Accept' (if needed)
|
517
|
-
|
518
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
519
|
-
|
520
|
-
# HTTP header 'Content-Type'
|
521
|
-
local_header_content_type = []
|
522
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
497
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
523
498
|
|
524
499
|
# form parameters
|
525
500
|
form_params = {}
|
@@ -560,23 +535,21 @@ module Bfwd
|
|
560
535
|
@api_client.config.logger.debug "Calling API: AnalyticsApi.get_product_payments ..."
|
561
536
|
end
|
562
537
|
# verify the required parameter 'payments_per_product' is set
|
563
|
-
|
538
|
+
if @api_client.config.client_side_validation && payments_per_product.nil?
|
539
|
+
fail ArgumentError, "Missing the required parameter 'payments_per_product' when calling AnalyticsApi.get_product_payments"
|
540
|
+
end
|
564
541
|
# resource path
|
565
|
-
local_var_path = "/analytics/payments-per-product"
|
542
|
+
local_var_path = "/analytics/payments-per-product"
|
566
543
|
|
567
544
|
# query parameters
|
568
545
|
query_params = {}
|
569
546
|
|
570
547
|
# header parameters
|
571
548
|
header_params = {}
|
572
|
-
|
573
549
|
# HTTP header 'Accept' (if needed)
|
574
|
-
|
575
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
576
|
-
|
550
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
577
551
|
# HTTP header 'Content-Type'
|
578
|
-
|
579
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
552
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
580
553
|
|
581
554
|
# form parameters
|
582
555
|
form_params = {}
|
@@ -617,23 +590,21 @@ module Bfwd
|
|
617
590
|
@api_client.config.logger.debug "Calling API: AnalyticsApi.get_product_rate_plan_payments ..."
|
618
591
|
end
|
619
592
|
# verify the required parameter 'payments_per_product_rate_plan' is set
|
620
|
-
|
593
|
+
if @api_client.config.client_side_validation && payments_per_product_rate_plan.nil?
|
594
|
+
fail ArgumentError, "Missing the required parameter 'payments_per_product_rate_plan' when calling AnalyticsApi.get_product_rate_plan_payments"
|
595
|
+
end
|
621
596
|
# resource path
|
622
|
-
local_var_path = "/analytics/payments/product-rate-plan"
|
597
|
+
local_var_path = "/analytics/payments/product-rate-plan"
|
623
598
|
|
624
599
|
# query parameters
|
625
600
|
query_params = {}
|
626
601
|
|
627
602
|
# header parameters
|
628
603
|
header_params = {}
|
629
|
-
|
630
604
|
# HTTP header 'Accept' (if needed)
|
631
|
-
|
632
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
633
|
-
|
605
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
634
606
|
# HTTP header 'Content-Type'
|
635
|
-
|
636
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
607
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
637
608
|
|
638
609
|
# form parameters
|
639
610
|
form_params = {}
|
@@ -686,14 +657,18 @@ module Bfwd
|
|
686
657
|
@api_client.config.logger.debug "Calling API: AnalyticsApi.get_subscription_ltv ..."
|
687
658
|
end
|
688
659
|
# verify the required parameter 'subscription_id' is set
|
689
|
-
|
660
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
661
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling AnalyticsApi.get_subscription_ltv"
|
662
|
+
end
|
690
663
|
# verify the required parameter 'end_datetime' is set
|
691
|
-
|
692
|
-
|
664
|
+
if @api_client.config.client_side_validation && end_datetime.nil?
|
665
|
+
fail ArgumentError, "Missing the required parameter 'end_datetime' when calling AnalyticsApi.get_subscription_ltv"
|
666
|
+
end
|
667
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
693
668
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
694
669
|
end
|
695
670
|
# resource path
|
696
|
-
local_var_path = "/analytics/subscription-ltv/{subscription-id}/{end-datetime}".sub('{
|
671
|
+
local_var_path = "/analytics/subscription-ltv/{subscription-id}/{end-datetime}".sub('{' + 'subscription-id' + '}', subscription_id.to_s).sub('{' + 'end-datetime' + '}', end_datetime.to_s)
|
697
672
|
|
698
673
|
# query parameters
|
699
674
|
query_params = {}
|
@@ -705,14 +680,8 @@ module Bfwd
|
|
705
680
|
|
706
681
|
# header parameters
|
707
682
|
header_params = {}
|
708
|
-
|
709
683
|
# HTTP header 'Accept' (if needed)
|
710
|
-
|
711
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
712
|
-
|
713
|
-
# HTTP header 'Content-Type'
|
714
|
-
local_header_content_type = []
|
715
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
684
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
716
685
|
|
717
686
|
# form parameters
|
718
687
|
form_params = {}
|
@@ -765,14 +734,18 @@ module Bfwd
|
|
765
734
|
@api_client.config.logger.debug "Calling API: AnalyticsApi.get_upgrades ..."
|
766
735
|
end
|
767
736
|
# verify the required parameter 'start_datetime' is set
|
768
|
-
|
737
|
+
if @api_client.config.client_side_validation && start_datetime.nil?
|
738
|
+
fail ArgumentError, "Missing the required parameter 'start_datetime' when calling AnalyticsApi.get_upgrades"
|
739
|
+
end
|
769
740
|
# verify the required parameter 'end_datetime' is set
|
770
|
-
|
771
|
-
|
741
|
+
if @api_client.config.client_side_validation && end_datetime.nil?
|
742
|
+
fail ArgumentError, "Missing the required parameter 'end_datetime' when calling AnalyticsApi.get_upgrades"
|
743
|
+
end
|
744
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
772
745
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
773
746
|
end
|
774
747
|
# resource path
|
775
|
-
local_var_path = "/analytics/upgrades/{start-datetime}/{end-datetime}".sub('{
|
748
|
+
local_var_path = "/analytics/upgrades/{start-datetime}/{end-datetime}".sub('{' + 'start-datetime' + '}', start_datetime.to_s).sub('{' + 'end-datetime' + '}', end_datetime.to_s)
|
776
749
|
|
777
750
|
# query parameters
|
778
751
|
query_params = {}
|
@@ -784,14 +757,8 @@ module Bfwd
|
|
784
757
|
|
785
758
|
# header parameters
|
786
759
|
header_params = {}
|
787
|
-
|
788
760
|
# HTTP header 'Accept' (if needed)
|
789
|
-
|
790
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
791
|
-
|
792
|
-
# HTTP header 'Content-Type'
|
793
|
-
local_header_content_type = []
|
794
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
761
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
795
762
|
|
796
763
|
# form parameters
|
797
764
|
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
|
|
@@ -60,11 +49,11 @@ module Bfwd
|
|
60
49
|
if @api_client.config.debugging
|
61
50
|
@api_client.config.logger.debug "Calling API: AuditlogsApi.get_all_audit_entries ..."
|
62
51
|
end
|
63
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
52
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
64
53
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
65
54
|
end
|
66
55
|
# resource path
|
67
|
-
local_var_path = "/audit-logs"
|
56
|
+
local_var_path = "/audit-logs"
|
68
57
|
|
69
58
|
# query parameters
|
70
59
|
query_params = {}
|
@@ -77,14 +66,8 @@ module Bfwd
|
|
77
66
|
|
78
67
|
# header parameters
|
79
68
|
header_params = {}
|
80
|
-
|
81
69
|
# HTTP header 'Accept' (if needed)
|
82
|
-
|
83
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
84
|
-
|
85
|
-
# HTTP header 'Content-Type'
|
86
|
-
local_header_content_type = []
|
87
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
70
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
88
71
|
|
89
72
|
# form parameters
|
90
73
|
form_params = {}
|
@@ -139,14 +122,18 @@ module Bfwd
|
|
139
122
|
@api_client.config.logger.debug "Calling API: AuditlogsApi.get_audit_entries_by_created_date ..."
|
140
123
|
end
|
141
124
|
# verify the required parameter 'lower_threshold' is set
|
142
|
-
|
125
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
126
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling AuditlogsApi.get_audit_entries_by_created_date"
|
127
|
+
end
|
143
128
|
# verify the required parameter 'upper_threshold' is set
|
144
|
-
|
145
|
-
|
129
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
130
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling AuditlogsApi.get_audit_entries_by_created_date"
|
131
|
+
end
|
132
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
146
133
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
147
134
|
end
|
148
135
|
# resource path
|
149
|
-
local_var_path = "/audit-logs/created/{lower-threshold}/{upper-threshold}".sub('{
|
136
|
+
local_var_path = "/audit-logs/created/{lower-threshold}/{upper-threshold}".sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
150
137
|
|
151
138
|
# query parameters
|
152
139
|
query_params = {}
|
@@ -159,14 +146,8 @@ module Bfwd
|
|
159
146
|
|
160
147
|
# header parameters
|
161
148
|
header_params = {}
|
162
|
-
|
163
149
|
# HTTP header 'Accept' (if needed)
|
164
|
-
|
165
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
166
|
-
|
167
|
-
# HTTP header 'Content-Type'
|
168
|
-
local_header_content_type = []
|
169
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
150
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
170
151
|
|
171
152
|
# form parameters
|
172
153
|
form_params = {}
|
@@ -219,12 +200,14 @@ module Bfwd
|
|
219
200
|
@api_client.config.logger.debug "Calling API: AuditlogsApi.get_audit_entry_by_entity_id ..."
|
220
201
|
end
|
221
202
|
# verify the required parameter 'entity_id' is set
|
222
|
-
|
223
|
-
|
203
|
+
if @api_client.config.client_side_validation && entity_id.nil?
|
204
|
+
fail ArgumentError, "Missing the required parameter 'entity_id' when calling AuditlogsApi.get_audit_entry_by_entity_id"
|
205
|
+
end
|
206
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
224
207
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
225
208
|
end
|
226
209
|
# resource path
|
227
|
-
local_var_path = "/audit-logs/entity/{entity-ID}".sub('{
|
210
|
+
local_var_path = "/audit-logs/entity/{entity-ID}".sub('{' + 'entity-ID' + '}', entity_id.to_s)
|
228
211
|
|
229
212
|
# query parameters
|
230
213
|
query_params = {}
|
@@ -237,14 +220,10 @@ module Bfwd
|
|
237
220
|
|
238
221
|
# header parameters
|
239
222
|
header_params = {}
|
240
|
-
|
241
223
|
# HTTP header 'Accept' (if needed)
|
242
|
-
|
243
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
244
|
-
|
224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
245
225
|
# HTTP header 'Content-Type'
|
246
|
-
|
247
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
226
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
248
227
|
|
249
228
|
# form parameters
|
250
229
|
form_params = {}
|
@@ -297,16 +276,18 @@ module Bfwd
|
|
297
276
|
@api_client.config.logger.debug "Calling API: AuditlogsApi.get_audit_entry_by_entity_type ..."
|
298
277
|
end
|
299
278
|
# verify the required parameter 'entity_type' is set
|
300
|
-
|
279
|
+
if @api_client.config.client_side_validation && entity_type.nil?
|
280
|
+
fail ArgumentError, "Missing the required parameter 'entity_type' when calling AuditlogsApi.get_audit_entry_by_entity_type"
|
281
|
+
end
|
301
282
|
# verify enum value
|
302
|
-
|
283
|
+
if @api_client.config.client_side_validation && !['Notification', 'Organization', 'OrganizationGateway', 'Product', 'User', 'Subscription', 'Profile', 'ProductRatePlan', 'Client', 'Invoice', 'PricingComponentValue', 'Account', 'PricingComponentValueChange', 'PricingComponentTier', 'PricingComponent', 'PricingCalculation', 'CouponDefinition', 'CouponInstance', 'CouponModifier', 'CouponRule', 'CouponBookDefinition', 'CouponBook', 'InvoiceLine', 'Webhook', 'SubscriptionCancellation', 'NotificationSnapshot', 'InvoicePayment', 'InvoiceLinePayment', 'Payment', 'PaymentMethod', 'PaymentMethodSubscriptionLink', 'DunningLine', 'CybersourceToken', 'Card', 'Alias', 'PaypalSimplePaymentReconciliation', 'FreePaymentReconciliation', 'LocustworldPaymentReconciliation', 'CouponInstanceExistingValue', 'TaxLine', 'TaxationStrategy', 'TaxationLink', 'Address', 'AmendmentPriceNTime', 'Authority', 'UnitOfMeasure', 'SearchResult', 'Amendment', 'AuditLog', 'Password', 'Username', 'FixedTermDefinition', 'FixedTerm', 'Refund', 'CreditNote', 'Receipt', 'AmendmentCompoundConstituent', 'APIConfiguration', 'StripeToken', 'BraintreeToken', 'BalancedToken', 'PaypalToken', 'AuthorizeNetToken', 'SpreedlyToken', 'GatewayRevenue', 'AmendmentDiscardAmendment', 'CancellationAmendment', 'CompoundAmendment', 'CompoundAmendmentConstituent', 'FixedTermExpiryAmendment', 'InvoiceNextExecutionAttemptAmendment', 'PricingComponentValueAmendment', 'BraintreeMerchantAccount', 'WebhookSubscription', 'Migration', 'CassResult', 'CassPaymentResult', 'CassProductRatePlanResult', 'CassChurnResult', 'CassUpgradeResult', 'SubscriptionCharge', 'CassPaymentPProductResult', 'ProductPaymentsArgs', 'StripeACHToken', 'UsageAmount', 'UsageSession', 'Usage', 'UsagePeriod', 'Period', 'OfflinePayment', 'CreditNotePayment', 'CardVaultPayment', 'FreePayment', 'BraintreePayment', 'BalancedPayment', 'CybersourcePayment', 'PaypalPayment', 'PaypalSimplePayment', 'LocustWorldPayment', 'StripeOnlyPayment', 'ProductPaymentsResult', 'StripeACHPayment', 'AuthorizeNetPayment', 'CompoundUsageSession', 'CompoundUsage', 'UsageRoundingStrategies', 'BillforwardManagedPaymentsResult', 'PricingComponentValueMigrationChargeAmendmentMapping', 'SubscriptionLTVResult', 'AccountLTVResult', 'ProductRatePlanPaymentsResult', 'DebtsResult', 'AccountPaymentsResult', 'ComponentChange', 'QuoteRequest', 'Quote', 'CouponCharge', 'CouponInstanceInvoiceLink', 'Coupon', 'CouponDiscount', 'CouponUniqueCodesRequest', 'CouponUniqueCodesResponse', 'GetCouponsResponse', 'AddCouponCodeRequest', 'AddCouponCodeResponse', 'RemoveCouponFromSubscriptionRequest', 'TokenizationPreAuth', 'StripeTokenizationPreAuth', 'BraintreeTokenizationPreAuth', 'SpreedlyTokenizationPreAuth', 'SagePayTokenizationPreAuth', 'PayVisionTokenizationPreAuth', 'TokenizationPreAuthRequest', 'AuthCaptureRequest', 'StripeACHBankAccountVerification', 'PasswordReset', 'PricingRequest', 'AddTaxationStrategyRequest', 'AddPaymentMethodRequest', 'APIRequest', 'SagePayToken', 'SagePayNotificationRequest', 'SagePayNotificationResponse', 'SagePayOutstandingTransaction', 'SagePayEnabledCardType', 'TrustCommerceToken', 'SagePayTransaction', 'PricingComponentValueResponse', 'MigrationResponse', 'TimeResponse', 'EntityTime', 'Email', 'AggregationLink', 'BFPermission', 'Role', 'PermissionLink', 'PayVisionToken', 'PayVisionTransaction', 'KashToken', 'EmailProvider', 'DataSynchronizationJob', 'DataSynchronizationJobError', 'DataSynchronizationConfiguration', 'DataSynchronizationAppConfiguration', 'AggregationChildrenResponse', 'MetadataKeyValue', 'Metadata', 'AggregatingComponent', 'PricingComponentMigrationValue', 'InvoiceRecalculationAmendment', 'IssueInvoiceAmendment', 'EmailSubscription', 'RevenueAttribution'].include?(entity_type)
|
303
284
|
fail ArgumentError, "invalid value for 'entity_type', must be one of Notification, Organization, OrganizationGateway, Product, User, Subscription, Profile, ProductRatePlan, Client, Invoice, PricingComponentValue, Account, PricingComponentValueChange, PricingComponentTier, PricingComponent, PricingCalculation, CouponDefinition, CouponInstance, CouponModifier, CouponRule, CouponBookDefinition, CouponBook, InvoiceLine, Webhook, SubscriptionCancellation, NotificationSnapshot, InvoicePayment, InvoiceLinePayment, Payment, PaymentMethod, PaymentMethodSubscriptionLink, DunningLine, CybersourceToken, Card, Alias, PaypalSimplePaymentReconciliation, FreePaymentReconciliation, LocustworldPaymentReconciliation, CouponInstanceExistingValue, TaxLine, TaxationStrategy, TaxationLink, Address, AmendmentPriceNTime, Authority, UnitOfMeasure, SearchResult, Amendment, AuditLog, Password, Username, FixedTermDefinition, FixedTerm, Refund, CreditNote, Receipt, AmendmentCompoundConstituent, APIConfiguration, StripeToken, BraintreeToken, BalancedToken, PaypalToken, AuthorizeNetToken, SpreedlyToken, GatewayRevenue, AmendmentDiscardAmendment, CancellationAmendment, CompoundAmendment, CompoundAmendmentConstituent, FixedTermExpiryAmendment, InvoiceNextExecutionAttemptAmendment, PricingComponentValueAmendment, BraintreeMerchantAccount, WebhookSubscription, Migration, CassResult, CassPaymentResult, CassProductRatePlanResult, CassChurnResult, CassUpgradeResult, SubscriptionCharge, CassPaymentPProductResult, ProductPaymentsArgs, StripeACHToken, UsageAmount, UsageSession, Usage, UsagePeriod, Period, OfflinePayment, CreditNotePayment, CardVaultPayment, FreePayment, BraintreePayment, BalancedPayment, CybersourcePayment, PaypalPayment, PaypalSimplePayment, LocustWorldPayment, StripeOnlyPayment, ProductPaymentsResult, StripeACHPayment, AuthorizeNetPayment, CompoundUsageSession, CompoundUsage, UsageRoundingStrategies, BillforwardManagedPaymentsResult, PricingComponentValueMigrationChargeAmendmentMapping, SubscriptionLTVResult, AccountLTVResult, ProductRatePlanPaymentsResult, DebtsResult, AccountPaymentsResult, ComponentChange, QuoteRequest, Quote, CouponCharge, CouponInstanceInvoiceLink, Coupon, CouponDiscount, CouponUniqueCodesRequest, CouponUniqueCodesResponse, GetCouponsResponse, AddCouponCodeRequest, AddCouponCodeResponse, RemoveCouponFromSubscriptionRequest, TokenizationPreAuth, StripeTokenizationPreAuth, BraintreeTokenizationPreAuth, SpreedlyTokenizationPreAuth, SagePayTokenizationPreAuth, PayVisionTokenizationPreAuth, TokenizationPreAuthRequest, AuthCaptureRequest, StripeACHBankAccountVerification, PasswordReset, PricingRequest, AddTaxationStrategyRequest, AddPaymentMethodRequest, APIRequest, SagePayToken, SagePayNotificationRequest, SagePayNotificationResponse, SagePayOutstandingTransaction, SagePayEnabledCardType, TrustCommerceToken, SagePayTransaction, PricingComponentValueResponse, MigrationResponse, TimeResponse, EntityTime, Email, AggregationLink, BFPermission, Role, PermissionLink, PayVisionToken, PayVisionTransaction, KashToken, EmailProvider, DataSynchronizationJob, DataSynchronizationJobError, DataSynchronizationConfiguration, DataSynchronizationAppConfiguration, AggregationChildrenResponse, MetadataKeyValue, Metadata, AggregatingComponent, PricingComponentMigrationValue, InvoiceRecalculationAmendment, IssueInvoiceAmendment, EmailSubscription, RevenueAttribution"
|
304
285
|
end
|
305
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
286
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
306
287
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
307
288
|
end
|
308
289
|
# resource path
|
309
|
-
local_var_path = "/audit-logs/entity-type/{entity-type}".sub('{
|
290
|
+
local_var_path = "/audit-logs/entity-type/{entity-type}".sub('{' + 'entity-type' + '}', entity_type.to_s)
|
310
291
|
|
311
292
|
# query parameters
|
312
293
|
query_params = {}
|
@@ -319,14 +300,8 @@ module Bfwd
|
|
319
300
|
|
320
301
|
# header parameters
|
321
302
|
header_params = {}
|
322
|
-
|
323
303
|
# HTTP header 'Accept' (if needed)
|
324
|
-
|
325
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
326
|
-
|
327
|
-
# HTTP header 'Content-Type'
|
328
|
-
local_header_content_type = []
|
329
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
304
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
330
305
|
|
331
306
|
# form parameters
|
332
307
|
form_params = {}
|
@@ -369,9 +344,11 @@ module Bfwd
|
|
369
344
|
@api_client.config.logger.debug "Calling API: AuditlogsApi.get_audit_entry_by_id ..."
|
370
345
|
end
|
371
346
|
# verify the required parameter 'audit_id' is set
|
372
|
-
|
347
|
+
if @api_client.config.client_side_validation && audit_id.nil?
|
348
|
+
fail ArgumentError, "Missing the required parameter 'audit_id' when calling AuditlogsApi.get_audit_entry_by_id"
|
349
|
+
end
|
373
350
|
# resource path
|
374
|
-
local_var_path = "/audit-logs/{audit-ID}".sub('{
|
351
|
+
local_var_path = "/audit-logs/{audit-ID}".sub('{' + 'audit-ID' + '}', audit_id.to_s)
|
375
352
|
|
376
353
|
# query parameters
|
377
354
|
query_params = {}
|
@@ -379,14 +356,10 @@ module Bfwd
|
|
379
356
|
|
380
357
|
# header parameters
|
381
358
|
header_params = {}
|
382
|
-
|
383
359
|
# HTTP header 'Accept' (if needed)
|
384
|
-
|
385
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
386
|
-
|
360
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
387
361
|
# HTTP header 'Content-Type'
|
388
|
-
|
389
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
362
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
390
363
|
|
391
364
|
# form parameters
|
392
365
|
form_params = {}
|