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: UsersApi.create_user ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'user' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && user.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.create_user"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/users"
|
47
|
+
local_var_path = "/users"
|
57
48
|
|
58
49
|
# query parameters
|
59
50
|
query_params = {}
|
60
51
|
|
61
52
|
# header parameters
|
62
53
|
header_params = {}
|
63
|
-
|
64
54
|
# HTTP header 'Accept' (if needed)
|
65
|
-
|
66
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
-
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
68
56
|
# HTTP header 'Content-Type'
|
69
|
-
|
70
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
71
58
|
|
72
59
|
# form parameters
|
73
60
|
form_params = {}
|
@@ -108,23 +95,21 @@ module Bfwd
|
|
108
95
|
@api_client.config.logger.debug "Calling API: UsersApi.create_user_login ..."
|
109
96
|
end
|
110
97
|
# verify the required parameter 'user' is set
|
111
|
-
|
98
|
+
if @api_client.config.client_side_validation && user.nil?
|
99
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.create_user_login"
|
100
|
+
end
|
112
101
|
# resource path
|
113
|
-
local_var_path = "/users/create-user-login"
|
102
|
+
local_var_path = "/users/create-user-login"
|
114
103
|
|
115
104
|
# query parameters
|
116
105
|
query_params = {}
|
117
106
|
|
118
107
|
# header parameters
|
119
108
|
header_params = {}
|
120
|
-
|
121
109
|
# HTTP header 'Accept' (if needed)
|
122
|
-
|
123
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
124
|
-
|
110
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
125
111
|
# HTTP header 'Content-Type'
|
126
|
-
|
127
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
128
113
|
|
129
114
|
# form parameters
|
130
115
|
form_params = {}
|
@@ -172,11 +157,11 @@ module Bfwd
|
|
172
157
|
if @api_client.config.debugging
|
173
158
|
@api_client.config.logger.debug "Calling API: UsersApi.get_all_users ..."
|
174
159
|
end
|
175
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
160
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
176
161
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
177
162
|
end
|
178
163
|
# resource path
|
179
|
-
local_var_path = "/users"
|
164
|
+
local_var_path = "/users"
|
180
165
|
|
181
166
|
# query parameters
|
182
167
|
query_params = {}
|
@@ -188,14 +173,8 @@ module Bfwd
|
|
188
173
|
|
189
174
|
# header parameters
|
190
175
|
header_params = {}
|
191
|
-
|
192
176
|
# HTTP header 'Accept' (if needed)
|
193
|
-
|
194
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
195
|
-
|
196
|
-
# HTTP header 'Content-Type'
|
197
|
-
local_header_content_type = []
|
198
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
199
178
|
|
200
179
|
# form parameters
|
201
180
|
form_params = {}
|
@@ -238,9 +217,11 @@ module Bfwd
|
|
238
217
|
@api_client.config.logger.debug "Calling API: UsersApi.get_user_by_id ..."
|
239
218
|
end
|
240
219
|
# verify the required parameter 'user_id' is set
|
241
|
-
|
220
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
221
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.get_user_by_id"
|
222
|
+
end
|
242
223
|
# resource path
|
243
|
-
local_var_path = "/users/{user-ID}".sub('{
|
224
|
+
local_var_path = "/users/{user-ID}".sub('{' + 'user-ID' + '}', user_id.to_s)
|
244
225
|
|
245
226
|
# query parameters
|
246
227
|
query_params = {}
|
@@ -248,14 +229,10 @@ module Bfwd
|
|
248
229
|
|
249
230
|
# header parameters
|
250
231
|
header_params = {}
|
251
|
-
|
252
232
|
# HTTP header 'Accept' (if needed)
|
253
|
-
|
254
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
255
|
-
|
233
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
256
234
|
# HTTP header 'Content-Type'
|
257
|
-
|
258
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
235
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
259
236
|
|
260
237
|
# form parameters
|
261
238
|
form_params = {}
|
@@ -298,9 +275,11 @@ module Bfwd
|
|
298
275
|
@api_client.config.logger.debug "Calling API: UsersApi.get_user_by_password_reset_code ..."
|
299
276
|
end
|
300
277
|
# verify the required parameter 'password_reset_code' is set
|
301
|
-
|
278
|
+
if @api_client.config.client_side_validation && password_reset_code.nil?
|
279
|
+
fail ArgumentError, "Missing the required parameter 'password_reset_code' when calling UsersApi.get_user_by_password_reset_code"
|
280
|
+
end
|
302
281
|
# resource path
|
303
|
-
local_var_path = "/users/password-reset-code/{password-reset-code}".sub('{
|
282
|
+
local_var_path = "/users/password-reset-code/{password-reset-code}".sub('{' + 'password-reset-code' + '}', password_reset_code.to_s)
|
304
283
|
|
305
284
|
# query parameters
|
306
285
|
query_params = {}
|
@@ -308,14 +287,10 @@ module Bfwd
|
|
308
287
|
|
309
288
|
# header parameters
|
310
289
|
header_params = {}
|
311
|
-
|
312
290
|
# HTTP header 'Accept' (if needed)
|
313
|
-
|
314
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
315
|
-
|
291
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
316
292
|
# HTTP header 'Content-Type'
|
317
|
-
|
318
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
293
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
319
294
|
|
320
295
|
# form parameters
|
321
296
|
form_params = {}
|
@@ -358,9 +333,11 @@ module Bfwd
|
|
358
333
|
@api_client.config.logger.debug "Calling API: UsersApi.get_user_by_sms_password_reset_code ..."
|
359
334
|
end
|
360
335
|
# verify the required parameter 'sms_password_reset_code' is set
|
361
|
-
|
336
|
+
if @api_client.config.client_side_validation && sms_password_reset_code.nil?
|
337
|
+
fail ArgumentError, "Missing the required parameter 'sms_password_reset_code' when calling UsersApi.get_user_by_sms_password_reset_code"
|
338
|
+
end
|
362
339
|
# resource path
|
363
|
-
local_var_path = "/users/sms-password-reset-code/{sms-password-reset-code}".sub('{
|
340
|
+
local_var_path = "/users/sms-password-reset-code/{sms-password-reset-code}".sub('{' + 'sms-password-reset-code' + '}', sms_password_reset_code.to_s)
|
364
341
|
|
365
342
|
# query parameters
|
366
343
|
query_params = {}
|
@@ -368,14 +345,10 @@ module Bfwd
|
|
368
345
|
|
369
346
|
# header parameters
|
370
347
|
header_params = {}
|
371
|
-
|
372
348
|
# HTTP header 'Accept' (if needed)
|
373
|
-
|
374
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
375
|
-
|
349
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
376
350
|
# HTTP header 'Content-Type'
|
377
|
-
|
378
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
351
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
379
352
|
|
380
353
|
# form parameters
|
381
354
|
form_params = {}
|
@@ -418,9 +391,11 @@ module Bfwd
|
|
418
391
|
@api_client.config.logger.debug "Calling API: UsersApi.get_user_by_username ..."
|
419
392
|
end
|
420
393
|
# verify the required parameter 'username' is set
|
421
|
-
|
394
|
+
if @api_client.config.client_side_validation && username.nil?
|
395
|
+
fail ArgumentError, "Missing the required parameter 'username' when calling UsersApi.get_user_by_username"
|
396
|
+
end
|
422
397
|
# resource path
|
423
|
-
local_var_path = "/users/username/{username}".sub('{
|
398
|
+
local_var_path = "/users/username/{username}".sub('{' + 'username' + '}', username.to_s)
|
424
399
|
|
425
400
|
# query parameters
|
426
401
|
query_params = {}
|
@@ -428,14 +403,10 @@ module Bfwd
|
|
428
403
|
|
429
404
|
# header parameters
|
430
405
|
header_params = {}
|
431
|
-
|
432
406
|
# HTTP header 'Accept' (if needed)
|
433
|
-
|
434
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
435
|
-
|
407
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
436
408
|
# HTTP header 'Content-Type'
|
437
|
-
|
438
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
409
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
439
410
|
|
440
411
|
# form parameters
|
441
412
|
form_params = {}
|
@@ -476,23 +447,21 @@ module Bfwd
|
|
476
447
|
@api_client.config.logger.debug "Calling API: UsersApi.reset_user_password ..."
|
477
448
|
end
|
478
449
|
# verify the required parameter 'request' is set
|
479
|
-
|
450
|
+
if @api_client.config.client_side_validation && request.nil?
|
451
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling UsersApi.reset_user_password"
|
452
|
+
end
|
480
453
|
# resource path
|
481
|
-
local_var_path = "/users/password-reset"
|
454
|
+
local_var_path = "/users/password-reset"
|
482
455
|
|
483
456
|
# query parameters
|
484
457
|
query_params = {}
|
485
458
|
|
486
459
|
# header parameters
|
487
460
|
header_params = {}
|
488
|
-
|
489
461
|
# HTTP header 'Accept' (if needed)
|
490
|
-
|
491
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
492
|
-
|
462
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
493
463
|
# HTTP header 'Content-Type'
|
494
|
-
|
495
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
464
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
496
465
|
|
497
466
|
# form parameters
|
498
467
|
form_params = {}
|
@@ -535,11 +504,15 @@ module Bfwd
|
|
535
504
|
@api_client.config.logger.debug "Calling API: UsersApi.retire_user ..."
|
536
505
|
end
|
537
506
|
# verify the required parameter 'user_id' is set
|
538
|
-
|
507
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
508
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.retire_user"
|
509
|
+
end
|
539
510
|
# verify the required parameter 'organizations' is set
|
540
|
-
|
511
|
+
if @api_client.config.client_side_validation && organizations.nil?
|
512
|
+
fail ArgumentError, "Missing the required parameter 'organizations' when calling UsersApi.retire_user"
|
513
|
+
end
|
541
514
|
# resource path
|
542
|
-
local_var_path = "/users/{user-ID}".sub('{
|
515
|
+
local_var_path = "/users/{user-ID}".sub('{' + 'user-ID' + '}', user_id.to_s)
|
543
516
|
|
544
517
|
# query parameters
|
545
518
|
query_params = {}
|
@@ -547,14 +520,10 @@ module Bfwd
|
|
547
520
|
|
548
521
|
# header parameters
|
549
522
|
header_params = {}
|
550
|
-
|
551
523
|
# HTTP header 'Accept' (if needed)
|
552
|
-
|
553
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
554
|
-
|
524
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
555
525
|
# HTTP header 'Content-Type'
|
556
|
-
|
557
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
526
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
558
527
|
|
559
528
|
# form parameters
|
560
529
|
form_params = {}
|
@@ -595,23 +564,21 @@ module Bfwd
|
|
595
564
|
@api_client.config.logger.debug "Calling API: UsersApi.update_user ..."
|
596
565
|
end
|
597
566
|
# verify the required parameter 'user' is set
|
598
|
-
|
567
|
+
if @api_client.config.client_side_validation && user.nil?
|
568
|
+
fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.update_user"
|
569
|
+
end
|
599
570
|
# resource path
|
600
|
-
local_var_path = "/users"
|
571
|
+
local_var_path = "/users"
|
601
572
|
|
602
573
|
# query parameters
|
603
574
|
query_params = {}
|
604
575
|
|
605
576
|
# header parameters
|
606
577
|
header_params = {}
|
607
|
-
|
608
578
|
# HTTP header 'Accept' (if needed)
|
609
|
-
|
610
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
611
|
-
|
579
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
612
580
|
# HTTP header 'Content-Type'
|
613
|
-
|
614
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
581
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
615
582
|
|
616
583
|
# form parameters
|
617
584
|
form_params = {}
|
@@ -652,23 +619,21 @@ module Bfwd
|
|
652
619
|
@api_client.config.logger.debug "Calling API: UsersApi.update_user_password ..."
|
653
620
|
end
|
654
621
|
# verify the required parameter 'password_reset' is set
|
655
|
-
|
622
|
+
if @api_client.config.client_side_validation && password_reset.nil?
|
623
|
+
fail ArgumentError, "Missing the required parameter 'password_reset' when calling UsersApi.update_user_password"
|
624
|
+
end
|
656
625
|
# resource path
|
657
|
-
local_var_path = "/users/password-update"
|
626
|
+
local_var_path = "/users/password-update"
|
658
627
|
|
659
628
|
# query parameters
|
660
629
|
query_params = {}
|
661
630
|
|
662
631
|
# header parameters
|
663
632
|
header_params = {}
|
664
|
-
|
665
633
|
# HTTP header 'Accept' (if needed)
|
666
|
-
|
667
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
668
|
-
|
634
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
669
635
|
# HTTP header 'Content-Type'
|
670
|
-
|
671
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
636
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
672
637
|
|
673
638
|
# form parameters
|
674
639
|
form_params = {}
|
@@ -6,18 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -51,23 +40,21 @@ module Bfwd
|
|
51
40
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.create_authorize_net_token ..."
|
52
41
|
end
|
53
42
|
# verify the required parameter 'authorize_net_token' is set
|
54
|
-
|
43
|
+
if @api_client.config.client_side_validation && authorize_net_token.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'authorize_net_token' when calling VaultedgatewaysApi.create_authorize_net_token"
|
45
|
+
end
|
55
46
|
# resource path
|
56
|
-
local_var_path = "/vaulted-gateways/authorize-net"
|
47
|
+
local_var_path = "/vaulted-gateways/authorize-net"
|
57
48
|
|
58
49
|
# query parameters
|
59
50
|
query_params = {}
|
60
51
|
|
61
52
|
# header parameters
|
62
53
|
header_params = {}
|
63
|
-
|
64
54
|
# HTTP header 'Accept' (if needed)
|
65
|
-
|
66
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
-
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
68
56
|
# HTTP header 'Content-Type'
|
69
|
-
|
70
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
71
58
|
|
72
59
|
# form parameters
|
73
60
|
form_params = {}
|
@@ -108,23 +95,21 @@ module Bfwd
|
|
108
95
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.create_braintree_token ..."
|
109
96
|
end
|
110
97
|
# verify the required parameter 'braintree_token' is set
|
111
|
-
|
98
|
+
if @api_client.config.client_side_validation && braintree_token.nil?
|
99
|
+
fail ArgumentError, "Missing the required parameter 'braintree_token' when calling VaultedgatewaysApi.create_braintree_token"
|
100
|
+
end
|
112
101
|
# resource path
|
113
|
-
local_var_path = "/vaulted-gateways/braintree"
|
102
|
+
local_var_path = "/vaulted-gateways/braintree"
|
114
103
|
|
115
104
|
# query parameters
|
116
105
|
query_params = {}
|
117
106
|
|
118
107
|
# header parameters
|
119
108
|
header_params = {}
|
120
|
-
|
121
109
|
# HTTP header 'Accept' (if needed)
|
122
|
-
|
123
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
124
|
-
|
110
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
125
111
|
# HTTP header 'Content-Type'
|
126
|
-
|
127
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
112
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
128
113
|
|
129
114
|
# form parameters
|
130
115
|
form_params = {}
|
@@ -165,23 +150,21 @@ module Bfwd
|
|
165
150
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.create_stripe_ach_token ..."
|
166
151
|
end
|
167
152
|
# verify the required parameter 'stripe_ach_token' is set
|
168
|
-
|
153
|
+
if @api_client.config.client_side_validation && stripe_ach_token.nil?
|
154
|
+
fail ArgumentError, "Missing the required parameter 'stripe_ach_token' when calling VaultedgatewaysApi.create_stripe_ach_token"
|
155
|
+
end
|
169
156
|
# resource path
|
170
|
-
local_var_path = "/vaulted-gateways/stripe-ACH"
|
157
|
+
local_var_path = "/vaulted-gateways/stripe-ACH"
|
171
158
|
|
172
159
|
# query parameters
|
173
160
|
query_params = {}
|
174
161
|
|
175
162
|
# header parameters
|
176
163
|
header_params = {}
|
177
|
-
|
178
164
|
# HTTP header 'Accept' (if needed)
|
179
|
-
|
180
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
181
|
-
|
165
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
182
166
|
# HTTP header 'Content-Type'
|
183
|
-
|
184
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
167
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
185
168
|
|
186
169
|
# form parameters
|
187
170
|
form_params = {}
|
@@ -222,23 +205,21 @@ module Bfwd
|
|
222
205
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.create_stripe_token ..."
|
223
206
|
end
|
224
207
|
# verify the required parameter 'stripe_token' is set
|
225
|
-
|
208
|
+
if @api_client.config.client_side_validation && stripe_token.nil?
|
209
|
+
fail ArgumentError, "Missing the required parameter 'stripe_token' when calling VaultedgatewaysApi.create_stripe_token"
|
210
|
+
end
|
226
211
|
# resource path
|
227
|
-
local_var_path = "/vaulted-gateways/stripe"
|
212
|
+
local_var_path = "/vaulted-gateways/stripe"
|
228
213
|
|
229
214
|
# query parameters
|
230
215
|
query_params = {}
|
231
216
|
|
232
217
|
# header parameters
|
233
218
|
header_params = {}
|
234
|
-
|
235
219
|
# HTTP header 'Accept' (if needed)
|
236
|
-
|
237
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
238
|
-
|
220
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
239
221
|
# HTTP header 'Content-Type'
|
240
|
-
|
241
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
222
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
242
223
|
|
243
224
|
# form parameters
|
244
225
|
form_params = {}
|
@@ -279,23 +260,21 @@ module Bfwd
|
|
279
260
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.create_trust_commerce_token ..."
|
280
261
|
end
|
281
262
|
# verify the required parameter 'trust_commerce_token' is set
|
282
|
-
|
263
|
+
if @api_client.config.client_side_validation && trust_commerce_token.nil?
|
264
|
+
fail ArgumentError, "Missing the required parameter 'trust_commerce_token' when calling VaultedgatewaysApi.create_trust_commerce_token"
|
265
|
+
end
|
283
266
|
# resource path
|
284
|
-
local_var_path = "/vaulted-gateways/trustCommerce"
|
267
|
+
local_var_path = "/vaulted-gateways/trustCommerce"
|
285
268
|
|
286
269
|
# query parameters
|
287
270
|
query_params = {}
|
288
271
|
|
289
272
|
# header parameters
|
290
273
|
header_params = {}
|
291
|
-
|
292
274
|
# HTTP header 'Accept' (if needed)
|
293
|
-
|
294
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
295
|
-
|
275
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
296
276
|
# HTTP header 'Content-Type'
|
297
|
-
|
298
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
277
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
299
278
|
|
300
279
|
# form parameters
|
301
280
|
form_params = {}
|
@@ -338,9 +317,11 @@ module Bfwd
|
|
338
317
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.get_braintree_by_account_id ..."
|
339
318
|
end
|
340
319
|
# verify the required parameter 'account_id' is set
|
341
|
-
|
320
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
321
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling VaultedgatewaysApi.get_braintree_by_account_id"
|
322
|
+
end
|
342
323
|
# resource path
|
343
|
-
local_var_path = "/vaulted-gateways/braintree/{accountID}".sub('{
|
324
|
+
local_var_path = "/vaulted-gateways/braintree/{accountID}".sub('{' + 'accountID' + '}', account_id.to_s)
|
344
325
|
|
345
326
|
# query parameters
|
346
327
|
query_params = {}
|
@@ -348,14 +329,10 @@ module Bfwd
|
|
348
329
|
|
349
330
|
# header parameters
|
350
331
|
header_params = {}
|
351
|
-
|
352
332
|
# HTTP header 'Accept' (if needed)
|
353
|
-
|
354
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
355
|
-
|
333
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
356
334
|
# HTTP header 'Content-Type'
|
357
|
-
|
358
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
335
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
359
336
|
|
360
337
|
# form parameters
|
361
338
|
form_params = {}
|
@@ -398,9 +375,11 @@ module Bfwd
|
|
398
375
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.get_by_card_details_id ..."
|
399
376
|
end
|
400
377
|
# verify the required parameter 'card_details_id' is set
|
401
|
-
|
378
|
+
if @api_client.config.client_side_validation && card_details_id.nil?
|
379
|
+
fail ArgumentError, "Missing the required parameter 'card_details_id' when calling VaultedgatewaysApi.get_by_card_details_id"
|
380
|
+
end
|
402
381
|
# resource path
|
403
|
-
local_var_path = "/vaulted-gateways/stripe/card-details-id/{cardDetailsID}".sub('{
|
382
|
+
local_var_path = "/vaulted-gateways/stripe/card-details-id/{cardDetailsID}".sub('{' + 'cardDetailsID' + '}', card_details_id.to_s)
|
404
383
|
|
405
384
|
# query parameters
|
406
385
|
query_params = {}
|
@@ -408,14 +387,10 @@ module Bfwd
|
|
408
387
|
|
409
388
|
# header parameters
|
410
389
|
header_params = {}
|
411
|
-
|
412
390
|
# HTTP header 'Accept' (if needed)
|
413
|
-
|
414
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
415
|
-
|
391
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
416
392
|
# HTTP header 'Content-Type'
|
417
|
-
|
418
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
393
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
419
394
|
|
420
395
|
# form parameters
|
421
396
|
form_params = {}
|
@@ -458,9 +433,11 @@ module Bfwd
|
|
458
433
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.get_stripe_ach ..."
|
459
434
|
end
|
460
435
|
# verify the required parameter 'stripe_ach_token_id' is set
|
461
|
-
|
436
|
+
if @api_client.config.client_side_validation && stripe_ach_token_id.nil?
|
437
|
+
fail ArgumentError, "Missing the required parameter 'stripe_ach_token_id' when calling VaultedgatewaysApi.get_stripe_ach"
|
438
|
+
end
|
462
439
|
# resource path
|
463
|
-
local_var_path = "/vaulted-gateways/stripe-ACH/{stripeACHTokenID}".sub('{
|
440
|
+
local_var_path = "/vaulted-gateways/stripe-ACH/{stripeACHTokenID}".sub('{' + 'stripeACHTokenID' + '}', stripe_ach_token_id.to_s)
|
464
441
|
|
465
442
|
# query parameters
|
466
443
|
query_params = {}
|
@@ -468,14 +445,10 @@ module Bfwd
|
|
468
445
|
|
469
446
|
# header parameters
|
470
447
|
header_params = {}
|
471
|
-
|
472
448
|
# HTTP header 'Accept' (if needed)
|
473
|
-
|
474
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
475
|
-
|
449
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
476
450
|
# HTTP header 'Content-Type'
|
477
|
-
|
478
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
451
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
479
452
|
|
480
453
|
# form parameters
|
481
454
|
form_params = {}
|
@@ -518,9 +491,11 @@ module Bfwd
|
|
518
491
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.get_stripe_token ..."
|
519
492
|
end
|
520
493
|
# verify the required parameter 'stripe_token_id' is set
|
521
|
-
|
494
|
+
if @api_client.config.client_side_validation && stripe_token_id.nil?
|
495
|
+
fail ArgumentError, "Missing the required parameter 'stripe_token_id' when calling VaultedgatewaysApi.get_stripe_token"
|
496
|
+
end
|
522
497
|
# resource path
|
523
|
-
local_var_path = "/vaulted-gateways/stripe/{stripeTokenID}".sub('{
|
498
|
+
local_var_path = "/vaulted-gateways/stripe/{stripeTokenID}".sub('{' + 'stripeTokenID' + '}', stripe_token_id.to_s)
|
524
499
|
|
525
500
|
# query parameters
|
526
501
|
query_params = {}
|
@@ -528,14 +503,10 @@ module Bfwd
|
|
528
503
|
|
529
504
|
# header parameters
|
530
505
|
header_params = {}
|
531
|
-
|
532
506
|
# HTTP header 'Accept' (if needed)
|
533
|
-
|
534
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
535
|
-
|
507
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
536
508
|
# HTTP header 'Content-Type'
|
537
|
-
|
538
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
509
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
|
539
510
|
|
540
511
|
# form parameters
|
541
512
|
form_params = {}
|
@@ -576,23 +547,21 @@ module Bfwd
|
|
576
547
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.update_stripe_ach_token ..."
|
577
548
|
end
|
578
549
|
# verify the required parameter 'stripe_token' is set
|
579
|
-
|
550
|
+
if @api_client.config.client_side_validation && stripe_token.nil?
|
551
|
+
fail ArgumentError, "Missing the required parameter 'stripe_token' when calling VaultedgatewaysApi.update_stripe_ach_token"
|
552
|
+
end
|
580
553
|
# resource path
|
581
|
-
local_var_path = "/vaulted-gateways/stripe-ACH"
|
554
|
+
local_var_path = "/vaulted-gateways/stripe-ACH"
|
582
555
|
|
583
556
|
# query parameters
|
584
557
|
query_params = {}
|
585
558
|
|
586
559
|
# header parameters
|
587
560
|
header_params = {}
|
588
|
-
|
589
561
|
# HTTP header 'Accept' (if needed)
|
590
|
-
|
591
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
592
|
-
|
562
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
593
563
|
# HTTP header 'Content-Type'
|
594
|
-
|
595
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
564
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
596
565
|
|
597
566
|
# form parameters
|
598
567
|
form_params = {}
|
@@ -633,23 +602,21 @@ module Bfwd
|
|
633
602
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.update_stripe_token ..."
|
634
603
|
end
|
635
604
|
# verify the required parameter 'stripe_token' is set
|
636
|
-
|
605
|
+
if @api_client.config.client_side_validation && stripe_token.nil?
|
606
|
+
fail ArgumentError, "Missing the required parameter 'stripe_token' when calling VaultedgatewaysApi.update_stripe_token"
|
607
|
+
end
|
637
608
|
# resource path
|
638
|
-
local_var_path = "/vaulted-gateways/stripe"
|
609
|
+
local_var_path = "/vaulted-gateways/stripe"
|
639
610
|
|
640
611
|
# query parameters
|
641
612
|
query_params = {}
|
642
613
|
|
643
614
|
# header parameters
|
644
615
|
header_params = {}
|
645
|
-
|
646
616
|
# HTTP header 'Accept' (if needed)
|
647
|
-
|
648
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
649
|
-
|
617
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
650
618
|
# HTTP header 'Content-Type'
|
651
|
-
|
652
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
619
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
653
620
|
|
654
621
|
# form parameters
|
655
622
|
form_params = {}
|
@@ -690,23 +657,21 @@ module Bfwd
|
|
690
657
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.verify_bank_account ..."
|
691
658
|
end
|
692
659
|
# verify the required parameter 'bank_account_verification' is set
|
693
|
-
|
660
|
+
if @api_client.config.client_side_validation && bank_account_verification.nil?
|
661
|
+
fail ArgumentError, "Missing the required parameter 'bank_account_verification' when calling VaultedgatewaysApi.verify_bank_account"
|
662
|
+
end
|
694
663
|
# resource path
|
695
|
-
local_var_path = "/vaulted-gateways/stripe/verify-bank-account"
|
664
|
+
local_var_path = "/vaulted-gateways/stripe/verify-bank-account"
|
696
665
|
|
697
666
|
# query parameters
|
698
667
|
query_params = {}
|
699
668
|
|
700
669
|
# header parameters
|
701
670
|
header_params = {}
|
702
|
-
|
703
671
|
# HTTP header 'Accept' (if needed)
|
704
|
-
|
705
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
706
|
-
|
672
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
707
673
|
# HTTP header 'Content-Type'
|
708
|
-
|
709
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
674
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
710
675
|
|
711
676
|
# form parameters
|
712
677
|
form_params = {}
|
@@ -747,23 +712,21 @@ module Bfwd
|
|
747
712
|
@api_client.config.logger.debug "Calling API: VaultedgatewaysApi.webhook ..."
|
748
713
|
end
|
749
714
|
# verify the required parameter 'event' is set
|
750
|
-
|
715
|
+
if @api_client.config.client_side_validation && event.nil?
|
716
|
+
fail ArgumentError, "Missing the required parameter 'event' when calling VaultedgatewaysApi.webhook"
|
717
|
+
end
|
751
718
|
# resource path
|
752
|
-
local_var_path = "/vaulted-gateways/stripe/webhook"
|
719
|
+
local_var_path = "/vaulted-gateways/stripe/webhook"
|
753
720
|
|
754
721
|
# query parameters
|
755
722
|
query_params = {}
|
756
723
|
|
757
724
|
# header parameters
|
758
725
|
header_params = {}
|
759
|
-
|
760
726
|
# HTTP header 'Accept' (if needed)
|
761
|
-
|
762
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
763
|
-
|
727
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
764
728
|
# HTTP header 'Content-Type'
|
765
|
-
|
766
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
729
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
767
730
|
|
768
731
|
# form parameters
|
769
732
|
form_params = {}
|