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
|
# InvoicesController
|
@@ -15,11 +15,12 @@ module AdvancedBilling
|
|
15
15
|
# and $20.00 respectively).
|
16
16
|
# @param [String] uid Required parameter: The unique identifier for the
|
17
17
|
# invoice, this does not refer to the public facing invoice number.
|
18
|
-
# @param [RefundInvoiceRequest] body Optional parameter:
|
19
|
-
#
|
18
|
+
# @param [RefundInvoiceRequest] body Optional parameter: TODO: type
|
19
|
+
# description here
|
20
|
+
# @return [Invoice] Response from the API call.
|
20
21
|
def refund_invoice(uid,
|
21
22
|
body: nil)
|
22
|
-
|
23
|
+
@api_call
|
23
24
|
.request(new_request_builder(HttpMethodEnum::POST,
|
24
25
|
'/invoices/{uid}/refunds.json',
|
25
26
|
Server::PRODUCTION)
|
@@ -61,6 +62,9 @@ module AdvancedBilling
|
|
61
62
|
# subscription group you want to fetch consolidated invoices for. This will
|
62
63
|
# return a paginated list of consolidated invoices for the specified
|
63
64
|
# group.
|
65
|
+
# @param [String] consolidation_level Optional parameter: The consolidation
|
66
|
+
# level of the invoice. Allowed Values: none, parent, child or
|
67
|
+
# comma-separated lists of thereof, e.g. none,parent.
|
64
68
|
# @param [Integer] page Optional parameter: Result records are organized in
|
65
69
|
# pages. By default, the first page of results is displayed. The page
|
66
70
|
# parameter specifies a page number of results to fetch. You can start
|
@@ -116,9 +120,9 @@ module AdvancedBilling
|
|
116
120
|
# Use in query `product_ids=23,34`.
|
117
121
|
# @param [InvoiceSortField] sort Optional parameter: Allows specification of
|
118
122
|
# the order of the returned list. Use in query `sort=total_amount`.
|
119
|
-
# @return [ListInvoicesResponse]
|
123
|
+
# @return [ListInvoicesResponse] Response from the API call.
|
120
124
|
def list_invoices(options = {})
|
121
|
-
|
125
|
+
@api_call
|
122
126
|
.request(new_request_builder(HttpMethodEnum::GET,
|
123
127
|
'/invoices.json',
|
124
128
|
Server::PRODUCTION)
|
@@ -127,6 +131,7 @@ module AdvancedBilling
|
|
127
131
|
.query_param(new_parameter(options['status'], key: 'status'))
|
128
132
|
.query_param(new_parameter(options['subscription_id'], key: 'subscription_id'))
|
129
133
|
.query_param(new_parameter(options['subscription_group_uid'], key: 'subscription_group_uid'))
|
134
|
+
.query_param(new_parameter(options['consolidation_level'], key: 'consolidation_level'))
|
130
135
|
.query_param(new_parameter(options['page'], key: 'page'))
|
131
136
|
.query_param(new_parameter(options['per_page'], key: 'per_page'))
|
132
137
|
.query_param(new_parameter(options['direction'], key: 'direction'))
|
@@ -167,9 +172,9 @@ module AdvancedBilling
|
|
167
172
|
# ```
|
168
173
|
# @param [String] uid Required parameter: The unique identifier for the
|
169
174
|
# invoice, this does not refer to the public facing invoice number.
|
170
|
-
# @return [Invoice]
|
175
|
+
# @return [Invoice] Response from the API call.
|
171
176
|
def read_invoice(uid)
|
172
|
-
|
177
|
+
@api_call
|
173
178
|
.request(new_request_builder(HttpMethodEnum::GET,
|
174
179
|
'/invoices/{uid}.json',
|
175
180
|
Server::PRODUCTION)
|
@@ -236,9 +241,9 @@ module AdvancedBilling
|
|
236
241
|
# @param [Array[InvoiceEventType]] event_types Optional parameter: Filter
|
237
242
|
# results by event_type. Supply a comma separated list of event types
|
238
243
|
# (listed above). Use in query: `event_types=void_invoice,void_remainder`.
|
239
|
-
# @return [ListInvoiceEventsResponse]
|
244
|
+
# @return [ListInvoiceEventsResponse] Response from the API call.
|
240
245
|
def list_invoice_events(options = {})
|
241
|
-
|
246
|
+
@api_call
|
242
247
|
.request(new_request_builder(HttpMethodEnum::GET,
|
243
248
|
'/invoices/events.json',
|
244
249
|
Server::PRODUCTION)
|
@@ -258,60 +263,17 @@ module AdvancedBilling
|
|
258
263
|
.execute
|
259
264
|
end
|
260
265
|
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
# ## Create a Payment from the existing payment profile
|
265
|
-
# In order to apply a payment to an invoice using an existing payment
|
266
|
-
# profile, specify `type` as `payment`, the amount less than the invoice
|
267
|
-
# total, and the customer's `payment_profile_id`. The ID of a payment
|
268
|
-
# profile might be retrieved via the Payment Profiles API endpoint.
|
269
|
-
# ```
|
270
|
-
# {
|
271
|
-
# "type": "payment",
|
272
|
-
# "payment": {
|
273
|
-
# "amount": 10.00,
|
274
|
-
# "payment_profile_id": 123
|
275
|
-
# }
|
276
|
-
# }
|
277
|
-
# ```
|
278
|
-
# ## Create a Payment from the Subscription's Prepayment Account
|
279
|
-
# In order apply a prepayment to an invoice, specify the `type` as
|
280
|
-
# `prepayment`, and also the `amount`.
|
281
|
-
# ```
|
282
|
-
# {
|
283
|
-
# "type": "prepayment",
|
284
|
-
# "payment": {
|
285
|
-
# "amount": 10.00
|
286
|
-
# }
|
287
|
-
# }
|
288
|
-
# ```
|
289
|
-
# Note that the `amount` must be less than or equal to the Subscription's
|
290
|
-
# Prepayment account balance.
|
291
|
-
# ## Create a Payment from the Subscription's Service Credit Account
|
292
|
-
# In order to apply a service credit to an invoice, specify the `type` as
|
293
|
-
# `service_credit`, and also the `amount`:
|
294
|
-
# ```
|
295
|
-
# {
|
296
|
-
# "type": "service_credit",
|
297
|
-
# "payment": {
|
298
|
-
# "amount": 10.00
|
299
|
-
# }
|
300
|
-
# }
|
301
|
-
# ```
|
302
|
-
# Note that Advanced Billing will attempt to fully pay the invoice's
|
303
|
-
# `due_amount` from the Subscription's Service Credit account. At this time,
|
304
|
-
# partial payments from a Service Credit Account are only allowed for
|
305
|
-
# consolidated invoices (subscription groups). Therefore, for normal
|
306
|
-
# invoices the Service Credit account balance must be greater than or equal
|
307
|
-
# to the invoice's `due_amount`.
|
266
|
+
# Applies a payment of a given type against a specific invoice. If you would
|
267
|
+
# like to apply a payment across multiple invoices, you can use the Bulk
|
268
|
+
# Payment endpoint.
|
308
269
|
# @param [String] uid Required parameter: The unique identifier for the
|
309
270
|
# invoice, this does not refer to the public facing invoice number.
|
310
|
-
# @param [CreateInvoicePaymentRequest] body Optional parameter:
|
311
|
-
#
|
271
|
+
# @param [CreateInvoicePaymentRequest] body Optional parameter: TODO: type
|
272
|
+
# description here
|
273
|
+
# @return [Invoice] Response from the API call.
|
312
274
|
def record_payment_for_invoice(uid,
|
313
275
|
body: nil)
|
314
|
-
|
276
|
+
@api_call
|
315
277
|
.request(new_request_builder(HttpMethodEnum::POST,
|
316
278
|
'/invoices/{uid}/payments.json',
|
317
279
|
Server::PRODUCTION)
|
@@ -359,11 +321,11 @@ module AdvancedBilling
|
|
359
321
|
# ```
|
360
322
|
# Note that the invoice payment amounts must be greater than 0. Total amount
|
361
323
|
# must be greater or equal to invoices payment amount sum.
|
362
|
-
# @param [CreateMultiInvoicePaymentRequest] body Optional parameter:
|
363
|
-
#
|
364
|
-
# @return [MultiInvoicePaymentResponse]
|
324
|
+
# @param [CreateMultiInvoicePaymentRequest] body Optional parameter: TODO:
|
325
|
+
# type description here
|
326
|
+
# @return [MultiInvoicePaymentResponse] Response from the API call.
|
365
327
|
def record_payment_for_multiple_invoices(body: nil)
|
366
|
-
|
328
|
+
@api_call
|
367
329
|
.request(new_request_builder(HttpMethodEnum::POST,
|
368
330
|
'/invoices/payments.json',
|
369
331
|
Server::PRODUCTION)
|
@@ -411,9 +373,9 @@ module AdvancedBilling
|
|
411
373
|
# refunds data
|
412
374
|
# @param [TrueClass | FalseClass] applications Optional parameter: Include
|
413
375
|
# applications data
|
414
|
-
# @return [ListCreditNotesResponse]
|
376
|
+
# @return [ListCreditNotesResponse] Response from the API call.
|
415
377
|
def list_credit_notes(options = {})
|
416
|
-
|
378
|
+
@api_call
|
417
379
|
.request(new_request_builder(HttpMethodEnum::GET,
|
418
380
|
'/credit_notes.json',
|
419
381
|
Server::PRODUCTION)
|
@@ -436,9 +398,9 @@ module AdvancedBilling
|
|
436
398
|
# Use this endpoint to retrieve the details for a credit note.
|
437
399
|
# @param [String] uid Required parameter: The unique identifier of the
|
438
400
|
# credit note
|
439
|
-
# @return [CreditNote]
|
401
|
+
# @return [CreditNote] Response from the API call.
|
440
402
|
def read_credit_note(uid)
|
441
|
-
|
403
|
+
@api_call
|
442
404
|
.request(new_request_builder(HttpMethodEnum::GET,
|
443
405
|
'/credit_notes/{uid}.json',
|
444
406
|
Server::PRODUCTION)
|
@@ -463,11 +425,12 @@ module AdvancedBilling
|
|
463
425
|
# payment request.
|
464
426
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
465
427
|
# the subscription
|
466
|
-
# @param [RecordPaymentRequest] body Optional parameter:
|
467
|
-
#
|
428
|
+
# @param [RecordPaymentRequest] body Optional parameter: TODO: type
|
429
|
+
# description here
|
430
|
+
# @return [RecordPaymentResponse] Response from the API call.
|
468
431
|
def record_payment_for_subscription(subscription_id,
|
469
432
|
body: nil)
|
470
|
-
|
433
|
+
@api_call
|
471
434
|
.request(new_request_builder(HttpMethodEnum::POST,
|
472
435
|
'/subscriptions/{subscription_id}/payments.json',
|
473
436
|
Server::PRODUCTION)
|
@@ -509,9 +472,9 @@ module AdvancedBilling
|
|
509
472
|
# also be reopened.
|
510
473
|
# @param [String] uid Required parameter: The unique identifier for the
|
511
474
|
# invoice, this does not refer to the public facing invoice number.
|
512
|
-
# @return [Invoice]
|
475
|
+
# @return [Invoice] Response from the API call.
|
513
476
|
def reopen_invoice(uid)
|
514
|
-
|
477
|
+
@api_call
|
515
478
|
.request(new_request_builder(HttpMethodEnum::POST,
|
516
479
|
'/invoices/{uid}/reopen.json',
|
517
480
|
Server::PRODUCTION)
|
@@ -538,11 +501,12 @@ module AdvancedBilling
|
|
538
501
|
# status if it is not a consolidated invoice.
|
539
502
|
# @param [String] uid Required parameter: The unique identifier for the
|
540
503
|
# invoice, this does not refer to the public facing invoice number.
|
541
|
-
# @param [VoidInvoiceRequest] body Optional parameter:
|
542
|
-
#
|
504
|
+
# @param [VoidInvoiceRequest] body Optional parameter: TODO: type
|
505
|
+
# description here
|
506
|
+
# @return [Invoice] Response from the API call.
|
543
507
|
def void_invoice(uid,
|
544
508
|
body: nil)
|
545
|
-
|
509
|
+
@api_call
|
546
510
|
.request(new_request_builder(HttpMethodEnum::POST,
|
547
511
|
'/invoices/{uid}/void.json',
|
548
512
|
Server::PRODUCTION)
|
@@ -585,9 +549,9 @@ module AdvancedBilling
|
|
585
549
|
# Use in query `per_page=200`.
|
586
550
|
# @param [Direction] direction Optional parameter: Sort direction of the
|
587
551
|
# returned segments.
|
588
|
-
# @return [ConsolidatedInvoice]
|
552
|
+
# @return [ConsolidatedInvoice] Response from the API call.
|
589
553
|
def list_consolidated_invoice_segments(options = {})
|
590
|
-
|
554
|
+
@api_call
|
591
555
|
.request(new_request_builder(HttpMethodEnum::GET,
|
592
556
|
'/invoices/{invoice_uid}/segments.json',
|
593
557
|
Server::PRODUCTION)
|
@@ -771,11 +735,12 @@ module AdvancedBilling
|
|
771
735
|
# alternative is `draft`.
|
772
736
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
773
737
|
# the subscription
|
774
|
-
# @param [CreateInvoiceRequest] body Optional parameter:
|
775
|
-
#
|
738
|
+
# @param [CreateInvoiceRequest] body Optional parameter: TODO: type
|
739
|
+
# description here
|
740
|
+
# @return [InvoiceResponse] Response from the API call.
|
776
741
|
def create_invoice(subscription_id,
|
777
742
|
body: nil)
|
778
|
-
|
743
|
+
@api_call
|
779
744
|
.request(new_request_builder(HttpMethodEnum::POST,
|
780
745
|
'/subscriptions/{subscription_id}/invoices.json',
|
781
746
|
Server::PRODUCTION)
|
@@ -813,11 +778,12 @@ module AdvancedBilling
|
|
813
778
|
# entire request will be rejected and a 422 response will be returned.
|
814
779
|
# @param [String] uid Required parameter: The unique identifier for the
|
815
780
|
# invoice, this does not refer to the public facing invoice number.
|
816
|
-
# @param [SendInvoiceRequest] body Optional parameter:
|
817
|
-
#
|
781
|
+
# @param [SendInvoiceRequest] body Optional parameter: TODO: type
|
782
|
+
# description here
|
783
|
+
# @return [void] Response from the API call.
|
818
784
|
def send_invoice(uid,
|
819
785
|
body: nil)
|
820
|
-
|
786
|
+
@api_call
|
821
787
|
.request(new_request_builder(HttpMethodEnum::POST,
|
822
788
|
'/invoices/{uid}/deliveries.json',
|
823
789
|
Server::PRODUCTION)
|
@@ -845,9 +811,9 @@ module AdvancedBilling
|
|
845
811
|
# differences are calculated on the application side.
|
846
812
|
# @param [String] uid Required parameter: The unique identifier for the
|
847
813
|
# invoice, this does not refer to the public facing invoice number.
|
848
|
-
# @return [CustomerChangesPreviewResponse]
|
814
|
+
# @return [CustomerChangesPreviewResponse] Response from the API call.
|
849
815
|
def preview_customer_information_changes(uid)
|
850
|
-
|
816
|
+
@api_call
|
851
817
|
.request(new_request_builder(HttpMethodEnum::POST,
|
852
818
|
'/invoices/{uid}/customer_information/preview.json',
|
853
819
|
Server::PRODUCTION)
|
@@ -877,9 +843,9 @@ module AdvancedBilling
|
|
877
843
|
# differences are calculated on the application side.
|
878
844
|
# @param [String] uid Required parameter: The unique identifier for the
|
879
845
|
# invoice, this does not refer to the public facing invoice number.
|
880
|
-
# @return [Invoice]
|
846
|
+
# @return [Invoice] Response from the API call.
|
881
847
|
def update_customer_information(uid)
|
882
|
-
|
848
|
+
@api_call
|
883
849
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
884
850
|
'/invoices/{uid}/customer_information.json',
|
885
851
|
Server::PRODUCTION)
|
@@ -930,11 +896,12 @@ module AdvancedBilling
|
|
930
896
|
# state (depending upon net terms and dunning settings).
|
931
897
|
# @param [String] uid Required parameter: The unique identifier for the
|
932
898
|
# invoice, this does not refer to the public facing invoice number.
|
933
|
-
# @param [IssueInvoiceRequest] body Optional parameter:
|
934
|
-
#
|
899
|
+
# @param [IssueInvoiceRequest] body Optional parameter: TODO: type
|
900
|
+
# description here
|
901
|
+
# @return [Invoice] Response from the API call.
|
935
902
|
def issue_invoice(uid,
|
936
903
|
body: nil)
|
937
|
-
|
904
|
+
@api_call
|
938
905
|
.request(new_request_builder(HttpMethodEnum::POST,
|
939
906
|
'/invoices/{uid}/issue.json',
|
940
907
|
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
|
# OffersController
|
@@ -23,10 +23,11 @@ module AdvancedBilling
|
|
23
23
|
# with the `product_id` and the offer will use that price point. If a
|
24
24
|
# `product_price_point_id` is not passed in, the product's default price
|
25
25
|
# point will be used.
|
26
|
-
# @param [CreateOfferRequest] body Optional parameter:
|
27
|
-
#
|
26
|
+
# @param [CreateOfferRequest] body Optional parameter: TODO: type
|
27
|
+
# description here
|
28
|
+
# @return [OfferResponse] Response from the API call.
|
28
29
|
def create_offer(body: nil)
|
29
|
-
|
30
|
+
@api_call
|
30
31
|
.request(new_request_builder(HttpMethodEnum::POST,
|
31
32
|
'/offers.json',
|
32
33
|
Server::PRODUCTION)
|
@@ -59,9 +60,9 @@ module AdvancedBilling
|
|
59
60
|
# Use in query `per_page=200`.
|
60
61
|
# @param [TrueClass | FalseClass] include_archived Optional parameter:
|
61
62
|
# Include archived products. Use in query: `include_archived=true`.
|
62
|
-
# @return [ListOffersResponse]
|
63
|
+
# @return [ListOffersResponse] Response from the API call.
|
63
64
|
def list_offers(options = {})
|
64
|
-
|
65
|
+
@api_call
|
65
66
|
.request(new_request_builder(HttpMethodEnum::GET,
|
66
67
|
'/offers.json',
|
67
68
|
Server::PRODUCTION)
|
@@ -84,9 +85,9 @@ module AdvancedBilling
|
|
84
85
|
# different than list all offers for a site, as it requires an `offer_id`.
|
85
86
|
# @param [Integer] offer_id Required parameter: The Chargify id of the
|
86
87
|
# offer
|
87
|
-
# @return [OfferResponse]
|
88
|
+
# @return [OfferResponse] Response from the API call.
|
88
89
|
def read_offer(offer_id)
|
89
|
-
|
90
|
+
@api_call
|
90
91
|
.request(new_request_builder(HttpMethodEnum::GET,
|
91
92
|
'/offers/{offer_id}.json',
|
92
93
|
Server::PRODUCTION)
|
@@ -105,9 +106,9 @@ module AdvancedBilling
|
|
105
106
|
# archive the correct item.
|
106
107
|
# @param [Integer] offer_id Required parameter: The Chargify id of the
|
107
108
|
# offer
|
108
|
-
# @return [void]
|
109
|
+
# @return [void] Response from the API call.
|
109
110
|
def archive_offer(offer_id)
|
110
|
-
|
111
|
+
@api_call
|
111
112
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
112
113
|
'/offers/{offer_id}/archive.json',
|
113
114
|
Server::PRODUCTION)
|
@@ -124,9 +125,9 @@ module AdvancedBilling
|
|
124
125
|
# order to un-archive the correct item.
|
125
126
|
# @param [Integer] offer_id Required parameter: The Chargify id of the
|
126
127
|
# offer
|
127
|
-
# @return [void]
|
128
|
+
# @return [void] Response from the API call.
|
128
129
|
def unarchive_offer(offer_id)
|
129
|
-
|
130
|
+
@api_call
|
130
131
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
131
132
|
'/offers/{offer_id}/unarchive.json',
|
132
133
|
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
|
# PaymentProfilesController
|
@@ -325,9 +325,9 @@ module AdvancedBilling
|
|
325
325
|
# account and mandate will be created in your current vault. If the
|
326
326
|
# customer, bank account, and mandate already exist in your vault, follow
|
327
327
|
# the Import example to link the payment profile into Advanced Billing.
|
328
|
-
# @return [PaymentProfileResponse]
|
328
|
+
# @return [PaymentProfileResponse] Response from the API call.
|
329
329
|
def create_payment_profile(body: nil)
|
330
|
-
|
330
|
+
@api_call
|
331
331
|
.request(new_request_builder(HttpMethodEnum::POST,
|
332
332
|
'/payment_profiles.json',
|
333
333
|
Server::PRODUCTION)
|
@@ -365,9 +365,9 @@ module AdvancedBilling
|
|
365
365
|
# Use in query `per_page=200`.
|
366
366
|
# @param [Integer] customer_id Optional parameter: The ID of the customer
|
367
367
|
# for which you wish to list payment profiles
|
368
|
-
# @return [Array[PaymentProfileResponse]]
|
368
|
+
# @return [Array[PaymentProfileResponse]] Response from the API call.
|
369
369
|
def list_payment_profiles(options = {})
|
370
|
-
|
370
|
+
@api_call
|
371
371
|
.request(new_request_builder(HttpMethodEnum::GET,
|
372
372
|
'/payment_profiles.json',
|
373
373
|
Server::PRODUCTION)
|
@@ -395,6 +395,8 @@ module AdvancedBilling
|
|
395
395
|
# "id": 10089892,
|
396
396
|
# "first_name": "Chester",
|
397
397
|
# "last_name": "Tester",
|
398
|
+
# "created_at": "2025-01-01T00:00:00-05:00",
|
399
|
+
# "updated_at": "2025-01-01T00:00:00-05:00",
|
398
400
|
# "customer_id": 14543792,
|
399
401
|
# "current_vault": "bogus",
|
400
402
|
# "vault_token": "0011223344",
|
@@ -418,9 +420,9 @@ module AdvancedBilling
|
|
418
420
|
# ```
|
419
421
|
# @param [Integer] payment_profile_id Required parameter: The Chargify id of
|
420
422
|
# the payment profile
|
421
|
-
# @return [PaymentProfileResponse]
|
423
|
+
# @return [PaymentProfileResponse] Response from the API call.
|
422
424
|
def read_payment_profile(payment_profile_id)
|
423
|
-
|
425
|
+
@api_call
|
424
426
|
.request(new_request_builder(HttpMethodEnum::GET,
|
425
427
|
'/payment_profiles/{payment_profile_id}.json',
|
426
428
|
Server::PRODUCTION)
|
@@ -482,11 +484,12 @@ module AdvancedBilling
|
|
482
484
|
# trigger a retry for a past due subscription after a partial update.
|
483
485
|
# @param [Integer] payment_profile_id Required parameter: The Chargify id of
|
484
486
|
# the payment profile
|
485
|
-
# @param [UpdatePaymentProfileRequest] body Optional parameter:
|
486
|
-
#
|
487
|
+
# @param [UpdatePaymentProfileRequest] body Optional parameter: TODO: type
|
488
|
+
# description here
|
489
|
+
# @return [PaymentProfileResponse] Response from the API call.
|
487
490
|
def update_payment_profile(payment_profile_id,
|
488
491
|
body: nil)
|
489
|
-
|
492
|
+
@api_call
|
490
493
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
491
494
|
'/payment_profiles/{payment_profile_id}.json',
|
492
495
|
Server::PRODUCTION)
|
@@ -516,9 +519,9 @@ module AdvancedBilling
|
|
516
519
|
# 422 and error message will be returned.
|
517
520
|
# @param [Integer] payment_profile_id Required parameter: The Chargify id of
|
518
521
|
# the payment profile
|
519
|
-
# @return [void]
|
522
|
+
# @return [void] Response from the API call.
|
520
523
|
def delete_unused_payment_profile(payment_profile_id)
|
521
|
-
|
524
|
+
@api_call
|
522
525
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
523
526
|
'/payment_profiles/{payment_profile_id}.json',
|
524
527
|
Server::PRODUCTION)
|
@@ -552,10 +555,10 @@ module AdvancedBilling
|
|
552
555
|
# the subscription
|
553
556
|
# @param [Integer] payment_profile_id Required parameter: The Chargify id of
|
554
557
|
# the payment profile
|
555
|
-
# @return [void]
|
558
|
+
# @return [void] Response from the API call.
|
556
559
|
def delete_subscriptions_payment_profile(subscription_id,
|
557
560
|
payment_profile_id)
|
558
|
-
|
561
|
+
@api_call
|
559
562
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
560
563
|
'/subscriptions/{subscription_id}/payment_profiles/{payment_profile_id}.json',
|
561
564
|
Server::PRODUCTION)
|
@@ -575,12 +578,12 @@ module AdvancedBilling
|
|
575
578
|
# account in order to verify the bank account. (Stripe only)
|
576
579
|
# @param [Integer] bank_account_id Required parameter: Identifier of the
|
577
580
|
# bank account in the system.
|
578
|
-
# @param [BankAccountVerificationRequest] body Optional parameter:
|
579
|
-
#
|
580
|
-
# @return [BankAccountResponse]
|
581
|
+
# @param [BankAccountVerificationRequest] body Optional parameter: TODO:
|
582
|
+
# type description here
|
583
|
+
# @return [BankAccountResponse] Response from the API call.
|
581
584
|
def verify_bank_account(bank_account_id,
|
582
585
|
body: nil)
|
583
|
-
|
586
|
+
@api_call
|
584
587
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
585
588
|
'/bank_accounts/{bank_account_id}/verification.json',
|
586
589
|
Server::PRODUCTION)
|
@@ -612,10 +615,10 @@ module AdvancedBilling
|
|
612
615
|
# group
|
613
616
|
# @param [Integer] payment_profile_id Required parameter: The Chargify id of
|
614
617
|
# the payment profile
|
615
|
-
# @return [void]
|
618
|
+
# @return [void] Response from the API call.
|
616
619
|
def delete_subscription_group_payment_profile(uid,
|
617
620
|
payment_profile_id)
|
618
|
-
|
621
|
+
@api_call
|
619
622
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
620
623
|
'/subscription_groups/{uid}/payment_profiles/{payment_profile_id}.json',
|
621
624
|
Server::PRODUCTION)
|
@@ -639,10 +642,10 @@ module AdvancedBilling
|
|
639
642
|
# the subscription
|
640
643
|
# @param [Integer] payment_profile_id Required parameter: The Chargify id of
|
641
644
|
# the payment profile
|
642
|
-
# @return [PaymentProfileResponse]
|
645
|
+
# @return [PaymentProfileResponse] Response from the API call.
|
643
646
|
def change_subscription_default_payment_profile(subscription_id,
|
644
647
|
payment_profile_id)
|
645
|
-
|
648
|
+
@api_call
|
646
649
|
.request(new_request_builder(HttpMethodEnum::POST,
|
647
650
|
'/subscriptions/{subscription_id}/payment_profiles/{payment_profile_id}/change_payment_profile.json',
|
648
651
|
Server::PRODUCTION)
|
@@ -677,10 +680,10 @@ module AdvancedBilling
|
|
677
680
|
# group
|
678
681
|
# @param [Integer] payment_profile_id Required parameter: The Chargify id of
|
679
682
|
# the payment profile
|
680
|
-
# @return [PaymentProfileResponse]
|
683
|
+
# @return [PaymentProfileResponse] Response from the API call.
|
681
684
|
def change_subscription_group_default_payment_profile(uid,
|
682
685
|
payment_profile_id)
|
683
|
-
|
686
|
+
@api_call
|
684
687
|
.request(new_request_builder(HttpMethodEnum::POST,
|
685
688
|
'/subscription_groups/{uid}/payment_profiles/{payment_profile_id}/change_payment_profile.json',
|
686
689
|
Server::PRODUCTION)
|
@@ -712,9 +715,9 @@ module AdvancedBilling
|
|
712
715
|
# NjAzNDI0-overview).
|
713
716
|
# @param [String] chargify_token Required parameter: Advanced Billing
|
714
717
|
# Token
|
715
|
-
# @return [GetOneTimeTokenRequest]
|
718
|
+
# @return [GetOneTimeTokenRequest] Response from the API call.
|
716
719
|
def read_one_time_token(chargify_token)
|
717
|
-
|
720
|
+
@api_call
|
718
721
|
.request(new_request_builder(HttpMethodEnum::GET,
|
719
722
|
'/one_time_tokens/{chargify_token}.json',
|
720
723
|
Server::PRODUCTION)
|
@@ -749,9 +752,9 @@ module AdvancedBilling
|
|
749
752
|
# encounter errors during the request process.
|
750
753
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
751
754
|
# the subscription
|
752
|
-
# @return [void]
|
755
|
+
# @return [void] Response from the API call.
|
753
756
|
def send_request_update_payment_email(subscription_id)
|
754
|
-
|
757
|
+
@api_call
|
755
758
|
.request(new_request_builder(HttpMethodEnum::POST,
|
756
759
|
'/subscriptions/{subscription_id}/request_payment_profiles_update.json',
|
757
760
|
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
|
# ProductFamiliesController
|
@@ -50,9 +50,9 @@ module AdvancedBilling
|
|
50
50
|
# @param [ListProductsInclude] include Optional parameter: Allows including
|
51
51
|
# additional data in the response. Use in query
|
52
52
|
# `include=prepaid_product_price_point`.
|
53
|
-
# @return [Array[ProductResponse]]
|
53
|
+
# @return [Array[ProductResponse]] Response from the API call.
|
54
54
|
def list_products_for_product_family(options = {})
|
55
|
-
|
55
|
+
@api_call
|
56
56
|
.request(new_request_builder(HttpMethodEnum::GET,
|
57
57
|
'/product_families/{product_family_id}/products.json',
|
58
58
|
Server::PRODUCTION)
|
@@ -76,9 +76,9 @@ module AdvancedBilling
|
|
76
76
|
.deserializer(APIHelper.method(:custom_type_deserializer))
|
77
77
|
.deserialize_into(ProductResponse.method(:from_hash))
|
78
78
|
.is_response_array(true)
|
79
|
-
.
|
80
|
-
|
81
|
-
|
79
|
+
.local_error_template('404',
|
80
|
+
'Not Found:\'{$response.body}\'',
|
81
|
+
APIException))
|
82
82
|
.execute
|
83
83
|
end
|
84
84
|
|
@@ -89,10 +89,11 @@ module AdvancedBilling
|
|
89
89
|
# Billing UI can be located
|
90
90
|
# [here](https://maxio.zendesk.com/hc/en-us/articles/24261098936205-Product-
|
91
91
|
# Families).
|
92
|
-
# @param [CreateProductFamilyRequest] body Optional parameter:
|
93
|
-
#
|
92
|
+
# @param [CreateProductFamilyRequest] body Optional parameter: TODO: type
|
93
|
+
# description here
|
94
|
+
# @return [ProductFamilyResponse] Response from the API call.
|
94
95
|
def create_product_family(body: nil)
|
95
|
-
|
96
|
+
@api_call
|
96
97
|
.request(new_request_builder(HttpMethodEnum::POST,
|
97
98
|
'/product_families.json',
|
98
99
|
Server::PRODUCTION)
|
@@ -134,9 +135,9 @@ module AdvancedBilling
|
|
134
135
|
# products with a timestamp at or before exact time provided in query. You
|
135
136
|
# can specify timezone in query - otherwise your site's time zone will be
|
136
137
|
# used. If provided, this parameter will be used instead of end_date.
|
137
|
-
# @return [Array[ProductFamilyResponse]]
|
138
|
+
# @return [Array[ProductFamilyResponse]] Response from the API call.
|
138
139
|
def list_product_families(options = {})
|
139
|
-
|
140
|
+
@api_call
|
140
141
|
.request(new_request_builder(HttpMethodEnum::GET,
|
141
142
|
'/product_families.json',
|
142
143
|
Server::PRODUCTION)
|
@@ -160,9 +161,9 @@ module AdvancedBilling
|
|
160
161
|
# `handle:my-family` format.
|
161
162
|
# @param [Integer] id Required parameter: The Advanced Billing id of the
|
162
163
|
# product family
|
163
|
-
# @return [ProductFamilyResponse]
|
164
|
+
# @return [ProductFamilyResponse] Response from the API call.
|
164
165
|
def read_product_family(id)
|
165
|
-
|
166
|
+
@api_call
|
166
167
|
.request(new_request_builder(HttpMethodEnum::GET,
|
167
168
|
'/product_families/{id}.json',
|
168
169
|
Server::PRODUCTION)
|