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
|
# SubscriptionInvoiceAccountController
|
@@ -11,9 +11,9 @@ module AdvancedBilling
|
|
11
11
|
# Subscription's open, payable invoices.
|
12
12
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
13
13
|
# the subscription
|
14
|
-
# @return [AccountBalances]
|
14
|
+
# @return [AccountBalances] Response from the API call.
|
15
15
|
def read_account_balances(subscription_id)
|
16
|
-
|
16
|
+
@api_call
|
17
17
|
.request(new_request_builder(HttpMethodEnum::GET,
|
18
18
|
'/subscriptions/{subscription_id}/account_balances.json',
|
19
19
|
Server::PRODUCTION)
|
@@ -38,11 +38,12 @@ module AdvancedBilling
|
|
38
38
|
# Please note that you **can't** pass `amount_in_cents`.
|
39
39
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
40
40
|
# the subscription
|
41
|
-
# @param [CreatePrepaymentRequest] body Optional parameter:
|
42
|
-
#
|
41
|
+
# @param [CreatePrepaymentRequest] body Optional parameter: TODO: type
|
42
|
+
# description here
|
43
|
+
# @return [CreatePrepaymentResponse] Response from the API call.
|
43
44
|
def create_prepayment(subscription_id,
|
44
45
|
body: nil)
|
45
|
-
|
46
|
+
@api_call
|
46
47
|
.request(new_request_builder(HttpMethodEnum::POST,
|
47
48
|
'/subscriptions/{subscription_id}/prepayments.json',
|
48
49
|
Server::PRODUCTION)
|
@@ -80,9 +81,9 @@ module AdvancedBilling
|
|
80
81
|
# Use in query `per_page=200`.
|
81
82
|
# @param [ListPrepaymentsFilter] filter Optional parameter: Filter to use
|
82
83
|
# for List Prepayments operations
|
83
|
-
# @return [PrepaymentsResponse]
|
84
|
+
# @return [PrepaymentsResponse] Response from the API call.
|
84
85
|
def list_prepayments(options = {})
|
85
|
-
|
86
|
+
@api_call
|
86
87
|
.request(new_request_builder(HttpMethodEnum::GET,
|
87
88
|
'/subscriptions/{subscription_id}/prepayments.json',
|
88
89
|
Server::PRODUCTION)
|
@@ -109,11 +110,12 @@ module AdvancedBilling
|
|
109
110
|
# invoice.
|
110
111
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
111
112
|
# the subscription
|
112
|
-
# @param [IssueServiceCreditRequest] body Optional parameter:
|
113
|
-
#
|
113
|
+
# @param [IssueServiceCreditRequest] body Optional parameter: TODO: type
|
114
|
+
# description here
|
115
|
+
# @return [ServiceCredit] Response from the API call.
|
114
116
|
def issue_service_credit(subscription_id,
|
115
117
|
body: nil)
|
116
|
-
|
118
|
+
@api_call
|
117
119
|
.request(new_request_builder(HttpMethodEnum::POST,
|
118
120
|
'/subscriptions/{subscription_id}/service_credits.json',
|
119
121
|
Server::PRODUCTION)
|
@@ -140,11 +142,12 @@ module AdvancedBilling
|
|
140
142
|
# less than the current credit balance.
|
141
143
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
142
144
|
# the subscription
|
143
|
-
# @param [DeductServiceCreditRequest] body Optional parameter:
|
144
|
-
#
|
145
|
+
# @param [DeductServiceCreditRequest] body Optional parameter: TODO: type
|
146
|
+
# description here
|
147
|
+
# @return [void] Response from the API call.
|
145
148
|
def deduct_service_credit(subscription_id,
|
146
149
|
body: nil)
|
147
|
-
|
150
|
+
@api_call
|
148
151
|
.request(new_request_builder(HttpMethodEnum::POST,
|
149
152
|
'/subscriptions/{subscription_id}/service_credit_deductions.json',
|
150
153
|
Server::PRODUCTION)
|
@@ -164,6 +167,52 @@ module AdvancedBilling
|
|
164
167
|
.execute
|
165
168
|
end
|
166
169
|
|
170
|
+
# This request will list a subscription's service credits.
|
171
|
+
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
172
|
+
# the subscription
|
173
|
+
# @param [Integer] page Optional parameter: Result records are organized in
|
174
|
+
# pages. By default, the first page of results is displayed. The page
|
175
|
+
# parameter specifies a page number of results to fetch. You can start
|
176
|
+
# navigating through the pages to consume the results. You do this by
|
177
|
+
# passing in a page parameter. Retrieve the next page by adding ?page=2 to
|
178
|
+
# the query string. If there are no results to return, then an empty result
|
179
|
+
# set will be returned. Use in query `page=1`.
|
180
|
+
# @param [Integer] per_page Optional parameter: This parameter indicates how
|
181
|
+
# many records to fetch in each request. Default value is 20. The maximum
|
182
|
+
# allowed values is 200; any per_page value over 200 will be changed to 200.
|
183
|
+
# Use in query `per_page=200`.
|
184
|
+
# @param [SortingDirection] direction Optional parameter: Controls the order
|
185
|
+
# in which results are returned. Use in query `direction=asc`.
|
186
|
+
# @return [ListServiceCreditsResponse] Response from the API call.
|
187
|
+
def list_service_credits(subscription_id,
|
188
|
+
page: 1,
|
189
|
+
per_page: 20,
|
190
|
+
direction: nil)
|
191
|
+
@api_call
|
192
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
193
|
+
'/subscriptions/{subscription_id}/service_credits/list.json',
|
194
|
+
Server::PRODUCTION)
|
195
|
+
.template_param(new_parameter(subscription_id, key: 'subscription_id')
|
196
|
+
.is_required(true)
|
197
|
+
.should_encode(true))
|
198
|
+
.query_param(new_parameter(page, key: 'page'))
|
199
|
+
.query_param(new_parameter(per_page, key: 'per_page'))
|
200
|
+
.query_param(new_parameter(direction, key: 'direction'))
|
201
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
202
|
+
.auth(Single.new('BasicAuth')))
|
203
|
+
.response(new_response_handler
|
204
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
205
|
+
.deserialize_into(ListServiceCreditsResponse.method(:from_hash))
|
206
|
+
.local_error_template('404',
|
207
|
+
'Not Found:\'{$response.body}\'',
|
208
|
+
APIException)
|
209
|
+
.local_error_template('422',
|
210
|
+
'HTTP Response Not OK. Status code: {$statusCode}.'\
|
211
|
+
' Response: \'{$response.body}\'.',
|
212
|
+
ErrorListResponseException))
|
213
|
+
.execute
|
214
|
+
end
|
215
|
+
|
167
216
|
# This endpoint will refund, completely or partially, a particular
|
168
217
|
# prepayment applied to a subscription. The `prepayment_id` will be the
|
169
218
|
# account transaction ID of the original payment. The prepayment must have
|
@@ -173,12 +222,13 @@ module AdvancedBilling
|
|
173
222
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
174
223
|
# the subscription
|
175
224
|
# @param [Integer] prepayment_id Required parameter: id of prepayment
|
176
|
-
# @param [RefundPrepaymentRequest] body Optional parameter:
|
177
|
-
#
|
225
|
+
# @param [RefundPrepaymentRequest] body Optional parameter: TODO: type
|
226
|
+
# description here
|
227
|
+
# @return [PrepaymentResponse] Response from the API call.
|
178
228
|
def refund_prepayment(subscription_id,
|
179
229
|
prepayment_id,
|
180
230
|
body: nil)
|
181
|
-
|
231
|
+
@api_call
|
182
232
|
.request(new_request_builder(HttpMethodEnum::POST,
|
183
233
|
'/subscriptions/{subscription_id}/prepayments/{prepayment_id}/refunds.json',
|
184
234
|
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
|
# SubscriptionNotesController
|
@@ -18,11 +18,12 @@ module AdvancedBilling
|
|
18
18
|
# tion-Summary-Overview).
|
19
19
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
20
20
|
# the subscription
|
21
|
-
# @param [UpdateSubscriptionNoteRequest] body Optional parameter:
|
22
|
-
#
|
21
|
+
# @param [UpdateSubscriptionNoteRequest] body Optional parameter: TODO: type
|
22
|
+
# description here
|
23
|
+
# @return [SubscriptionNoteResponse] Response from the API call.
|
23
24
|
def create_subscription_note(subscription_id,
|
24
25
|
body: nil)
|
25
|
-
|
26
|
+
@api_call
|
26
27
|
.request(new_request_builder(HttpMethodEnum::POST,
|
27
28
|
'/subscriptions/{subscription_id}/notes.json',
|
28
29
|
Server::PRODUCTION)
|
@@ -59,9 +60,9 @@ module AdvancedBilling
|
|
59
60
|
# many records to fetch in each request. Default value is 20. The maximum
|
60
61
|
# allowed values is 200; any per_page value over 200 will be changed to 200.
|
61
62
|
# Use in query `per_page=200`.
|
62
|
-
# @return [Array[SubscriptionNoteResponse]]
|
63
|
+
# @return [Array[SubscriptionNoteResponse]] Response from the API call.
|
63
64
|
def list_subscription_notes(options = {})
|
64
|
-
|
65
|
+
@api_call
|
65
66
|
.request(new_request_builder(HttpMethodEnum::GET,
|
66
67
|
'/subscriptions/{subscription_id}/notes.json',
|
67
68
|
Server::PRODUCTION)
|
@@ -89,10 +90,10 @@ module AdvancedBilling
|
|
89
90
|
# the subscription
|
90
91
|
# @param [Integer] note_id Required parameter: The Advanced Billing id of
|
91
92
|
# the note
|
92
|
-
# @return [SubscriptionNoteResponse]
|
93
|
+
# @return [SubscriptionNoteResponse] Response from the API call.
|
93
94
|
def read_subscription_note(subscription_id,
|
94
95
|
note_id)
|
95
|
-
|
96
|
+
@api_call
|
96
97
|
.request(new_request_builder(HttpMethodEnum::GET,
|
97
98
|
'/subscriptions/{subscription_id}/notes/{note_id}.json',
|
98
99
|
Server::PRODUCTION)
|
@@ -115,12 +116,13 @@ module AdvancedBilling
|
|
115
116
|
# the subscription
|
116
117
|
# @param [Integer] note_id Required parameter: The Advanced Billing id of
|
117
118
|
# the note
|
118
|
-
# @param [UpdateSubscriptionNoteRequest] body Optional parameter:
|
119
|
-
#
|
119
|
+
# @param [UpdateSubscriptionNoteRequest] body Optional parameter: TODO: type
|
120
|
+
# description here
|
121
|
+
# @return [SubscriptionNoteResponse] Response from the API call.
|
120
122
|
def update_subscription_note(subscription_id,
|
121
123
|
note_id,
|
122
124
|
body: nil)
|
123
|
-
|
125
|
+
@api_call
|
124
126
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
125
127
|
'/subscriptions/{subscription_id}/notes/{note_id}.json',
|
126
128
|
Server::PRODUCTION)
|
@@ -150,10 +152,10 @@ module AdvancedBilling
|
|
150
152
|
# the subscription
|
151
153
|
# @param [Integer] note_id Required parameter: The Advanced Billing id of
|
152
154
|
# the note
|
153
|
-
# @return [void]
|
155
|
+
# @return [void] Response from the API call.
|
154
156
|
def delete_subscription_note(subscription_id,
|
155
157
|
note_id)
|
156
|
-
|
158
|
+
@api_call
|
157
159
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
158
160
|
'/subscriptions/{subscription_id}/notes/{note_id}.json',
|
159
161
|
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
|
# SubscriptionProductsController
|
@@ -102,11 +102,11 @@ module AdvancedBilling
|
|
102
102
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
103
103
|
# the subscription
|
104
104
|
# @param [SubscriptionProductMigrationRequest] body Optional parameter:
|
105
|
-
#
|
106
|
-
# @return [SubscriptionResponse]
|
105
|
+
# TODO: type description here
|
106
|
+
# @return [SubscriptionResponse] Response from the API call.
|
107
107
|
def migrate_subscription_product(subscription_id,
|
108
108
|
body: nil)
|
109
|
-
|
109
|
+
@api_call
|
110
110
|
.request(new_request_builder(HttpMethodEnum::POST,
|
111
111
|
'/subscriptions/{subscription_id}/migrations.json',
|
112
112
|
Server::PRODUCTION)
|
@@ -139,11 +139,11 @@ module AdvancedBilling
|
|
139
139
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
140
140
|
# the subscription
|
141
141
|
# @param [SubscriptionMigrationPreviewRequest] body Optional parameter:
|
142
|
-
#
|
143
|
-
# @return [SubscriptionMigrationPreviewResponse]
|
142
|
+
# TODO: type description here
|
143
|
+
# @return [SubscriptionMigrationPreviewResponse] Response from the API call.
|
144
144
|
def preview_subscription_product_migration(subscription_id,
|
145
145
|
body: nil)
|
146
|
-
|
146
|
+
@api_call
|
147
147
|
.request(new_request_builder(HttpMethodEnum::POST,
|
148
148
|
'/subscriptions/{subscription_id}/migrations/preview.json',
|
149
149
|
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
|
# SubscriptionStatusController
|
@@ -14,9 +14,9 @@ module AdvancedBilling
|
|
14
14
|
# The response will be `422 "Unprocessable Entity`.
|
15
15
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
16
16
|
# the subscription
|
17
|
-
# @return [SubscriptionResponse]
|
17
|
+
# @return [SubscriptionResponse] Response from the API call.
|
18
18
|
def retry_subscription(subscription_id)
|
19
|
-
|
19
|
+
@api_call
|
20
20
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
21
21
|
'/subscriptions/{subscription_id}/retry.json',
|
22
22
|
Server::PRODUCTION)
|
@@ -39,11 +39,12 @@ module AdvancedBilling
|
|
39
39
|
# the method sets the Subscription state to "canceled".
|
40
40
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
41
41
|
# the subscription
|
42
|
-
# @param [CancellationRequest] body Optional parameter:
|
43
|
-
#
|
42
|
+
# @param [CancellationRequest] body Optional parameter: TODO: type
|
43
|
+
# description here
|
44
|
+
# @return [SubscriptionResponse] Response from the API call.
|
44
45
|
def cancel_subscription(subscription_id,
|
45
46
|
body: nil)
|
46
|
-
|
47
|
+
@api_call
|
47
48
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
48
49
|
'/subscriptions/{subscription_id}.json',
|
49
50
|
Server::PRODUCTION)
|
@@ -77,10 +78,10 @@ module AdvancedBilling
|
|
77
78
|
# @param [ResumptionCharge] calendar_billing_resumption_charge Optional
|
78
79
|
# parameter: (For calendar billing subscriptions only) The way that the
|
79
80
|
# resumed subscription's charge should be handled
|
80
|
-
# @return [SubscriptionResponse]
|
81
|
+
# @return [SubscriptionResponse] Response from the API call.
|
81
82
|
def resume_subscription(subscription_id,
|
82
83
|
calendar_billing_resumption_charge: ResumptionCharge::PRORATED)
|
83
|
-
|
84
|
+
@api_call
|
84
85
|
.request(new_request_builder(HttpMethodEnum::POST,
|
85
86
|
'/subscriptions/{subscription_id}/resume.json',
|
86
87
|
Server::PRODUCTION)
|
@@ -107,11 +108,12 @@ module AdvancedBilling
|
|
107
108
|
# within 24 hours.
|
108
109
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
109
110
|
# the subscription
|
110
|
-
# @param [PauseRequest] body Optional parameter:
|
111
|
-
#
|
111
|
+
# @param [PauseRequest] body Optional parameter: TODO: type description
|
112
|
+
# here
|
113
|
+
# @return [SubscriptionResponse] Response from the API call.
|
112
114
|
def pause_subscription(subscription_id,
|
113
115
|
body: nil)
|
114
|
-
|
116
|
+
@api_call
|
115
117
|
.request(new_request_builder(HttpMethodEnum::POST,
|
116
118
|
'/subscriptions/{subscription_id}/hold.json',
|
117
119
|
Server::PRODUCTION)
|
@@ -142,11 +144,12 @@ module AdvancedBilling
|
|
142
144
|
# would like the subscription to not have a resume date.
|
143
145
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
144
146
|
# the subscription
|
145
|
-
# @param [PauseRequest] body Optional parameter:
|
146
|
-
#
|
147
|
+
# @param [PauseRequest] body Optional parameter: TODO: type description
|
148
|
+
# here
|
149
|
+
# @return [SubscriptionResponse] Response from the API call.
|
147
150
|
def update_automatic_subscription_resumption(subscription_id,
|
148
151
|
body: nil)
|
149
|
-
|
152
|
+
@api_call
|
150
153
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
151
154
|
'/subscriptions/{subscription_id}/hold.json',
|
152
155
|
Server::PRODUCTION)
|
@@ -308,11 +311,12 @@ module AdvancedBilling
|
|
308
311
|
# + Any product-related charges should have been collected
|
309
312
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
310
313
|
# the subscription
|
311
|
-
# @param [ReactivateSubscriptionRequest] body Optional parameter:
|
312
|
-
#
|
314
|
+
# @param [ReactivateSubscriptionRequest] body Optional parameter: TODO: type
|
315
|
+
# description here
|
316
|
+
# @return [SubscriptionResponse] Response from the API call.
|
313
317
|
def reactivate_subscription(subscription_id,
|
314
318
|
body: nil)
|
315
|
-
|
319
|
+
@api_call
|
316
320
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
317
321
|
'/subscriptions/{subscription_id}/reactivate.json',
|
318
322
|
Server::PRODUCTION)
|
@@ -342,11 +346,12 @@ module AdvancedBilling
|
|
342
346
|
# creation, or if the subscription is past due.
|
343
347
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
344
348
|
# the subscription
|
345
|
-
# @param [CancellationRequest] body Optional parameter:
|
346
|
-
#
|
349
|
+
# @param [CancellationRequest] body Optional parameter: TODO: type
|
350
|
+
# description here
|
351
|
+
# @return [DelayedCancellationResponse] Response from the API call.
|
347
352
|
def initiate_delayed_cancellation(subscription_id,
|
348
353
|
body: nil)
|
349
|
-
|
354
|
+
@api_call
|
350
355
|
.request(new_request_builder(HttpMethodEnum::POST,
|
351
356
|
'/subscriptions/{subscription_id}/delayed_cancel.json',
|
352
357
|
Server::PRODUCTION)
|
@@ -379,9 +384,9 @@ module AdvancedBilling
|
|
379
384
|
# will be successful.
|
380
385
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
381
386
|
# the subscription
|
382
|
-
# @return [DelayedCancellationResponse]
|
387
|
+
# @return [DelayedCancellationResponse] Response from the API call.
|
383
388
|
def cancel_delayed_cancellation(subscription_id)
|
384
|
-
|
389
|
+
@api_call
|
385
390
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
386
391
|
'/subscriptions/{subscription_id}/delayed_cancel.json',
|
387
392
|
Server::PRODUCTION)
|
@@ -403,9 +408,9 @@ module AdvancedBilling
|
|
403
408
|
# active and the active Dunner will be resolved.
|
404
409
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
405
410
|
# the subscription
|
406
|
-
# @return [SubscriptionResponse]
|
411
|
+
# @return [SubscriptionResponse] Response from the API call.
|
407
412
|
def cancel_dunning(subscription_id)
|
408
|
-
|
413
|
+
@api_call
|
409
414
|
.request(new_request_builder(HttpMethodEnum::POST,
|
410
415
|
'/subscriptions/{subscription_id}/cancel_dunning.json',
|
411
416
|
Server::PRODUCTION)
|
@@ -458,11 +463,12 @@ module AdvancedBilling
|
|
458
463
|
# changes against a subscription.
|
459
464
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
460
465
|
# the subscription
|
461
|
-
# @param [RenewalPreviewRequest] body Optional parameter:
|
462
|
-
#
|
466
|
+
# @param [RenewalPreviewRequest] body Optional parameter: TODO: type
|
467
|
+
# description here
|
468
|
+
# @return [RenewalPreviewResponse] Response from the API call.
|
463
469
|
def preview_renewal(subscription_id,
|
464
470
|
body: nil)
|
465
|
-
|
471
|
+
@api_call
|
466
472
|
.request(new_request_builder(HttpMethodEnum::POST,
|
467
473
|
'/subscriptions/{subscription_id}/renewals/preview.json',
|
468
474
|
Server::PRODUCTION)
|