maxio-advanced-billing-sdk 6.1.0 → 7.0.1
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/README.md +78 -65
- data/lib/advanced_billing/api_helper.rb +2 -2
- data/lib/advanced_billing/client.rb +5 -5
- data/lib/advanced_billing/configuration.rb +13 -10
- data/lib/advanced_billing/controllers/advance_invoice_controller.rb +12 -10
- data/lib/advanced_billing/controllers/api_exports_controller.rb +20 -20
- data/lib/advanced_billing/controllers/base_controller.rb +4 -10
- data/lib/advanced_billing/controllers/billing_portal_controller.rb +10 -10
- data/lib/advanced_billing/controllers/component_price_points_controller.rb +35 -34
- data/lib/advanced_billing/controllers/components_controller.rb +42 -36
- data/lib/advanced_billing/controllers/coupons_controller.rb +43 -38
- data/lib/advanced_billing/controllers/custom_fields_controller.rb +29 -25
- data/lib/advanced_billing/controllers/customers_controller.rb +22 -20
- data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +22 -18
- data/lib/advanced_billing/controllers/events_controller.rb +8 -8
- data/lib/advanced_billing/controllers/insights_controller.rb +11 -11
- data/lib/advanced_billing/controllers/invoices_controller.rb +59 -92
- data/lib/advanced_billing/controllers/offers_controller.rb +14 -13
- data/lib/advanced_billing/controllers/payment_profiles_controller.rb +42 -40
- data/lib/advanced_billing/controllers/product_families_controller.rb +15 -14
- data/lib/advanced_billing/controllers/product_price_points_controller.rb +33 -32
- data/lib/advanced_billing/controllers/products_controller.rb +18 -16
- data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +26 -23
- data/lib/advanced_billing/controllers/reason_codes_controller.rb +18 -16
- data/lib/advanced_billing/controllers/referral_codes_controller.rb +4 -4
- data/lib/advanced_billing/controllers/sales_commissions_controller.rb +8 -8
- data/lib/advanced_billing/controllers/sites_controller.rb +8 -8
- data/lib/advanced_billing/controllers/subscription_components_controller.rb +84 -59
- data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +16 -14
- data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +14 -14
- data/lib/advanced_billing/controllers/subscription_groups_controller.rb +28 -27
- data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +68 -18
- data/lib/advanced_billing/controllers/subscription_notes_controller.rb +16 -14
- data/lib/advanced_billing/controllers/subscription_products_controller.rb +8 -8
- data/lib/advanced_billing/controllers/subscription_status_controller.rb +34 -28
- data/lib/advanced_billing/controllers/subscriptions_controller.rb +66 -93
- data/lib/advanced_billing/controllers/webhooks_controller.rb +45 -66
- data/lib/advanced_billing/exceptions/api_exception.rb +2 -2
- data/lib/advanced_billing/exceptions/component_allocation_error_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/component_price_point_error_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/customer_error_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/error_array_map_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/error_list_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/error_string_map_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/single_error_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/single_string_error_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/subscription_response_error_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb +7 -5
- data/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb +7 -5
- data/lib/advanced_billing/http/auth/basic_auth.rb +2 -2
- data/lib/advanced_billing/http/http_call_back.rb +2 -2
- data/lib/advanced_billing/http/http_method_enum.rb +2 -2
- data/lib/advanced_billing/http/http_request.rb +2 -2
- data/lib/advanced_billing/http/http_response.rb +2 -2
- data/lib/advanced_billing/http/proxy_settings.rb +13 -0
- data/lib/advanced_billing/models/account_balance.rb +2 -2
- data/lib/advanced_billing/models/account_balances.rb +2 -2
- data/lib/advanced_billing/models/ach_agreement.rb +2 -2
- data/lib/advanced_billing/models/activate_event_based_component.rb +2 -2
- data/lib/advanced_billing/models/activate_subscription_request.rb +2 -2
- data/lib/advanced_billing/models/add_coupons_request.rb +2 -2
- data/lib/advanced_billing/models/add_subscription_to_a_group.rb +2 -2
- data/lib/advanced_billing/models/address_change.rb +2 -2
- data/lib/advanced_billing/models/agreement_acceptance.rb +2 -2
- data/lib/advanced_billing/models/all_vaults.rb +2 -2
- data/lib/advanced_billing/models/allocate_components.rb +2 -2
- data/lib/advanced_billing/models/allocation.rb +2 -2
- data/lib/advanced_billing/models/allocation_expiration_date.rb +2 -2
- data/lib/advanced_billing/models/allocation_preview.rb +2 -2
- data/lib/advanced_billing/models/allocation_preview_direction.rb +2 -2
- data/lib/advanced_billing/models/allocation_preview_item.rb +2 -2
- data/lib/advanced_billing/models/allocation_preview_line_item.rb +2 -2
- data/lib/advanced_billing/models/allocation_preview_line_item_kind.rb +2 -2
- data/lib/advanced_billing/models/allocation_preview_response.rb +2 -2
- data/lib/advanced_billing/models/allocation_response.rb +2 -2
- data/lib/advanced_billing/models/allocation_settings.rb +2 -2
- data/lib/advanced_billing/models/apple_pay_payment_profile.rb +43 -5
- data/lib/advanced_billing/models/apple_pay_vault.rb +2 -2
- data/lib/advanced_billing/models/applied_credit_note_data.rb +2 -2
- data/lib/advanced_billing/models/apply_credit_note_event.rb +2 -2
- data/lib/advanced_billing/models/apply_credit_note_event_data.rb +2 -2
- data/lib/advanced_billing/models/apply_debit_note_event.rb +2 -2
- data/lib/advanced_billing/models/apply_debit_note_event_data.rb +2 -2
- data/lib/advanced_billing/models/apply_payment_event.rb +2 -2
- data/lib/advanced_billing/models/apply_payment_event_data.rb +2 -2
- data/lib/advanced_billing/models/attribute_error.rb +2 -2
- data/lib/advanced_billing/models/auto_invite.rb +2 -2
- data/lib/advanced_billing/models/auto_resume.rb +2 -2
- data/lib/advanced_billing/models/backport_invoice_event.rb +2 -2
- data/lib/advanced_billing/models/bank_account_attributes.rb +2 -2
- data/lib/advanced_billing/models/bank_account_holder_type.rb +2 -2
- data/lib/advanced_billing/models/bank_account_payment_profile.rb +42 -5
- data/lib/advanced_billing/models/bank_account_response.rb +2 -2
- data/lib/advanced_billing/models/bank_account_type.rb +2 -2
- data/lib/advanced_billing/models/bank_account_vault.rb +2 -2
- data/lib/advanced_billing/models/bank_account_verification.rb +2 -2
- data/lib/advanced_billing/models/bank_account_verification_request.rb +2 -2
- data/lib/advanced_billing/models/base_model.rb +2 -2
- data/lib/advanced_billing/models/base_refund_error.rb +2 -2
- data/lib/advanced_billing/models/base_string_error.rb +2 -2
- data/lib/advanced_billing/models/basic_date_field.rb +2 -2
- data/lib/advanced_billing/models/batch_job.rb +2 -2
- data/lib/advanced_billing/models/batch_job_response.rb +2 -2
- data/lib/advanced_billing/models/billing_manifest.rb +2 -2
- data/lib/advanced_billing/models/billing_manifest_item.rb +2 -2
- data/lib/advanced_billing/models/billing_manifest_line_item_kind.rb +2 -2
- data/lib/advanced_billing/models/billing_schedule.rb +2 -2
- data/lib/advanced_billing/models/breakouts.rb +2 -2
- data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +2 -2
- data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +2 -2
- data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +2 -2
- data/lib/advanced_billing/models/bulk_create_segments.rb +2 -2
- data/lib/advanced_billing/models/bulk_update_segments.rb +2 -2
- data/lib/advanced_billing/models/bulk_update_segments_item.rb +2 -2
- data/lib/advanced_billing/models/calendar_billing.rb +2 -2
- data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +2 -2
- data/lib/advanced_billing/models/cancellation_method.rb +2 -2
- data/lib/advanced_billing/models/cancellation_options.rb +2 -2
- data/lib/advanced_billing/models/cancellation_request.rb +2 -2
- data/lib/advanced_billing/models/card_type.rb +2 -2
- data/lib/advanced_billing/models/change_chargeback_status_event.rb +2 -2
- data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +2 -2
- data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +2 -2
- data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +2 -2
- data/lib/advanced_billing/models/change_invoice_status_event.rb +2 -2
- data/lib/advanced_billing/models/change_invoice_status_event_data.rb +2 -2
- data/lib/advanced_billing/models/chargeback_status.rb +2 -2
- data/lib/advanced_billing/models/chargify_ebb.rb +2 -2
- data/lib/advanced_billing/models/cleanup_scope.rb +2 -2
- data/lib/advanced_billing/models/collection_method.rb +2 -2
- data/lib/advanced_billing/models/component.rb +25 -12
- data/lib/advanced_billing/models/component_allocation_change.rb +2 -2
- data/lib/advanced_billing/models/component_allocation_error_item.rb +2 -2
- data/lib/advanced_billing/models/component_cost_data.rb +2 -2
- data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +2 -2
- data/lib/advanced_billing/models/component_currency_price.rb +2 -2
- data/lib/advanced_billing/models/component_currency_prices_response.rb +2 -2
- data/lib/advanced_billing/models/component_custom_price.rb +2 -2
- data/lib/advanced_billing/models/component_kind.rb +2 -2
- data/lib/advanced_billing/models/component_price.rb +2 -2
- data/lib/advanced_billing/models/component_price_point.rb +2 -2
- data/lib/advanced_billing/models/component_price_point_assignment.rb +2 -2
- data/lib/advanced_billing/models/component_price_point_error_item.rb +2 -2
- data/lib/advanced_billing/models/component_price_point_item.rb +2 -2
- data/lib/advanced_billing/models/component_price_point_response.rb +2 -2
- data/lib/advanced_billing/models/component_price_points_response.rb +2 -2
- data/lib/advanced_billing/models/component_response.rb +2 -2
- data/lib/advanced_billing/models/compounding_strategy.rb +2 -2
- data/lib/advanced_billing/models/consolidated_invoice.rb +2 -2
- data/lib/advanced_billing/models/count_response.rb +2 -2
- data/lib/advanced_billing/models/coupon.rb +2 -2
- data/lib/advanced_billing/models/coupon_currency.rb +2 -2
- data/lib/advanced_billing/models/coupon_currency_request.rb +2 -2
- data/lib/advanced_billing/models/coupon_currency_response.rb +2 -2
- data/lib/advanced_billing/models/coupon_payload.rb +2 -2
- data/lib/advanced_billing/models/coupon_request.rb +8 -6
- data/lib/advanced_billing/models/coupon_response.rb +2 -2
- data/lib/advanced_billing/models/coupon_restriction.rb +2 -2
- data/lib/advanced_billing/models/coupon_subcodes.rb +2 -2
- data/lib/advanced_billing/models/coupon_subcodes_response.rb +2 -2
- data/lib/advanced_billing/models/coupon_usage.rb +2 -2
- data/lib/advanced_billing/models/create_allocation.rb +2 -2
- data/lib/advanced_billing/models/create_allocation_request.rb +2 -2
- data/lib/advanced_billing/models/create_component_price_point.rb +2 -2
- data/lib/advanced_billing/models/create_component_price_point_request.rb +2 -2
- data/lib/advanced_billing/models/create_component_price_points_request.rb +2 -2
- data/lib/advanced_billing/models/create_credit_note_event.rb +2 -2
- data/lib/advanced_billing/models/create_currency_price.rb +2 -2
- data/lib/advanced_billing/models/create_currency_prices_request.rb +2 -2
- data/lib/advanced_billing/models/create_customer.rb +2 -2
- data/lib/advanced_billing/models/create_customer_request.rb +2 -2
- data/lib/advanced_billing/models/create_debit_note_event.rb +2 -2
- data/lib/advanced_billing/models/create_ebb_component.rb +2 -2
- data/lib/advanced_billing/models/create_invoice.rb +2 -2
- data/lib/advanced_billing/models/create_invoice_address.rb +2 -2
- data/lib/advanced_billing/models/create_invoice_coupon.rb +2 -2
- data/lib/advanced_billing/models/create_invoice_item.rb +2 -2
- data/lib/advanced_billing/models/create_invoice_payment.rb +2 -2
- data/lib/advanced_billing/models/create_invoice_payment_application.rb +2 -2
- data/lib/advanced_billing/models/create_invoice_payment_request.rb +2 -2
- data/lib/advanced_billing/models/create_invoice_request.rb +2 -2
- data/lib/advanced_billing/models/create_invoice_status.rb +2 -2
- data/lib/advanced_billing/models/create_metadata.rb +2 -2
- data/lib/advanced_billing/models/create_metadata_request.rb +2 -2
- data/lib/advanced_billing/models/create_metafield.rb +2 -2
- data/lib/advanced_billing/models/create_metafields_request.rb +2 -2
- data/lib/advanced_billing/models/create_metered_component.rb +2 -2
- data/lib/advanced_billing/models/create_multi_invoice_payment.rb +2 -2
- data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +2 -2
- data/lib/advanced_billing/models/create_offer.rb +2 -2
- data/lib/advanced_billing/models/create_offer_component.rb +2 -2
- data/lib/advanced_billing/models/create_offer_request.rb +2 -2
- data/lib/advanced_billing/models/create_on_off_component.rb +2 -2
- data/lib/advanced_billing/models/create_or_update_endpoint.rb +2 -2
- data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +2 -2
- data/lib/advanced_billing/models/create_or_update_product.rb +2 -2
- data/lib/advanced_billing/models/create_or_update_product_request.rb +2 -2
- data/lib/advanced_billing/models/create_or_update_segment_price.rb +2 -2
- data/lib/advanced_billing/models/create_payment.rb +2 -2
- data/lib/advanced_billing/models/create_payment_profile.rb +2 -2
- data/lib/advanced_billing/models/create_payment_profile_request.rb +2 -2
- data/lib/advanced_billing/models/create_prepaid_component.rb +2 -2
- data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +2 -2
- data/lib/advanced_billing/models/create_prepayment.rb +2 -2
- data/lib/advanced_billing/models/create_prepayment_method.rb +2 -2
- data/lib/advanced_billing/models/create_prepayment_request.rb +2 -2
- data/lib/advanced_billing/models/create_prepayment_response.rb +2 -2
- data/lib/advanced_billing/models/create_product_currency_price.rb +2 -2
- data/lib/advanced_billing/models/create_product_currency_prices_request.rb +2 -2
- data/lib/advanced_billing/models/create_product_family.rb +2 -2
- data/lib/advanced_billing/models/create_product_family_request.rb +2 -2
- data/lib/advanced_billing/models/create_product_price_point.rb +2 -2
- data/lib/advanced_billing/models/create_product_price_point_request.rb +2 -2
- data/lib/advanced_billing/models/create_quantity_based_component.rb +2 -2
- data/lib/advanced_billing/models/create_reason_code.rb +2 -2
- data/lib/advanced_billing/models/create_reason_code_request.rb +2 -2
- data/lib/advanced_billing/models/create_segment.rb +2 -2
- data/lib/advanced_billing/models/create_segment_request.rb +2 -2
- data/lib/advanced_billing/models/create_signup_proforma_preview_include.rb +2 -2
- data/lib/advanced_billing/models/create_subscription.rb +43 -25
- data/lib/advanced_billing/models/create_subscription_component.rb +2 -2
- data/lib/advanced_billing/models/create_subscription_group.rb +2 -2
- data/lib/advanced_billing/models/create_subscription_group_request.rb +2 -2
- data/lib/advanced_billing/models/create_subscription_request.rb +2 -2
- data/lib/advanced_billing/models/create_usage.rb +2 -2
- data/lib/advanced_billing/models/create_usage_request.rb +2 -2
- data/lib/advanced_billing/models/created_prepayment.rb +2 -2
- data/lib/advanced_billing/models/credit_account_balance_changed.rb +2 -2
- data/lib/advanced_billing/models/credit_card_attributes.rb +2 -2
- data/lib/advanced_billing/models/credit_card_payment_profile.rb +43 -5
- data/lib/advanced_billing/models/credit_card_vault.rb +2 -2
- data/lib/advanced_billing/models/credit_note.rb +2 -2
- data/lib/advanced_billing/models/credit_note_application.rb +2 -2
- data/lib/advanced_billing/models/credit_note_line_item.rb +2 -2
- data/lib/advanced_billing/models/credit_note_status.rb +2 -2
- data/lib/advanced_billing/models/credit_scheme.rb +2 -2
- data/lib/advanced_billing/models/credit_scheme_request.rb +2 -2
- data/lib/advanced_billing/models/credit_type.rb +2 -2
- data/lib/advanced_billing/models/currency_price.rb +2 -2
- data/lib/advanced_billing/models/currency_price_role.rb +2 -2
- data/lib/advanced_billing/models/currency_prices_response.rb +2 -2
- data/lib/advanced_billing/models/custom_field_owner.rb +2 -2
- data/lib/advanced_billing/models/custom_field_value_change.rb +2 -2
- data/lib/advanced_billing/models/customer.rb +2 -2
- data/lib/advanced_billing/models/customer_attributes.rb +2 -2
- data/lib/advanced_billing/models/customer_change.rb +2 -2
- data/lib/advanced_billing/models/customer_changes_preview_response.rb +2 -2
- data/lib/advanced_billing/models/customer_custom_fields_change.rb +2 -2
- data/lib/advanced_billing/models/customer_error.rb +2 -2
- data/lib/advanced_billing/models/customer_payer_change.rb +2 -2
- data/lib/advanced_billing/models/customer_response.rb +2 -2
- data/lib/advanced_billing/models/debit_note.rb +2 -2
- data/lib/advanced_billing/models/debit_note_role.rb +2 -2
- data/lib/advanced_billing/models/debit_note_status.rb +2 -2
- data/lib/advanced_billing/models/deduct_service_credit.rb +2 -2
- data/lib/advanced_billing/models/deduct_service_credit_request.rb +2 -2
- data/lib/advanced_billing/models/delayed_cancellation_response.rb +2 -2
- data/lib/advanced_billing/models/delete_subscription_group_response.rb +2 -2
- data/lib/advanced_billing/models/direction.rb +2 -2
- data/lib/advanced_billing/models/discount_type.rb +2 -2
- data/lib/advanced_billing/models/dunner_data.rb +2 -2
- data/lib/advanced_billing/models/dunning_step_data.rb +2 -2
- data/lib/advanced_billing/models/dunning_step_reached.rb +2 -2
- data/lib/advanced_billing/models/ebb_component.rb +2 -2
- data/lib/advanced_billing/models/ebb_event.rb +2 -2
- data/lib/advanced_billing/models/enable_webhooks_request.rb +2 -2
- data/lib/advanced_billing/models/enable_webhooks_response.rb +2 -2
- data/lib/advanced_billing/models/endpoint.rb +2 -2
- data/lib/advanced_billing/models/endpoint_response.rb +2 -2
- data/lib/advanced_billing/models/errors.rb +2 -2
- data/lib/advanced_billing/models/event.rb +2 -2
- data/lib/advanced_billing/models/event_based_billing_segment_error.rb +2 -2
- data/lib/advanced_billing/models/event_key.rb +2 -2
- data/lib/advanced_billing/models/event_response.rb +2 -2
- data/lib/advanced_billing/models/expiration_interval_unit.rb +2 -2
- data/lib/advanced_billing/models/failed_payment_action.rb +2 -2
- data/lib/advanced_billing/models/failed_payment_event.rb +2 -2
- data/lib/advanced_billing/models/failed_payment_event_data.rb +2 -2
- data/lib/advanced_billing/models/first_charge_type.rb +2 -2
- data/lib/advanced_billing/models/full_subscription_group_response.rb +2 -2
- data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +2 -2
- data/lib/advanced_billing/models/get_one_time_token_request.rb +2 -2
- data/lib/advanced_billing/models/group_billing.rb +2 -2
- data/lib/advanced_billing/models/group_settings.rb +2 -2
- data/lib/advanced_billing/models/group_target.rb +2 -2
- data/lib/advanced_billing/models/group_target_type.rb +2 -2
- data/lib/advanced_billing/models/group_type.rb +2 -2
- data/lib/advanced_billing/models/historic_usage.rb +2 -2
- data/lib/advanced_billing/models/include_not_null.rb +2 -2
- data/lib/advanced_billing/models/include_null_or_not_null.rb +2 -2
- data/lib/advanced_billing/models/include_option.rb +2 -2
- data/lib/advanced_billing/models/interval_unit.rb +2 -2
- data/lib/advanced_billing/models/invoice.rb +2 -2
- data/lib/advanced_billing/models/invoice_address.rb +2 -2
- data/lib/advanced_billing/models/invoice_avatax_details.rb +2 -2
- data/lib/advanced_billing/models/invoice_balance_item.rb +2 -2
- data/lib/advanced_billing/models/invoice_consolidation_level.rb +2 -2
- data/lib/advanced_billing/models/invoice_credit.rb +2 -2
- data/lib/advanced_billing/models/invoice_custom_field.rb +2 -2
- data/lib/advanced_billing/models/invoice_customer.rb +2 -2
- data/lib/advanced_billing/models/invoice_date_field.rb +2 -2
- data/lib/advanced_billing/models/invoice_debit.rb +2 -2
- data/lib/advanced_billing/models/invoice_discount.rb +2 -2
- data/lib/advanced_billing/models/invoice_discount_breakout.rb +2 -2
- data/lib/advanced_billing/models/invoice_discount_source_type.rb +2 -2
- data/lib/advanced_billing/models/invoice_discount_type.rb +2 -2
- data/lib/advanced_billing/models/invoice_display_settings.rb +2 -2
- data/lib/advanced_billing/models/invoice_event_payment_method.rb +2 -2
- data/lib/advanced_billing/models/invoice_event_type.rb +2 -2
- data/lib/advanced_billing/models/invoice_issued.rb +2 -2
- data/lib/advanced_billing/models/invoice_line_item.rb +2 -2
- data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +2 -2
- data/lib/advanced_billing/models/invoice_line_item_event_data.rb +2 -2
- data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +2 -2
- data/lib/advanced_billing/models/invoice_payer.rb +2 -2
- data/lib/advanced_billing/models/invoice_payer_change.rb +2 -2
- data/lib/advanced_billing/models/invoice_payment.rb +2 -2
- data/lib/advanced_billing/models/invoice_payment_application.rb +2 -2
- data/lib/advanced_billing/models/invoice_payment_method.rb +2 -2
- data/lib/advanced_billing/models/invoice_payment_method_type.rb +2 -2
- data/lib/advanced_billing/models/invoice_payment_type.rb +2 -2
- data/lib/advanced_billing/models/invoice_pre_payment.rb +2 -2
- data/lib/advanced_billing/models/invoice_previous_balance.rb +2 -2
- data/lib/advanced_billing/models/invoice_refund.rb +2 -2
- data/lib/advanced_billing/models/invoice_response.rb +2 -2
- data/lib/advanced_billing/models/invoice_role.rb +2 -2
- data/lib/advanced_billing/models/invoice_seller.rb +2 -2
- data/lib/advanced_billing/models/invoice_sort_field.rb +2 -2
- data/lib/advanced_billing/models/invoice_status.rb +2 -2
- data/lib/advanced_billing/models/invoice_tax.rb +2 -2
- data/lib/advanced_billing/models/invoice_tax_breakout.rb +2 -2
- data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +2 -2
- data/lib/advanced_billing/models/issue_advance_invoice_request.rb +2 -2
- data/lib/advanced_billing/models/issue_invoice_event.rb +2 -2
- data/lib/advanced_billing/models/issue_invoice_event_data.rb +2 -2
- data/lib/advanced_billing/models/issue_invoice_request.rb +2 -2
- data/lib/advanced_billing/models/issue_service_credit.rb +2 -2
- data/lib/advanced_billing/models/issue_service_credit_request.rb +2 -2
- data/lib/advanced_billing/models/item_category.rb +2 -2
- data/lib/advanced_billing/models/item_price_point_changed.rb +2 -2
- data/lib/advanced_billing/models/item_price_point_data.rb +2 -2
- data/lib/advanced_billing/models/line_item_kind.rb +2 -2
- data/lib/advanced_billing/models/line_item_transaction_type.rb +2 -2
- data/lib/advanced_billing/models/list_components_filter.rb +2 -2
- data/lib/advanced_billing/models/list_components_price_points_include.rb +2 -2
- data/lib/advanced_billing/models/list_components_price_points_response.rb +2 -2
- data/lib/advanced_billing/models/list_coupons_filter.rb +2 -2
- data/lib/advanced_billing/models/list_credit_notes_response.rb +2 -2
- data/lib/advanced_billing/models/list_events_date_field.rb +2 -2
- data/lib/advanced_billing/models/list_invoice_events_response.rb +2 -2
- data/lib/advanced_billing/models/list_invoices_response.rb +2 -2
- data/lib/advanced_billing/models/list_metafields_response.rb +2 -2
- data/lib/advanced_billing/models/list_mrr_filter.rb +2 -2
- data/lib/advanced_billing/models/list_mrr_response.rb +2 -2
- data/lib/advanced_billing/models/list_mrr_response_result.rb +2 -2
- data/lib/advanced_billing/models/list_offers_response.rb +2 -2
- data/lib/advanced_billing/models/list_prepayment_date_field.rb +2 -2
- data/lib/advanced_billing/models/list_prepayments_filter.rb +2 -2
- data/lib/advanced_billing/models/list_price_points_filter.rb +2 -2
- data/lib/advanced_billing/models/list_product_price_points_response.rb +2 -2
- data/lib/advanced_billing/models/list_products_filter.rb +2 -2
- data/lib/advanced_billing/models/list_products_include.rb +2 -2
- data/lib/advanced_billing/models/list_products_price_points_include.rb +2 -2
- data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +2 -2
- data/lib/advanced_billing/models/list_proforma_invoices_response.rb +2 -2
- data/lib/advanced_billing/models/list_public_keys_meta.rb +2 -2
- data/lib/advanced_billing/models/list_public_keys_response.rb +2 -2
- data/lib/advanced_billing/models/list_sale_rep_item.rb +2 -2
- data/lib/advanced_billing/models/list_segments_filter.rb +2 -2
- data/lib/advanced_billing/models/list_segments_response.rb +2 -2
- data/lib/advanced_billing/models/list_service_credits_response.rb +82 -0
- data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_components_filter.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_components_include.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_components_response.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_components_sort.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_groups_item.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_groups_meta.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_groups_response.rb +2 -2
- data/lib/advanced_billing/models/metadata.rb +2 -2
- data/lib/advanced_billing/models/metafield.rb +2 -2
- data/lib/advanced_billing/models/metafield_input.rb +2 -2
- data/lib/advanced_billing/models/metafield_scope.rb +2 -2
- data/lib/advanced_billing/models/metered_component.rb +2 -2
- data/lib/advanced_billing/models/metered_usage.rb +2 -2
- data/lib/advanced_billing/models/movement.rb +2 -2
- data/lib/advanced_billing/models/movement_line_item.rb +2 -2
- data/lib/advanced_billing/models/mrr.rb +2 -2
- data/lib/advanced_billing/models/mrr_movement.rb +2 -2
- data/lib/advanced_billing/models/mrr_response.rb +2 -2
- data/lib/advanced_billing/models/multi_invoice_payment.rb +2 -2
- data/lib/advanced_billing/models/multi_invoice_payment_response.rb +2 -2
- data/lib/advanced_billing/models/nested_subscription_group.rb +2 -2
- data/lib/advanced_billing/models/net_terms.rb +2 -2
- data/lib/advanced_billing/models/offer.rb +2 -2
- data/lib/advanced_billing/models/offer_discount.rb +2 -2
- data/lib/advanced_billing/models/offer_item.rb +2 -2
- data/lib/advanced_billing/models/offer_response.rb +2 -2
- data/lib/advanced_billing/models/offer_signup_page.rb +2 -2
- data/lib/advanced_billing/models/ok_response.rb +2 -2
- data/lib/advanced_billing/models/on_off_component.rb +2 -2
- data/lib/advanced_billing/models/organization_address.rb +2 -2
- data/lib/advanced_billing/models/origin_invoice.rb +2 -2
- data/lib/advanced_billing/models/overage_pricing.rb +2 -2
- data/lib/advanced_billing/models/override_subscription.rb +5 -3
- data/lib/advanced_billing/models/override_subscription_request.rb +2 -2
- data/lib/advanced_billing/models/paginated_metadata.rb +2 -2
- data/lib/advanced_billing/models/paid_invoice.rb +2 -2
- data/lib/advanced_billing/models/pause_request.rb +2 -2
- data/lib/advanced_billing/models/pay_pal_vault.rb +2 -2
- data/lib/advanced_billing/models/payer_attributes.rb +2 -2
- data/lib/advanced_billing/models/payer_error.rb +2 -2
- data/lib/advanced_billing/models/payment_collection_method_changed.rb +2 -2
- data/lib/advanced_billing/models/payment_for_allocation.rb +2 -2
- data/lib/advanced_billing/models/payment_method_apple_pay.rb +2 -2
- data/lib/advanced_billing/models/payment_method_bank_account.rb +2 -2
- data/lib/advanced_billing/models/payment_method_credit_card.rb +2 -2
- data/lib/advanced_billing/models/payment_method_external.rb +2 -2
- data/lib/advanced_billing/models/payment_method_paypal.rb +2 -2
- data/lib/advanced_billing/models/payment_profile_attributes.rb +2 -2
- data/lib/advanced_billing/models/payment_profile_response.rb +2 -2
- data/lib/advanced_billing/models/payment_related_events.rb +2 -2
- data/lib/advanced_billing/models/payment_type.rb +2 -2
- data/lib/advanced_billing/models/paypal_payment_profile.rb +43 -6
- data/lib/advanced_billing/models/pending_cancellation_change.rb +2 -2
- data/lib/advanced_billing/models/portal_management_link.rb +2 -2
- data/lib/advanced_billing/models/prepaid_configuration.rb +2 -2
- data/lib/advanced_billing/models/prepaid_configuration_response.rb +2 -2
- data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +2 -2
- data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +2 -2
- data/lib/advanced_billing/models/prepaid_usage.rb +2 -2
- data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +2 -2
- data/lib/advanced_billing/models/prepaid_usage_component.rb +2 -2
- data/lib/advanced_billing/models/prepayment.rb +2 -2
- data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +2 -2
- data/lib/advanced_billing/models/prepayment_method.rb +2 -2
- data/lib/advanced_billing/models/prepayment_response.rb +2 -2
- data/lib/advanced_billing/models/prepayments_response.rb +2 -2
- data/lib/advanced_billing/models/preview_allocations_request.rb +2 -2
- data/lib/advanced_billing/models/price.rb +2 -2
- data/lib/advanced_billing/models/price_point_type.rb +2 -2
- data/lib/advanced_billing/models/pricing_scheme.rb +2 -2
- data/lib/advanced_billing/models/product.rb +2 -2
- data/lib/advanced_billing/models/product_family.rb +2 -2
- data/lib/advanced_billing/models/product_family_response.rb +2 -2
- data/lib/advanced_billing/models/product_price_point.rb +2 -2
- data/lib/advanced_billing/models/product_price_point_errors.rb +2 -2
- data/lib/advanced_billing/models/product_price_point_response.rb +2 -2
- data/lib/advanced_billing/models/product_response.rb +2 -2
- data/lib/advanced_billing/models/proforma_error.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_credit.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_discount.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_discount_source_type.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_issued.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_payment.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_role.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_status.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_tax.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_tax_source_type.rb +2 -2
- data/lib/advanced_billing/models/proration.rb +2 -2
- data/lib/advanced_billing/models/public_key.rb +2 -2
- data/lib/advanced_billing/models/public_signup_page.rb +2 -2
- data/lib/advanced_billing/models/quantity_based_component.rb +2 -2
- data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +2 -2
- data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +2 -2
- data/lib/advanced_billing/models/reactivate_subscription_request.rb +2 -2
- data/lib/advanced_billing/models/reactivation_billing.rb +2 -2
- data/lib/advanced_billing/models/reactivation_charge.rb +2 -2
- data/lib/advanced_billing/models/reason_code.rb +2 -2
- data/lib/advanced_billing/models/reason_code_response.rb +2 -2
- data/lib/advanced_billing/models/record_payment_request.rb +2 -2
- data/lib/advanced_billing/models/record_payment_response.rb +2 -2
- data/lib/advanced_billing/models/recurring_scheme.rb +2 -2
- data/lib/advanced_billing/models/referral_code.rb +2 -2
- data/lib/advanced_billing/models/referral_validation_response.rb +2 -2
- data/lib/advanced_billing/models/refund_consolidated_invoice.rb +2 -2
- data/lib/advanced_billing/models/refund_invoice.rb +2 -2
- data/lib/advanced_billing/models/refund_invoice_event.rb +2 -2
- data/lib/advanced_billing/models/refund_invoice_event_data.rb +2 -2
- data/lib/advanced_billing/models/refund_invoice_request.rb +2 -2
- data/lib/advanced_billing/models/refund_prepayment.rb +2 -2
- data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +2 -2
- data/lib/advanced_billing/models/refund_prepayment_request.rb +2 -2
- data/lib/advanced_billing/models/refund_success.rb +2 -2
- data/lib/advanced_billing/models/remove_payment_event.rb +2 -2
- data/lib/advanced_billing/models/remove_payment_event_data.rb +2 -2
- data/lib/advanced_billing/models/renewal_preview.rb +2 -2
- data/lib/advanced_billing/models/renewal_preview_component.rb +2 -2
- data/lib/advanced_billing/models/renewal_preview_line_item.rb +2 -2
- data/lib/advanced_billing/models/renewal_preview_request.rb +2 -2
- data/lib/advanced_billing/models/renewal_preview_response.rb +2 -2
- data/lib/advanced_billing/models/replay_webhooks_request.rb +2 -2
- data/lib/advanced_billing/models/replay_webhooks_response.rb +2 -2
- data/lib/advanced_billing/models/resent_invitation.rb +2 -2
- data/lib/advanced_billing/models/resource_type.rb +2 -2
- data/lib/advanced_billing/models/restriction_type.rb +2 -2
- data/lib/advanced_billing/models/resume_options.rb +2 -2
- data/lib/advanced_billing/models/resumption_charge.rb +2 -2
- data/lib/advanced_billing/models/revoked_invitation.rb +2 -2
- data/lib/advanced_billing/models/sale_rep.rb +2 -2
- data/lib/advanced_billing/models/sale_rep_item_mrr.rb +2 -2
- data/lib/advanced_billing/models/sale_rep_settings.rb +2 -2
- data/lib/advanced_billing/models/sale_rep_subscription.rb +2 -2
- data/lib/advanced_billing/models/segment.rb +2 -2
- data/lib/advanced_billing/models/segment_price.rb +2 -2
- data/lib/advanced_billing/models/segment_response.rb +2 -2
- data/lib/advanced_billing/models/send_invoice_request.rb +2 -2
- data/lib/advanced_billing/models/service_credit.rb +2 -2
- data/lib/advanced_billing/models/service_credit1.rb +161 -0
- data/lib/advanced_billing/models/service_credit_response.rb +2 -2
- data/lib/advanced_billing/models/service_credit_type.rb +2 -2
- data/lib/advanced_billing/models/signup_proforma_preview.rb +2 -2
- data/lib/advanced_billing/models/signup_proforma_preview_response.rb +2 -2
- data/lib/advanced_billing/models/site.rb +2 -2
- data/lib/advanced_billing/models/site_response.rb +2 -2
- data/lib/advanced_billing/models/site_statistics.rb +2 -2
- data/lib/advanced_billing/models/site_summary.rb +2 -2
- data/lib/advanced_billing/models/snap_day.rb +2 -2
- data/lib/advanced_billing/models/sorting_direction.rb +2 -2
- data/lib/advanced_billing/models/subscription.rb +2 -2
- data/lib/advanced_billing/models/subscription_component.rb +2 -2
- data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +2 -2
- data/lib/advanced_billing/models/subscription_component_response.rb +2 -2
- data/lib/advanced_billing/models/subscription_component_subscription.rb +2 -2
- data/lib/advanced_billing/models/subscription_custom_price.rb +2 -2
- data/lib/advanced_billing/models/subscription_date_field.rb +2 -2
- data/lib/advanced_billing/models/subscription_filter.rb +2 -2
- data/lib/advanced_billing/models/subscription_group.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_balances.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_bank_account.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_credit_card.rb +63 -61
- data/lib/advanced_billing/models/subscription_group_customer.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_include.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_item.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_members_array_error.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_payment_profile.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_prepayment.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_method.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_response.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_signup.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_signup_component.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_signup_error.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_signup_event_data.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_signup_item.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_signup_request.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_signup_response.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_single_error.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_subscription_error.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_update_error.rb +2 -2
- data/lib/advanced_billing/models/subscription_groups_list_include.rb +2 -2
- data/lib/advanced_billing/models/subscription_include.rb +2 -2
- data/lib/advanced_billing/models/subscription_included_coupon.rb +2 -2
- data/lib/advanced_billing/models/subscription_list_date_field.rb +2 -2
- data/lib/advanced_billing/models/subscription_list_include.rb +2 -2
- data/lib/advanced_billing/models/subscription_migration_preview.rb +2 -2
- data/lib/advanced_billing/models/subscription_migration_preview_options.rb +2 -2
- data/lib/advanced_billing/models/subscription_migration_preview_request.rb +2 -2
- data/lib/advanced_billing/models/subscription_migration_preview_response.rb +2 -2
- data/lib/advanced_billing/models/subscription_mrr.rb +2 -2
- data/lib/advanced_billing/models/subscription_mrr_breakout.rb +2 -2
- data/lib/advanced_billing/models/subscription_mrr_response.rb +2 -2
- data/lib/advanced_billing/models/subscription_note.rb +2 -2
- data/lib/advanced_billing/models/subscription_note_response.rb +2 -2
- data/lib/advanced_billing/models/subscription_preview.rb +2 -2
- data/lib/advanced_billing/models/subscription_preview_response.rb +2 -2
- data/lib/advanced_billing/models/subscription_product_change.rb +2 -2
- data/lib/advanced_billing/models/subscription_product_migration.rb +2 -2
- data/lib/advanced_billing/models/subscription_product_migration_request.rb +2 -2
- data/lib/advanced_billing/models/subscription_purge_type.rb +2 -2
- data/lib/advanced_billing/models/subscription_response.rb +2 -2
- data/lib/advanced_billing/models/subscription_sort.rb +2 -2
- data/lib/advanced_billing/models/subscription_state.rb +2 -2
- data/lib/advanced_billing/models/subscription_state_change.rb +2 -2
- data/lib/advanced_billing/models/subscription_state_filter.rb +2 -2
- data/lib/advanced_billing/models/tax_configuration.rb +2 -2
- data/lib/advanced_billing/models/tax_configuration_kind.rb +2 -2
- data/lib/advanced_billing/models/tax_destination_address.rb +2 -2
- data/lib/advanced_billing/models/too_many_management_link_requests.rb +2 -2
- data/lib/advanced_billing/models/update_allocation_expiration_date.rb +2 -2
- data/lib/advanced_billing/models/update_component.rb +2 -2
- data/lib/advanced_billing/models/update_component_price_point.rb +2 -2
- data/lib/advanced_billing/models/update_component_price_point_request.rb +2 -2
- data/lib/advanced_billing/models/update_component_request.rb +2 -2
- data/lib/advanced_billing/models/update_coupon_currency.rb +2 -2
- data/lib/advanced_billing/models/update_currency_price.rb +2 -2
- data/lib/advanced_billing/models/update_currency_prices_request.rb +2 -2
- data/lib/advanced_billing/models/update_customer.rb +2 -2
- data/lib/advanced_billing/models/update_customer_request.rb +2 -2
- data/lib/advanced_billing/models/update_metadata.rb +2 -2
- data/lib/advanced_billing/models/update_metadata_request.rb +2 -2
- data/lib/advanced_billing/models/update_metafield.rb +2 -2
- data/lib/advanced_billing/models/update_metafields_request.rb +2 -2
- data/lib/advanced_billing/models/update_payment_profile.rb +2 -2
- data/lib/advanced_billing/models/update_payment_profile_request.rb +2 -2
- data/lib/advanced_billing/models/update_price.rb +2 -2
- data/lib/advanced_billing/models/update_product_price_point.rb +2 -2
- data/lib/advanced_billing/models/update_product_price_point_request.rb +2 -2
- data/lib/advanced_billing/models/update_reason_code.rb +2 -2
- data/lib/advanced_billing/models/update_reason_code_request.rb +2 -2
- data/lib/advanced_billing/models/update_segment.rb +2 -2
- data/lib/advanced_billing/models/update_segment_request.rb +2 -2
- data/lib/advanced_billing/models/update_subscription.rb +108 -27
- data/lib/advanced_billing/models/update_subscription_component.rb +2 -2
- data/lib/advanced_billing/models/update_subscription_group.rb +2 -2
- data/lib/advanced_billing/models/update_subscription_group_request.rb +2 -2
- data/lib/advanced_billing/models/update_subscription_note.rb +2 -2
- data/lib/advanced_billing/models/update_subscription_note_request.rb +2 -2
- data/lib/advanced_billing/models/update_subscription_request.rb +2 -2
- data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +2 -2
- data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +2 -2
- data/lib/advanced_billing/models/usage.rb +2 -2
- data/lib/advanced_billing/models/usage_response.rb +2 -2
- data/lib/advanced_billing/models/void_invoice.rb +2 -2
- data/lib/advanced_billing/models/void_invoice_event.rb +2 -2
- data/lib/advanced_billing/models/void_invoice_event_data.rb +2 -2
- data/lib/advanced_billing/models/void_invoice_request.rb +2 -2
- data/lib/advanced_billing/models/void_remainder_event.rb +2 -2
- data/lib/advanced_billing/models/void_remainder_event_data.rb +2 -2
- data/lib/advanced_billing/models/webhook.rb +2 -2
- data/lib/advanced_billing/models/webhook_order.rb +2 -2
- data/lib/advanced_billing/models/webhook_response.rb +2 -2
- data/lib/advanced_billing/models/webhook_status.rb +2 -2
- data/lib/advanced_billing/models/webhook_subscription.rb +2 -2
- data/lib/advanced_billing/utilities/date_time_helper.rb +2 -2
- data/lib/advanced_billing/utilities/file_wrapper.rb +2 -2
- data/lib/advanced_billing/utilities/union_type_lookup.rb +16 -2
- data/lib/advanced_billing.rb +6 -3
- metadata +11 -8
@@ -1,7 +1,7 @@
|
|
1
1
|
# advanced_billing
|
2
2
|
#
|
3
|
-
# This file was automatically generated
|
4
|
-
# ( https://apimatic.io ).
|
3
|
+
# This file was automatically generated for Maxio by
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
5
|
|
6
6
|
module AdvancedBilling
|
7
7
|
# ComponentPricePointsController
|
@@ -19,10 +19,10 @@ module AdvancedBilling
|
|
19
19
|
# of the component to which the price point belongs
|
20
20
|
# @param [Integer] price_point_id Required parameter: The Advanced Billing
|
21
21
|
# id of the price point
|
22
|
-
# @return [ComponentResponse]
|
22
|
+
# @return [ComponentResponse] Response from the API call.
|
23
23
|
def promote_component_price_point_to_default(component_id,
|
24
24
|
price_point_id)
|
25
|
-
|
25
|
+
@api_call
|
26
26
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
27
27
|
'/components/{component_id}/price_points/{price_point_id}/default.json',
|
28
28
|
Server::PRODUCTION)
|
@@ -40,16 +40,15 @@ module AdvancedBilling
|
|
40
40
|
.execute
|
41
41
|
end
|
42
42
|
|
43
|
-
#
|
44
|
-
# component.
|
43
|
+
# Creates a price point for an existing component.
|
45
44
|
# @param [Integer] component_id Required parameter: The Advanced Billing id
|
46
45
|
# of the component
|
47
|
-
# @param [CreateComponentPricePointRequest] body Optional parameter:
|
48
|
-
#
|
49
|
-
# @return [ComponentPricePointResponse]
|
46
|
+
# @param [CreateComponentPricePointRequest] body Optional parameter: TODO:
|
47
|
+
# type description here
|
48
|
+
# @return [ComponentPricePointResponse] Response from the API call.
|
50
49
|
def create_component_price_point(component_id,
|
51
50
|
body: nil)
|
52
|
-
|
51
|
+
@api_call
|
53
52
|
.request(new_request_builder(HttpMethodEnum::POST,
|
54
53
|
'/components/{component_id}/price_points.json',
|
55
54
|
Server::PRODUCTION)
|
@@ -99,9 +98,9 @@ module AdvancedBilling
|
|
99
98
|
# Use in query `per_page=200`.
|
100
99
|
# @param [Array[PricePointType]] filter_type Optional parameter: Use in
|
101
100
|
# query: `filter[type]=catalog,default`.
|
102
|
-
# @return [ComponentPricePointsResponse]
|
101
|
+
# @return [ComponentPricePointsResponse] Response from the API call.
|
103
102
|
def list_component_price_points(options = {})
|
104
|
-
|
103
|
+
@api_call
|
105
104
|
.request(new_request_builder(HttpMethodEnum::GET,
|
106
105
|
'/components/{component_id}/price_points.json',
|
107
106
|
Server::PRODUCTION)
|
@@ -125,12 +124,12 @@ module AdvancedBilling
|
|
125
124
|
# request.
|
126
125
|
# @param [String] component_id Required parameter: The Advanced Billing id
|
127
126
|
# of the component for which you want to fetch price points.
|
128
|
-
# @param [CreateComponentPricePointsRequest] body Optional parameter:
|
129
|
-
#
|
130
|
-
# @return [ComponentPricePointsResponse]
|
127
|
+
# @param [CreateComponentPricePointsRequest] body Optional parameter: TODO:
|
128
|
+
# type description here
|
129
|
+
# @return [ComponentPricePointsResponse] Response from the API call.
|
131
130
|
def bulk_create_component_price_points(component_id,
|
132
131
|
body: nil)
|
133
|
-
|
132
|
+
@api_call
|
134
133
|
.request(new_request_builder(HttpMethodEnum::POST,
|
135
134
|
'/components/{component_id}/price_points/bulk.json',
|
136
135
|
Server::PRODUCTION)
|
@@ -168,13 +167,13 @@ module AdvancedBilling
|
|
168
167
|
# handle of the price point. When using the handle, it must be prefixed with
|
169
168
|
# `handle:`. Example: `123` for an integer ID, or
|
170
169
|
# `handle:example-price_point-handle` for a string handle.
|
171
|
-
# @param [UpdateComponentPricePointRequest] body Optional parameter:
|
172
|
-
#
|
173
|
-
# @return [ComponentPricePointResponse]
|
170
|
+
# @param [UpdateComponentPricePointRequest] body Optional parameter: TODO:
|
171
|
+
# type description here
|
172
|
+
# @return [ComponentPricePointResponse] Response from the API call.
|
174
173
|
def update_component_price_point(component_id,
|
175
174
|
price_point_id,
|
176
175
|
body: nil)
|
177
|
-
|
176
|
+
@api_call
|
178
177
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
179
178
|
'/components/{component_id}/price_points/{price_point_id}.json',
|
180
179
|
Server::PRODUCTION)
|
@@ -220,11 +219,11 @@ module AdvancedBilling
|
|
220
219
|
# `handle:example-price_point-handle` for a string handle.
|
221
220
|
# @param [TrueClass | FalseClass] currency_prices Optional parameter:
|
222
221
|
# Include an array of currency price data
|
223
|
-
# @return [ComponentPricePointResponse]
|
222
|
+
# @return [ComponentPricePointResponse] Response from the API call.
|
224
223
|
def read_component_price_point(component_id,
|
225
224
|
price_point_id,
|
226
225
|
currency_prices: nil)
|
227
|
-
|
226
|
+
@api_call
|
228
227
|
.request(new_request_builder(HttpMethodEnum::GET,
|
229
228
|
'/components/{component_id}/price_points/{price_point_id}.json',
|
230
229
|
Server::PRODUCTION)
|
@@ -262,10 +261,10 @@ module AdvancedBilling
|
|
262
261
|
# handle of the price point. When using the handle, it must be prefixed with
|
263
262
|
# `handle:`. Example: `123` for an integer ID, or
|
264
263
|
# `handle:example-price_point-handle` for a string handle.
|
265
|
-
# @return [ComponentPricePointResponse]
|
264
|
+
# @return [ComponentPricePointResponse] Response from the API call.
|
266
265
|
def archive_component_price_point(component_id,
|
267
266
|
price_point_id)
|
268
|
-
|
267
|
+
@api_call
|
269
268
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
270
269
|
'/components/{component_id}/price_points/{price_point_id}.json',
|
271
270
|
Server::PRODUCTION)
|
@@ -300,10 +299,10 @@ module AdvancedBilling
|
|
300
299
|
# of the component to which the price point belongs
|
301
300
|
# @param [Integer] price_point_id Required parameter: The Advanced Billing
|
302
301
|
# id of the price point
|
303
|
-
# @return [ComponentPricePointResponse]
|
302
|
+
# @return [ComponentPricePointResponse] Response from the API call.
|
304
303
|
def unarchive_component_price_point(component_id,
|
305
304
|
price_point_id)
|
306
|
-
|
305
|
+
@api_call
|
307
306
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
308
307
|
'/components/{component_id}/price_points/{price_point_id}/unarchive.json',
|
309
308
|
Server::PRODUCTION)
|
@@ -330,11 +329,12 @@ module AdvancedBilling
|
|
330
329
|
# Note: Currency Prices are not able to be created for custom price points.
|
331
330
|
# @param [Integer] price_point_id Required parameter: The Advanced Billing
|
332
331
|
# id of the price point
|
333
|
-
# @param [CreateCurrencyPricesRequest] body Optional parameter:
|
334
|
-
#
|
332
|
+
# @param [CreateCurrencyPricesRequest] body Optional parameter: TODO: type
|
333
|
+
# description here
|
334
|
+
# @return [ComponentCurrencyPricesResponse] Response from the API call.
|
335
335
|
def create_currency_prices(price_point_id,
|
336
336
|
body: nil)
|
337
|
-
|
337
|
+
@api_call
|
338
338
|
.request(new_request_builder(HttpMethodEnum::POST,
|
339
339
|
'/price_points/{price_point_id}/currency_prices.json',
|
340
340
|
Server::PRODUCTION)
|
@@ -361,11 +361,12 @@ module AdvancedBilling
|
|
361
361
|
# Note: Currency Prices are not able to be updated for custom price points.
|
362
362
|
# @param [Integer] price_point_id Required parameter: The Advanced Billing
|
363
363
|
# id of the price point
|
364
|
-
# @param [UpdateCurrencyPricesRequest] body Optional parameter:
|
365
|
-
#
|
364
|
+
# @param [UpdateCurrencyPricesRequest] body Optional parameter: TODO: type
|
365
|
+
# description here
|
366
|
+
# @return [ComponentCurrencyPricesResponse] Response from the API call.
|
366
367
|
def update_currency_prices(price_point_id,
|
367
368
|
body: nil)
|
368
|
-
|
369
|
+
@api_call
|
369
370
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
370
371
|
'/price_points/{price_point_id}/currency_prices.json',
|
371
372
|
Server::PRODUCTION)
|
@@ -407,9 +408,9 @@ module AdvancedBilling
|
|
407
408
|
# in which results are returned. Use in query `direction=asc`.
|
408
409
|
# @param [ListPricePointsFilter] filter Optional parameter: Filter to use
|
409
410
|
# for List PricePoints operations
|
410
|
-
# @return [ListComponentsPricePointsResponse]
|
411
|
+
# @return [ListComponentsPricePointsResponse] Response from the API call.
|
411
412
|
def list_all_component_price_points(options = {})
|
412
|
-
|
413
|
+
@api_call
|
413
414
|
.request(new_request_builder(HttpMethodEnum::GET,
|
414
415
|
'/components_price_points.json',
|
415
416
|
Server::PRODUCTION)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# advanced_billing
|
2
2
|
#
|
3
|
-
# This file was automatically generated
|
4
|
-
# ( https://apimatic.io ).
|
3
|
+
# This file was automatically generated for Maxio by
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
5
|
|
6
6
|
module AdvancedBilling
|
7
7
|
# ComponentsController
|
@@ -22,11 +22,12 @@ module AdvancedBilling
|
|
22
22
|
# ts-Overview).
|
23
23
|
# @param [String] product_family_id Required parameter: Either the product
|
24
24
|
# family's id or its handle prefixed with `handle:`
|
25
|
-
# @param [CreateMeteredComponent] body Optional parameter:
|
26
|
-
#
|
25
|
+
# @param [CreateMeteredComponent] body Optional parameter: TODO: type
|
26
|
+
# description here
|
27
|
+
# @return [ComponentResponse] Response from the API call.
|
27
28
|
def create_metered_component(product_family_id,
|
28
29
|
body: nil)
|
29
|
-
|
30
|
+
@api_call
|
30
31
|
.request(new_request_builder(HttpMethodEnum::POST,
|
31
32
|
'/product_families/{product_family_id}/metered_components.json',
|
32
33
|
Server::PRODUCTION)
|
@@ -71,11 +72,12 @@ module AdvancedBilling
|
|
71
72
|
# ts-Overview).
|
72
73
|
# @param [String] product_family_id Required parameter: Either the product
|
73
74
|
# family's id or its handle prefixed with `handle:`
|
74
|
-
# @param [CreateQuantityBasedComponent] body Optional parameter:
|
75
|
-
#
|
75
|
+
# @param [CreateQuantityBasedComponent] body Optional parameter: TODO: type
|
76
|
+
# description here
|
77
|
+
# @return [ComponentResponse] Response from the API call.
|
76
78
|
def create_quantity_based_component(product_family_id,
|
77
79
|
body: nil)
|
78
|
-
|
80
|
+
@api_call
|
79
81
|
.request(new_request_builder(HttpMethodEnum::POST,
|
80
82
|
'/product_families/{product_family_id}/quantity_based_components.json',
|
81
83
|
Server::PRODUCTION)
|
@@ -110,11 +112,12 @@ module AdvancedBilling
|
|
110
112
|
# ts-Overview).
|
111
113
|
# @param [String] product_family_id Required parameter: Either the product
|
112
114
|
# family's id or its handle prefixed with `handle:`
|
113
|
-
# @param [CreateOnOffComponent] body Optional parameter:
|
114
|
-
#
|
115
|
+
# @param [CreateOnOffComponent] body Optional parameter: TODO: type
|
116
|
+
# description here
|
117
|
+
# @return [ComponentResponse] Response from the API call.
|
115
118
|
def create_on_off_component(product_family_id,
|
116
119
|
body: nil)
|
117
|
-
|
120
|
+
@api_call
|
118
121
|
.request(new_request_builder(HttpMethodEnum::POST,
|
119
122
|
'/product_families/{product_family_id}/on_off_components.json',
|
120
123
|
Server::PRODUCTION)
|
@@ -153,11 +156,12 @@ module AdvancedBilling
|
|
153
156
|
# ts-Overview).
|
154
157
|
# @param [String] product_family_id Required parameter: Either the product
|
155
158
|
# family's id or its handle prefixed with `handle:`
|
156
|
-
# @param [CreatePrepaidComponent] body Optional parameter:
|
157
|
-
#
|
159
|
+
# @param [CreatePrepaidComponent] body Optional parameter: TODO: type
|
160
|
+
# description here
|
161
|
+
# @return [ComponentResponse] Response from the API call.
|
158
162
|
def create_prepaid_usage_component(product_family_id,
|
159
163
|
body: nil)
|
160
|
-
|
164
|
+
@api_call
|
161
165
|
.request(new_request_builder(HttpMethodEnum::POST,
|
162
166
|
'/product_families/{product_family_id}/prepaid_usage_components.json',
|
163
167
|
Server::PRODUCTION)
|
@@ -199,11 +203,12 @@ module AdvancedBilling
|
|
199
203
|
# ts-Overview).
|
200
204
|
# @param [String] product_family_id Required parameter: Either the product
|
201
205
|
# family's id or its handle prefixed with `handle:`
|
202
|
-
# @param [CreateEBBComponent] body Optional parameter:
|
203
|
-
#
|
206
|
+
# @param [CreateEBBComponent] body Optional parameter: TODO: type
|
207
|
+
# description here
|
208
|
+
# @return [ComponentResponse] Response from the API call.
|
204
209
|
def create_event_based_component(product_family_id,
|
205
210
|
body: nil)
|
206
|
-
|
211
|
+
@api_call
|
207
212
|
.request(new_request_builder(HttpMethodEnum::POST,
|
208
213
|
'/product_families/{product_family_id}/event_based_components.json',
|
209
214
|
Server::PRODUCTION)
|
@@ -233,9 +238,9 @@ module AdvancedBilling
|
|
233
238
|
# don't have to save or reference the IDs we generate.
|
234
239
|
# @param [String] handle Required parameter: The handle of the component to
|
235
240
|
# find
|
236
|
-
# @return [ComponentResponse]
|
241
|
+
# @return [ComponentResponse] Response from the API call.
|
237
242
|
def find_component(handle)
|
238
|
-
|
243
|
+
@api_call
|
239
244
|
.request(new_request_builder(HttpMethodEnum::GET,
|
240
245
|
'/components/lookup.json',
|
241
246
|
Server::PRODUCTION)
|
@@ -249,19 +254,18 @@ module AdvancedBilling
|
|
249
254
|
.execute
|
250
255
|
end
|
251
256
|
|
252
|
-
#
|
253
|
-
#
|
254
|
-
# You may read the component by either the component's id or handle. When
|
257
|
+
# Returns information regarding a component from a specific product family.
|
258
|
+
# You can read the component by either the component's id or handle. When
|
255
259
|
# using the handle, it must be prefixed with `handle:`.
|
256
260
|
# @param [Integer] product_family_id Required parameter: The Advanced
|
257
261
|
# Billing id of the product family to which the component belongs
|
258
262
|
# @param [String] component_id Required parameter: Either the Advanced
|
259
263
|
# Billing id of the component or the handle for the component prefixed with
|
260
264
|
# `handle:`
|
261
|
-
# @return [ComponentResponse]
|
265
|
+
# @return [ComponentResponse] Response from the API call.
|
262
266
|
def read_component(product_family_id,
|
263
267
|
component_id)
|
264
|
-
|
268
|
+
@api_call
|
265
269
|
.request(new_request_builder(HttpMethodEnum::GET,
|
266
270
|
'/product_families/{product_family_id}/components/{component_id}.json',
|
267
271
|
Server::PRODUCTION)
|
@@ -287,12 +291,13 @@ module AdvancedBilling
|
|
287
291
|
# @param [String] component_id Required parameter: Either the Advanced
|
288
292
|
# Billing id of the component or the handle for the component prefixed with
|
289
293
|
# `handle:`
|
290
|
-
# @param [UpdateComponentRequest] body Optional parameter:
|
291
|
-
#
|
294
|
+
# @param [UpdateComponentRequest] body Optional parameter: TODO: type
|
295
|
+
# description here
|
296
|
+
# @return [ComponentResponse] Response from the API call.
|
292
297
|
def update_product_family_component(product_family_id,
|
293
298
|
component_id,
|
294
299
|
body: nil)
|
295
|
-
|
300
|
+
@api_call
|
296
301
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
297
302
|
'/product_families/{product_family_id}/components/{component_id}.json',
|
298
303
|
Server::PRODUCTION)
|
@@ -325,10 +330,10 @@ module AdvancedBilling
|
|
325
330
|
# @param [String] component_id Required parameter: Either the Advanced
|
326
331
|
# Billing id of the component or the handle for the component prefixed with
|
327
332
|
# `handle:`
|
328
|
-
# @return [Component]
|
333
|
+
# @return [Component] Response from the API call.
|
329
334
|
def archive_component(product_family_id,
|
330
335
|
component_id)
|
331
|
-
|
336
|
+
@api_call
|
332
337
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
333
338
|
'/product_families/{product_family_id}/components/{component_id}.json',
|
334
339
|
Server::PRODUCTION)
|
@@ -387,9 +392,9 @@ module AdvancedBilling
|
|
387
392
|
# Use in query `per_page=200`.
|
388
393
|
# @param [ListComponentsFilter] filter Optional parameter: Filter to use for
|
389
394
|
# List Components operations
|
390
|
-
# @return [Array[ComponentResponse]]
|
395
|
+
# @return [Array[ComponentResponse]] Response from the API call.
|
391
396
|
def list_components(options = {})
|
392
|
-
|
397
|
+
@api_call
|
393
398
|
.request(new_request_builder(HttpMethodEnum::GET,
|
394
399
|
'/components.json',
|
395
400
|
Server::PRODUCTION)
|
@@ -417,11 +422,12 @@ module AdvancedBilling
|
|
417
422
|
# using the handle, it must be prefixed with `handle:`.
|
418
423
|
# @param [String] component_id Required parameter: The id or handle of the
|
419
424
|
# component
|
420
|
-
# @param [UpdateComponentRequest] body Optional parameter:
|
421
|
-
#
|
425
|
+
# @param [UpdateComponentRequest] body Optional parameter: TODO: type
|
426
|
+
# description here
|
427
|
+
# @return [ComponentResponse] Response from the API call.
|
422
428
|
def update_component(component_id,
|
423
429
|
body: nil)
|
424
|
-
|
430
|
+
@api_call
|
425
431
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
426
432
|
'/components/{component_id}.json',
|
427
433
|
Server::PRODUCTION)
|
@@ -484,9 +490,9 @@ module AdvancedBilling
|
|
484
490
|
# components with a timestamp at or after exact time provided in query. You
|
485
491
|
# can specify timezone in query - otherwise your site's time zone will be
|
486
492
|
# used. If provided, this parameter will be used instead of start_date.
|
487
|
-
# @return [Array[ComponentResponse]]
|
493
|
+
# @return [Array[ComponentResponse]] Response from the API call.
|
488
494
|
def list_components_for_product_family(options = {})
|
489
|
-
|
495
|
+
@api_call
|
490
496
|
.request(new_request_builder(HttpMethodEnum::GET,
|
491
497
|
'/product_families/{product_family_id}/components.json',
|
492
498
|
Server::PRODUCTION)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# advanced_billing
|
2
2
|
#
|
3
|
-
# This file was automatically generated
|
4
|
-
# ( https://apimatic.io ).
|
3
|
+
# This file was automatically generated for Maxio by
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
5
|
|
6
6
|
module AdvancedBilling
|
7
7
|
# CouponsController
|
@@ -25,11 +25,12 @@ module AdvancedBilling
|
|
25
25
|
# `{ "<product_id/component_id>": boolean_value }`
|
26
26
|
# @param [Integer] product_family_id Required parameter: The Advanced
|
27
27
|
# Billing id of the product family to which the coupon belongs
|
28
|
-
# @param [CouponRequest] body Optional parameter:
|
29
|
-
#
|
28
|
+
# @param [CouponRequest] body Optional parameter: TODO: type description
|
29
|
+
# here
|
30
|
+
# @return [CouponResponse] Response from the API call.
|
30
31
|
def create_coupon(product_family_id,
|
31
32
|
body: nil)
|
32
|
-
|
33
|
+
@api_call
|
33
34
|
.request(new_request_builder(HttpMethodEnum::POST,
|
34
35
|
'/product_families/{product_family_id}/coupons.json',
|
35
36
|
Server::PRODUCTION)
|
@@ -75,9 +76,9 @@ module AdvancedBilling
|
|
75
76
|
# level, you can optionally pass the `?currency_prices=true` query param to
|
76
77
|
# include an array of currency price data in the response. Use in query
|
77
78
|
# `currency_prices=true`.
|
78
|
-
# @return [Array[CouponResponse]]
|
79
|
+
# @return [Array[CouponResponse]] Response from the API call.
|
79
80
|
def list_coupons_for_product_family(options = {})
|
80
|
-
|
81
|
+
@api_call
|
81
82
|
.request(new_request_builder(HttpMethodEnum::GET,
|
82
83
|
'/product_families/{product_family_id}/coupons.json',
|
83
84
|
Server::PRODUCTION)
|
@@ -112,11 +113,11 @@ module AdvancedBilling
|
|
112
113
|
# fetching coupons, if you have defined multiple currencies at the site
|
113
114
|
# level, you can optionally pass the `?currency_prices=true` query param to
|
114
115
|
# include an array of currency price data in the response.
|
115
|
-
# @return [CouponResponse]
|
116
|
+
# @return [CouponResponse] Response from the API call.
|
116
117
|
def find_coupon(product_family_id: nil,
|
117
118
|
code: nil,
|
118
119
|
currency_prices: nil)
|
119
|
-
|
120
|
+
@api_call
|
120
121
|
.request(new_request_builder(HttpMethodEnum::GET,
|
121
122
|
'/coupons/find.json',
|
122
123
|
Server::PRODUCTION)
|
@@ -150,11 +151,11 @@ module AdvancedBilling
|
|
150
151
|
# fetching coupons, if you have defined multiple currencies at the site
|
151
152
|
# level, you can optionally pass the `?currency_prices=true` query param to
|
152
153
|
# include an array of currency price data in the response.
|
153
|
-
# @return [CouponResponse]
|
154
|
+
# @return [CouponResponse] Response from the API call.
|
154
155
|
def read_coupon(product_family_id,
|
155
156
|
coupon_id,
|
156
157
|
currency_prices: nil)
|
157
|
-
|
158
|
+
@api_call
|
158
159
|
.request(new_request_builder(HttpMethodEnum::GET,
|
159
160
|
'/product_families/{product_family_id}/coupons/{coupon_id}.json',
|
160
161
|
Server::PRODUCTION)
|
@@ -184,12 +185,13 @@ module AdvancedBilling
|
|
184
185
|
# Billing id of the product family to which the coupon belongs
|
185
186
|
# @param [Integer] coupon_id Required parameter: The Advanced Billing id of
|
186
187
|
# the coupon
|
187
|
-
# @param [CouponRequest] body Optional parameter:
|
188
|
-
#
|
188
|
+
# @param [CouponRequest] body Optional parameter: TODO: type description
|
189
|
+
# here
|
190
|
+
# @return [CouponResponse] Response from the API call.
|
189
191
|
def update_coupon(product_family_id,
|
190
192
|
coupon_id,
|
191
193
|
body: nil)
|
192
|
-
|
194
|
+
@api_call
|
193
195
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
194
196
|
'/product_families/{product_family_id}/coupons/{coupon_id}.json',
|
195
197
|
Server::PRODUCTION)
|
@@ -223,10 +225,10 @@ module AdvancedBilling
|
|
223
225
|
# Billing id of the product family to which the coupon belongs
|
224
226
|
# @param [Integer] coupon_id Required parameter: The Advanced Billing id of
|
225
227
|
# the coupon
|
226
|
-
# @return [CouponResponse]
|
228
|
+
# @return [CouponResponse] Response from the API call.
|
227
229
|
def archive_coupon(product_family_id,
|
228
230
|
coupon_id)
|
229
|
-
|
231
|
+
@api_call
|
230
232
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
231
233
|
'/product_families/{product_family_id}/coupons/{coupon_id}.json',
|
232
234
|
Server::PRODUCTION)
|
@@ -266,9 +268,9 @@ module AdvancedBilling
|
|
266
268
|
# level, you can optionally pass the `?currency_prices=true` query param to
|
267
269
|
# include an array of currency price data in the response. Use in query
|
268
270
|
# `currency_prices=true`.
|
269
|
-
# @return [Array[CouponResponse]]
|
271
|
+
# @return [Array[CouponResponse]] Response from the API call.
|
270
272
|
def list_coupons(options = {})
|
271
|
-
|
273
|
+
@api_call
|
272
274
|
.request(new_request_builder(HttpMethodEnum::GET,
|
273
275
|
'/coupons.json',
|
274
276
|
Server::PRODUCTION)
|
@@ -292,10 +294,10 @@ module AdvancedBilling
|
|
292
294
|
# Billing id of the product family to which the coupon belongs
|
293
295
|
# @param [Integer] coupon_id Required parameter: The Advanced Billing id of
|
294
296
|
# the coupon
|
295
|
-
# @return [Array[CouponUsage]]
|
297
|
+
# @return [Array[CouponUsage]] Response from the API call.
|
296
298
|
def read_coupon_usage(product_family_id,
|
297
299
|
coupon_id)
|
298
|
-
|
300
|
+
@api_call
|
299
301
|
.request(new_request_builder(HttpMethodEnum::GET,
|
300
302
|
'/product_families/{product_family_id}/coupons/{coupon_id}/usage.json',
|
301
303
|
Server::PRODUCTION)
|
@@ -343,10 +345,10 @@ module AdvancedBilling
|
|
343
345
|
# @param [String] code Required parameter: The code of the coupon
|
344
346
|
# @param [Integer] product_family_id Optional parameter: The Advanced
|
345
347
|
# Billing id of the product family to which the coupon belongs
|
346
|
-
# @return [CouponResponse]
|
348
|
+
# @return [CouponResponse] Response from the API call.
|
347
349
|
def validate_coupon(code,
|
348
350
|
product_family_id: nil)
|
349
|
-
|
351
|
+
@api_call
|
350
352
|
.request(new_request_builder(HttpMethodEnum::GET,
|
351
353
|
'/coupons/validate.json',
|
352
354
|
Server::PRODUCTION)
|
@@ -358,9 +360,9 @@ module AdvancedBilling
|
|
358
360
|
.response(new_response_handler
|
359
361
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
360
362
|
.deserialize_into(CouponResponse.method(:from_hash))
|
361
|
-
.
|
362
|
-
|
363
|
-
|
363
|
+
.local_error_template('404',
|
364
|
+
'Not Found: \'{$response.body}\'',
|
365
|
+
SingleStringErrorResponseException))
|
364
366
|
.execute
|
365
367
|
end
|
366
368
|
|
@@ -373,11 +375,12 @@ module AdvancedBilling
|
|
373
375
|
# to define pricing in non-primary currencies.
|
374
376
|
# @param [Integer] coupon_id Required parameter: The Advanced Billing id of
|
375
377
|
# the coupon
|
376
|
-
# @param [CouponCurrencyRequest] body Optional parameter:
|
377
|
-
#
|
378
|
+
# @param [CouponCurrencyRequest] body Optional parameter: TODO: type
|
379
|
+
# description here
|
380
|
+
# @return [CouponCurrencyResponse] Response from the API call.
|
378
381
|
def create_or_update_coupon_currency_prices(coupon_id,
|
379
382
|
body: nil)
|
380
|
-
|
383
|
+
@api_call
|
381
384
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
382
385
|
'/coupons/{coupon_id}/currency_prices.json',
|
383
386
|
Server::PRODUCTION)
|
@@ -439,11 +442,12 @@ module AdvancedBilling
|
|
439
442
|
# `https://<subdomain>.chargify.com/coupons/567/codes/20%25OFF.<format>`
|
440
443
|
# @param [Integer] coupon_id Required parameter: The Advanced Billing id of
|
441
444
|
# the coupon
|
442
|
-
# @param [CouponSubcodes] body Optional parameter:
|
443
|
-
#
|
445
|
+
# @param [CouponSubcodes] body Optional parameter: TODO: type description
|
446
|
+
# here
|
447
|
+
# @return [CouponSubcodesResponse] Response from the API call.
|
444
448
|
def create_coupon_subcodes(coupon_id,
|
445
449
|
body: nil)
|
446
|
-
|
450
|
+
@api_call
|
447
451
|
.request(new_request_builder(HttpMethodEnum::POST,
|
448
452
|
'/coupons/{coupon_id}/codes.json',
|
449
453
|
Server::PRODUCTION)
|
@@ -476,9 +480,9 @@ module AdvancedBilling
|
|
476
480
|
# many records to fetch in each request. Default value is 20. The maximum
|
477
481
|
# allowed values is 200; any per_page value over 200 will be changed to 200.
|
478
482
|
# Use in query `per_page=200`.
|
479
|
-
# @return [CouponSubcodes]
|
483
|
+
# @return [CouponSubcodes] Response from the API call.
|
480
484
|
def list_coupon_subcodes(options = {})
|
481
|
-
|
485
|
+
@api_call
|
482
486
|
.request(new_request_builder(HttpMethodEnum::GET,
|
483
487
|
'/coupons/{coupon_id}/codes.json',
|
484
488
|
Server::PRODUCTION)
|
@@ -506,11 +510,12 @@ module AdvancedBilling
|
|
506
510
|
# + Any subcodes not created because they are invalid.
|
507
511
|
# @param [Integer] coupon_id Required parameter: The Advanced Billing id of
|
508
512
|
# the coupon
|
509
|
-
# @param [CouponSubcodes] body Optional parameter:
|
510
|
-
#
|
513
|
+
# @param [CouponSubcodes] body Optional parameter: TODO: type description
|
514
|
+
# here
|
515
|
+
# @return [CouponSubcodesResponse] Response from the API call.
|
511
516
|
def update_coupon_subcodes(coupon_id,
|
512
517
|
body: nil)
|
513
|
-
|
518
|
+
@api_call
|
514
519
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
515
520
|
'/coupons/{coupon_id}/codes.json',
|
516
521
|
Server::PRODUCTION)
|
@@ -551,10 +556,10 @@ module AdvancedBilling
|
|
551
556
|
# @param [Integer] coupon_id Required parameter: The Advanced Billing id of
|
552
557
|
# the coupon to which the subcode belongs
|
553
558
|
# @param [String] subcode Required parameter: The subcode of the coupon
|
554
|
-
# @return [void]
|
559
|
+
# @return [void] Response from the API call.
|
555
560
|
def delete_coupon_subcode(coupon_id,
|
556
561
|
subcode)
|
557
|
-
|
562
|
+
@api_call
|
558
563
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
559
564
|
'/coupons/{coupon_id}/codes/{subcode}.json',
|
560
565
|
Server::PRODUCTION)
|