bf_ruby2 2.2016.237 → 3.2017.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: FixedtermsApi.update_fixed_term ..."
|
|
52
41
|
end
|
|
53
42
|
# verify the required parameter 'payment_method' is set
|
|
54
|
-
|
|
43
|
+
if @api_client.config.client_side_validation && payment_method.nil?
|
|
44
|
+
fail ArgumentError, "Missing the required parameter 'payment_method' when calling FixedtermsApi.update_fixed_term"
|
|
45
|
+
end
|
|
55
46
|
# resource path
|
|
56
|
-
local_var_path = "/fixed-terms"
|
|
47
|
+
local_var_path = "/fixed-terms"
|
|
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 = {}
|
|
@@ -6,18 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
|
21
10
|
|
|
22
11
|
=end
|
|
23
12
|
|
|
@@ -53,25 +42,25 @@ module Bfwd
|
|
|
53
42
|
@api_client.config.logger.debug "Calling API: InvoicesApi.add_charge_to_invoice ..."
|
|
54
43
|
end
|
|
55
44
|
# verify the required parameter 'invoice_id' is set
|
|
56
|
-
|
|
45
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
46
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.add_charge_to_invoice"
|
|
47
|
+
end
|
|
57
48
|
# verify the required parameter 'charge' is set
|
|
58
|
-
|
|
49
|
+
if @api_client.config.client_side_validation && charge.nil?
|
|
50
|
+
fail ArgumentError, "Missing the required parameter 'charge' when calling InvoicesApi.add_charge_to_invoice"
|
|
51
|
+
end
|
|
59
52
|
# resource path
|
|
60
|
-
local_var_path = "/invoices/{invoice-ID}/charges".sub('{
|
|
53
|
+
local_var_path = "/invoices/{invoice-ID}/charges".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
|
|
61
54
|
|
|
62
55
|
# query parameters
|
|
63
56
|
query_params = {}
|
|
64
57
|
|
|
65
58
|
# header parameters
|
|
66
59
|
header_params = {}
|
|
67
|
-
|
|
68
60
|
# HTTP header 'Accept' (if needed)
|
|
69
|
-
|
|
70
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
71
|
-
|
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
72
62
|
# HTTP header 'Content-Type'
|
|
73
|
-
|
|
74
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
|
75
64
|
|
|
76
65
|
# form parameters
|
|
77
66
|
form_params = {}
|
|
@@ -112,23 +101,21 @@ module Bfwd
|
|
|
112
101
|
@api_client.config.logger.debug "Calling API: InvoicesApi.aggregate_invoices ..."
|
|
113
102
|
end
|
|
114
103
|
# verify the required parameter 'request' is set
|
|
115
|
-
|
|
104
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
105
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling InvoicesApi.aggregate_invoices"
|
|
106
|
+
end
|
|
116
107
|
# resource path
|
|
117
|
-
local_var_path = "/invoices/aggregate"
|
|
108
|
+
local_var_path = "/invoices/aggregate"
|
|
118
109
|
|
|
119
110
|
# query parameters
|
|
120
111
|
query_params = {}
|
|
121
112
|
|
|
122
113
|
# header parameters
|
|
123
114
|
header_params = {}
|
|
124
|
-
|
|
125
115
|
# HTTP header 'Accept' (if needed)
|
|
126
|
-
|
|
127
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
128
|
-
|
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
129
117
|
# HTTP header 'Content-Type'
|
|
130
|
-
|
|
131
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
118
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
|
132
119
|
|
|
133
120
|
# form parameters
|
|
134
121
|
form_params = {}
|
|
@@ -171,25 +158,25 @@ module Bfwd
|
|
|
171
158
|
@api_client.config.logger.debug "Calling API: InvoicesApi.execute_invoice ..."
|
|
172
159
|
end
|
|
173
160
|
# verify the required parameter 'invoice_id' is set
|
|
174
|
-
|
|
161
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
162
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.execute_invoice"
|
|
163
|
+
end
|
|
175
164
|
# verify the required parameter 'request' is set
|
|
176
|
-
|
|
165
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
166
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling InvoicesApi.execute_invoice"
|
|
167
|
+
end
|
|
177
168
|
# resource path
|
|
178
|
-
local_var_path = "/invoices/{invoice-ID}/execute".sub('{
|
|
169
|
+
local_var_path = "/invoices/{invoice-ID}/execute".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
|
|
179
170
|
|
|
180
171
|
# query parameters
|
|
181
172
|
query_params = {}
|
|
182
173
|
|
|
183
174
|
# header parameters
|
|
184
175
|
header_params = {}
|
|
185
|
-
|
|
186
176
|
# HTTP header 'Accept' (if needed)
|
|
187
|
-
|
|
188
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
189
|
-
|
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
190
178
|
# HTTP header 'Content-Type'
|
|
191
|
-
|
|
192
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
179
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
|
193
180
|
|
|
194
181
|
# form parameters
|
|
195
182
|
form_params = {}
|
|
@@ -230,7 +217,7 @@ module Bfwd
|
|
|
230
217
|
@api_client.config.logger.debug "Calling API: InvoicesApi.generate_line_payments_for_all_invoices ..."
|
|
231
218
|
end
|
|
232
219
|
# resource path
|
|
233
|
-
local_var_path = "/invoices/generate-line-payments"
|
|
220
|
+
local_var_path = "/invoices/generate-line-payments"
|
|
234
221
|
|
|
235
222
|
# query parameters
|
|
236
223
|
query_params = {}
|
|
@@ -238,14 +225,10 @@ module Bfwd
|
|
|
238
225
|
|
|
239
226
|
# header parameters
|
|
240
227
|
header_params = {}
|
|
241
|
-
|
|
242
228
|
# HTTP header 'Accept' (if needed)
|
|
243
|
-
|
|
244
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
245
|
-
|
|
229
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
246
230
|
# HTTP header 'Content-Type'
|
|
247
|
-
|
|
248
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
231
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
|
249
232
|
|
|
250
233
|
# form parameters
|
|
251
234
|
form_params = {}
|
|
@@ -299,11 +282,11 @@ module Bfwd
|
|
|
299
282
|
if @api_client.config.debugging
|
|
300
283
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_all_invoices ..."
|
|
301
284
|
end
|
|
302
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
285
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
303
286
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
304
287
|
end
|
|
305
288
|
# resource path
|
|
306
|
-
local_var_path = "/invoices"
|
|
289
|
+
local_var_path = "/invoices"
|
|
307
290
|
|
|
308
291
|
# query parameters
|
|
309
292
|
query_params = {}
|
|
@@ -318,14 +301,10 @@ module Bfwd
|
|
|
318
301
|
|
|
319
302
|
# header parameters
|
|
320
303
|
header_params = {}
|
|
321
|
-
|
|
322
304
|
# HTTP header 'Accept' (if needed)
|
|
323
|
-
|
|
324
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
325
|
-
|
|
305
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
326
306
|
# HTTP header 'Content-Type'
|
|
327
|
-
|
|
328
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
307
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
329
308
|
|
|
330
309
|
# form parameters
|
|
331
310
|
form_params = {}
|
|
@@ -375,11 +354,11 @@ module Bfwd
|
|
|
375
354
|
if @api_client.config.debugging
|
|
376
355
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_all_invoices_as_csv ..."
|
|
377
356
|
end
|
|
378
|
-
if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
357
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
379
358
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
380
359
|
end
|
|
381
360
|
# resource path
|
|
382
|
-
local_var_path = "/invoices/all.csv"
|
|
361
|
+
local_var_path = "/invoices/all.csv"
|
|
383
362
|
|
|
384
363
|
# query parameters
|
|
385
364
|
query_params = {}
|
|
@@ -392,14 +371,10 @@ module Bfwd
|
|
|
392
371
|
|
|
393
372
|
# header parameters
|
|
394
373
|
header_params = {}
|
|
395
|
-
|
|
396
374
|
# HTTP header 'Accept' (if needed)
|
|
397
|
-
|
|
398
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
399
|
-
|
|
375
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
400
376
|
# HTTP header 'Content-Type'
|
|
401
|
-
|
|
402
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
377
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
403
378
|
|
|
404
379
|
# form parameters
|
|
405
380
|
form_params = {}
|
|
@@ -444,7 +419,7 @@ module Bfwd
|
|
|
444
419
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_bucketed_revenue_attributions_as_csv ..."
|
|
445
420
|
end
|
|
446
421
|
# resource path
|
|
447
|
-
local_var_path = "/invoices/bucketed-revenue-attributions.csv"
|
|
422
|
+
local_var_path = "/invoices/bucketed-revenue-attributions.csv"
|
|
448
423
|
|
|
449
424
|
# query parameters
|
|
450
425
|
query_params = {}
|
|
@@ -455,14 +430,6 @@ module Bfwd
|
|
|
455
430
|
# header parameters
|
|
456
431
|
header_params = {}
|
|
457
432
|
|
|
458
|
-
# HTTP header 'Accept' (if needed)
|
|
459
|
-
local_header_accept = []
|
|
460
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
461
|
-
|
|
462
|
-
# HTTP header 'Content-Type'
|
|
463
|
-
local_header_content_type = []
|
|
464
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
465
|
-
|
|
466
433
|
# form parameters
|
|
467
434
|
form_params = {}
|
|
468
435
|
|
|
@@ -518,18 +485,20 @@ module Bfwd
|
|
|
518
485
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_charges_on_invoice ..."
|
|
519
486
|
end
|
|
520
487
|
# verify the required parameter 'invoice_id' is set
|
|
521
|
-
|
|
522
|
-
|
|
488
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
489
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.get_charges_on_invoice"
|
|
490
|
+
end
|
|
491
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
523
492
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
524
493
|
end
|
|
525
|
-
if opts[:'state'] && !['Voided', 'Pending', 'AwaitingPayment', 'Paid', 'Failed'].include?(opts[:'state'])
|
|
494
|
+
if @api_client.config.client_side_validation && opts[:'state'] && !['Voided', 'Pending', 'AwaitingPayment', 'Paid', 'Failed'].include?(opts[:'state'])
|
|
526
495
|
fail ArgumentError, 'invalid value for "state", must be one of Voided, Pending, AwaitingPayment, Paid, Failed'
|
|
527
496
|
end
|
|
528
|
-
if opts[:'type'] && !['Setup', 'Upgrade', 'Manual', 'ProductRatePlanMigration', 'Arrears', 'Advance', 'Coupon', 'Usage', 'PricingComponent'].include?(opts[:'type'])
|
|
497
|
+
if @api_client.config.client_side_validation && opts[:'type'] && !['Setup', 'Upgrade', 'Manual', 'ProductRatePlanMigration', 'Arrears', 'Advance', 'Coupon', 'Usage', 'PricingComponent'].include?(opts[:'type'])
|
|
529
498
|
fail ArgumentError, 'invalid value for "type", must be one of Setup, Upgrade, Manual, ProductRatePlanMigration, Arrears, Advance, Coupon, Usage, PricingComponent'
|
|
530
499
|
end
|
|
531
500
|
# resource path
|
|
532
|
-
local_var_path = "/invoices/{invoice-ID}/charges".sub('{
|
|
501
|
+
local_var_path = "/invoices/{invoice-ID}/charges".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
|
|
533
502
|
|
|
534
503
|
# query parameters
|
|
535
504
|
query_params = {}
|
|
@@ -544,14 +513,10 @@ module Bfwd
|
|
|
544
513
|
|
|
545
514
|
# header parameters
|
|
546
515
|
header_params = {}
|
|
547
|
-
|
|
548
516
|
# HTTP header 'Accept' (if needed)
|
|
549
|
-
|
|
550
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
551
|
-
|
|
517
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
552
518
|
# HTTP header 'Content-Type'
|
|
553
|
-
|
|
554
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
519
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
555
520
|
|
|
556
521
|
# form parameters
|
|
557
522
|
form_params = {}
|
|
@@ -596,7 +561,7 @@ module Bfwd
|
|
|
596
561
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_credit_invoice_line_payments_from_invoices_as_csv ..."
|
|
597
562
|
end
|
|
598
563
|
# resource path
|
|
599
|
-
local_var_path = "/invoices/credit.csv"
|
|
564
|
+
local_var_path = "/invoices/credit.csv"
|
|
600
565
|
|
|
601
566
|
# query parameters
|
|
602
567
|
query_params = {}
|
|
@@ -606,14 +571,10 @@ module Bfwd
|
|
|
606
571
|
|
|
607
572
|
# header parameters
|
|
608
573
|
header_params = {}
|
|
609
|
-
|
|
610
574
|
# HTTP header 'Accept' (if needed)
|
|
611
|
-
|
|
612
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
613
|
-
|
|
575
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
614
576
|
# HTTP header 'Content-Type'
|
|
615
|
-
|
|
616
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
577
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
617
578
|
|
|
618
579
|
# form parameters
|
|
619
580
|
form_params = {}
|
|
@@ -658,7 +619,7 @@ module Bfwd
|
|
|
658
619
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_credit_invoice_line_payments_from_invoices_as_csv_by_payment_received ..."
|
|
659
620
|
end
|
|
660
621
|
# resource path
|
|
661
|
-
local_var_path = "/invoices/payment-received/credit.csv"
|
|
622
|
+
local_var_path = "/invoices/payment-received/credit.csv"
|
|
662
623
|
|
|
663
624
|
# query parameters
|
|
664
625
|
query_params = {}
|
|
@@ -668,14 +629,10 @@ module Bfwd
|
|
|
668
629
|
|
|
669
630
|
# header parameters
|
|
670
631
|
header_params = {}
|
|
671
|
-
|
|
672
632
|
# HTTP header 'Accept' (if needed)
|
|
673
|
-
|
|
674
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
675
|
-
|
|
633
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
676
634
|
# HTTP header 'Content-Type'
|
|
677
|
-
|
|
678
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
635
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
679
636
|
|
|
680
637
|
# form parameters
|
|
681
638
|
form_params = {}
|
|
@@ -720,7 +677,7 @@ module Bfwd
|
|
|
720
677
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_debit_invoice_line_payments_from_invoices_as_csv ..."
|
|
721
678
|
end
|
|
722
679
|
# resource path
|
|
723
|
-
local_var_path = "/invoices/revenue.csv"
|
|
680
|
+
local_var_path = "/invoices/revenue.csv"
|
|
724
681
|
|
|
725
682
|
# query parameters
|
|
726
683
|
query_params = {}
|
|
@@ -730,14 +687,10 @@ module Bfwd
|
|
|
730
687
|
|
|
731
688
|
# header parameters
|
|
732
689
|
header_params = {}
|
|
733
|
-
|
|
734
690
|
# HTTP header 'Accept' (if needed)
|
|
735
|
-
|
|
736
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
737
|
-
|
|
691
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
738
692
|
# HTTP header 'Content-Type'
|
|
739
|
-
|
|
740
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
693
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
741
694
|
|
|
742
695
|
# form parameters
|
|
743
696
|
form_params = {}
|
|
@@ -782,7 +735,7 @@ module Bfwd
|
|
|
782
735
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_debit_invoice_line_payments_from_invoices_as_csv_by_payment_received ..."
|
|
783
736
|
end
|
|
784
737
|
# resource path
|
|
785
|
-
local_var_path = "/invoices/payment-received/revenue.csv"
|
|
738
|
+
local_var_path = "/invoices/payment-received/revenue.csv"
|
|
786
739
|
|
|
787
740
|
# query parameters
|
|
788
741
|
query_params = {}
|
|
@@ -792,14 +745,10 @@ module Bfwd
|
|
|
792
745
|
|
|
793
746
|
# header parameters
|
|
794
747
|
header_params = {}
|
|
795
|
-
|
|
796
748
|
# HTTP header 'Accept' (if needed)
|
|
797
|
-
|
|
798
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
799
|
-
|
|
749
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
800
750
|
# HTTP header 'Content-Type'
|
|
801
|
-
|
|
802
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
751
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
803
752
|
|
|
804
753
|
# form parameters
|
|
805
754
|
form_params = {}
|
|
@@ -860,12 +809,14 @@ module Bfwd
|
|
|
860
809
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoice_as_html ..."
|
|
861
810
|
end
|
|
862
811
|
# verify the required parameter 'id' is set
|
|
863
|
-
|
|
864
|
-
|
|
812
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
813
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling InvoicesApi.get_invoice_as_html"
|
|
814
|
+
end
|
|
815
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
865
816
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
866
817
|
end
|
|
867
818
|
# resource path
|
|
868
|
-
local_var_path = "/invoices/{ID}.html".sub('{
|
|
819
|
+
local_var_path = "/invoices/{ID}.html".sub('{' + 'ID' + '}', id.to_s)
|
|
869
820
|
|
|
870
821
|
# query parameters
|
|
871
822
|
query_params = {}
|
|
@@ -882,14 +833,10 @@ module Bfwd
|
|
|
882
833
|
|
|
883
834
|
# header parameters
|
|
884
835
|
header_params = {}
|
|
885
|
-
|
|
886
836
|
# HTTP header 'Accept' (if needed)
|
|
887
|
-
|
|
888
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
889
|
-
|
|
837
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/html'])
|
|
890
838
|
# HTTP header 'Content-Type'
|
|
891
|
-
|
|
892
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
839
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
893
840
|
|
|
894
841
|
# form parameters
|
|
895
842
|
form_params = {}
|
|
@@ -954,15 +901,17 @@ module Bfwd
|
|
|
954
901
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoice_as_pdf ..."
|
|
955
902
|
end
|
|
956
903
|
# verify the required parameter 'id' is set
|
|
957
|
-
|
|
958
|
-
|
|
904
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
905
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling InvoicesApi.get_invoice_as_pdf"
|
|
906
|
+
end
|
|
907
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
959
908
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
960
909
|
end
|
|
961
|
-
if opts[:'group_line_items_by'] && !['Product', 'RatePlan', 'ProductAndRatePlan'].include?(opts[:'group_line_items_by'])
|
|
910
|
+
if @api_client.config.client_side_validation && opts[:'group_line_items_by'] && !['Product', 'RatePlan', 'ProductAndRatePlan'].include?(opts[:'group_line_items_by'])
|
|
962
911
|
fail ArgumentError, 'invalid value for "group_line_items_by", must be one of Product, RatePlan, ProductAndRatePlan'
|
|
963
912
|
end
|
|
964
913
|
# resource path
|
|
965
|
-
local_var_path = "/invoices/{ID}.pdf".sub('{
|
|
914
|
+
local_var_path = "/invoices/{ID}.pdf".sub('{' + 'ID' + '}', id.to_s)
|
|
966
915
|
|
|
967
916
|
# query parameters
|
|
968
917
|
query_params = {}
|
|
@@ -981,14 +930,10 @@ module Bfwd
|
|
|
981
930
|
|
|
982
931
|
# header parameters
|
|
983
932
|
header_params = {}
|
|
984
|
-
|
|
985
933
|
# HTTP header 'Accept' (if needed)
|
|
986
|
-
|
|
987
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
988
|
-
|
|
934
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/pdf'])
|
|
989
935
|
# HTTP header 'Content-Type'
|
|
990
|
-
|
|
991
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
936
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
992
937
|
|
|
993
938
|
# form parameters
|
|
994
939
|
form_params = {}
|
|
@@ -1043,12 +988,14 @@ module Bfwd
|
|
|
1043
988
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoice_by_id ..."
|
|
1044
989
|
end
|
|
1045
990
|
# verify the required parameter 'invoice_id' is set
|
|
1046
|
-
|
|
1047
|
-
|
|
991
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
992
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.get_invoice_by_id"
|
|
993
|
+
end
|
|
994
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
1048
995
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
1049
996
|
end
|
|
1050
997
|
# resource path
|
|
1051
|
-
local_var_path = "/invoices/{invoice-ID}".sub('{
|
|
998
|
+
local_var_path = "/invoices/{invoice-ID}".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
|
|
1052
999
|
|
|
1053
1000
|
# query parameters
|
|
1054
1001
|
query_params = {}
|
|
@@ -1062,14 +1009,10 @@ module Bfwd
|
|
|
1062
1009
|
|
|
1063
1010
|
# header parameters
|
|
1064
1011
|
header_params = {}
|
|
1065
|
-
|
|
1066
1012
|
# HTTP header 'Accept' (if needed)
|
|
1067
|
-
|
|
1068
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1069
|
-
|
|
1013
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
1070
1014
|
# HTTP header 'Content-Type'
|
|
1071
|
-
|
|
1072
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1015
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1073
1016
|
|
|
1074
1017
|
# form parameters
|
|
1075
1018
|
form_params = {}
|
|
@@ -1112,9 +1055,11 @@ module Bfwd
|
|
|
1112
1055
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoice_by_id_as_csv ..."
|
|
1113
1056
|
end
|
|
1114
1057
|
# verify the required parameter 'id' is set
|
|
1115
|
-
|
|
1058
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1059
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling InvoicesApi.get_invoice_by_id_as_csv"
|
|
1060
|
+
end
|
|
1116
1061
|
# resource path
|
|
1117
|
-
local_var_path = "/invoices/{ID}.csv".sub('{
|
|
1062
|
+
local_var_path = "/invoices/{ID}.csv".sub('{' + 'ID' + '}', id.to_s)
|
|
1118
1063
|
|
|
1119
1064
|
# query parameters
|
|
1120
1065
|
query_params = {}
|
|
@@ -1122,14 +1067,10 @@ module Bfwd
|
|
|
1122
1067
|
|
|
1123
1068
|
# header parameters
|
|
1124
1069
|
header_params = {}
|
|
1125
|
-
|
|
1126
1070
|
# HTTP header 'Accept' (if needed)
|
|
1127
|
-
|
|
1128
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1129
|
-
|
|
1071
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
1130
1072
|
# HTTP header 'Content-Type'
|
|
1131
|
-
|
|
1132
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1073
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1133
1074
|
|
|
1134
1075
|
# form parameters
|
|
1135
1076
|
form_params = {}
|
|
@@ -1184,12 +1125,14 @@ module Bfwd
|
|
|
1184
1125
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoice_by_subscription_id ..."
|
|
1185
1126
|
end
|
|
1186
1127
|
# verify the required parameter 'subscription_id' is set
|
|
1187
|
-
|
|
1188
|
-
|
|
1128
|
+
if @api_client.config.client_side_validation && subscription_id.nil?
|
|
1129
|
+
fail ArgumentError, "Missing the required parameter 'subscription_id' when calling InvoicesApi.get_invoice_by_subscription_id"
|
|
1130
|
+
end
|
|
1131
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
1189
1132
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
1190
1133
|
end
|
|
1191
1134
|
# resource path
|
|
1192
|
-
local_var_path = "/invoices/subscription/{subscription-ID}".sub('{
|
|
1135
|
+
local_var_path = "/invoices/subscription/{subscription-ID}".sub('{' + 'subscription-ID' + '}', subscription_id.to_s)
|
|
1193
1136
|
|
|
1194
1137
|
# query parameters
|
|
1195
1138
|
query_params = {}
|
|
@@ -1203,14 +1146,10 @@ module Bfwd
|
|
|
1203
1146
|
|
|
1204
1147
|
# header parameters
|
|
1205
1148
|
header_params = {}
|
|
1206
|
-
|
|
1207
1149
|
# HTTP header 'Accept' (if needed)
|
|
1208
|
-
|
|
1209
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1210
|
-
|
|
1150
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
1211
1151
|
# HTTP header 'Content-Type'
|
|
1212
|
-
|
|
1213
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1152
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1214
1153
|
|
|
1215
1154
|
# form parameters
|
|
1216
1155
|
form_params = {}
|
|
@@ -1265,12 +1204,14 @@ module Bfwd
|
|
|
1265
1204
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoice_by_subscription_version_id ..."
|
|
1266
1205
|
end
|
|
1267
1206
|
# verify the required parameter 'subscription_version_id' is set
|
|
1268
|
-
|
|
1269
|
-
|
|
1207
|
+
if @api_client.config.client_side_validation && subscription_version_id.nil?
|
|
1208
|
+
fail ArgumentError, "Missing the required parameter 'subscription_version_id' when calling InvoicesApi.get_invoice_by_subscription_version_id"
|
|
1209
|
+
end
|
|
1210
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
1270
1211
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
1271
1212
|
end
|
|
1272
1213
|
# resource path
|
|
1273
|
-
local_var_path = "/invoices/subscription/version/{subscription-version-ID}".sub('{
|
|
1214
|
+
local_var_path = "/invoices/subscription/version/{subscription-version-ID}".sub('{' + 'subscription-version-ID' + '}', subscription_version_id.to_s)
|
|
1274
1215
|
|
|
1275
1216
|
# query parameters
|
|
1276
1217
|
query_params = {}
|
|
@@ -1284,14 +1225,10 @@ module Bfwd
|
|
|
1284
1225
|
|
|
1285
1226
|
# header parameters
|
|
1286
1227
|
header_params = {}
|
|
1287
|
-
|
|
1288
1228
|
# HTTP header 'Accept' (if needed)
|
|
1289
|
-
|
|
1290
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1291
|
-
|
|
1229
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
1292
1230
|
# HTTP header 'Content-Type'
|
|
1293
|
-
|
|
1294
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1231
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1295
1232
|
|
|
1296
1233
|
# form parameters
|
|
1297
1234
|
form_params = {}
|
|
@@ -1334,9 +1271,11 @@ module Bfwd
|
|
|
1334
1271
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoice_by_version_id ..."
|
|
1335
1272
|
end
|
|
1336
1273
|
# verify the required parameter 'version_id' is set
|
|
1337
|
-
|
|
1274
|
+
if @api_client.config.client_side_validation && version_id.nil?
|
|
1275
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling InvoicesApi.get_invoice_by_version_id"
|
|
1276
|
+
end
|
|
1338
1277
|
# resource path
|
|
1339
|
-
local_var_path = "/invoices/version/{version-ID}".sub('{
|
|
1278
|
+
local_var_path = "/invoices/version/{version-ID}".sub('{' + 'version-ID' + '}', version_id.to_s)
|
|
1340
1279
|
|
|
1341
1280
|
# query parameters
|
|
1342
1281
|
query_params = {}
|
|
@@ -1344,14 +1283,10 @@ module Bfwd
|
|
|
1344
1283
|
|
|
1345
1284
|
# header parameters
|
|
1346
1285
|
header_params = {}
|
|
1347
|
-
|
|
1348
1286
|
# HTTP header 'Accept' (if needed)
|
|
1349
|
-
|
|
1350
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1351
|
-
|
|
1287
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8', 'text/xml'])
|
|
1352
1288
|
# HTTP header 'Content-Type'
|
|
1353
|
-
|
|
1354
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1289
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1355
1290
|
|
|
1356
1291
|
# form parameters
|
|
1357
1292
|
form_params = {}
|
|
@@ -1406,12 +1341,14 @@ module Bfwd
|
|
|
1406
1341
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoices_by_account_id ..."
|
|
1407
1342
|
end
|
|
1408
1343
|
# verify the required parameter 'account_id' is set
|
|
1409
|
-
|
|
1410
|
-
|
|
1344
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
1345
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling InvoicesApi.get_invoices_by_account_id"
|
|
1346
|
+
end
|
|
1347
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
1411
1348
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
1412
1349
|
end
|
|
1413
1350
|
# resource path
|
|
1414
|
-
local_var_path = "/invoices/account/{account-ID}".sub('{
|
|
1351
|
+
local_var_path = "/invoices/account/{account-ID}".sub('{' + 'account-ID' + '}', account_id.to_s)
|
|
1415
1352
|
|
|
1416
1353
|
# query parameters
|
|
1417
1354
|
query_params = {}
|
|
@@ -1425,14 +1362,10 @@ module Bfwd
|
|
|
1425
1362
|
|
|
1426
1363
|
# header parameters
|
|
1427
1364
|
header_params = {}
|
|
1428
|
-
|
|
1429
1365
|
# HTTP header 'Accept' (if needed)
|
|
1430
|
-
|
|
1431
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1432
|
-
|
|
1366
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
1433
1367
|
# HTTP header 'Content-Type'
|
|
1434
|
-
|
|
1435
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1368
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1436
1369
|
|
|
1437
1370
|
# form parameters
|
|
1438
1371
|
form_params = {}
|
|
@@ -1487,14 +1420,18 @@ module Bfwd
|
|
|
1487
1420
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoices_by_period_end ..."
|
|
1488
1421
|
end
|
|
1489
1422
|
# verify the required parameter 'lower_threshold' is set
|
|
1490
|
-
|
|
1423
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
|
1424
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling InvoicesApi.get_invoices_by_period_end"
|
|
1425
|
+
end
|
|
1491
1426
|
# verify the required parameter 'upper_threshold' is set
|
|
1492
|
-
|
|
1493
|
-
|
|
1427
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
|
1428
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling InvoicesApi.get_invoices_by_period_end"
|
|
1429
|
+
end
|
|
1430
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
1494
1431
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
1495
1432
|
end
|
|
1496
1433
|
# resource path
|
|
1497
|
-
local_var_path = "/invoices/period-end/{lower-threshold}/{upper-threshold}".sub('{
|
|
1434
|
+
local_var_path = "/invoices/period-end/{lower-threshold}/{upper-threshold}".sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
|
1498
1435
|
|
|
1499
1436
|
# query parameters
|
|
1500
1437
|
query_params = {}
|
|
@@ -1507,14 +1444,10 @@ module Bfwd
|
|
|
1507
1444
|
|
|
1508
1445
|
# header parameters
|
|
1509
1446
|
header_params = {}
|
|
1510
|
-
|
|
1511
1447
|
# HTTP header 'Accept' (if needed)
|
|
1512
|
-
|
|
1513
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1514
|
-
|
|
1448
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
1515
1449
|
# HTTP header 'Content-Type'
|
|
1516
|
-
|
|
1517
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1450
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1518
1451
|
|
|
1519
1452
|
# form parameters
|
|
1520
1453
|
form_params = {}
|
|
@@ -1569,14 +1502,18 @@ module Bfwd
|
|
|
1569
1502
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoices_by_period_start ..."
|
|
1570
1503
|
end
|
|
1571
1504
|
# verify the required parameter 'lower_threshold' is set
|
|
1572
|
-
|
|
1505
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
|
1506
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling InvoicesApi.get_invoices_by_period_start"
|
|
1507
|
+
end
|
|
1573
1508
|
# verify the required parameter 'upper_threshold' is set
|
|
1574
|
-
|
|
1575
|
-
|
|
1509
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
|
1510
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling InvoicesApi.get_invoices_by_period_start"
|
|
1511
|
+
end
|
|
1512
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
1576
1513
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
1577
1514
|
end
|
|
1578
1515
|
# resource path
|
|
1579
|
-
local_var_path = "/invoices/period-start/{lower-threshold}/{upper-threshold}".sub('{
|
|
1516
|
+
local_var_path = "/invoices/period-start/{lower-threshold}/{upper-threshold}".sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
|
1580
1517
|
|
|
1581
1518
|
# query parameters
|
|
1582
1519
|
query_params = {}
|
|
@@ -1589,14 +1526,10 @@ module Bfwd
|
|
|
1589
1526
|
|
|
1590
1527
|
# header parameters
|
|
1591
1528
|
header_params = {}
|
|
1592
|
-
|
|
1593
1529
|
# HTTP header 'Accept' (if needed)
|
|
1594
|
-
|
|
1595
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1596
|
-
|
|
1530
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
1597
1531
|
# HTTP header 'Content-Type'
|
|
1598
|
-
|
|
1599
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1532
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1600
1533
|
|
|
1601
1534
|
# form parameters
|
|
1602
1535
|
form_params = {}
|
|
@@ -1651,14 +1584,18 @@ module Bfwd
|
|
|
1651
1584
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoices_by_period_start_as_csv ..."
|
|
1652
1585
|
end
|
|
1653
1586
|
# verify the required parameter 'lower_threshold' is set
|
|
1654
|
-
|
|
1587
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
|
1588
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling InvoicesApi.get_invoices_by_period_start_as_csv"
|
|
1589
|
+
end
|
|
1655
1590
|
# verify the required parameter 'upper_threshold' is set
|
|
1656
|
-
|
|
1657
|
-
|
|
1591
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
|
1592
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling InvoicesApi.get_invoices_by_period_start_as_csv"
|
|
1593
|
+
end
|
|
1594
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
1658
1595
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
1659
1596
|
end
|
|
1660
1597
|
# resource path
|
|
1661
|
-
local_var_path = "/invoices/period-start/{lower-threshold}/{upper-threshold}.csv".sub('{
|
|
1598
|
+
local_var_path = "/invoices/period-start/{lower-threshold}/{upper-threshold}.csv".sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
|
1662
1599
|
|
|
1663
1600
|
# query parameters
|
|
1664
1601
|
query_params = {}
|
|
@@ -1671,14 +1608,10 @@ module Bfwd
|
|
|
1671
1608
|
|
|
1672
1609
|
# header parameters
|
|
1673
1610
|
header_params = {}
|
|
1674
|
-
|
|
1675
1611
|
# HTTP header 'Accept' (if needed)
|
|
1676
|
-
|
|
1677
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1678
|
-
|
|
1612
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
1679
1613
|
# HTTP header 'Content-Type'
|
|
1680
|
-
|
|
1681
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1614
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1682
1615
|
|
|
1683
1616
|
# form parameters
|
|
1684
1617
|
form_params = {}
|
|
@@ -1731,16 +1664,26 @@ module Bfwd
|
|
|
1731
1664
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoices_by_state ..."
|
|
1732
1665
|
end
|
|
1733
1666
|
# verify the required parameter 'state' is set
|
|
1734
|
-
|
|
1667
|
+
if @api_client.config.client_side_validation && state.nil?
|
|
1668
|
+
fail ArgumentError, "Missing the required parameter 'state' when calling InvoicesApi.get_invoices_by_state"
|
|
1669
|
+
end
|
|
1735
1670
|
# verify enum value
|
|
1736
|
-
|
|
1671
|
+
if @api_client.config.client_side_validation && !['Paid', 'Unpaid', 'Pending', 'Voided'].include?(state)
|
|
1737
1672
|
fail ArgumentError, "invalid value for 'state', must be one of Paid, Unpaid, Pending, Voided"
|
|
1738
1673
|
end
|
|
1739
|
-
if
|
|
1674
|
+
if @api_client.config.client_side_validation && state.length > 2147483647
|
|
1675
|
+
fail ArgumentError, 'invalid value for "state" when calling InvoicesApi.get_invoices_by_state, number of items must be less than or equal to 2147483647.'
|
|
1676
|
+
end
|
|
1677
|
+
|
|
1678
|
+
if @api_client.config.client_side_validation && state.length < 5
|
|
1679
|
+
fail ArgumentError, 'invalid value for "state" when calling InvoicesApi.get_invoices_by_state, number of items must be greater than or equal to 5.'
|
|
1680
|
+
end
|
|
1681
|
+
|
|
1682
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
1740
1683
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
1741
1684
|
end
|
|
1742
1685
|
# resource path
|
|
1743
|
-
local_var_path = "/invoices/state/{state}".sub('{
|
|
1686
|
+
local_var_path = "/invoices/state/{state}".sub('{' + 'state' + '}', state.to_s)
|
|
1744
1687
|
|
|
1745
1688
|
# query parameters
|
|
1746
1689
|
query_params = {}
|
|
@@ -1753,14 +1696,10 @@ module Bfwd
|
|
|
1753
1696
|
|
|
1754
1697
|
# header parameters
|
|
1755
1698
|
header_params = {}
|
|
1756
|
-
|
|
1757
1699
|
# HTTP header 'Accept' (if needed)
|
|
1758
|
-
|
|
1759
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1760
|
-
|
|
1700
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
1761
1701
|
# HTTP header 'Content-Type'
|
|
1762
|
-
|
|
1763
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1702
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1764
1703
|
|
|
1765
1704
|
# form parameters
|
|
1766
1705
|
form_params = {}
|
|
@@ -1817,20 +1756,26 @@ module Bfwd
|
|
|
1817
1756
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoices_by_state_and_period_start ..."
|
|
1818
1757
|
end
|
|
1819
1758
|
# verify the required parameter 'state' is set
|
|
1820
|
-
|
|
1759
|
+
if @api_client.config.client_side_validation && state.nil?
|
|
1760
|
+
fail ArgumentError, "Missing the required parameter 'state' when calling InvoicesApi.get_invoices_by_state_and_period_start"
|
|
1761
|
+
end
|
|
1821
1762
|
# verify enum value
|
|
1822
|
-
|
|
1763
|
+
if @api_client.config.client_side_validation && !['Paid', 'Unpaid', 'Pending', 'Voided'].include?(state)
|
|
1823
1764
|
fail ArgumentError, "invalid value for 'state', must be one of Paid, Unpaid, Pending, Voided"
|
|
1824
1765
|
end
|
|
1825
1766
|
# verify the required parameter 'lower_threshold' is set
|
|
1826
|
-
|
|
1767
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
|
1768
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling InvoicesApi.get_invoices_by_state_and_period_start"
|
|
1769
|
+
end
|
|
1827
1770
|
# verify the required parameter 'upper_threshold' is set
|
|
1828
|
-
|
|
1829
|
-
|
|
1771
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
|
1772
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling InvoicesApi.get_invoices_by_state_and_period_start"
|
|
1773
|
+
end
|
|
1774
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
1830
1775
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
1831
1776
|
end
|
|
1832
1777
|
# resource path
|
|
1833
|
-
local_var_path = "/invoices/state/{state}/period-start/{lower-threshold}/{upper-threshold}".sub('{
|
|
1778
|
+
local_var_path = "/invoices/state/{state}/period-start/{lower-threshold}/{upper-threshold}".sub('{' + 'state' + '}', state.to_s).sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
|
1834
1779
|
|
|
1835
1780
|
# query parameters
|
|
1836
1781
|
query_params = {}
|
|
@@ -1843,14 +1788,10 @@ module Bfwd
|
|
|
1843
1788
|
|
|
1844
1789
|
# header parameters
|
|
1845
1790
|
header_params = {}
|
|
1846
|
-
|
|
1847
1791
|
# HTTP header 'Accept' (if needed)
|
|
1848
|
-
|
|
1849
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1850
|
-
|
|
1792
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
1851
1793
|
# HTTP header 'Content-Type'
|
|
1852
|
-
|
|
1853
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1794
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1854
1795
|
|
|
1855
1796
|
# form parameters
|
|
1856
1797
|
form_params = {}
|
|
@@ -1907,20 +1848,26 @@ module Bfwd
|
|
|
1907
1848
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoices_by_state_and_period_start_as_csv ..."
|
|
1908
1849
|
end
|
|
1909
1850
|
# verify the required parameter 'state' is set
|
|
1910
|
-
|
|
1851
|
+
if @api_client.config.client_side_validation && state.nil?
|
|
1852
|
+
fail ArgumentError, "Missing the required parameter 'state' when calling InvoicesApi.get_invoices_by_state_and_period_start_as_csv"
|
|
1853
|
+
end
|
|
1911
1854
|
# verify enum value
|
|
1912
|
-
|
|
1855
|
+
if @api_client.config.client_side_validation && !['Paid', 'Unpaid', 'Pending', 'Voided'].include?(state)
|
|
1913
1856
|
fail ArgumentError, "invalid value for 'state', must be one of Paid, Unpaid, Pending, Voided"
|
|
1914
1857
|
end
|
|
1915
1858
|
# verify the required parameter 'lower_threshold' is set
|
|
1916
|
-
|
|
1859
|
+
if @api_client.config.client_side_validation && lower_threshold.nil?
|
|
1860
|
+
fail ArgumentError, "Missing the required parameter 'lower_threshold' when calling InvoicesApi.get_invoices_by_state_and_period_start_as_csv"
|
|
1861
|
+
end
|
|
1917
1862
|
# verify the required parameter 'upper_threshold' is set
|
|
1918
|
-
|
|
1919
|
-
|
|
1863
|
+
if @api_client.config.client_side_validation && upper_threshold.nil?
|
|
1864
|
+
fail ArgumentError, "Missing the required parameter 'upper_threshold' when calling InvoicesApi.get_invoices_by_state_and_period_start_as_csv"
|
|
1865
|
+
end
|
|
1866
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
1920
1867
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
1921
1868
|
end
|
|
1922
1869
|
# resource path
|
|
1923
|
-
local_var_path = "/invoices/state/{state}/period-start/{lower-threshold}/{upper-threshold}.csv".sub('{
|
|
1870
|
+
local_var_path = "/invoices/state/{state}/period-start/{lower-threshold}/{upper-threshold}.csv".sub('{' + 'state' + '}', state.to_s).sub('{' + 'lower-threshold' + '}', lower_threshold.to_s).sub('{' + 'upper-threshold' + '}', upper_threshold.to_s)
|
|
1924
1871
|
|
|
1925
1872
|
# query parameters
|
|
1926
1873
|
query_params = {}
|
|
@@ -1933,14 +1880,10 @@ module Bfwd
|
|
|
1933
1880
|
|
|
1934
1881
|
# header parameters
|
|
1935
1882
|
header_params = {}
|
|
1936
|
-
|
|
1937
1883
|
# HTTP header 'Accept' (if needed)
|
|
1938
|
-
|
|
1939
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
1940
|
-
|
|
1884
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
1941
1885
|
# HTTP header 'Content-Type'
|
|
1942
|
-
|
|
1943
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1886
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
1944
1887
|
|
|
1945
1888
|
# form parameters
|
|
1946
1889
|
form_params = {}
|
|
@@ -1993,16 +1936,26 @@ module Bfwd
|
|
|
1993
1936
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_invoices_by_state_as_csv ..."
|
|
1994
1937
|
end
|
|
1995
1938
|
# verify the required parameter 'state' is set
|
|
1996
|
-
|
|
1939
|
+
if @api_client.config.client_side_validation && state.nil?
|
|
1940
|
+
fail ArgumentError, "Missing the required parameter 'state' when calling InvoicesApi.get_invoices_by_state_as_csv"
|
|
1941
|
+
end
|
|
1997
1942
|
# verify enum value
|
|
1998
|
-
|
|
1943
|
+
if @api_client.config.client_side_validation && !['Paid', 'Unpaid', 'Pending', 'Voided'].include?(state)
|
|
1999
1944
|
fail ArgumentError, "invalid value for 'state', must be one of Paid, Unpaid, Pending, Voided"
|
|
2000
1945
|
end
|
|
2001
|
-
if
|
|
1946
|
+
if @api_client.config.client_side_validation && state.length > 2147483647
|
|
1947
|
+
fail ArgumentError, 'invalid value for "state" when calling InvoicesApi.get_invoices_by_state_as_csv, number of items must be less than or equal to 2147483647.'
|
|
1948
|
+
end
|
|
1949
|
+
|
|
1950
|
+
if @api_client.config.client_side_validation && state.length < 5
|
|
1951
|
+
fail ArgumentError, 'invalid value for "state" when calling InvoicesApi.get_invoices_by_state_as_csv, number of items must be greater than or equal to 5.'
|
|
1952
|
+
end
|
|
1953
|
+
|
|
1954
|
+
if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
|
|
2002
1955
|
fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
|
|
2003
1956
|
end
|
|
2004
1957
|
# resource path
|
|
2005
|
-
local_var_path = "/invoices/state/{state}.csv".sub('{
|
|
1958
|
+
local_var_path = "/invoices/state/{state}.csv".sub('{' + 'state' + '}', state.to_s)
|
|
2006
1959
|
|
|
2007
1960
|
# query parameters
|
|
2008
1961
|
query_params = {}
|
|
@@ -2015,14 +1968,10 @@ module Bfwd
|
|
|
2015
1968
|
|
|
2016
1969
|
# header parameters
|
|
2017
1970
|
header_params = {}
|
|
2018
|
-
|
|
2019
1971
|
# HTTP header 'Accept' (if needed)
|
|
2020
|
-
|
|
2021
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2022
|
-
|
|
1972
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
2023
1973
|
# HTTP header 'Content-Type'
|
|
2024
|
-
|
|
2025
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
1974
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
2026
1975
|
|
|
2027
1976
|
# form parameters
|
|
2028
1977
|
form_params = {}
|
|
@@ -2070,14 +2019,14 @@ module Bfwd
|
|
|
2070
2019
|
if @api_client.config.debugging
|
|
2071
2020
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_line_payments ..."
|
|
2072
2021
|
end
|
|
2073
|
-
if opts[:'include_gateway'] && !['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(
|
|
2074
|
-
fail ArgumentError, 'invalid value for "include_gateway", must
|
|
2022
|
+
if @api_client.config.client_side_validation && opts[:'include_gateway'] && !opts[:'include_gateway'].all?{|item| ['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(item)}
|
|
2023
|
+
fail ArgumentError, 'invalid value for "include_gateway", must include one of cybersource_token, card_vault, paypal_simple, locustworld, free, coupon, credit_note, stripe, braintree, balanced, paypal, billforward_test, offline, trial, stripeACH, authorizeNet, spreedly, sagePay, trustCommerce, payvision, kash'
|
|
2075
2024
|
end
|
|
2076
|
-
if opts[:'exclude_gateway'] && !['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(
|
|
2077
|
-
fail ArgumentError, 'invalid value for "exclude_gateway", must
|
|
2025
|
+
if @api_client.config.client_side_validation && opts[:'exclude_gateway'] && !opts[:'exclude_gateway'].all?{|item| ['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(item)}
|
|
2026
|
+
fail ArgumentError, 'invalid value for "exclude_gateway", must include one of cybersource_token, card_vault, paypal_simple, locustworld, free, coupon, credit_note, stripe, braintree, balanced, paypal, billforward_test, offline, trial, stripeACH, authorizeNet, spreedly, sagePay, trustCommerce, payvision, kash'
|
|
2078
2027
|
end
|
|
2079
2028
|
# resource path
|
|
2080
|
-
local_var_path = "/invoices/line-payments"
|
|
2029
|
+
local_var_path = "/invoices/line-payments"
|
|
2081
2030
|
|
|
2082
2031
|
# query parameters
|
|
2083
2032
|
query_params = {}
|
|
@@ -2090,14 +2039,6 @@ module Bfwd
|
|
|
2090
2039
|
# header parameters
|
|
2091
2040
|
header_params = {}
|
|
2092
2041
|
|
|
2093
|
-
# HTTP header 'Accept' (if needed)
|
|
2094
|
-
local_header_accept = []
|
|
2095
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2096
|
-
|
|
2097
|
-
# HTTP header 'Content-Type'
|
|
2098
|
-
local_header_content_type = []
|
|
2099
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2100
|
-
|
|
2101
2042
|
# form parameters
|
|
2102
2043
|
form_params = {}
|
|
2103
2044
|
|
|
@@ -2144,14 +2085,14 @@ module Bfwd
|
|
|
2144
2085
|
if @api_client.config.debugging
|
|
2145
2086
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_line_payments_as_csv ..."
|
|
2146
2087
|
end
|
|
2147
|
-
if opts[:'include_gateway'] && !['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(
|
|
2148
|
-
fail ArgumentError, 'invalid value for "include_gateway", must
|
|
2088
|
+
if @api_client.config.client_side_validation && opts[:'include_gateway'] && !opts[:'include_gateway'].all?{|item| ['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(item)}
|
|
2089
|
+
fail ArgumentError, 'invalid value for "include_gateway", must include one of cybersource_token, card_vault, paypal_simple, locustworld, free, coupon, credit_note, stripe, braintree, balanced, paypal, billforward_test, offline, trial, stripeACH, authorizeNet, spreedly, sagePay, trustCommerce, payvision, kash'
|
|
2149
2090
|
end
|
|
2150
|
-
if opts[:'exclude_gateway'] && !['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(
|
|
2151
|
-
fail ArgumentError, 'invalid value for "exclude_gateway", must
|
|
2091
|
+
if @api_client.config.client_side_validation && opts[:'exclude_gateway'] && !opts[:'exclude_gateway'].all?{|item| ['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(item)}
|
|
2092
|
+
fail ArgumentError, 'invalid value for "exclude_gateway", must include one of cybersource_token, card_vault, paypal_simple, locustworld, free, coupon, credit_note, stripe, braintree, balanced, paypal, billforward_test, offline, trial, stripeACH, authorizeNet, spreedly, sagePay, trustCommerce, payvision, kash'
|
|
2152
2093
|
end
|
|
2153
2094
|
# resource path
|
|
2154
|
-
local_var_path = "/invoices/line-payments.csv"
|
|
2095
|
+
local_var_path = "/invoices/line-payments.csv"
|
|
2155
2096
|
|
|
2156
2097
|
# query parameters
|
|
2157
2098
|
query_params = {}
|
|
@@ -2164,14 +2105,6 @@ module Bfwd
|
|
|
2164
2105
|
# header parameters
|
|
2165
2106
|
header_params = {}
|
|
2166
2107
|
|
|
2167
|
-
# HTTP header 'Accept' (if needed)
|
|
2168
|
-
local_header_accept = []
|
|
2169
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2170
|
-
|
|
2171
|
-
# HTTP header 'Content-Type'
|
|
2172
|
-
local_header_content_type = []
|
|
2173
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2174
|
-
|
|
2175
2108
|
# form parameters
|
|
2176
2109
|
form_params = {}
|
|
2177
2110
|
|
|
@@ -2213,9 +2146,11 @@ module Bfwd
|
|
|
2213
2146
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_metadata_for_invoice ..."
|
|
2214
2147
|
end
|
|
2215
2148
|
# verify the required parameter 'invoice_id' is set
|
|
2216
|
-
|
|
2149
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
2150
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.get_metadata_for_invoice"
|
|
2151
|
+
end
|
|
2217
2152
|
# resource path
|
|
2218
|
-
local_var_path = "/invoices/{invoice-ID}/metadata".sub('{
|
|
2153
|
+
local_var_path = "/invoices/{invoice-ID}/metadata".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
|
|
2219
2154
|
|
|
2220
2155
|
# query parameters
|
|
2221
2156
|
query_params = {}
|
|
@@ -2223,14 +2158,10 @@ module Bfwd
|
|
|
2223
2158
|
|
|
2224
2159
|
# header parameters
|
|
2225
2160
|
header_params = {}
|
|
2226
|
-
|
|
2227
2161
|
# HTTP header 'Accept' (if needed)
|
|
2228
|
-
|
|
2229
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2230
|
-
|
|
2162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
2231
2163
|
# HTTP header 'Content-Type'
|
|
2232
|
-
|
|
2233
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2164
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
2234
2165
|
|
|
2235
2166
|
# form parameters
|
|
2236
2167
|
form_params = {}
|
|
@@ -2275,7 +2206,7 @@ module Bfwd
|
|
|
2275
2206
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_refund_invoice_line_payments_from_invoices_as_csv ..."
|
|
2276
2207
|
end
|
|
2277
2208
|
# resource path
|
|
2278
|
-
local_var_path = "/invoices/refund.csv"
|
|
2209
|
+
local_var_path = "/invoices/refund.csv"
|
|
2279
2210
|
|
|
2280
2211
|
# query parameters
|
|
2281
2212
|
query_params = {}
|
|
@@ -2285,14 +2216,10 @@ module Bfwd
|
|
|
2285
2216
|
|
|
2286
2217
|
# header parameters
|
|
2287
2218
|
header_params = {}
|
|
2288
|
-
|
|
2289
2219
|
# HTTP header 'Accept' (if needed)
|
|
2290
|
-
|
|
2291
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2292
|
-
|
|
2220
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
2293
2221
|
# HTTP header 'Content-Type'
|
|
2294
|
-
|
|
2295
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2222
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
2296
2223
|
|
|
2297
2224
|
# form parameters
|
|
2298
2225
|
form_params = {}
|
|
@@ -2337,7 +2264,7 @@ module Bfwd
|
|
|
2337
2264
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_refund_invoice_line_payments_from_invoices_as_csv_by_refund_received ..."
|
|
2338
2265
|
end
|
|
2339
2266
|
# resource path
|
|
2340
|
-
local_var_path = "/invoices/payment-received/refund.csv"
|
|
2267
|
+
local_var_path = "/invoices/payment-received/refund.csv"
|
|
2341
2268
|
|
|
2342
2269
|
# query parameters
|
|
2343
2270
|
query_params = {}
|
|
@@ -2347,14 +2274,10 @@ module Bfwd
|
|
|
2347
2274
|
|
|
2348
2275
|
# header parameters
|
|
2349
2276
|
header_params = {}
|
|
2350
|
-
|
|
2351
2277
|
# HTTP header 'Accept' (if needed)
|
|
2352
|
-
|
|
2353
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2354
|
-
|
|
2278
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
|
2355
2279
|
# HTTP header 'Content-Type'
|
|
2356
|
-
|
|
2357
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2280
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
2358
2281
|
|
|
2359
2282
|
# form parameters
|
|
2360
2283
|
form_params = {}
|
|
@@ -2399,7 +2322,7 @@ module Bfwd
|
|
|
2399
2322
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_revenue_attributions ..."
|
|
2400
2323
|
end
|
|
2401
2324
|
# resource path
|
|
2402
|
-
local_var_path = "/invoices/revenue-attributions"
|
|
2325
|
+
local_var_path = "/invoices/revenue-attributions"
|
|
2403
2326
|
|
|
2404
2327
|
# query parameters
|
|
2405
2328
|
query_params = {}
|
|
@@ -2410,14 +2333,6 @@ module Bfwd
|
|
|
2410
2333
|
# header parameters
|
|
2411
2334
|
header_params = {}
|
|
2412
2335
|
|
|
2413
|
-
# HTTP header 'Accept' (if needed)
|
|
2414
|
-
local_header_accept = []
|
|
2415
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2416
|
-
|
|
2417
|
-
# HTTP header 'Content-Type'
|
|
2418
|
-
local_header_content_type = []
|
|
2419
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2420
|
-
|
|
2421
2336
|
# form parameters
|
|
2422
2337
|
form_params = {}
|
|
2423
2338
|
|
|
@@ -2461,7 +2376,7 @@ module Bfwd
|
|
|
2461
2376
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_revenue_attributions_as_csv ..."
|
|
2462
2377
|
end
|
|
2463
2378
|
# resource path
|
|
2464
|
-
local_var_path = "/invoices/revenue-attributions.csv"
|
|
2379
|
+
local_var_path = "/invoices/revenue-attributions.csv"
|
|
2465
2380
|
|
|
2466
2381
|
# query parameters
|
|
2467
2382
|
query_params = {}
|
|
@@ -2472,14 +2387,6 @@ module Bfwd
|
|
|
2472
2387
|
# header parameters
|
|
2473
2388
|
header_params = {}
|
|
2474
2389
|
|
|
2475
|
-
# HTTP header 'Accept' (if needed)
|
|
2476
|
-
local_header_accept = []
|
|
2477
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2478
|
-
|
|
2479
|
-
# HTTP header 'Content-Type'
|
|
2480
|
-
local_header_content_type = []
|
|
2481
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2482
|
-
|
|
2483
2390
|
# form parameters
|
|
2484
2391
|
form_params = {}
|
|
2485
2392
|
|
|
@@ -2531,9 +2438,11 @@ module Bfwd
|
|
|
2531
2438
|
@api_client.config.logger.debug "Calling API: InvoicesApi.get_swagger_for_invoice ..."
|
|
2532
2439
|
end
|
|
2533
2440
|
# verify the required parameter 'query_string' is set
|
|
2534
|
-
|
|
2441
|
+
if @api_client.config.client_side_validation && query_string.nil?
|
|
2442
|
+
fail ArgumentError, "Missing the required parameter 'query_string' when calling InvoicesApi.get_swagger_for_invoice"
|
|
2443
|
+
end
|
|
2535
2444
|
# resource path
|
|
2536
|
-
local_var_path = "/invoices/swagger-end-point/{query-string}".sub('{
|
|
2445
|
+
local_var_path = "/invoices/swagger-end-point/{query-string}".sub('{' + 'query-string' + '}', query_string.to_s)
|
|
2537
2446
|
|
|
2538
2447
|
# query parameters
|
|
2539
2448
|
query_params = {}
|
|
@@ -2546,14 +2455,10 @@ module Bfwd
|
|
|
2546
2455
|
|
|
2547
2456
|
# header parameters
|
|
2548
2457
|
header_params = {}
|
|
2549
|
-
|
|
2550
2458
|
# HTTP header 'Accept' (if needed)
|
|
2551
|
-
|
|
2552
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2553
|
-
|
|
2459
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
2554
2460
|
# HTTP header 'Content-Type'
|
|
2555
|
-
|
|
2556
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2461
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
2557
2462
|
|
|
2558
2463
|
# form parameters
|
|
2559
2464
|
form_params = {}
|
|
@@ -2594,23 +2499,21 @@ module Bfwd
|
|
|
2594
2499
|
@api_client.config.logger.debug "Calling API: InvoicesApi.import_invoice ..."
|
|
2595
2500
|
end
|
|
2596
2501
|
# verify the required parameter 'request' is set
|
|
2597
|
-
|
|
2502
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
2503
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling InvoicesApi.import_invoice"
|
|
2504
|
+
end
|
|
2598
2505
|
# resource path
|
|
2599
|
-
local_var_path = "/invoices/import"
|
|
2506
|
+
local_var_path = "/invoices/import"
|
|
2600
2507
|
|
|
2601
2508
|
# query parameters
|
|
2602
2509
|
query_params = {}
|
|
2603
2510
|
|
|
2604
2511
|
# header parameters
|
|
2605
2512
|
header_params = {}
|
|
2606
|
-
|
|
2607
2513
|
# HTTP header 'Accept' (if needed)
|
|
2608
|
-
|
|
2609
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2610
|
-
|
|
2514
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
2611
2515
|
# HTTP header 'Content-Type'
|
|
2612
|
-
|
|
2613
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2516
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
|
2614
2517
|
|
|
2615
2518
|
# form parameters
|
|
2616
2519
|
form_params = {}
|
|
@@ -2653,25 +2556,25 @@ module Bfwd
|
|
|
2653
2556
|
@api_client.config.logger.debug "Calling API: InvoicesApi.recalculate_invoice ..."
|
|
2654
2557
|
end
|
|
2655
2558
|
# verify the required parameter 'invoice_id' is set
|
|
2656
|
-
|
|
2559
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
2560
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.recalculate_invoice"
|
|
2561
|
+
end
|
|
2657
2562
|
# verify the required parameter 'request' is set
|
|
2658
|
-
|
|
2563
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
2564
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling InvoicesApi.recalculate_invoice"
|
|
2565
|
+
end
|
|
2659
2566
|
# resource path
|
|
2660
|
-
local_var_path = "/invoices/{invoice-ID}/recalculate".sub('{
|
|
2567
|
+
local_var_path = "/invoices/{invoice-ID}/recalculate".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
|
|
2661
2568
|
|
|
2662
2569
|
# query parameters
|
|
2663
2570
|
query_params = {}
|
|
2664
2571
|
|
|
2665
2572
|
# header parameters
|
|
2666
2573
|
header_params = {}
|
|
2667
|
-
|
|
2668
2574
|
# HTTP header 'Accept' (if needed)
|
|
2669
|
-
|
|
2670
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2671
|
-
|
|
2575
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
2672
2576
|
# HTTP header 'Content-Type'
|
|
2673
|
-
|
|
2674
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2577
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
|
2675
2578
|
|
|
2676
2579
|
# form parameters
|
|
2677
2580
|
form_params = {}
|
|
@@ -2716,11 +2619,15 @@ module Bfwd
|
|
|
2716
2619
|
@api_client.config.logger.debug "Calling API: InvoicesApi.remove_charge_from_invoice ..."
|
|
2717
2620
|
end
|
|
2718
2621
|
# verify the required parameter 'invoice_id' is set
|
|
2719
|
-
|
|
2622
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
2623
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.remove_charge_from_invoice"
|
|
2624
|
+
end
|
|
2720
2625
|
# verify the required parameter 'charge_id' is set
|
|
2721
|
-
|
|
2626
|
+
if @api_client.config.client_side_validation && charge_id.nil?
|
|
2627
|
+
fail ArgumentError, "Missing the required parameter 'charge_id' when calling InvoicesApi.remove_charge_from_invoice"
|
|
2628
|
+
end
|
|
2722
2629
|
# resource path
|
|
2723
|
-
local_var_path = "/invoices/{invoice-ID}/charges/{charge-ID}".sub('{
|
|
2630
|
+
local_var_path = "/invoices/{invoice-ID}/charges/{charge-ID}".sub('{' + 'invoice-ID' + '}', invoice_id.to_s).sub('{' + 'charge-ID' + '}', charge_id.to_s)
|
|
2724
2631
|
|
|
2725
2632
|
# query parameters
|
|
2726
2633
|
query_params = {}
|
|
@@ -2728,14 +2635,10 @@ module Bfwd
|
|
|
2728
2635
|
|
|
2729
2636
|
# header parameters
|
|
2730
2637
|
header_params = {}
|
|
2731
|
-
|
|
2732
2638
|
# HTTP header 'Accept' (if needed)
|
|
2733
|
-
|
|
2734
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2735
|
-
|
|
2639
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
2736
2640
|
# HTTP header 'Content-Type'
|
|
2737
|
-
|
|
2738
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2641
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
2739
2642
|
|
|
2740
2643
|
# form parameters
|
|
2741
2644
|
form_params = {}
|
|
@@ -2778,9 +2681,11 @@ module Bfwd
|
|
|
2778
2681
|
@api_client.config.logger.debug "Calling API: InvoicesApi.remove_metadata_from_invoice ..."
|
|
2779
2682
|
end
|
|
2780
2683
|
# verify the required parameter 'invoice_id' is set
|
|
2781
|
-
|
|
2684
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
2685
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.remove_metadata_from_invoice"
|
|
2686
|
+
end
|
|
2782
2687
|
# resource path
|
|
2783
|
-
local_var_path = "/invoices/{invoice-ID}/metadata".sub('{
|
|
2688
|
+
local_var_path = "/invoices/{invoice-ID}/metadata".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
|
|
2784
2689
|
|
|
2785
2690
|
# query parameters
|
|
2786
2691
|
query_params = {}
|
|
@@ -2788,14 +2693,10 @@ module Bfwd
|
|
|
2788
2693
|
|
|
2789
2694
|
# header parameters
|
|
2790
2695
|
header_params = {}
|
|
2791
|
-
|
|
2792
2696
|
# HTTP header 'Accept' (if needed)
|
|
2793
|
-
|
|
2794
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2795
|
-
|
|
2697
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
2796
2698
|
# HTTP header 'Content-Type'
|
|
2797
|
-
|
|
2798
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2699
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
2799
2700
|
|
|
2800
2701
|
# form parameters
|
|
2801
2702
|
form_params = {}
|
|
@@ -2840,11 +2741,15 @@ module Bfwd
|
|
|
2840
2741
|
@api_client.config.logger.debug "Calling API: InvoicesApi.set_metadata_for_invoice ..."
|
|
2841
2742
|
end
|
|
2842
2743
|
# verify the required parameter 'metadata' is set
|
|
2843
|
-
|
|
2744
|
+
if @api_client.config.client_side_validation && metadata.nil?
|
|
2745
|
+
fail ArgumentError, "Missing the required parameter 'metadata' when calling InvoicesApi.set_metadata_for_invoice"
|
|
2746
|
+
end
|
|
2844
2747
|
# verify the required parameter 'invoice_id' is set
|
|
2845
|
-
|
|
2748
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
2749
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.set_metadata_for_invoice"
|
|
2750
|
+
end
|
|
2846
2751
|
# resource path
|
|
2847
|
-
local_var_path = "/invoices/{invoice-ID}/metadata".sub('{
|
|
2752
|
+
local_var_path = "/invoices/{invoice-ID}/metadata".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
|
|
2848
2753
|
|
|
2849
2754
|
# query parameters
|
|
2850
2755
|
query_params = {}
|
|
@@ -2852,14 +2757,10 @@ module Bfwd
|
|
|
2852
2757
|
|
|
2853
2758
|
# header parameters
|
|
2854
2759
|
header_params = {}
|
|
2855
|
-
|
|
2856
2760
|
# HTTP header 'Accept' (if needed)
|
|
2857
|
-
|
|
2858
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2859
|
-
|
|
2761
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
2860
2762
|
# HTTP header 'Content-Type'
|
|
2861
|
-
|
|
2862
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2763
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
|
2863
2764
|
|
|
2864
2765
|
# form parameters
|
|
2865
2766
|
form_params = {}
|
|
@@ -2900,23 +2801,21 @@ module Bfwd
|
|
|
2900
2801
|
@api_client.config.logger.debug "Calling API: InvoicesApi.update_invoice ..."
|
|
2901
2802
|
end
|
|
2902
2803
|
# verify the required parameter 'invoice' is set
|
|
2903
|
-
|
|
2804
|
+
if @api_client.config.client_side_validation && invoice.nil?
|
|
2805
|
+
fail ArgumentError, "Missing the required parameter 'invoice' when calling InvoicesApi.update_invoice"
|
|
2806
|
+
end
|
|
2904
2807
|
# resource path
|
|
2905
|
-
local_var_path = "/invoices"
|
|
2808
|
+
local_var_path = "/invoices"
|
|
2906
2809
|
|
|
2907
2810
|
# query parameters
|
|
2908
2811
|
query_params = {}
|
|
2909
2812
|
|
|
2910
2813
|
# header parameters
|
|
2911
2814
|
header_params = {}
|
|
2912
|
-
|
|
2913
2815
|
# HTTP header 'Accept' (if needed)
|
|
2914
|
-
|
|
2915
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2916
|
-
|
|
2816
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
|
|
2917
2817
|
# HTTP header 'Content-Type'
|
|
2918
|
-
|
|
2919
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2818
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
|
2920
2819
|
|
|
2921
2820
|
# form parameters
|
|
2922
2821
|
form_params = {}
|
|
@@ -2961,11 +2860,15 @@ module Bfwd
|
|
|
2961
2860
|
@api_client.config.logger.debug "Calling API: InvoicesApi.upsert_metadata_for_invoice ..."
|
|
2962
2861
|
end
|
|
2963
2862
|
# verify the required parameter 'metadata' is set
|
|
2964
|
-
|
|
2863
|
+
if @api_client.config.client_side_validation && metadata.nil?
|
|
2864
|
+
fail ArgumentError, "Missing the required parameter 'metadata' when calling InvoicesApi.upsert_metadata_for_invoice"
|
|
2865
|
+
end
|
|
2965
2866
|
# verify the required parameter 'invoice_id' is set
|
|
2966
|
-
|
|
2867
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
2868
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.upsert_metadata_for_invoice"
|
|
2869
|
+
end
|
|
2967
2870
|
# resource path
|
|
2968
|
-
local_var_path = "/invoices/{invoice-ID}/metadata".sub('{
|
|
2871
|
+
local_var_path = "/invoices/{invoice-ID}/metadata".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
|
|
2969
2872
|
|
|
2970
2873
|
# query parameters
|
|
2971
2874
|
query_params = {}
|
|
@@ -2973,14 +2876,10 @@ module Bfwd
|
|
|
2973
2876
|
|
|
2974
2877
|
# header parameters
|
|
2975
2878
|
header_params = {}
|
|
2976
|
-
|
|
2977
2879
|
# HTTP header 'Accept' (if needed)
|
|
2978
|
-
|
|
2979
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
2980
|
-
|
|
2880
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
2981
2881
|
# HTTP header 'Content-Type'
|
|
2982
|
-
|
|
2983
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2882
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
|
2984
2883
|
|
|
2985
2884
|
# form parameters
|
|
2986
2885
|
form_params = {}
|
|
@@ -3023,11 +2922,15 @@ module Bfwd
|
|
|
3023
2922
|
@api_client.config.logger.debug "Calling API: InvoicesApi.void_invoice ..."
|
|
3024
2923
|
end
|
|
3025
2924
|
# verify the required parameter 'invoice_id' is set
|
|
3026
|
-
|
|
2925
|
+
if @api_client.config.client_side_validation && invoice_id.nil?
|
|
2926
|
+
fail ArgumentError, "Missing the required parameter 'invoice_id' when calling InvoicesApi.void_invoice"
|
|
2927
|
+
end
|
|
3027
2928
|
# verify the required parameter 'organizations' is set
|
|
3028
|
-
|
|
2929
|
+
if @api_client.config.client_side_validation && organizations.nil?
|
|
2930
|
+
fail ArgumentError, "Missing the required parameter 'organizations' when calling InvoicesApi.void_invoice"
|
|
2931
|
+
end
|
|
3029
2932
|
# resource path
|
|
3030
|
-
local_var_path = "/invoices/{invoice-ID}".sub('{
|
|
2933
|
+
local_var_path = "/invoices/{invoice-ID}".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
|
|
3031
2934
|
|
|
3032
2935
|
# query parameters
|
|
3033
2936
|
query_params = {}
|
|
@@ -3035,14 +2938,10 @@ module Bfwd
|
|
|
3035
2938
|
|
|
3036
2939
|
# header parameters
|
|
3037
2940
|
header_params = {}
|
|
3038
|
-
|
|
3039
2941
|
# HTTP header 'Accept' (if needed)
|
|
3040
|
-
|
|
3041
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
|
3042
|
-
|
|
2942
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
3043
2943
|
# HTTP header 'Content-Type'
|
|
3044
|
-
|
|
3045
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
|
2944
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain', 'application/json; charset=utf-8'])
|
|
3046
2945
|
|
|
3047
2946
|
# form parameters
|
|
3048
2947
|
form_params = {}
|