maxio-advanced-billing-sdk 6.0.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/LICENSE +1 -1
- 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 +13 -2
- data/lib/advanced_billing/exceptions/component_allocation_error_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/component_price_point_error_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/customer_error_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/error_array_map_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/error_list_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/error_string_map_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/single_error_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/single_string_error_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb +21 -5
- data/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/subscription_response_error_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb +19 -5
- data/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb +19 -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 +19 -2
- data/lib/advanced_billing/models/account_balances.rb +19 -2
- data/lib/advanced_billing/models/ach_agreement.rb +18 -2
- data/lib/advanced_billing/models/activate_event_based_component.rb +17 -2
- data/lib/advanced_billing/models/activate_subscription_request.rb +16 -2
- data/lib/advanced_billing/models/add_coupons_request.rb +15 -2
- data/lib/advanced_billing/models/add_subscription_to_a_group.rb +15 -2
- data/lib/advanced_billing/models/address_change.rb +16 -2
- data/lib/advanced_billing/models/agreement_acceptance.rb +22 -2
- data/lib/advanced_billing/models/all_vaults.rb +2 -2
- data/lib/advanced_billing/models/allocate_components.rb +24 -2
- data/lib/advanced_billing/models/allocation.rb +39 -2
- data/lib/advanced_billing/models/allocation_expiration_date.rb +16 -2
- data/lib/advanced_billing/models/allocation_preview.rb +28 -2
- data/lib/advanced_billing/models/allocation_preview_direction.rb +2 -2
- data/lib/advanced_billing/models/allocation_preview_item.rb +33 -2
- data/lib/advanced_billing/models/allocation_preview_line_item.rb +23 -2
- data/lib/advanced_billing/models/allocation_preview_line_item_kind.rb +2 -2
- data/lib/advanced_billing/models/allocation_preview_response.rb +16 -2
- data/lib/advanced_billing/models/allocation_response.rb +16 -2
- data/lib/advanced_billing/models/allocation_settings.rb +17 -2
- data/lib/advanced_billing/models/apple_pay_payment_profile.rb +68 -3
- data/lib/advanced_billing/models/apple_pay_vault.rb +2 -2
- data/lib/advanced_billing/models/applied_credit_note_data.rb +16 -2
- data/lib/advanced_billing/models/apply_credit_note_event.rb +18 -2
- data/lib/advanced_billing/models/apply_credit_note_event_data.rb +23 -2
- data/lib/advanced_billing/models/apply_debit_note_event.rb +18 -2
- data/lib/advanced_billing/models/apply_debit_note_event_data.rb +20 -2
- data/lib/advanced_billing/models/apply_payment_event.rb +18 -2
- data/lib/advanced_billing/models/apply_payment_event_data.rb +25 -2
- data/lib/advanced_billing/models/attribute_error.rb +16 -2
- data/lib/advanced_billing/models/auto_invite.rb +2 -2
- data/lib/advanced_billing/models/auto_resume.rb +16 -2
- data/lib/advanced_billing/models/backport_invoice_event.rb +18 -2
- data/lib/advanced_billing/models/bank_account_attributes.rb +27 -2
- data/lib/advanced_billing/models/bank_account_holder_type.rb +2 -2
- data/lib/advanced_billing/models/bank_account_payment_profile.rb +74 -2
- data/lib/advanced_billing/models/bank_account_response.rb +16 -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 +16 -2
- data/lib/advanced_billing/models/bank_account_verification_request.rb +16 -2
- data/lib/advanced_billing/models/base_model.rb +14 -2
- data/lib/advanced_billing/models/base_refund_error.rb +15 -2
- data/lib/advanced_billing/models/base_string_error.rb +15 -2
- data/lib/advanced_billing/models/basic_date_field.rb +2 -2
- data/lib/advanced_billing/models/batch_job.rb +18 -2
- data/lib/advanced_billing/models/batch_job_response.rb +16 -2
- data/lib/advanced_billing/models/billing_manifest.rb +25 -2
- data/lib/advanced_billing/models/billing_manifest_item.rb +29 -2
- data/lib/advanced_billing/models/billing_manifest_line_item_kind.rb +2 -2
- data/lib/advanced_billing/models/billing_schedule.rb +16 -2
- data/lib/advanced_billing/models/breakouts.rb +20 -2
- data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +16 -2
- data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +16 -2
- data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +16 -2
- data/lib/advanced_billing/models/bulk_create_segments.rb +16 -2
- data/lib/advanced_billing/models/bulk_update_segments.rb +16 -2
- data/lib/advanced_billing/models/bulk_update_segments_item.rb +16 -2
- data/lib/advanced_billing/models/calendar_billing.rb +17 -2
- data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +16 -2
- data/lib/advanced_billing/models/cancellation_method.rb +2 -2
- data/lib/advanced_billing/models/cancellation_options.rb +16 -2
- data/lib/advanced_billing/models/cancellation_request.rb +16 -2
- data/lib/advanced_billing/models/card_type.rb +2 -2
- data/lib/advanced_billing/models/change_chargeback_status_event.rb +18 -2
- data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +16 -2
- data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +18 -2
- data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +17 -2
- data/lib/advanced_billing/models/change_invoice_status_event.rb +18 -2
- data/lib/advanced_billing/models/change_invoice_status_event_data.rb +19 -2
- data/lib/advanced_billing/models/chargeback_status.rb +2 -2
- data/lib/advanced_billing/models/chargify_ebb.rb +20 -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 +62 -4
- data/lib/advanced_billing/models/component_allocation_change.rb +22 -2
- data/lib/advanced_billing/models/component_allocation_error_item.rb +17 -2
- data/lib/advanced_billing/models/component_cost_data.rb +21 -2
- data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +19 -2
- data/lib/advanced_billing/models/component_currency_price.rb +19 -2
- data/lib/advanced_billing/models/component_currency_prices_response.rb +16 -2
- data/lib/advanced_billing/models/component_custom_price.rb +19 -2
- data/lib/advanced_billing/models/component_kind.rb +2 -2
- data/lib/advanced_billing/models/component_price.rb +21 -2
- data/lib/advanced_billing/models/component_price_point.rb +37 -2
- data/lib/advanced_billing/models/component_price_point_assignment.rb +16 -2
- data/lib/advanced_billing/models/component_price_point_error_item.rb +17 -2
- data/lib/advanced_billing/models/component_price_point_item.rb +19 -2
- data/lib/advanced_billing/models/component_price_point_response.rb +16 -2
- data/lib/advanced_billing/models/component_price_points_response.rb +16 -2
- data/lib/advanced_billing/models/component_response.rb +16 -2
- data/lib/advanced_billing/models/compounding_strategy.rb +2 -2
- data/lib/advanced_billing/models/consolidated_invoice.rb +16 -2
- data/lib/advanced_billing/models/count_response.rb +15 -2
- data/lib/advanced_billing/models/coupon.rb +48 -2
- data/lib/advanced_billing/models/coupon_currency.rb +17 -2
- data/lib/advanced_billing/models/coupon_currency_request.rb +16 -2
- data/lib/advanced_billing/models/coupon_currency_response.rb +16 -2
- data/lib/advanced_billing/models/coupon_payload.rb +31 -2
- data/lib/advanced_billing/models/coupon_request.rb +24 -6
- data/lib/advanced_billing/models/coupon_response.rb +15 -2
- data/lib/advanced_billing/models/coupon_restriction.rb +17 -2
- data/lib/advanced_billing/models/coupon_subcodes.rb +15 -2
- data/lib/advanced_billing/models/coupon_subcodes_response.rb +17 -2
- data/lib/advanced_billing/models/coupon_usage.rb +19 -2
- data/lib/advanced_billing/models/create_allocation.rb +26 -2
- data/lib/advanced_billing/models/create_allocation_request.rb +16 -2
- data/lib/advanced_billing/models/create_component_price_point.rb +21 -2
- data/lib/advanced_billing/models/create_component_price_point_request.rb +16 -2
- data/lib/advanced_billing/models/create_component_price_points_request.rb +16 -2
- data/lib/advanced_billing/models/create_credit_note_event.rb +18 -2
- data/lib/advanced_billing/models/create_currency_price.rb +16 -2
- data/lib/advanced_billing/models/create_currency_prices_request.rb +16 -2
- data/lib/advanced_billing/models/create_customer.rb +28 -2
- data/lib/advanced_billing/models/create_customer_request.rb +16 -2
- data/lib/advanced_billing/models/create_debit_note_event.rb +18 -2
- data/lib/advanced_billing/models/create_ebb_component.rb +16 -2
- data/lib/advanced_billing/models/create_invoice.rb +23 -2
- data/lib/advanced_billing/models/create_invoice_address.rb +19 -2
- data/lib/advanced_billing/models/create_invoice_coupon.rb +20 -2
- data/lib/advanced_billing/models/create_invoice_item.rb +25 -2
- data/lib/advanced_billing/models/create_invoice_payment.rb +19 -2
- data/lib/advanced_billing/models/create_invoice_payment_application.rb +16 -2
- data/lib/advanced_billing/models/create_invoice_payment_request.rb +16 -2
- data/lib/advanced_billing/models/create_invoice_request.rb +15 -2
- data/lib/advanced_billing/models/create_invoice_status.rb +2 -2
- data/lib/advanced_billing/models/create_metadata.rb +16 -2
- data/lib/advanced_billing/models/create_metadata_request.rb +16 -2
- data/lib/advanced_billing/models/create_metafield.rb +17 -2
- data/lib/advanced_billing/models/create_metafields_request.rb +16 -2
- data/lib/advanced_billing/models/create_metered_component.rb +16 -2
- data/lib/advanced_billing/models/create_multi_invoice_payment.rb +19 -2
- data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +15 -2
- data/lib/advanced_billing/models/create_offer.rb +20 -2
- data/lib/advanced_billing/models/create_offer_component.rb +18 -2
- data/lib/advanced_billing/models/create_offer_request.rb +15 -2
- data/lib/advanced_billing/models/create_on_off_component.rb +16 -2
- data/lib/advanced_billing/models/create_or_update_endpoint.rb +16 -2
- data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +16 -2
- data/lib/advanced_billing/models/create_or_update_product.rb +31 -2
- data/lib/advanced_billing/models/create_or_update_product_request.rb +15 -2
- data/lib/advanced_billing/models/create_or_update_segment_price.rb +18 -2
- data/lib/advanced_billing/models/create_payment.rb +17 -2
- data/lib/advanced_billing/models/create_payment_profile.rb +45 -2
- data/lib/advanced_billing/models/create_payment_profile_request.rb +16 -2
- data/lib/advanced_billing/models/create_prepaid_component.rb +16 -2
- data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +26 -2
- data/lib/advanced_billing/models/create_prepayment.rb +18 -2
- data/lib/advanced_billing/models/create_prepayment_method.rb +2 -2
- data/lib/advanced_billing/models/create_prepayment_request.rb +16 -2
- data/lib/advanced_billing/models/create_prepayment_response.rb +16 -2
- data/lib/advanced_billing/models/create_product_currency_price.rb +16 -2
- data/lib/advanced_billing/models/create_product_currency_prices_request.rb +16 -2
- data/lib/advanced_billing/models/create_product_family.rb +16 -2
- data/lib/advanced_billing/models/create_product_family_request.rb +16 -2
- data/lib/advanced_billing/models/create_product_price_point.rb +30 -2
- data/lib/advanced_billing/models/create_product_price_point_request.rb +16 -2
- data/lib/advanced_billing/models/create_quantity_based_component.rb +16 -2
- data/lib/advanced_billing/models/create_reason_code.rb +16 -2
- data/lib/advanced_billing/models/create_reason_code_request.rb +16 -2
- data/lib/advanced_billing/models/create_segment.rb +22 -2
- data/lib/advanced_billing/models/create_segment_request.rb +15 -2
- data/lib/advanced_billing/models/create_signup_proforma_preview_include.rb +2 -2
- data/lib/advanced_billing/models/create_subscription.rb +110 -20
- data/lib/advanced_billing/models/create_subscription_component.rb +21 -2
- data/lib/advanced_billing/models/create_subscription_group.rb +16 -2
- data/lib/advanced_billing/models/create_subscription_group_request.rb +16 -2
- data/lib/advanced_billing/models/create_subscription_request.rb +16 -2
- data/lib/advanced_billing/models/create_usage.rb +18 -2
- data/lib/advanced_billing/models/create_usage_request.rb +15 -2
- data/lib/advanced_billing/models/created_prepayment.rb +21 -2
- data/lib/advanced_billing/models/credit_account_balance_changed.rb +22 -2
- data/lib/advanced_billing/models/credit_card_attributes.rb +18 -2
- data/lib/advanced_billing/models/credit_card_payment_profile.rb +73 -3
- data/lib/advanced_billing/models/credit_card_vault.rb +2 -2
- data/lib/advanced_billing/models/credit_note.rb +37 -2
- data/lib/advanced_billing/models/credit_note_application.rb +18 -2
- data/lib/advanced_billing/models/credit_note_line_item.rb +32 -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 +16 -2
- data/lib/advanced_billing/models/credit_type.rb +2 -2
- data/lib/advanced_billing/models/currency_price.rb +21 -2
- data/lib/advanced_billing/models/currency_price_role.rb +2 -2
- data/lib/advanced_billing/models/currency_prices_response.rb +16 -2
- data/lib/advanced_billing/models/custom_field_owner.rb +2 -2
- data/lib/advanced_billing/models/custom_field_value_change.rb +21 -2
- data/lib/advanced_billing/models/customer.rb +42 -2
- data/lib/advanced_billing/models/customer_attributes.rb +29 -2
- data/lib/advanced_billing/models/customer_change.rb +18 -2
- data/lib/advanced_billing/models/customer_changes_preview_response.rb +15 -2
- data/lib/advanced_billing/models/customer_custom_fields_change.rb +16 -2
- data/lib/advanced_billing/models/customer_error.rb +16 -2
- data/lib/advanced_billing/models/customer_payer_change.rb +16 -2
- data/lib/advanced_billing/models/customer_response.rb +16 -2
- data/lib/advanced_billing/models/debit_note.rb +32 -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 +16 -2
- data/lib/advanced_billing/models/deduct_service_credit_request.rb +16 -2
- data/lib/advanced_billing/models/delayed_cancellation_response.rb +15 -2
- data/lib/advanced_billing/models/delete_subscription_group_response.rb +16 -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 +20 -2
- data/lib/advanced_billing/models/dunning_step_data.rb +21 -2
- data/lib/advanced_billing/models/dunning_step_reached.rb +16 -2
- data/lib/advanced_billing/models/ebb_component.rb +26 -2
- data/lib/advanced_billing/models/ebb_event.rb +16 -2
- data/lib/advanced_billing/models/enable_webhooks_request.rb +16 -2
- data/lib/advanced_billing/models/enable_webhooks_response.rb +16 -2
- data/lib/advanced_billing/models/endpoint.rb +18 -2
- data/lib/advanced_billing/models/endpoint_response.rb +16 -2
- data/lib/advanced_billing/models/errors.rb +16 -2
- data/lib/advanced_billing/models/event.rb +20 -2
- data/lib/advanced_billing/models/event_based_billing_segment_error.rb +16 -2
- data/lib/advanced_billing/models/event_key.rb +2 -2
- data/lib/advanced_billing/models/event_response.rb +15 -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 +18 -2
- data/lib/advanced_billing/models/failed_payment_event_data.rb +19 -2
- data/lib/advanced_billing/models/first_charge_type.rb +2 -2
- data/lib/advanced_billing/models/full_subscription_group_response.rb +27 -2
- data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +34 -2
- data/lib/advanced_billing/models/get_one_time_token_request.rb +16 -2
- data/lib/advanced_billing/models/group_billing.rb +16 -2
- data/lib/advanced_billing/models/group_settings.rb +16 -2
- data/lib/advanced_billing/models/group_target.rb +16 -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 +18 -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 +64 -2
- data/lib/advanced_billing/models/invoice_address.rb +17 -2
- data/lib/advanced_billing/models/invoice_avatax_details.rb +18 -2
- data/lib/advanced_billing/models/invoice_balance_item.rb +16 -2
- data/lib/advanced_billing/models/invoice_consolidation_level.rb +2 -2
- data/lib/advanced_billing/models/invoice_credit.rb +21 -2
- data/lib/advanced_billing/models/invoice_custom_field.rb +18 -2
- data/lib/advanced_billing/models/invoice_customer.rb +20 -2
- data/lib/advanced_billing/models/invoice_date_field.rb +2 -2
- data/lib/advanced_billing/models/invoice_debit.rb +21 -2
- data/lib/advanced_billing/models/invoice_discount.rb +25 -2
- data/lib/advanced_billing/models/invoice_discount_breakout.rb +17 -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 +18 -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 +26 -2
- data/lib/advanced_billing/models/invoice_line_item.rb +36 -2
- data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +15 -2
- data/lib/advanced_billing/models/invoice_line_item_event_data.rb +32 -2
- data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +16 -2
- data/lib/advanced_billing/models/invoice_payer.rb +19 -2
- data/lib/advanced_billing/models/invoice_payer_change.rb +17 -2
- data/lib/advanced_billing/models/invoice_payment.rb +25 -2
- data/lib/advanced_billing/models/invoice_payment_application.rb +17 -2
- data/lib/advanced_billing/models/invoice_payment_method.rb +21 -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 +18 -2
- data/lib/advanced_billing/models/invoice_previous_balance.rb +16 -2
- data/lib/advanced_billing/models/invoice_refund.rb +23 -2
- data/lib/advanced_billing/models/invoice_response.rb +15 -2
- data/lib/advanced_billing/models/invoice_role.rb +2 -2
- data/lib/advanced_billing/models/invoice_seller.rb +17 -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 +26 -2
- data/lib/advanced_billing/models/invoice_tax_breakout.rb +18 -2
- data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +28 -2
- data/lib/advanced_billing/models/issue_advance_invoice_request.rb +15 -2
- data/lib/advanced_billing/models/issue_invoice_event.rb +18 -2
- data/lib/advanced_billing/models/issue_invoice_event_data.rb +19 -2
- data/lib/advanced_billing/models/issue_invoice_request.rb +16 -2
- data/lib/advanced_billing/models/issue_service_credit.rb +16 -2
- data/lib/advanced_billing/models/issue_service_credit_request.rb +16 -2
- data/lib/advanced_billing/models/item_category.rb +2 -2
- data/lib/advanced_billing/models/item_price_point_changed.rb +20 -2
- data/lib/advanced_billing/models/item_price_point_data.rb +16 -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 +16 -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 +16 -2
- data/lib/advanced_billing/models/list_coupons_filter.rb +21 -2
- data/lib/advanced_billing/models/list_credit_notes_response.rb +16 -2
- data/lib/advanced_billing/models/list_events_date_field.rb +2 -2
- data/lib/advanced_billing/models/list_invoice_events_response.rb +17 -2
- data/lib/advanced_billing/models/list_invoices_response.rb +16 -2
- data/lib/advanced_billing/models/list_metafields_response.rb +19 -2
- data/lib/advanced_billing/models/list_mrr_filter.rb +16 -2
- data/lib/advanced_billing/models/list_mrr_response.rb +14 -2
- data/lib/advanced_billing/models/list_mrr_response_result.rb +20 -2
- data/lib/advanced_billing/models/list_offers_response.rb +15 -2
- data/lib/advanced_billing/models/list_prepayment_date_field.rb +2 -2
- data/lib/advanced_billing/models/list_prepayments_filter.rb +16 -2
- data/lib/advanced_billing/models/list_price_points_filter.rb +20 -2
- data/lib/advanced_billing/models/list_product_price_points_response.rb +16 -2
- data/lib/advanced_billing/models/list_products_filter.rb +18 -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 +18 -2
- data/lib/advanced_billing/models/list_proforma_invoices_response.rb +16 -2
- data/lib/advanced_billing/models/list_public_keys_meta.rb +18 -2
- data/lib/advanced_billing/models/list_public_keys_response.rb +16 -2
- data/lib/advanced_billing/models/list_sale_rep_item.rb +18 -2
- data/lib/advanced_billing/models/list_segments_filter.rb +21 -2
- data/lib/advanced_billing/models/list_segments_response.rb +16 -2
- data/lib/advanced_billing/models/list_service_credits_response.rb +82 -0
- data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +23 -2
- data/lib/advanced_billing/models/list_subscription_components_filter.rb +16 -2
- data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +18 -2
- data/lib/advanced_billing/models/list_subscription_components_include.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_components_response.rb +16 -2
- data/lib/advanced_billing/models/list_subscription_components_sort.rb +2 -2
- data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +16 -2
- data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +16 -2
- data/lib/advanced_billing/models/list_subscription_groups_item.rb +25 -2
- data/lib/advanced_billing/models/list_subscription_groups_meta.rb +16 -2
- data/lib/advanced_billing/models/list_subscription_groups_response.rb +16 -2
- data/lib/advanced_billing/models/metadata.rb +19 -2
- data/lib/advanced_billing/models/metafield.rb +18 -2
- data/lib/advanced_billing/models/metafield_input.rb +2 -2
- data/lib/advanced_billing/models/metafield_scope.rb +19 -2
- data/lib/advanced_billing/models/metered_component.rb +29 -2
- data/lib/advanced_billing/models/metered_usage.rb +20 -2
- data/lib/advanced_billing/models/movement.rb +23 -2
- data/lib/advanced_billing/models/movement_line_item.rb +21 -2
- data/lib/advanced_billing/models/mrr.rb +20 -2
- data/lib/advanced_billing/models/mrr_movement.rb +18 -2
- data/lib/advanced_billing/models/mrr_response.rb +14 -2
- data/lib/advanced_billing/models/multi_invoice_payment.rb +18 -2
- data/lib/advanced_billing/models/multi_invoice_payment_response.rb +15 -2
- data/lib/advanced_billing/models/nested_subscription_group.rb +18 -2
- data/lib/advanced_billing/models/net_terms.rb +23 -2
- data/lib/advanced_billing/models/offer.rb +32 -2
- data/lib/advanced_billing/models/offer_discount.rb +17 -2
- data/lib/advanced_billing/models/offer_item.rb +24 -2
- data/lib/advanced_billing/models/offer_response.rb +15 -2
- data/lib/advanced_billing/models/offer_signup_page.rb +19 -2
- data/lib/advanced_billing/models/ok_response.rb +14 -2
- data/lib/advanced_billing/models/on_off_component.rb +28 -2
- data/lib/advanced_billing/models/organization_address.rb +19 -2
- data/lib/advanced_billing/models/origin_invoice.rb +16 -2
- data/lib/advanced_billing/models/overage_pricing.rb +16 -2
- data/lib/advanced_billing/models/override_subscription.rb +24 -3
- data/lib/advanced_billing/models/override_subscription_request.rb +16 -2
- data/lib/advanced_billing/models/paginated_metadata.rb +19 -2
- data/lib/advanced_billing/models/paid_invoice.rb +17 -2
- data/lib/advanced_billing/models/pause_request.rb +15 -2
- data/lib/advanced_billing/models/pay_pal_vault.rb +2 -2
- data/lib/advanced_billing/models/payer_attributes.rb +26 -2
- data/lib/advanced_billing/models/payer_error.rb +16 -2
- data/lib/advanced_billing/models/payment_collection_method_changed.rb +16 -2
- data/lib/advanced_billing/models/payment_for_allocation.rb +17 -2
- data/lib/advanced_billing/models/payment_method_apple_pay.rb +15 -2
- data/lib/advanced_billing/models/payment_method_bank_account.rb +18 -2
- data/lib/advanced_billing/models/payment_method_credit_card.rb +19 -2
- data/lib/advanced_billing/models/payment_method_external.rb +17 -2
- data/lib/advanced_billing/models/payment_method_paypal.rb +16 -2
- data/lib/advanced_billing/models/payment_profile_attributes.rb +37 -2
- data/lib/advanced_billing/models/payment_profile_response.rb +16 -2
- data/lib/advanced_billing/models/payment_related_events.rb +16 -2
- data/lib/advanced_billing/models/payment_type.rb +2 -2
- data/lib/advanced_billing/models/paypal_payment_profile.rb +69 -4
- data/lib/advanced_billing/models/pending_cancellation_change.rb +16 -2
- data/lib/advanced_billing/models/portal_management_link.rb +20 -2
- data/lib/advanced_billing/models/prepaid_configuration.rb +22 -2
- data/lib/advanced_billing/models/prepaid_configuration_response.rb +16 -2
- data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +16 -2
- data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +21 -2
- data/lib/advanced_billing/models/prepaid_usage.rb +27 -2
- data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +17 -2
- data/lib/advanced_billing/models/prepaid_usage_component.rb +37 -2
- data/lib/advanced_billing/models/prepayment.rb +23 -2
- data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +20 -2
- data/lib/advanced_billing/models/prepayment_method.rb +2 -2
- data/lib/advanced_billing/models/prepayment_response.rb +16 -2
- data/lib/advanced_billing/models/prepayments_response.rb +16 -2
- data/lib/advanced_billing/models/preview_allocations_request.rb +19 -2
- data/lib/advanced_billing/models/price.rb +18 -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 +57 -2
- data/lib/advanced_billing/models/product_family.rb +19 -2
- data/lib/advanced_billing/models/product_family_response.rb +16 -2
- data/lib/advanced_billing/models/product_price_point.rb +39 -2
- data/lib/advanced_billing/models/product_price_point_errors.rb +19 -2
- data/lib/advanced_billing/models/product_price_point_response.rb +16 -2
- data/lib/advanced_billing/models/product_response.rb +15 -2
- data/lib/advanced_billing/models/proforma_error.rb +16 -2
- data/lib/advanced_billing/models/proforma_invoice.rb +44 -2
- data/lib/advanced_billing/models/proforma_invoice_credit.rb +17 -2
- data/lib/advanced_billing/models/proforma_invoice_discount.rb +21 -2
- data/lib/advanced_billing/models/proforma_invoice_discount_source_type.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_issued.rb +23 -2
- data/lib/advanced_billing/models/proforma_invoice_payment.rb +18 -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 +20 -2
- data/lib/advanced_billing/models/proforma_invoice_tax_source_type.rb +2 -2
- data/lib/advanced_billing/models/proration.rb +16 -2
- data/lib/advanced_billing/models/public_key.rb +18 -2
- data/lib/advanced_billing/models/public_signup_page.rb +17 -2
- data/lib/advanced_billing/models/quantity_based_component.rb +32 -2
- data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +16 -2
- data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +23 -2
- data/lib/advanced_billing/models/reactivate_subscription_request.rb +21 -2
- data/lib/advanced_billing/models/reactivation_billing.rb +16 -2
- data/lib/advanced_billing/models/reactivation_charge.rb +2 -2
- data/lib/advanced_billing/models/reason_code.rb +19 -2
- data/lib/advanced_billing/models/reason_code_response.rb +16 -2
- data/lib/advanced_billing/models/record_payment_request.rb +15 -2
- data/lib/advanced_billing/models/record_payment_response.rb +16 -2
- data/lib/advanced_billing/models/recurring_scheme.rb +2 -2
- data/lib/advanced_billing/models/referral_code.rb +17 -2
- data/lib/advanced_billing/models/referral_validation_response.rb +16 -2
- data/lib/advanced_billing/models/refund_consolidated_invoice.rb +19 -2
- data/lib/advanced_billing/models/refund_invoice.rb +19 -2
- data/lib/advanced_billing/models/refund_invoice_event.rb +18 -2
- data/lib/advanced_billing/models/refund_invoice_event_data.rb +23 -2
- data/lib/advanced_billing/models/refund_invoice_request.rb +15 -2
- data/lib/advanced_billing/models/refund_prepayment.rb +17 -2
- data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +15 -2
- data/lib/advanced_billing/models/refund_prepayment_request.rb +15 -2
- data/lib/advanced_billing/models/refund_success.rb +18 -2
- data/lib/advanced_billing/models/remove_payment_event.rb +18 -2
- data/lib/advanced_billing/models/remove_payment_event_data.rb +21 -2
- data/lib/advanced_billing/models/renewal_preview.rb +25 -2
- data/lib/advanced_billing/models/renewal_preview_component.rb +17 -2
- data/lib/advanced_billing/models/renewal_preview_line_item.rb +29 -2
- data/lib/advanced_billing/models/renewal_preview_request.rb +16 -2
- data/lib/advanced_billing/models/renewal_preview_response.rb +16 -2
- data/lib/advanced_billing/models/replay_webhooks_request.rb +14 -2
- data/lib/advanced_billing/models/replay_webhooks_response.rb +15 -2
- data/lib/advanced_billing/models/resent_invitation.rb +21 -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 +16 -2
- data/lib/advanced_billing/models/resumption_charge.rb +2 -2
- data/lib/advanced_billing/models/revoked_invitation.rb +18 -2
- data/lib/advanced_billing/models/sale_rep.rb +18 -2
- data/lib/advanced_billing/models/sale_rep_item_mrr.rb +16 -2
- data/lib/advanced_billing/models/sale_rep_settings.rb +21 -2
- data/lib/advanced_billing/models/sale_rep_subscription.rb +21 -2
- data/lib/advanced_billing/models/segment.rb +28 -2
- data/lib/advanced_billing/models/segment_price.rb +21 -2
- data/lib/advanced_billing/models/segment_response.rb +15 -2
- data/lib/advanced_billing/models/send_invoice_request.rb +18 -2
- data/lib/advanced_billing/models/service_credit.rb +19 -2
- data/lib/advanced_billing/models/service_credit1.rb +161 -0
- data/lib/advanced_billing/models/service_credit_response.rb +16 -2
- data/lib/advanced_billing/models/service_credit_type.rb +2 -2
- data/lib/advanced_billing/models/signup_proforma_preview.rb +18 -2
- data/lib/advanced_billing/models/signup_proforma_preview_response.rb +16 -2
- data/lib/advanced_billing/models/site.rb +51 -2
- data/lib/advanced_billing/models/site_response.rb +15 -2
- data/lib/advanced_billing/models/site_statistics.rb +30 -2
- data/lib/advanced_billing/models/site_summary.rb +18 -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 +86 -2
- data/lib/advanced_billing/models/subscription_component.rb +45 -2
- data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +16 -2
- data/lib/advanced_billing/models/subscription_component_response.rb +16 -2
- data/lib/advanced_billing/models/subscription_component_subscription.rb +16 -2
- data/lib/advanced_billing/models/subscription_custom_price.rb +29 -2
- data/lib/advanced_billing/models/subscription_date_field.rb +2 -2
- data/lib/advanced_billing/models/subscription_filter.rb +19 -2
- data/lib/advanced_billing/models/subscription_group.rb +20 -2
- data/lib/advanced_billing/models/subscription_group_balances.rb +18 -2
- data/lib/advanced_billing/models/subscription_group_bank_account.rb +30 -2
- data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +17 -2
- data/lib/advanced_billing/models/subscription_group_credit_card.rb +77 -45
- data/lib/advanced_billing/models/subscription_group_customer.rb +18 -2
- data/lib/advanced_billing/models/subscription_group_include.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_item.rb +25 -2
- data/lib/advanced_billing/models/subscription_group_members_array_error.rb +15 -2
- data/lib/advanced_billing/models/subscription_group_payment_profile.rb +18 -2
- data/lib/advanced_billing/models/subscription_group_prepayment.rb +17 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_method.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +16 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +19 -2
- data/lib/advanced_billing/models/subscription_group_response.rb +16 -2
- data/lib/advanced_billing/models/subscription_group_signup.rb +24 -2
- data/lib/advanced_billing/models/subscription_group_signup_component.rb +19 -2
- data/lib/advanced_billing/models/subscription_group_signup_error.rb +20 -2
- data/lib/advanced_billing/models/subscription_group_signup_event_data.rb +16 -2
- data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +24 -2
- data/lib/advanced_billing/models/subscription_group_signup_item.rb +26 -2
- data/lib/advanced_billing/models/subscription_group_signup_request.rb +16 -2
- data/lib/advanced_billing/models/subscription_group_signup_response.rb +26 -2
- data/lib/advanced_billing/models/subscription_group_single_error.rb +16 -2
- data/lib/advanced_billing/models/subscription_group_subscription_error.rb +26 -2
- data/lib/advanced_billing/models/subscription_group_update_error.rb +15 -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 +20 -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 +20 -2
- data/lib/advanced_billing/models/subscription_migration_preview_options.rb +25 -2
- data/lib/advanced_billing/models/subscription_migration_preview_request.rb +16 -2
- data/lib/advanced_billing/models/subscription_migration_preview_response.rb +16 -2
- data/lib/advanced_billing/models/subscription_mrr.rb +18 -2
- data/lib/advanced_billing/models/subscription_mrr_breakout.rb +17 -2
- data/lib/advanced_billing/models/subscription_mrr_response.rb +16 -2
- data/lib/advanced_billing/models/subscription_note.rb +19 -2
- data/lib/advanced_billing/models/subscription_note_response.rb +15 -2
- data/lib/advanced_billing/models/subscription_preview.rb +18 -2
- data/lib/advanced_billing/models/subscription_preview_response.rb +16 -2
- data/lib/advanced_billing/models/subscription_product_change.rb +16 -2
- data/lib/advanced_billing/models/subscription_product_migration.rb +25 -2
- data/lib/advanced_billing/models/subscription_product_migration_request.rb +16 -2
- data/lib/advanced_billing/models/subscription_purge_type.rb +2 -2
- data/lib/advanced_billing/models/subscription_response.rb +16 -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 +18 -2
- data/lib/advanced_billing/models/subscription_state_filter.rb +2 -2
- data/lib/advanced_billing/models/tax_configuration.rb +18 -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 +16 -2
- data/lib/advanced_billing/models/update_allocation_expiration_date.rb +16 -2
- data/lib/advanced_billing/models/update_component.rb +22 -2
- data/lib/advanced_billing/models/update_component_price_point.rb +21 -2
- data/lib/advanced_billing/models/update_component_price_point_request.rb +16 -2
- data/lib/advanced_billing/models/update_component_request.rb +16 -2
- data/lib/advanced_billing/models/update_coupon_currency.rb +16 -2
- data/lib/advanced_billing/models/update_currency_price.rb +16 -2
- data/lib/advanced_billing/models/update_currency_prices_request.rb +16 -2
- data/lib/advanced_billing/models/update_customer.rb +28 -2
- data/lib/advanced_billing/models/update_customer_request.rb +16 -2
- data/lib/advanced_billing/models/update_metadata.rb +16 -2
- data/lib/advanced_billing/models/update_metadata_request.rb +16 -2
- data/lib/advanced_billing/models/update_metafield.rb +18 -2
- data/lib/advanced_billing/models/update_metafields_request.rb +16 -2
- data/lib/advanced_billing/models/update_payment_profile.rb +25 -2
- data/lib/advanced_billing/models/update_payment_profile_request.rb +16 -2
- data/lib/advanced_billing/models/update_price.rb +18 -2
- data/lib/advanced_billing/models/update_product_price_point.rb +16 -2
- data/lib/advanced_billing/models/update_product_price_point_request.rb +16 -2
- data/lib/advanced_billing/models/update_reason_code.rb +16 -2
- data/lib/advanced_billing/models/update_reason_code_request.rb +16 -2
- data/lib/advanced_billing/models/update_segment.rb +16 -2
- data/lib/advanced_billing/models/update_segment_request.rb +15 -2
- data/lib/advanced_billing/models/update_subscription.rb +134 -15
- data/lib/advanced_billing/models/update_subscription_component.rb +16 -2
- data/lib/advanced_billing/models/update_subscription_group.rb +16 -2
- data/lib/advanced_billing/models/update_subscription_group_request.rb +16 -2
- data/lib/advanced_billing/models/update_subscription_note.rb +16 -2
- data/lib/advanced_billing/models/update_subscription_note_request.rb +15 -2
- data/lib/advanced_billing/models/update_subscription_request.rb +16 -2
- data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +22 -2
- data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +16 -2
- data/lib/advanced_billing/models/usage.rb +21 -2
- data/lib/advanced_billing/models/usage_response.rb +15 -2
- data/lib/advanced_billing/models/void_invoice.rb +15 -2
- data/lib/advanced_billing/models/void_invoice_event.rb +18 -2
- data/lib/advanced_billing/models/void_invoice_event_data.rb +20 -2
- data/lib/advanced_billing/models/void_invoice_request.rb +15 -2
- data/lib/advanced_billing/models/void_remainder_event.rb +18 -2
- data/lib/advanced_billing/models/void_remainder_event_data.rb +18 -2
- data/lib/advanced_billing/models/webhook.rb +24 -2
- data/lib/advanced_billing/models/webhook_order.rb +2 -2
- data/lib/advanced_billing/models/webhook_response.rb +15 -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 +16 -4
- 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
|
# Event Based Billing List Segments Errors class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :errors
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,10 +23,24 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@errors = Errors.from_hash(hash['errors']) if hash['errors']
|
30
32
|
end
|
33
|
+
|
34
|
+
# Provides a human-readable string representation of the object.
|
35
|
+
def to_s
|
36
|
+
class_name = self.class.name.split('::').last
|
37
|
+
"<#{class_name} errors: #{@errors}>"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Provides a debugging-friendly string with detailed object information.
|
41
|
+
def inspect
|
42
|
+
class_name = self.class.name.split('::').last
|
43
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|
@@ -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
|
# Event Based Billing Segment Errors class.
|
@@ -17,8 +17,8 @@ module AdvancedBilling
|
|
17
17
|
attr_accessor :errors
|
18
18
|
|
19
19
|
# The constructor.
|
20
|
-
# @param [String] The reason for raising an exception.
|
21
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
20
|
+
# @param [String] reason The reason for raising an exception.
|
21
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
22
22
|
def initialize(reason, response)
|
23
23
|
super(reason, response)
|
24
24
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -26,10 +26,24 @@ module AdvancedBilling
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# Populates this object by extracting properties from a hash.
|
29
|
-
# @param [Hash] The deserialized response sent by the server in the
|
29
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
30
30
|
# response body.
|
31
31
|
def unbox(hash)
|
32
|
+
return nil unless hash
|
33
|
+
|
32
34
|
@errors = hash.key?('errors') ? hash['errors'] : SKIP
|
33
35
|
end
|
36
|
+
|
37
|
+
# Provides a human-readable string representation of the object.
|
38
|
+
def to_s
|
39
|
+
class_name = self.class.name.split('::').last
|
40
|
+
"<#{class_name} errors: #{@errors}>"
|
41
|
+
end
|
42
|
+
|
43
|
+
# Provides a debugging-friendly string with detailed object information.
|
44
|
+
def inspect
|
45
|
+
class_name = self.class.name.split('::').last
|
46
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
47
|
+
end
|
34
48
|
end
|
35
49
|
end
|
@@ -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
|
# Event Based Billing Segment class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :errors
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,10 +23,24 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@errors = EventBasedBillingSegmentError.from_hash(hash['errors']) if hash['errors']
|
30
32
|
end
|
33
|
+
|
34
|
+
# Provides a human-readable string representation of the object.
|
35
|
+
def to_s
|
36
|
+
class_name = self.class.name.split('::').last
|
37
|
+
"<#{class_name} errors: #{@errors}>"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Provides a debugging-friendly string with detailed object information.
|
41
|
+
def inspect
|
42
|
+
class_name = self.class.name.split('::').last
|
43
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|
@@ -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
|
# Product Price Point Error Response class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :errors
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,10 +23,24 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@errors = ProductPricePointErrors.from_hash(hash['errors']) if hash['errors']
|
30
32
|
end
|
33
|
+
|
34
|
+
# Provides a human-readable string representation of the object.
|
35
|
+
def to_s
|
36
|
+
class_name = self.class.name.split('::').last
|
37
|
+
"<#{class_name} errors: #{@errors}>"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Provides a debugging-friendly string with detailed object information.
|
41
|
+
def inspect
|
42
|
+
class_name = self.class.name.split('::').last
|
43
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|
@@ -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
|
# Proforma Bad Request Error Response class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :errors
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,10 +23,24 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@errors = ProformaError.from_hash(hash['errors']) if hash['errors']
|
30
32
|
end
|
33
|
+
|
34
|
+
# Provides a human-readable string representation of the object.
|
35
|
+
def to_s
|
36
|
+
class_name = self.class.name.split('::').last
|
37
|
+
"<#{class_name} errors: #{@errors}>"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Provides a debugging-friendly string with detailed object information.
|
41
|
+
def inspect
|
42
|
+
class_name = self.class.name.split('::').last
|
43
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|
@@ -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
|
# Errors returned on creating a refund prepayment when bad request
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :errors
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,10 +23,24 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@errors = RefundPrepaymentBaseRefundError.from_hash(hash['errors']) if hash['errors']
|
30
32
|
end
|
33
|
+
|
34
|
+
# Provides a human-readable string representation of the object.
|
35
|
+
def to_s
|
36
|
+
class_name = self.class.name.split('::').last
|
37
|
+
"<#{class_name} errors: #{@errors}>"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Provides a debugging-friendly string with detailed object information.
|
41
|
+
def inspect
|
42
|
+
class_name = self.class.name.split('::').last
|
43
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|
@@ -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
|
# Single Error Response class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :error
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,10 +23,24 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@error = hash.key?('error') ? hash['error'] : nil
|
30
32
|
end
|
33
|
+
|
34
|
+
# Provides a human-readable string representation of the object.
|
35
|
+
def to_s
|
36
|
+
class_name = self.class.name.split('::').last
|
37
|
+
"<#{class_name} error: #{@error}>"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Provides a debugging-friendly string with detailed object information.
|
41
|
+
def inspect
|
42
|
+
class_name = self.class.name.split('::').last
|
43
|
+
"<#{class_name} error: #{@error.inspect}>"
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|
@@ -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
|
# Single String Error Response class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :errors
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,10 +23,24 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@errors = hash.key?('errors') ? hash['errors'] : SKIP
|
30
32
|
end
|
33
|
+
|
34
|
+
# Provides a human-readable string representation of the object.
|
35
|
+
def to_s
|
36
|
+
class_name = self.class.name.split('::').last
|
37
|
+
"<#{class_name} errors: #{@errors}>"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Provides a debugging-friendly string with detailed object information.
|
41
|
+
def inspect
|
42
|
+
class_name = self.class.name.split('::').last
|
43
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|
@@ -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
|
# Subscription Add Coupon Error class.
|
@@ -26,8 +26,8 @@ module AdvancedBilling
|
|
26
26
|
attr_accessor :subscription
|
27
27
|
|
28
28
|
# The constructor.
|
29
|
-
# @param [String] The reason for raising an exception.
|
30
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
29
|
+
# @param [String] reason The reason for raising an exception.
|
30
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
31
31
|
def initialize(reason, response)
|
32
32
|
super(reason, response)
|
33
33
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -35,13 +35,29 @@ module AdvancedBilling
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# Populates this object by extracting properties from a hash.
|
38
|
-
# @param [Hash] The deserialized response sent by the server in the
|
38
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
39
39
|
# response body.
|
40
40
|
def unbox(hash)
|
41
|
+
return nil unless hash
|
42
|
+
|
41
43
|
@codes = hash.key?('codes') ? hash['codes'] : SKIP
|
42
44
|
@coupon_code = hash.key?('coupon_code') ? hash['coupon_code'] : SKIP
|
43
45
|
@coupon_codes = hash.key?('coupon_codes') ? hash['coupon_codes'] : SKIP
|
44
46
|
@subscription = hash.key?('subscription') ? hash['subscription'] : SKIP
|
45
47
|
end
|
48
|
+
|
49
|
+
# Provides a human-readable string representation of the object.
|
50
|
+
def to_s
|
51
|
+
class_name = self.class.name.split('::').last
|
52
|
+
"<#{class_name} codes: #{@codes}, coupon_code: #{@coupon_code}, coupon_codes:"\
|
53
|
+
" #{@coupon_codes}, subscription: #{@subscription}>"
|
54
|
+
end
|
55
|
+
|
56
|
+
# Provides a debugging-friendly string with detailed object information.
|
57
|
+
def inspect
|
58
|
+
class_name = self.class.name.split('::').last
|
59
|
+
"<#{class_name} codes: #{@codes.inspect}, coupon_code: #{@coupon_code.inspect},"\
|
60
|
+
" coupon_codes: #{@coupon_codes.inspect}, subscription: #{@subscription.inspect}>"
|
61
|
+
end
|
46
62
|
end
|
47
63
|
end
|
@@ -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
|
# Subscription Component Allocation Error class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :errors
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,9 +23,11 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
# Parameter is an array, so we need to iterate through it
|
30
32
|
@errors = nil
|
31
33
|
unless hash['errors'].nil?
|
@@ -37,5 +39,17 @@ module AdvancedBilling
|
|
37
39
|
|
38
40
|
@errors = SKIP unless hash.key?('errors')
|
39
41
|
end
|
42
|
+
|
43
|
+
# Provides a human-readable string representation of the object.
|
44
|
+
def to_s
|
45
|
+
class_name = self.class.name.split('::').last
|
46
|
+
"<#{class_name} errors: #{@errors}>"
|
47
|
+
end
|
48
|
+
|
49
|
+
# Provides a debugging-friendly string with detailed object information.
|
50
|
+
def inspect
|
51
|
+
class_name = self.class.name.split('::').last
|
52
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
53
|
+
end
|
40
54
|
end
|
41
55
|
end
|
@@ -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
|
# Subscription Group Create Error Response class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :errors
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,12 +23,26 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@errors = hash.key?('errors') ? APIHelper.deserialize_union_type(
|
30
32
|
UnionTypeLookUp.get(:SubscriptionGroupCreateErrorResponseErrors), hash['errors']
|
31
33
|
) : nil
|
32
34
|
end
|
35
|
+
|
36
|
+
# Provides a human-readable string representation of the object.
|
37
|
+
def to_s
|
38
|
+
class_name = self.class.name.split('::').last
|
39
|
+
"<#{class_name} errors: #{@errors}>"
|
40
|
+
end
|
41
|
+
|
42
|
+
# Provides a debugging-friendly string with detailed object information.
|
43
|
+
def inspect
|
44
|
+
class_name = self.class.name.split('::').last
|
45
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
46
|
+
end
|
33
47
|
end
|
34
48
|
end
|
@@ -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
|
# Subscription Group Signup Error Response class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :errors
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,10 +23,24 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@errors = SubscriptionGroupSignupError.from_hash(hash['errors']) if hash['errors']
|
30
32
|
end
|
33
|
+
|
34
|
+
# Provides a human-readable string representation of the object.
|
35
|
+
def to_s
|
36
|
+
class_name = self.class.name.split('::').last
|
37
|
+
"<#{class_name} errors: #{@errors}>"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Provides a debugging-friendly string with detailed object information.
|
41
|
+
def inspect
|
42
|
+
class_name = self.class.name.split('::').last
|
43
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|
@@ -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
|
# Subscription Group Update Error Response class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :errors
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,10 +23,24 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@errors = SubscriptionGroupUpdateError.from_hash(hash['errors']) if hash['errors']
|
30
32
|
end
|
33
|
+
|
34
|
+
# Provides a human-readable string representation of the object.
|
35
|
+
def to_s
|
36
|
+
class_name = self.class.name.split('::').last
|
37
|
+
"<#{class_name} errors: #{@errors}>"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Provides a debugging-friendly string with detailed object information.
|
41
|
+
def inspect
|
42
|
+
class_name = self.class.name.split('::').last
|
43
|
+
"<#{class_name} errors: #{@errors.inspect}>"
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|
@@ -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
|
# Subscription Remove Coupon Errors class.
|
@@ -14,8 +14,8 @@ module AdvancedBilling
|
|
14
14
|
attr_accessor :subscription
|
15
15
|
|
16
16
|
# The constructor.
|
17
|
-
# @param [String] The reason for raising an exception.
|
18
|
-
# @param [HttpResponse] The HttpReponse of the API call.
|
17
|
+
# @param [String] reason The reason for raising an exception.
|
18
|
+
# @param [HttpResponse] response The HttpReponse of the API call.
|
19
19
|
def initialize(reason, response)
|
20
20
|
super(reason, response)
|
21
21
|
hash = APIHelper.json_deserialize(@response.raw_body)
|
@@ -23,10 +23,24 @@ module AdvancedBilling
|
|
23
23
|
end
|
24
24
|
|
25
25
|
# Populates this object by extracting properties from a hash.
|
26
|
-
# @param [Hash] The deserialized response sent by the server in the
|
26
|
+
# @param [Hash] hash The deserialized response sent by the server in the
|
27
27
|
# response body.
|
28
28
|
def unbox(hash)
|
29
|
+
return nil unless hash
|
30
|
+
|
29
31
|
@subscription = hash.key?('subscription') ? hash['subscription'] : nil
|
30
32
|
end
|
33
|
+
|
34
|
+
# Provides a human-readable string representation of the object.
|
35
|
+
def to_s
|
36
|
+
class_name = self.class.name.split('::').last
|
37
|
+
"<#{class_name} subscription: #{@subscription}>"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Provides a debugging-friendly string with detailed object information.
|
41
|
+
def inspect
|
42
|
+
class_name = self.class.name.split('::').last
|
43
|
+
"<#{class_name} subscription: #{@subscription.inspect}>"
|
44
|
+
end
|
31
45
|
end
|
32
46
|
end
|