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
|
# ProductPricePointsController
|
@@ -12,12 +12,12 @@ module AdvancedBilling
|
|
12
12
|
# @param [Integer | String] product_id Required parameter: The id or handle
|
13
13
|
# of the product. When using the handle, it must be prefixed with
|
14
14
|
# `handle:`
|
15
|
-
# @param [CreateProductPricePointRequest] body Optional parameter:
|
16
|
-
#
|
17
|
-
# @return [ProductPricePointResponse]
|
15
|
+
# @param [CreateProductPricePointRequest] body Optional parameter: TODO:
|
16
|
+
# type description here
|
17
|
+
# @return [ProductPricePointResponse] Response from the API call.
|
18
18
|
def create_product_price_point(product_id,
|
19
19
|
body: nil)
|
20
|
-
|
20
|
+
@api_call
|
21
21
|
.request(new_request_builder(HttpMethodEnum::POST,
|
22
22
|
'/products/{product_id}/price_points.json',
|
23
23
|
Server::PRODUCTION)
|
@@ -69,9 +69,9 @@ module AdvancedBilling
|
|
69
69
|
# query: `filter[type]=catalog,default`.
|
70
70
|
# @param [TrueClass | FalseClass] archived Optional parameter: Set to
|
71
71
|
# include archived price points in the response.
|
72
|
-
# @return [ListProductPricePointsResponse]
|
72
|
+
# @return [ListProductPricePointsResponse] Response from the API call.
|
73
73
|
def list_product_price_points(options = {})
|
74
|
-
|
74
|
+
@api_call
|
75
75
|
.request(new_request_builder(HttpMethodEnum::GET,
|
76
76
|
'/products/{product_id}/price_points.json',
|
77
77
|
Server::PRODUCTION)
|
@@ -106,13 +106,13 @@ module AdvancedBilling
|
|
106
106
|
# handle of the price point. When using the handle, it must be prefixed with
|
107
107
|
# `handle:`. Example: `123` for an integer ID, or
|
108
108
|
# `handle:example-product-price-point-handle` for a string handle.
|
109
|
-
# @param [UpdateProductPricePointRequest] body Optional parameter:
|
110
|
-
#
|
111
|
-
# @return [ProductPricePointResponse]
|
109
|
+
# @param [UpdateProductPricePointRequest] body Optional parameter: TODO:
|
110
|
+
# type description here
|
111
|
+
# @return [ProductPricePointResponse] Response from the API call.
|
112
112
|
def update_product_price_point(product_id,
|
113
113
|
price_point_id,
|
114
114
|
body: nil)
|
115
|
-
|
115
|
+
@api_call
|
116
116
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
117
117
|
'/products/{product_id}/price_points/{price_point_id}.json',
|
118
118
|
Server::PRODUCTION)
|
@@ -158,11 +158,11 @@ module AdvancedBilling
|
|
158
158
|
# product price point is set to use_site_exchange_rate: true, it will return
|
159
159
|
# pricing based on the current exchange rate. If the flag is set to false,
|
160
160
|
# it will return all of the defined prices for each currency.
|
161
|
-
# @return [ProductPricePointResponse]
|
161
|
+
# @return [ProductPricePointResponse] Response from the API call.
|
162
162
|
def read_product_price_point(product_id,
|
163
163
|
price_point_id,
|
164
164
|
currency_prices: nil)
|
165
|
-
|
165
|
+
@api_call
|
166
166
|
.request(new_request_builder(HttpMethodEnum::GET,
|
167
167
|
'/products/{product_id}/price_points/{price_point_id}.json',
|
168
168
|
Server::PRODUCTION)
|
@@ -198,10 +198,10 @@ module AdvancedBilling
|
|
198
198
|
# handle of the price point. When using the handle, it must be prefixed with
|
199
199
|
# `handle:`. Example: `123` for an integer ID, or
|
200
200
|
# `handle:example-product-price-point-handle` for a string handle.
|
201
|
-
# @return [ProductPricePointResponse]
|
201
|
+
# @return [ProductPricePointResponse] Response from the API call.
|
202
202
|
def archive_product_price_point(product_id,
|
203
203
|
price_point_id)
|
204
|
-
|
204
|
+
@api_call
|
205
205
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
206
206
|
'/products/{product_id}/price_points/{price_point_id}.json',
|
207
207
|
Server::PRODUCTION)
|
@@ -236,10 +236,10 @@ module AdvancedBilling
|
|
236
236
|
# the product to which the price point belongs
|
237
237
|
# @param [Integer] price_point_id Required parameter: The Advanced Billing
|
238
238
|
# id of the product price point
|
239
|
-
# @return [ProductPricePointResponse]
|
239
|
+
# @return [ProductPricePointResponse] Response from the API call.
|
240
240
|
def unarchive_product_price_point(product_id,
|
241
241
|
price_point_id)
|
242
|
-
|
242
|
+
@api_call
|
243
243
|
.request(new_request_builder(HttpMethodEnum::PATCH,
|
244
244
|
'/products/{product_id}/price_points/{price_point_id}/unarchive.json',
|
245
245
|
Server::PRODUCTION)
|
@@ -265,10 +265,10 @@ module AdvancedBilling
|
|
265
265
|
# the product to which the price point belongs
|
266
266
|
# @param [Integer] price_point_id Required parameter: The Advanced Billing
|
267
267
|
# id of the product price point
|
268
|
-
# @return [ProductResponse]
|
268
|
+
# @return [ProductResponse] Response from the API call.
|
269
269
|
def promote_product_price_point_to_default(product_id,
|
270
270
|
price_point_id)
|
271
|
-
|
271
|
+
@api_call
|
272
272
|
.request(new_request_builder(HttpMethodEnum::PATCH,
|
273
273
|
'/products/{product_id}/price_points/{price_point_id}/default.json',
|
274
274
|
Server::PRODUCTION)
|
@@ -290,11 +290,11 @@ module AdvancedBilling
|
|
290
290
|
# @param [Integer] product_id Required parameter: The Advanced Billing id of
|
291
291
|
# the product to which the price points belong
|
292
292
|
# @param [BulkCreateProductPricePointsRequest] body Optional parameter:
|
293
|
-
#
|
294
|
-
# @return [BulkCreateProductPricePointsResponse]
|
293
|
+
# TODO: type description here
|
294
|
+
# @return [BulkCreateProductPricePointsResponse] Response from the API call.
|
295
295
|
def bulk_create_product_price_points(product_id,
|
296
296
|
body: nil)
|
297
|
-
|
297
|
+
@api_call
|
298
298
|
.request(new_request_builder(HttpMethodEnum::POST,
|
299
299
|
'/products/{product_id}/price_points/bulk.json',
|
300
300
|
Server::PRODUCTION)
|
@@ -325,12 +325,12 @@ module AdvancedBilling
|
|
325
325
|
# points.
|
326
326
|
# @param [Integer] product_price_point_id Required parameter: The Advanced
|
327
327
|
# Billing id of the product price point
|
328
|
-
# @param [CreateProductCurrencyPricesRequest] body Optional parameter:
|
329
|
-
#
|
330
|
-
# @return [CurrencyPricesResponse]
|
328
|
+
# @param [CreateProductCurrencyPricesRequest] body Optional parameter: TODO:
|
329
|
+
# type description here
|
330
|
+
# @return [CurrencyPricesResponse] Response from the API call.
|
331
331
|
def create_product_currency_prices(product_price_point_id,
|
332
332
|
body: nil)
|
333
|
-
|
333
|
+
@api_call
|
334
334
|
.request(new_request_builder(HttpMethodEnum::POST,
|
335
335
|
'/product_price_points/{product_price_point_id}/currency_prices.json',
|
336
336
|
Server::PRODUCTION)
|
@@ -361,11 +361,12 @@ module AdvancedBilling
|
|
361
361
|
# points.
|
362
362
|
# @param [Integer] product_price_point_id Required parameter: The Advanced
|
363
363
|
# Billing id of the product price point
|
364
|
-
# @param [UpdateCurrencyPricesRequest] body Optional parameter:
|
365
|
-
#
|
364
|
+
# @param [UpdateCurrencyPricesRequest] body Optional parameter: TODO: type
|
365
|
+
# description here
|
366
|
+
# @return [CurrencyPricesResponse] Response from the API call.
|
366
367
|
def update_product_currency_prices(product_price_point_id,
|
367
368
|
body: nil)
|
368
|
-
|
369
|
+
@api_call
|
369
370
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
370
371
|
'/product_price_points/{product_price_point_id}/currency_prices.json',
|
371
372
|
Server::PRODUCTION)
|
@@ -407,9 +408,9 @@ module AdvancedBilling
|
|
407
408
|
# many records to fetch in each request. Default value is 20. The maximum
|
408
409
|
# allowed values is 200; any per_page value over 200 will be changed to 200.
|
409
410
|
# Use in query `per_page=200`.
|
410
|
-
# @return [ListProductPricePointsResponse]
|
411
|
+
# @return [ListProductPricePointsResponse] Response from the API call.
|
411
412
|
def list_all_product_price_points(options = {})
|
412
|
-
|
413
|
+
@api_call
|
413
414
|
.request(new_request_builder(HttpMethodEnum::GET,
|
414
415
|
'/products_price_points.json',
|
415
416
|
Server::PRODUCTION)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# advanced_billing
|
2
2
|
#
|
3
|
-
# This file was automatically generated
|
4
|
-
# ( https://apimatic.io ).
|
3
|
+
# This file was automatically generated for Maxio by
|
4
|
+
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
5
5
|
|
6
6
|
module AdvancedBilling
|
7
7
|
# ProductsController
|
@@ -15,11 +15,12 @@ module AdvancedBilling
|
|
15
15
|
# t-Changes-and-Migrations)
|
16
16
|
# @param [String] product_family_id Required parameter: Either the product
|
17
17
|
# family's id or its handle prefixed with `handle:`
|
18
|
-
# @param [CreateOrUpdateProductRequest] body Optional parameter:
|
19
|
-
#
|
18
|
+
# @param [CreateOrUpdateProductRequest] body Optional parameter: TODO: type
|
19
|
+
# description here
|
20
|
+
# @return [ProductResponse] Response from the API call.
|
20
21
|
def create_product(product_family_id,
|
21
22
|
body: nil)
|
22
|
-
|
23
|
+
@api_call
|
23
24
|
.request(new_request_builder(HttpMethodEnum::POST,
|
24
25
|
'/product_families/{product_family_id}/products.json',
|
25
26
|
Server::PRODUCTION)
|
@@ -45,9 +46,9 @@ module AdvancedBilling
|
|
45
46
|
# you've created in Advanced Billing.
|
46
47
|
# @param [Integer] product_id Required parameter: The Advanced Billing id of
|
47
48
|
# the product
|
48
|
-
# @return [ProductResponse]
|
49
|
+
# @return [ProductResponse] Response from the API call.
|
49
50
|
def read_product(product_id)
|
50
|
-
|
51
|
+
@api_call
|
51
52
|
.request(new_request_builder(HttpMethodEnum::GET,
|
52
53
|
'/products/{product_id}.json',
|
53
54
|
Server::PRODUCTION)
|
@@ -72,11 +73,12 @@ module AdvancedBilling
|
|
72
73
|
# update an existing product price point, that must be done separately.
|
73
74
|
# @param [Integer] product_id Required parameter: The Advanced Billing id of
|
74
75
|
# the product
|
75
|
-
# @param [CreateOrUpdateProductRequest] body Optional parameter:
|
76
|
-
#
|
76
|
+
# @param [CreateOrUpdateProductRequest] body Optional parameter: TODO: type
|
77
|
+
# description here
|
78
|
+
# @return [ProductResponse] Response from the API call.
|
77
79
|
def update_product(product_id,
|
78
80
|
body: nil)
|
79
|
-
|
81
|
+
@api_call
|
80
82
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
81
83
|
'/products/{product_id}.json',
|
82
84
|
Server::PRODUCTION)
|
@@ -105,9 +107,9 @@ module AdvancedBilling
|
|
105
107
|
# Billing Portal, as well as disable Public Signup Pages for the product.
|
106
108
|
# @param [Integer] product_id Required parameter: The Advanced Billing id of
|
107
109
|
# the product
|
108
|
-
# @return [ProductResponse]
|
110
|
+
# @return [ProductResponse] Response from the API call.
|
109
111
|
def archive_product(product_id)
|
110
|
-
|
112
|
+
@api_call
|
111
113
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
112
114
|
'/products/{product_id}.json',
|
113
115
|
Server::PRODUCTION)
|
@@ -128,9 +130,9 @@ module AdvancedBilling
|
|
128
130
|
|
129
131
|
# This method allows to retrieve a Product object by its `api_handle`.
|
130
132
|
# @param [String] api_handle Required parameter: The handle of the product
|
131
|
-
# @return [ProductResponse]
|
133
|
+
# @return [ProductResponse] Response from the API call.
|
132
134
|
def read_product_by_handle(api_handle)
|
133
|
-
|
135
|
+
@api_call
|
134
136
|
.request(new_request_builder(HttpMethodEnum::GET,
|
135
137
|
'/products/handle/{api_handle}.json',
|
136
138
|
Server::PRODUCTION)
|
@@ -186,9 +188,9 @@ module AdvancedBilling
|
|
186
188
|
# @param [ListProductsInclude] include Optional parameter: Allows including
|
187
189
|
# additional data in the response. Use in query
|
188
190
|
# `include=prepaid_product_price_point`.
|
189
|
-
# @return [Array[ProductResponse]]
|
191
|
+
# @return [Array[ProductResponse]] Response from the API call.
|
190
192
|
def list_products(options = {})
|
191
|
-
|
193
|
+
@api_call
|
192
194
|
.request(new_request_builder(HttpMethodEnum::GET,
|
193
195
|
'/products.json',
|
194
196
|
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
|
# ProformaInvoicesController
|
@@ -19,9 +19,9 @@ module AdvancedBilling
|
|
19
19
|
# be in a live state.
|
20
20
|
# @param [String] uid Required parameter: The uid of the subscription
|
21
21
|
# group
|
22
|
-
# @return [void]
|
22
|
+
# @return [void] Response from the API call.
|
23
23
|
def create_consolidated_proforma_invoice(uid)
|
24
|
-
|
24
|
+
@api_call
|
25
25
|
.request(new_request_builder(HttpMethodEnum::POST,
|
26
26
|
'/subscription_groups/{uid}/proforma_invoices.json',
|
27
27
|
Server::PRODUCTION)
|
@@ -58,9 +58,9 @@ module AdvancedBilling
|
|
58
58
|
# payments data
|
59
59
|
# @param [TrueClass | FalseClass] custom_fields Optional parameter: Include
|
60
60
|
# custom fields data
|
61
|
-
# @return [ListProformaInvoicesResponse]
|
61
|
+
# @return [ListProformaInvoicesResponse] Response from the API call.
|
62
62
|
def list_subscription_group_proforma_invoices(options = {})
|
63
|
-
|
63
|
+
@api_call
|
64
64
|
.request(new_request_builder(HttpMethodEnum::GET,
|
65
65
|
'/subscription_groups/{uid}/proforma_invoices.json',
|
66
66
|
Server::PRODUCTION)
|
@@ -89,9 +89,9 @@ module AdvancedBilling
|
|
89
89
|
# Proforma invoices are only available on Relationship Invoicing sites.
|
90
90
|
# @param [String] proforma_invoice_uid Required parameter: The uid of the
|
91
91
|
# proforma invoice
|
92
|
-
# @return [ProformaInvoice]
|
92
|
+
# @return [ProformaInvoice] Response from the API call.
|
93
93
|
def read_proforma_invoice(proforma_invoice_uid)
|
94
|
-
|
94
|
+
@api_call
|
95
95
|
.request(new_request_builder(HttpMethodEnum::GET,
|
96
96
|
'/proforma_invoices/{proforma_invoice_uid}.json',
|
97
97
|
Server::PRODUCTION)
|
@@ -120,9 +120,9 @@ module AdvancedBilling
|
|
120
120
|
# not be prepaid, and must be in a live state.
|
121
121
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
122
122
|
# the subscription
|
123
|
-
# @return [ProformaInvoice]
|
123
|
+
# @return [ProformaInvoice] Response from the API call.
|
124
124
|
def create_proforma_invoice(subscription_id)
|
125
|
-
|
125
|
+
@api_call
|
126
126
|
.request(new_request_builder(HttpMethodEnum::POST,
|
127
127
|
'/subscriptions/{subscription_id}/proforma_invoices.json',
|
128
128
|
Server::PRODUCTION)
|
@@ -179,9 +179,9 @@ module AdvancedBilling
|
|
179
179
|
# payments data
|
180
180
|
# @param [TrueClass | FalseClass] custom_fields Optional parameter: Include
|
181
181
|
# custom fields data
|
182
|
-
# @return [ListProformaInvoicesResponse]
|
182
|
+
# @return [ListProformaInvoicesResponse] Response from the API call.
|
183
183
|
def list_proforma_invoices(options = {})
|
184
|
-
|
184
|
+
@api_call
|
185
185
|
.request(new_request_builder(HttpMethodEnum::GET,
|
186
186
|
'/subscriptions/{subscription_id}/proforma_invoices.json',
|
187
187
|
Server::PRODUCTION)
|
@@ -219,11 +219,12 @@ module AdvancedBilling
|
|
219
219
|
# and an error message.
|
220
220
|
# @param [String] proforma_invoice_uid Required parameter: The uid of the
|
221
221
|
# proforma invoice
|
222
|
-
# @param [VoidInvoiceRequest] body Optional parameter:
|
223
|
-
#
|
222
|
+
# @param [VoidInvoiceRequest] body Optional parameter: TODO: type
|
223
|
+
# description here
|
224
|
+
# @return [ProformaInvoice] Response from the API call.
|
224
225
|
def void_proforma_invoice(proforma_invoice_uid,
|
225
226
|
body: nil)
|
226
|
-
|
227
|
+
@api_call
|
227
228
|
.request(new_request_builder(HttpMethodEnum::POST,
|
228
229
|
'/proforma_invoices/{proforma_invoice_uid}/void.json',
|
229
230
|
Server::PRODUCTION)
|
@@ -267,9 +268,9 @@ module AdvancedBilling
|
|
267
268
|
# subscription's upcoming renewal has changed.
|
268
269
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
269
270
|
# the subscription
|
270
|
-
# @return [ProformaInvoice]
|
271
|
+
# @return [ProformaInvoice] Response from the API call.
|
271
272
|
def preview_proforma_invoice(subscription_id)
|
272
|
-
|
273
|
+
@api_call
|
273
274
|
.request(new_request_builder(HttpMethodEnum::POST,
|
274
275
|
'/subscriptions/{subscription_id}/proforma_invoices/preview.json',
|
275
276
|
Server::PRODUCTION)
|
@@ -305,10 +306,11 @@ module AdvancedBilling
|
|
305
306
|
# requirements. We recommend associating the proforma invoice with a
|
306
307
|
# customer_id to easily find their proforma invoices, since the
|
307
308
|
# subscription_id will always be blank.
|
308
|
-
# @param [CreateSubscriptionRequest] body Optional parameter:
|
309
|
-
#
|
309
|
+
# @param [CreateSubscriptionRequest] body Optional parameter: TODO: type
|
310
|
+
# description here
|
311
|
+
# @return [ProformaInvoice] Response from the API call.
|
310
312
|
def create_signup_proforma_invoice(body: nil)
|
311
|
-
|
313
|
+
@api_call
|
312
314
|
.request(new_request_builder(HttpMethodEnum::POST,
|
313
315
|
'/subscriptions/proforma_invoices.json',
|
314
316
|
Server::PRODUCTION)
|
@@ -347,11 +349,12 @@ module AdvancedBilling
|
|
347
349
|
# @param [CreateSignupProformaPreviewInclude] include Optional parameter:
|
348
350
|
# Choose to include a proforma invoice preview for the first renewal. Use in
|
349
351
|
# query `include=next_proforma_invoice`.
|
350
|
-
# @param [CreateSubscriptionRequest] body Optional parameter:
|
351
|
-
#
|
352
|
+
# @param [CreateSubscriptionRequest] body Optional parameter: TODO: type
|
353
|
+
# description here
|
354
|
+
# @return [SignupProformaPreviewResponse] Response from the API call.
|
352
355
|
def preview_signup_proforma_invoice(include: nil,
|
353
356
|
body: nil)
|
354
|
-
|
357
|
+
@api_call
|
355
358
|
.request(new_request_builder(HttpMethodEnum::POST,
|
356
359
|
'/subscriptions/proforma_invoices/preview.json',
|
357
360
|
Server::PRODUCTION)
|
@@ -1,14 +1,14 @@
|
|
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
|
# ReasonCodesController
|
8
8
|
class ReasonCodesController < BaseController
|
9
9
|
# # Reason Codes Intro
|
10
10
|
# ReasonCodes are a way to gain a high level view of why your customers are
|
11
|
-
# cancelling the
|
11
|
+
# cancelling the subscription to your product or service.
|
12
12
|
# Add a set of churn reason codes to be displayed in-app and/or the Maxio
|
13
13
|
# Billing Portal. As your subscribers decide to cancel their subscription,
|
14
14
|
# learn why they decided to cancel.
|
@@ -21,10 +21,11 @@ module AdvancedBilling
|
|
21
21
|
# ## Create Reason Code
|
22
22
|
# This method gives a merchant the option to create a reason codes for a
|
23
23
|
# given Site.
|
24
|
-
# @param [CreateReasonCodeRequest] body Optional parameter:
|
25
|
-
#
|
24
|
+
# @param [CreateReasonCodeRequest] body Optional parameter: TODO: type
|
25
|
+
# description here
|
26
|
+
# @return [ReasonCodeResponse] Response from the API call.
|
26
27
|
def create_reason_code(body: nil)
|
27
|
-
|
28
|
+
@api_call
|
28
29
|
.request(new_request_builder(HttpMethodEnum::POST,
|
29
30
|
'/reason_codes.json',
|
30
31
|
Server::PRODUCTION)
|
@@ -56,9 +57,9 @@ module AdvancedBilling
|
|
56
57
|
# many records to fetch in each request. Default value is 20. The maximum
|
57
58
|
# allowed values is 200; any per_page value over 200 will be changed to 200.
|
58
59
|
# Use in query `per_page=200`.
|
59
|
-
# @return [Array[ReasonCodeResponse]]
|
60
|
+
# @return [Array[ReasonCodeResponse]] Response from the API call.
|
60
61
|
def list_reason_codes(options = {})
|
61
|
-
|
62
|
+
@api_call
|
62
63
|
.request(new_request_builder(HttpMethodEnum::GET,
|
63
64
|
'/reason_codes.json',
|
64
65
|
Server::PRODUCTION)
|
@@ -81,9 +82,9 @@ module AdvancedBilling
|
|
81
82
|
# code for a given Site by providing the unique numerical ID of the code.
|
82
83
|
# @param [Integer] reason_code_id Required parameter: The Advanced Billing
|
83
84
|
# id of the reason code
|
84
|
-
# @return [ReasonCodeResponse]
|
85
|
+
# @return [ReasonCodeResponse] Response from the API call.
|
85
86
|
def read_reason_code(reason_code_id)
|
86
|
-
|
87
|
+
@api_call
|
87
88
|
.request(new_request_builder(HttpMethodEnum::GET,
|
88
89
|
'/reason_codes/{reason_code_id}.json',
|
89
90
|
Server::PRODUCTION)
|
@@ -105,11 +106,12 @@ module AdvancedBilling
|
|
105
106
|
# for a given site.
|
106
107
|
# @param [Integer] reason_code_id Required parameter: The Advanced Billing
|
107
108
|
# id of the reason code
|
108
|
-
# @param [UpdateReasonCodeRequest] body Optional parameter:
|
109
|
-
#
|
109
|
+
# @param [UpdateReasonCodeRequest] body Optional parameter: TODO: type
|
110
|
+
# description here
|
111
|
+
# @return [ReasonCodeResponse] Response from the API call.
|
110
112
|
def update_reason_code(reason_code_id,
|
111
113
|
body: nil)
|
112
|
-
|
114
|
+
@api_call
|
113
115
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
114
116
|
'/reason_codes/{reason_code_id}.json',
|
115
117
|
Server::PRODUCTION)
|
@@ -136,12 +138,12 @@ module AdvancedBilling
|
|
136
138
|
|
137
139
|
# This method gives a merchant the option to delete one reason code from the
|
138
140
|
# Churn Reason Codes. This code will be immediately removed. This action is
|
139
|
-
# not
|
141
|
+
# not reversible.
|
140
142
|
# @param [Integer] reason_code_id Required parameter: The Advanced Billing
|
141
143
|
# id of the reason code
|
142
|
-
# @return [OkResponse]
|
144
|
+
# @return [OkResponse] Response from the API call.
|
143
145
|
def delete_reason_code(reason_code_id)
|
144
|
-
|
146
|
+
@api_call
|
145
147
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
146
148
|
'/reason_codes/{reason_code_id}.json',
|
147
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
|
# ReferralCodesController
|
@@ -20,9 +20,9 @@ module AdvancedBilling
|
|
20
20
|
# response will be returned.
|
21
21
|
# @param [String] code Required parameter: The referral code you are trying
|
22
22
|
# to validate
|
23
|
-
# @return [ReferralValidationResponse]
|
23
|
+
# @return [ReferralValidationResponse] Response from the API call.
|
24
24
|
def validate_referral_code(code)
|
25
|
-
|
25
|
+
@api_call
|
26
26
|
.request(new_request_builder(HttpMethodEnum::GET,
|
27
27
|
'/referral_codes/validate.json',
|
28
28
|
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
|
# SalesCommissionsController
|
@@ -41,9 +41,9 @@ module AdvancedBilling
|
|
41
41
|
# set will be returned. Use in query `page=1`.
|
42
42
|
# @param [Integer] per_page Optional parameter: This parameter indicates how
|
43
43
|
# many records to fetch in each request. Default value is 100.
|
44
|
-
# @return [Array[SaleRepSettings]]
|
44
|
+
# @return [Array[SaleRepSettings]] Response from the API call.
|
45
45
|
def list_sales_commission_settings(options = {})
|
46
|
-
|
46
|
+
@api_call
|
47
47
|
.request(new_request_builder(HttpMethodEnum::GET,
|
48
48
|
'/sellers/{seller_id}/sales_commission_settings.json',
|
49
49
|
Server::PRODUCTION)
|
@@ -98,9 +98,9 @@ module AdvancedBilling
|
|
98
98
|
# set will be returned. Use in query `page=1`.
|
99
99
|
# @param [Integer] per_page Optional parameter: This parameter indicates how
|
100
100
|
# many records to fetch in each request. Default value is 100.
|
101
|
-
# @return [Array[ListSaleRepItem]]
|
101
|
+
# @return [Array[ListSaleRepItem]] Response from the API call.
|
102
102
|
def list_sales_reps(options = {})
|
103
|
-
|
103
|
+
@api_call
|
104
104
|
.request(new_request_builder(HttpMethodEnum::GET,
|
105
105
|
'/sellers/{seller_id}/sales_reps.json',
|
106
106
|
Server::PRODUCTION)
|
@@ -157,14 +157,14 @@ module AdvancedBilling
|
|
157
157
|
# set will be returned. Use in query `page=1`.
|
158
158
|
# @param [Integer] per_page Optional parameter: This parameter indicates how
|
159
159
|
# many records to fetch in each request. Default value is 100.
|
160
|
-
# @return [SaleRep]
|
160
|
+
# @return [SaleRep] Response from the API call.
|
161
161
|
def read_sales_rep(seller_id,
|
162
162
|
sales_rep_id,
|
163
163
|
authorization: 'Bearer <<apiKey>>',
|
164
164
|
live_mode: nil,
|
165
165
|
page: 1,
|
166
166
|
per_page: 100)
|
167
|
-
|
167
|
+
@api_call
|
168
168
|
.request(new_request_builder(HttpMethodEnum::GET,
|
169
169
|
'/sellers/{seller_id}/sales_reps/{sales_rep_id}.json',
|
170
170
|
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
|
# SitesController
|
@@ -21,9 +21,9 @@ module AdvancedBilling
|
|
21
21
|
# [Who Pays & Customer
|
22
22
|
# Hierarchy](https://maxio.zendesk.com/hc/en-us/articles/24252185211533-Cust
|
23
23
|
# omer-Hierarchies-WhoPays)
|
24
|
-
# @return [SiteResponse]
|
24
|
+
# @return [SiteResponse] Response from the API call.
|
25
25
|
def read_site
|
26
|
-
|
26
|
+
@api_call
|
27
27
|
.request(new_request_builder(HttpMethodEnum::GET,
|
28
28
|
'/site.json',
|
29
29
|
Server::PRODUCTION)
|
@@ -47,9 +47,9 @@ module AdvancedBilling
|
|
47
47
|
# `customers`: Will clear only customers and related subscriptions (leaving
|
48
48
|
# the products untouched) for the site. Revenue will also be reset to 0.
|
49
49
|
# Use in query `cleanup_scope=all`.
|
50
|
-
# @return [void]
|
50
|
+
# @return [void] Response from the API call.
|
51
51
|
def clear_site(cleanup_scope: CleanupScope::ALL)
|
52
|
-
|
52
|
+
@api_call
|
53
53
|
.request(new_request_builder(HttpMethodEnum::POST,
|
54
54
|
'/sites/clear_data.json',
|
55
55
|
Server::PRODUCTION)
|
@@ -72,9 +72,9 @@ module AdvancedBilling
|
|
72
72
|
# many records to fetch in each request. Default value is 20. The maximum
|
73
73
|
# allowed values is 200; any per_page value over 200 will be changed to 200.
|
74
74
|
# Use in query `per_page=200`.
|
75
|
-
# @return [ListPublicKeysResponse]
|
75
|
+
# @return [ListPublicKeysResponse] Response from the API call.
|
76
76
|
def list_chargify_js_public_keys(options = {})
|
77
|
-
|
77
|
+
@api_call
|
78
78
|
.request(new_request_builder(HttpMethodEnum::GET,
|
79
79
|
'/chargify_js_keys.json',
|
80
80
|
Server::PRODUCTION)
|