maxio-advanced-billing-sdk 6.1.0 → 7.0.0
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 +69 -64
- data/lib/advanced_billing/api_helper.rb +2 -2
- data/lib/advanced_billing/client.rb +2 -2
- data/lib/advanced_billing/configuration.rb +4 -5
- 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 +34 -32
- data/lib/advanced_billing/controllers/components_controller.rb +40 -33
- 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 +20 -18
- 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 +32 -29
- 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 +55 -48
- 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 +45 -71
- data/lib/advanced_billing/controllers/webhooks_controller.rb +22 -18
- 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/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 +2 -2
- data/lib/advanced_billing.rb +5 -3
- metadata +6 -4
@@ -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
|
# SubscriptionComponentsController
|
@@ -13,10 +13,10 @@ module AdvancedBilling
|
|
13
13
|
# @param [Integer] component_id Required parameter: The Advanced Billing id
|
14
14
|
# of the component. Alternatively, the component's handle prefixed by
|
15
15
|
# `handle:`
|
16
|
-
# @return [SubscriptionComponentResponse]
|
16
|
+
# @return [SubscriptionComponentResponse] Response from the API call.
|
17
17
|
def read_subscription_component(subscription_id,
|
18
18
|
component_id)
|
19
|
-
|
19
|
+
@api_call
|
20
20
|
.request(new_request_builder(HttpMethodEnum::GET,
|
21
21
|
'/subscriptions/{subscription_id}/components/{component_id}.json',
|
22
22
|
Server::PRODUCTION)
|
@@ -84,9 +84,9 @@ module AdvancedBilling
|
|
84
84
|
# set to true, it returns only components that are currently in use.
|
85
85
|
# However, if it's set to false or not provided, it returns all components
|
86
86
|
# connected with the subscription.
|
87
|
-
# @return [Array[SubscriptionComponentResponse]]
|
87
|
+
# @return [Array[SubscriptionComponentResponse]] Response from the API call.
|
88
88
|
def list_subscription_components(options = {})
|
89
|
-
|
89
|
+
@api_call
|
90
90
|
.request(new_request_builder(HttpMethodEnum::GET,
|
91
91
|
'/subscriptions/{subscription_id}/components.json',
|
92
92
|
Server::PRODUCTION)
|
@@ -123,12 +123,12 @@ module AdvancedBilling
|
|
123
123
|
# component's current default price point.
|
124
124
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
125
125
|
# the subscription
|
126
|
-
# @param [BulkComponentsPricePointAssignment] body Optional parameter:
|
127
|
-
#
|
128
|
-
# @return [BulkComponentsPricePointAssignment]
|
126
|
+
# @param [BulkComponentsPricePointAssignment] body Optional parameter: TODO:
|
127
|
+
# type description here
|
128
|
+
# @return [BulkComponentsPricePointAssignment] Response from the API call.
|
129
129
|
def bulk_update_subscription_components_price_points(subscription_id,
|
130
130
|
body: nil)
|
131
|
-
|
131
|
+
@api_call
|
132
132
|
.request(new_request_builder(HttpMethodEnum::POST,
|
133
133
|
'/subscriptions/{subscription_id}/price_points.json',
|
134
134
|
Server::PRODUCTION)
|
@@ -155,9 +155,9 @@ module AdvancedBilling
|
|
155
155
|
# components, even ones that have not been allocated yet.
|
156
156
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
157
157
|
# the subscription
|
158
|
-
# @return [SubscriptionResponse]
|
158
|
+
# @return [SubscriptionResponse] Response from the API call.
|
159
159
|
def bulk_reset_subscription_components_price_points(subscription_id)
|
160
|
-
|
160
|
+
@api_call
|
161
161
|
.request(new_request_builder(HttpMethodEnum::POST,
|
162
162
|
'/subscriptions/{subscription_id}/price_points/reset.json',
|
163
163
|
Server::PRODUCTION)
|
@@ -243,12 +243,13 @@ module AdvancedBilling
|
|
243
243
|
# the subscription
|
244
244
|
# @param [Integer] component_id Required parameter: The Advanced Billing id
|
245
245
|
# of the component
|
246
|
-
# @param [CreateAllocationRequest] body Optional parameter:
|
247
|
-
#
|
246
|
+
# @param [CreateAllocationRequest] body Optional parameter: TODO: type
|
247
|
+
# description here
|
248
|
+
# @return [AllocationResponse] Response from the API call.
|
248
249
|
def allocate_component(subscription_id,
|
249
250
|
component_id,
|
250
251
|
body: nil)
|
251
|
-
|
252
|
+
@api_call
|
252
253
|
.request(new_request_builder(HttpMethodEnum::POST,
|
253
254
|
'/subscriptions/{subscription_id}/components/{component_id}/allocations.json',
|
254
255
|
Server::PRODUCTION)
|
@@ -302,11 +303,11 @@ module AdvancedBilling
|
|
302
303
|
# passing in a page parameter. Retrieve the next page by adding ?page=2 to
|
303
304
|
# the query string. If there are no results to return, then an empty result
|
304
305
|
# set will be returned. Use in query `page=1`.
|
305
|
-
# @return [Array[AllocationResponse]]
|
306
|
+
# @return [Array[AllocationResponse]] Response from the API call.
|
306
307
|
def list_allocations(subscription_id,
|
307
308
|
component_id,
|
308
309
|
page: 1)
|
309
|
-
|
310
|
+
@api_call
|
310
311
|
.request(new_request_builder(HttpMethodEnum::GET,
|
311
312
|
'/subscriptions/{subscription_id}/components/{component_id}/allocations.json',
|
312
313
|
Server::PRODUCTION)
|
@@ -342,11 +343,12 @@ module AdvancedBilling
|
|
342
343
|
# This endpoint only responds to JSON. It is not available for XML.
|
343
344
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
344
345
|
# the subscription
|
345
|
-
# @param [AllocateComponents] body Optional parameter:
|
346
|
-
#
|
346
|
+
# @param [AllocateComponents] body Optional parameter: TODO: type
|
347
|
+
# description here
|
348
|
+
# @return [Array[AllocationResponse]] Response from the API call.
|
347
349
|
def allocate_components(subscription_id,
|
348
350
|
body: nil)
|
349
|
-
|
351
|
+
@api_call
|
350
352
|
.request(new_request_builder(HttpMethodEnum::POST,
|
351
353
|
'/subscriptions/{subscription_id}/allocations.json',
|
352
354
|
Server::PRODUCTION)
|
@@ -386,11 +388,12 @@ module AdvancedBilling
|
|
386
388
|
# See example below for Fine-Grained Component Control response.
|
387
389
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
388
390
|
# the subscription
|
389
|
-
# @param [PreviewAllocationsRequest] body Optional parameter:
|
390
|
-
#
|
391
|
+
# @param [PreviewAllocationsRequest] body Optional parameter: TODO: type
|
392
|
+
# description here
|
393
|
+
# @return [AllocationPreviewResponse] Response from the API call.
|
391
394
|
def preview_allocations(subscription_id,
|
392
395
|
body: nil)
|
393
|
-
|
396
|
+
@api_call
|
394
397
|
.request(new_request_builder(HttpMethodEnum::POST,
|
395
398
|
'/subscriptions/{subscription_id}/allocations/preview.json',
|
396
399
|
Server::PRODUCTION)
|
@@ -432,14 +435,14 @@ module AdvancedBilling
|
|
432
435
|
# of the component
|
433
436
|
# @param [Integer] allocation_id Required parameter: The Advanced Billing id
|
434
437
|
# of the allocation
|
435
|
-
# @param [UpdateAllocationExpirationDate] body Optional parameter:
|
436
|
-
#
|
437
|
-
# @return [void]
|
438
|
+
# @param [UpdateAllocationExpirationDate] body Optional parameter: TODO:
|
439
|
+
# type description here
|
440
|
+
# @return [void] Response from the API call.
|
438
441
|
def update_prepaid_usage_allocation_expiration_date(subscription_id,
|
439
442
|
component_id,
|
440
443
|
allocation_id,
|
441
444
|
body: nil)
|
442
|
-
|
445
|
+
@api_call
|
443
446
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
444
447
|
'/subscriptions/{subscription_id}/components/{component_id}/allocations/{allocation_id}.json',
|
445
448
|
Server::PRODUCTION)
|
@@ -489,13 +492,14 @@ module AdvancedBilling
|
|
489
492
|
# of the component
|
490
493
|
# @param [Integer] allocation_id Required parameter: The Advanced Billing id
|
491
494
|
# of the allocation
|
492
|
-
# @param [CreditSchemeRequest] body Optional parameter:
|
493
|
-
#
|
495
|
+
# @param [CreditSchemeRequest] body Optional parameter: TODO: type
|
496
|
+
# description here
|
497
|
+
# @return [void] Response from the API call.
|
494
498
|
def delete_prepaid_usage_allocation(subscription_id,
|
495
499
|
component_id,
|
496
500
|
allocation_id,
|
497
501
|
body: nil)
|
498
|
-
|
502
|
+
@api_call
|
499
503
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
500
504
|
'/subscriptions/{subscription_id}/components/{component_id}/allocations/{allocation_id}.json',
|
501
505
|
Server::PRODUCTION)
|
@@ -598,12 +602,13 @@ module AdvancedBilling
|
|
598
602
|
# @param [Integer | String] component_id Required parameter: Either the
|
599
603
|
# Advanced Billing id for the component or the component's handle prefixed
|
600
604
|
# by `handle:`
|
601
|
-
# @param [CreateUsageRequest] body Optional parameter:
|
602
|
-
#
|
605
|
+
# @param [CreateUsageRequest] body Optional parameter: TODO: type
|
606
|
+
# description here
|
607
|
+
# @return [UsageResponse] Response from the API call.
|
603
608
|
def create_usage(subscription_id,
|
604
609
|
component_id,
|
605
610
|
body: nil)
|
606
|
-
|
611
|
+
@api_call
|
607
612
|
.request(new_request_builder(HttpMethodEnum::POST,
|
608
613
|
'/subscriptions/{subscription_id}/components/{component_id}/usages.json',
|
609
614
|
Server::PRODUCTION)
|
@@ -674,9 +679,9 @@ module AdvancedBilling
|
|
674
679
|
# many records to fetch in each request. Default value is 20. The maximum
|
675
680
|
# allowed values is 200; any per_page value over 200 will be changed to 200.
|
676
681
|
# Use in query `per_page=200`.
|
677
|
-
# @return [Array[UsageResponse]]
|
682
|
+
# @return [Array[UsageResponse]] Response from the API call.
|
678
683
|
def list_usages(options = {})
|
679
|
-
|
684
|
+
@api_call
|
680
685
|
.request(new_request_builder(HttpMethodEnum::GET,
|
681
686
|
'/subscriptions/{subscription_id}/components/{component_id}/usages.json',
|
682
687
|
Server::PRODUCTION)
|
@@ -722,12 +727,13 @@ module AdvancedBilling
|
|
722
727
|
# id of the subscription
|
723
728
|
# @param [Integer] component_id Required parameter: The Advanced Billing id
|
724
729
|
# of the component
|
725
|
-
# @param [ActivateEventBasedComponent] body Optional parameter:
|
726
|
-
#
|
730
|
+
# @param [ActivateEventBasedComponent] body Optional parameter: TODO: type
|
731
|
+
# description here
|
732
|
+
# @return [void] Response from the API call.
|
727
733
|
def activate_event_based_component(subscription_id,
|
728
734
|
component_id,
|
729
735
|
body: nil)
|
730
|
-
|
736
|
+
@api_call
|
731
737
|
.request(new_request_builder(HttpMethodEnum::POST,
|
732
738
|
'/event_based_billing/subscriptions/{subscription_id}/components/{component_id}/activate.json',
|
733
739
|
Server::PRODUCTION)
|
@@ -753,10 +759,10 @@ module AdvancedBilling
|
|
753
759
|
# id of the subscription
|
754
760
|
# @param [Integer] component_id Required parameter: The Advanced Billing id
|
755
761
|
# of the component
|
756
|
-
# @return [void]
|
762
|
+
# @return [void] Response from the API call.
|
757
763
|
def deactivate_event_based_component(subscription_id,
|
758
764
|
component_id)
|
759
|
-
|
765
|
+
@api_call
|
760
766
|
.request(new_request_builder(HttpMethodEnum::POST,
|
761
767
|
'/event_based_billing/subscriptions/{subscription_id}/components/{component_id}/deactivate.json',
|
762
768
|
Server::PRODUCTION)
|
@@ -796,12 +802,12 @@ module AdvancedBilling
|
|
796
802
|
# @param [String] store_uid Optional parameter: If you've attached your own
|
797
803
|
# Keen project as an Advanced Billing event data-store, use this parameter
|
798
804
|
# to indicate the data-store.
|
799
|
-
# @param [EBBEvent] body Optional parameter:
|
800
|
-
# @return [void]
|
805
|
+
# @param [EBBEvent] body Optional parameter: TODO: type description here
|
806
|
+
# @return [void] Response from the API call.
|
801
807
|
def record_event(api_handle,
|
802
808
|
store_uid: nil,
|
803
809
|
body: nil)
|
804
|
-
|
810
|
+
@api_call
|
805
811
|
.request(new_request_builder(HttpMethodEnum::POST,
|
806
812
|
'/events/{api_handle}.json',
|
807
813
|
Server::EBB)
|
@@ -829,12 +835,13 @@ module AdvancedBilling
|
|
829
835
|
# @param [String] store_uid Optional parameter: If you've attached your own
|
830
836
|
# Keen project as an Advanced Billing event data-store, use this parameter
|
831
837
|
# to indicate the data-store.
|
832
|
-
# @param [Array[EBBEvent]] body Optional parameter:
|
833
|
-
#
|
838
|
+
# @param [Array[EBBEvent]] body Optional parameter: TODO: type description
|
839
|
+
# here
|
840
|
+
# @return [void] Response from the API call.
|
834
841
|
def bulk_record_events(api_handle,
|
835
842
|
store_uid: nil,
|
836
843
|
body: nil)
|
837
|
-
|
844
|
+
@api_call
|
838
845
|
.request(new_request_builder(HttpMethodEnum::POST,
|
839
846
|
'/events/{api_handle}/bulk.json',
|
840
847
|
Server::EBB)
|
@@ -905,9 +912,9 @@ module AdvancedBilling
|
|
905
912
|
# @param [ListSubscriptionComponentsInclude] include Optional parameter:
|
906
913
|
# Allows including additional data in the response. Use in query
|
907
914
|
# `include=subscription,historic_usages`.
|
908
|
-
# @return [ListSubscriptionComponentsResponse]
|
915
|
+
# @return [ListSubscriptionComponentsResponse] Response from the API call.
|
909
916
|
def list_subscription_components_for_site(options = {})
|
910
|
-
|
917
|
+
@api_call
|
911
918
|
.request(new_request_builder(HttpMethodEnum::GET,
|
912
919
|
'/subscriptions_components.json',
|
913
920
|
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
|
# SubscriptionGroupInvoiceAccountController
|
@@ -12,12 +12,12 @@ module AdvancedBilling
|
|
12
12
|
# balance.
|
13
13
|
# @param [String] uid Required parameter: The uid of the subscription
|
14
14
|
# group
|
15
|
-
# @param [SubscriptionGroupPrepaymentRequest] body Optional parameter:
|
16
|
-
#
|
17
|
-
# @return [SubscriptionGroupPrepaymentResponse]
|
15
|
+
# @param [SubscriptionGroupPrepaymentRequest] body Optional parameter: TODO:
|
16
|
+
# type description here
|
17
|
+
# @return [SubscriptionGroupPrepaymentResponse] Response from the API call.
|
18
18
|
def create_subscription_group_prepayment(uid,
|
19
19
|
body: nil)
|
20
|
-
|
20
|
+
@api_call
|
21
21
|
.request(new_request_builder(HttpMethodEnum::POST,
|
22
22
|
'/subscription_groups/{uid}/prepayments.json',
|
23
23
|
Server::PRODUCTION)
|
@@ -55,9 +55,9 @@ module AdvancedBilling
|
|
55
55
|
# Use in query `per_page=200`.
|
56
56
|
# @param [ListPrepaymentsFilter] filter Optional parameter: Filter to use
|
57
57
|
# for List Prepayments operations
|
58
|
-
# @return [ListSubscriptionGroupPrepaymentResponse]
|
58
|
+
# @return [ListSubscriptionGroupPrepaymentResponse] Response from the API call.
|
59
59
|
def list_prepayments_for_subscription_group(options = {})
|
60
|
-
|
60
|
+
@api_call
|
61
61
|
.request(new_request_builder(HttpMethodEnum::GET,
|
62
62
|
'/subscription_groups/{uid}/prepayments.json',
|
63
63
|
Server::PRODUCTION)
|
@@ -85,11 +85,12 @@ module AdvancedBilling
|
|
85
85
|
# are generated.
|
86
86
|
# @param [String] uid Required parameter: The uid of the subscription
|
87
87
|
# group
|
88
|
-
# @param [IssueServiceCreditRequest] body Optional parameter:
|
89
|
-
#
|
88
|
+
# @param [IssueServiceCreditRequest] body Optional parameter: TODO: type
|
89
|
+
# description here
|
90
|
+
# @return [ServiceCreditResponse] Response from the API call.
|
90
91
|
def issue_subscription_group_service_credit(uid,
|
91
92
|
body: nil)
|
92
|
-
|
93
|
+
@api_call
|
93
94
|
.request(new_request_builder(HttpMethodEnum::POST,
|
94
95
|
'/subscription_groups/{uid}/service_credits.json',
|
95
96
|
Server::PRODUCTION)
|
@@ -116,11 +117,12 @@ module AdvancedBilling
|
|
116
117
|
# the request body.
|
117
118
|
# @param [String] uid Required parameter: The uid of the subscription
|
118
119
|
# group
|
119
|
-
# @param [DeductServiceCreditRequest] body Optional parameter:
|
120
|
-
#
|
120
|
+
# @param [DeductServiceCreditRequest] body Optional parameter: TODO: type
|
121
|
+
# description here
|
122
|
+
# @return [ServiceCredit] Response from the API call.
|
121
123
|
def deduct_subscription_group_service_credit(uid,
|
122
124
|
body: nil)
|
123
|
-
|
125
|
+
@api_call
|
124
126
|
.request(new_request_builder(HttpMethodEnum::POST,
|
125
127
|
'/subscription_groups/{uid}/service_credit_deductions.json',
|
126
128
|
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
|
# SubscriptionGroupStatusController
|
@@ -16,12 +16,12 @@ module AdvancedBilling
|
|
16
16
|
# `charge_unbilled_usage=true` parameter must be included in the request.
|
17
17
|
# @param [String] uid Required parameter: The uid of the subscription
|
18
18
|
# group
|
19
|
-
# @param [CancelGroupedSubscriptionsRequest] body Optional parameter:
|
20
|
-
#
|
21
|
-
# @return [void]
|
19
|
+
# @param [CancelGroupedSubscriptionsRequest] body Optional parameter: TODO:
|
20
|
+
# type description here
|
21
|
+
# @return [void] Response from the API call.
|
22
22
|
def cancel_subscriptions_in_group(uid,
|
23
23
|
body: nil)
|
24
|
-
|
24
|
+
@api_call
|
25
25
|
.request(new_request_builder(HttpMethodEnum::POST,
|
26
26
|
'/subscription_groups/{uid}/cancel.json',
|
27
27
|
Server::PRODUCTION)
|
@@ -48,9 +48,9 @@ module AdvancedBilling
|
|
48
48
|
# successfully cancel them, and the group must not be in a "past_due" state.
|
49
49
|
# @param [String] uid Required parameter: The uid of the subscription
|
50
50
|
# group
|
51
|
-
# @return [void]
|
51
|
+
# @return [void] Response from the API call.
|
52
52
|
def initiate_delayed_cancellation_for_group(uid)
|
53
|
-
|
53
|
+
@api_call
|
54
54
|
.request(new_request_builder(HttpMethodEnum::POST,
|
55
55
|
'/subscription_groups/{uid}/delayed_cancel.json',
|
56
56
|
Server::PRODUCTION)
|
@@ -73,9 +73,9 @@ module AdvancedBilling
|
|
73
73
|
# member in the group.
|
74
74
|
# @param [String] uid Required parameter: The uid of the subscription
|
75
75
|
# group
|
76
|
-
# @return [void]
|
76
|
+
# @return [void] Response from the API call.
|
77
77
|
def cancel_delayed_cancellation_for_group(uid)
|
78
|
-
|
78
|
+
@api_call
|
79
79
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
80
80
|
'/subscription_groups/{uid}/delayed_cancel.json',
|
81
81
|
Server::PRODUCTION)
|
@@ -127,12 +127,12 @@ module AdvancedBilling
|
|
127
127
|
# corresponding calendar renewal date.
|
128
128
|
# @param [String] uid Required parameter: The uid of the subscription
|
129
129
|
# group
|
130
|
-
# @param [ReactivateSubscriptionGroupRequest] body Optional parameter:
|
131
|
-
#
|
132
|
-
# @return [ReactivateSubscriptionGroupResponse]
|
130
|
+
# @param [ReactivateSubscriptionGroupRequest] body Optional parameter: TODO:
|
131
|
+
# type description here
|
132
|
+
# @return [ReactivateSubscriptionGroupResponse] Response from the API call.
|
133
133
|
def reactivate_subscription_group(uid,
|
134
134
|
body: nil)
|
135
|
-
|
135
|
+
@api_call
|
136
136
|
.request(new_request_builder(HttpMethodEnum::POST,
|
137
137
|
'/subscription_groups/{uid}/reactivate.json',
|
138
138
|
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
|
# SubscriptionGroupsController
|
@@ -17,11 +17,11 @@ module AdvancedBilling
|
|
17
17
|
# Only one of the `subscriptions` can have `"primary": true` attribute set.
|
18
18
|
# When passing product to a subscription you can use either `product_id` or
|
19
19
|
# `product_handle` or `offer_id`. You can also use `custom_price` instead.
|
20
|
-
# @param [SubscriptionGroupSignupRequest] body Optional parameter:
|
21
|
-
#
|
22
|
-
# @return [SubscriptionGroupSignupResponse]
|
20
|
+
# @param [SubscriptionGroupSignupRequest] body Optional parameter: TODO:
|
21
|
+
# type description here
|
22
|
+
# @return [SubscriptionGroupSignupResponse] Response from the API call.
|
23
23
|
def signup_with_subscription_group(body: nil)
|
24
|
-
|
24
|
+
@api_call
|
25
25
|
.request(new_request_builder(HttpMethodEnum::POST,
|
26
26
|
'/subscription_groups/signup.json',
|
27
27
|
Server::PRODUCTION)
|
@@ -41,11 +41,11 @@ module AdvancedBilling
|
|
41
41
|
end
|
42
42
|
|
43
43
|
# Creates a subscription group with given members.
|
44
|
-
# @param [CreateSubscriptionGroupRequest] body Optional parameter:
|
45
|
-
#
|
46
|
-
# @return [SubscriptionGroupResponse]
|
44
|
+
# @param [CreateSubscriptionGroupRequest] body Optional parameter: TODO:
|
45
|
+
# type description here
|
46
|
+
# @return [SubscriptionGroupResponse] Response from the API call.
|
47
47
|
def create_subscription_group(body: nil)
|
48
|
-
|
48
|
+
@api_call
|
49
49
|
.request(new_request_builder(HttpMethodEnum::POST,
|
50
50
|
'/subscription_groups.json',
|
51
51
|
Server::PRODUCTION)
|
@@ -85,9 +85,9 @@ module AdvancedBilling
|
|
85
85
|
# A list of additional information to include in the response. The following
|
86
86
|
# values are supported: - `account_balances`: Account balance information
|
87
87
|
# for the subscription groups. Use in query: `include[]=account_balances`
|
88
|
-
# @return [ListSubscriptionGroupsResponse]
|
88
|
+
# @return [ListSubscriptionGroupsResponse] Response from the API call.
|
89
89
|
def list_subscription_groups(options = {})
|
90
|
-
|
90
|
+
@api_call
|
91
91
|
.request(new_request_builder(HttpMethodEnum::GET,
|
92
92
|
'/subscription_groups.json',
|
93
93
|
Server::PRODUCTION)
|
@@ -114,10 +114,10 @@ module AdvancedBilling
|
|
114
114
|
# @param [Array[SubscriptionGroupInclude]] include Optional parameter:
|
115
115
|
# Allows including additional data in the response. Use in query:
|
116
116
|
# `include[]=current_billing_amount_in_cents`.
|
117
|
-
# @return [FullSubscriptionGroupResponse]
|
117
|
+
# @return [FullSubscriptionGroupResponse] Response from the API call.
|
118
118
|
def read_subscription_group(uid,
|
119
119
|
include: nil)
|
120
|
-
|
120
|
+
@api_call
|
121
121
|
.request(new_request_builder(HttpMethodEnum::GET,
|
122
122
|
'/subscription_groups/{uid}.json',
|
123
123
|
Server::PRODUCTION)
|
@@ -141,12 +141,12 @@ module AdvancedBilling
|
|
141
141
|
# clean up members, just leave the array empty.
|
142
142
|
# @param [String] uid Required parameter: The uid of the subscription
|
143
143
|
# group
|
144
|
-
# @param [UpdateSubscriptionGroupRequest] body Optional parameter:
|
145
|
-
#
|
146
|
-
# @return [SubscriptionGroupResponse]
|
144
|
+
# @param [UpdateSubscriptionGroupRequest] body Optional parameter: TODO:
|
145
|
+
# type description here
|
146
|
+
# @return [SubscriptionGroupResponse] Response from the API call.
|
147
147
|
def update_subscription_group_members(uid,
|
148
148
|
body: nil)
|
149
|
-
|
149
|
+
@api_call
|
150
150
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
151
151
|
'/subscription_groups/{uid}.json',
|
152
152
|
Server::PRODUCTION)
|
@@ -172,9 +172,9 @@ module AdvancedBilling
|
|
172
172
|
# Only groups without members can be deleted
|
173
173
|
# @param [String] uid Required parameter: The uid of the subscription
|
174
174
|
# group
|
175
|
-
# @return [DeleteSubscriptionGroupResponse]
|
175
|
+
# @return [DeleteSubscriptionGroupResponse] Response from the API call.
|
176
176
|
def delete_subscription_group(uid)
|
177
|
-
|
177
|
+
@api_call
|
178
178
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
179
179
|
'/subscription_groups/{uid}.json',
|
180
180
|
Server::PRODUCTION)
|
@@ -196,9 +196,9 @@ module AdvancedBilling
|
|
196
196
|
# If the subscription is not in a group endpoint will return 404 code.
|
197
197
|
# @param [String] subscription_id Required parameter: The Advanced Billing
|
198
198
|
# id of the subscription associated with the subscription group
|
199
|
-
# @return [FullSubscriptionGroupResponse]
|
199
|
+
# @return [FullSubscriptionGroupResponse] Response from the API call.
|
200
200
|
def find_subscription_group(subscription_id)
|
201
|
-
|
201
|
+
@api_call
|
202
202
|
.request(new_request_builder(HttpMethodEnum::GET,
|
203
203
|
'/subscription_groups/lookup.json',
|
204
204
|
Server::PRODUCTION)
|
@@ -247,11 +247,12 @@ module AdvancedBilling
|
|
247
247
|
# subscription#subscription-in-a-subscription-group)
|
248
248
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
249
249
|
# the subscription
|
250
|
-
# @param [AddSubscriptionToAGroup] body Optional parameter:
|
251
|
-
#
|
250
|
+
# @param [AddSubscriptionToAGroup] body Optional parameter: TODO: type
|
251
|
+
# description here
|
252
|
+
# @return [SubscriptionGroupResponse] Response from the API call.
|
252
253
|
def add_subscription_to_group(subscription_id,
|
253
254
|
body: nil)
|
254
|
-
|
255
|
+
@api_call
|
255
256
|
.request(new_request_builder(HttpMethodEnum::POST,
|
256
257
|
'/subscriptions/{subscription_id}/group.json',
|
257
258
|
Server::PRODUCTION)
|
@@ -277,9 +278,9 @@ module AdvancedBilling
|
|
277
278
|
# remove existing subscription from subscription group.
|
278
279
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
279
280
|
# the subscription
|
280
|
-
# @return [void]
|
281
|
+
# @return [void] Response from the API call.
|
281
282
|
def remove_subscription_from_group(subscription_id)
|
282
|
-
|
283
|
+
@api_call
|
283
284
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
284
285
|
'/subscriptions/{subscription_id}/group.json',
|
285
286
|
Server::PRODUCTION)
|