maxio-advanced-billing-sdk 6.0.0 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +41 -41
- data/lib/advanced_billing/controllers/base_controller.rb +1 -1
- data/lib/advanced_billing/exceptions/api_exception.rb +11 -0
- data/lib/advanced_billing/exceptions/component_allocation_error_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/component_price_point_error_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/customer_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/error_array_map_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/error_list_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/error_string_map_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/single_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/single_string_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb +14 -0
- data/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscription_response_error_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb +12 -0
- data/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb +12 -0
- data/lib/advanced_billing/models/account_balance.rb +17 -0
- data/lib/advanced_billing/models/account_balances.rb +17 -0
- data/lib/advanced_billing/models/ach_agreement.rb +16 -0
- data/lib/advanced_billing/models/activate_event_based_component.rb +15 -0
- data/lib/advanced_billing/models/activate_subscription_request.rb +14 -0
- data/lib/advanced_billing/models/add_coupons_request.rb +13 -0
- data/lib/advanced_billing/models/add_subscription_to_a_group.rb +13 -0
- data/lib/advanced_billing/models/address_change.rb +14 -0
- data/lib/advanced_billing/models/agreement_acceptance.rb +20 -0
- data/lib/advanced_billing/models/allocate_components.rb +22 -0
- data/lib/advanced_billing/models/allocation.rb +37 -0
- data/lib/advanced_billing/models/allocation_expiration_date.rb +14 -0
- data/lib/advanced_billing/models/allocation_preview.rb +26 -0
- data/lib/advanced_billing/models/allocation_preview_item.rb +31 -0
- data/lib/advanced_billing/models/allocation_preview_line_item.rb +21 -0
- data/lib/advanced_billing/models/allocation_preview_response.rb +14 -0
- data/lib/advanced_billing/models/allocation_response.rb +14 -0
- data/lib/advanced_billing/models/allocation_settings.rb +15 -0
- data/lib/advanced_billing/models/apple_pay_payment_profile.rb +27 -0
- data/lib/advanced_billing/models/applied_credit_note_data.rb +14 -0
- data/lib/advanced_billing/models/apply_credit_note_event.rb +16 -0
- data/lib/advanced_billing/models/apply_credit_note_event_data.rb +21 -0
- data/lib/advanced_billing/models/apply_debit_note_event.rb +16 -0
- data/lib/advanced_billing/models/apply_debit_note_event_data.rb +18 -0
- data/lib/advanced_billing/models/apply_payment_event.rb +16 -0
- data/lib/advanced_billing/models/apply_payment_event_data.rb +23 -0
- data/lib/advanced_billing/models/attribute_error.rb +14 -0
- data/lib/advanced_billing/models/auto_resume.rb +14 -0
- data/lib/advanced_billing/models/backport_invoice_event.rb +16 -0
- data/lib/advanced_billing/models/bank_account_attributes.rb +25 -0
- data/lib/advanced_billing/models/bank_account_payment_profile.rb +35 -0
- data/lib/advanced_billing/models/bank_account_response.rb +14 -0
- data/lib/advanced_billing/models/bank_account_verification.rb +14 -0
- data/lib/advanced_billing/models/bank_account_verification_request.rb +14 -0
- data/lib/advanced_billing/models/base_model.rb +12 -0
- data/lib/advanced_billing/models/base_refund_error.rb +13 -0
- data/lib/advanced_billing/models/base_string_error.rb +13 -0
- data/lib/advanced_billing/models/batch_job.rb +16 -0
- data/lib/advanced_billing/models/batch_job_response.rb +14 -0
- data/lib/advanced_billing/models/billing_manifest.rb +23 -0
- data/lib/advanced_billing/models/billing_manifest_item.rb +27 -0
- data/lib/advanced_billing/models/billing_schedule.rb +14 -0
- data/lib/advanced_billing/models/breakouts.rb +18 -0
- data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +14 -0
- data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +14 -0
- data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +14 -0
- data/lib/advanced_billing/models/bulk_create_segments.rb +14 -0
- data/lib/advanced_billing/models/bulk_update_segments.rb +14 -0
- data/lib/advanced_billing/models/bulk_update_segments_item.rb +14 -0
- data/lib/advanced_billing/models/calendar_billing.rb +15 -0
- data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +14 -0
- data/lib/advanced_billing/models/cancellation_options.rb +14 -0
- data/lib/advanced_billing/models/cancellation_request.rb +14 -0
- data/lib/advanced_billing/models/change_chargeback_status_event.rb +16 -0
- data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +14 -0
- data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +16 -0
- data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +15 -0
- data/lib/advanced_billing/models/change_invoice_status_event.rb +16 -0
- data/lib/advanced_billing/models/change_invoice_status_event_data.rb +17 -0
- data/lib/advanced_billing/models/chargify_ebb.rb +18 -0
- data/lib/advanced_billing/models/component.rb +45 -0
- data/lib/advanced_billing/models/component_allocation_change.rb +20 -0
- data/lib/advanced_billing/models/component_allocation_error_item.rb +15 -0
- data/lib/advanced_billing/models/component_cost_data.rb +19 -0
- data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +17 -0
- data/lib/advanced_billing/models/component_currency_price.rb +17 -0
- data/lib/advanced_billing/models/component_currency_prices_response.rb +14 -0
- data/lib/advanced_billing/models/component_custom_price.rb +17 -0
- data/lib/advanced_billing/models/component_price.rb +19 -0
- data/lib/advanced_billing/models/component_price_point.rb +35 -0
- data/lib/advanced_billing/models/component_price_point_assignment.rb +14 -0
- data/lib/advanced_billing/models/component_price_point_error_item.rb +15 -0
- data/lib/advanced_billing/models/component_price_point_item.rb +17 -0
- data/lib/advanced_billing/models/component_price_point_response.rb +14 -0
- data/lib/advanced_billing/models/component_price_points_response.rb +14 -0
- data/lib/advanced_billing/models/component_response.rb +14 -0
- data/lib/advanced_billing/models/consolidated_invoice.rb +14 -0
- data/lib/advanced_billing/models/count_response.rb +13 -0
- data/lib/advanced_billing/models/coupon.rb +46 -0
- data/lib/advanced_billing/models/coupon_currency.rb +15 -0
- data/lib/advanced_billing/models/coupon_currency_request.rb +14 -0
- data/lib/advanced_billing/models/coupon_currency_response.rb +14 -0
- data/lib/advanced_billing/models/coupon_payload.rb +29 -0
- data/lib/advanced_billing/models/coupon_request.rb +16 -0
- data/lib/advanced_billing/models/coupon_response.rb +13 -0
- data/lib/advanced_billing/models/coupon_restriction.rb +15 -0
- data/lib/advanced_billing/models/coupon_subcodes.rb +13 -0
- data/lib/advanced_billing/models/coupon_subcodes_response.rb +15 -0
- data/lib/advanced_billing/models/coupon_usage.rb +17 -0
- data/lib/advanced_billing/models/create_allocation.rb +24 -0
- data/lib/advanced_billing/models/create_allocation_request.rb +14 -0
- data/lib/advanced_billing/models/create_component_price_point.rb +19 -0
- data/lib/advanced_billing/models/create_component_price_point_request.rb +14 -0
- data/lib/advanced_billing/models/create_component_price_points_request.rb +14 -0
- data/lib/advanced_billing/models/create_credit_note_event.rb +16 -0
- data/lib/advanced_billing/models/create_currency_price.rb +14 -0
- data/lib/advanced_billing/models/create_currency_prices_request.rb +14 -0
- data/lib/advanced_billing/models/create_customer.rb +26 -0
- data/lib/advanced_billing/models/create_customer_request.rb +14 -0
- data/lib/advanced_billing/models/create_debit_note_event.rb +16 -0
- data/lib/advanced_billing/models/create_ebb_component.rb +14 -0
- data/lib/advanced_billing/models/create_invoice.rb +21 -0
- data/lib/advanced_billing/models/create_invoice_address.rb +17 -0
- data/lib/advanced_billing/models/create_invoice_coupon.rb +18 -0
- data/lib/advanced_billing/models/create_invoice_item.rb +23 -0
- data/lib/advanced_billing/models/create_invoice_payment.rb +17 -0
- data/lib/advanced_billing/models/create_invoice_payment_application.rb +14 -0
- data/lib/advanced_billing/models/create_invoice_payment_request.rb +14 -0
- data/lib/advanced_billing/models/create_invoice_request.rb +13 -0
- data/lib/advanced_billing/models/create_metadata.rb +14 -0
- data/lib/advanced_billing/models/create_metadata_request.rb +14 -0
- data/lib/advanced_billing/models/create_metafield.rb +15 -0
- data/lib/advanced_billing/models/create_metafields_request.rb +14 -0
- data/lib/advanced_billing/models/create_metered_component.rb +14 -0
- data/lib/advanced_billing/models/create_multi_invoice_payment.rb +17 -0
- data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +13 -0
- data/lib/advanced_billing/models/create_offer.rb +18 -0
- data/lib/advanced_billing/models/create_offer_component.rb +16 -0
- data/lib/advanced_billing/models/create_offer_request.rb +13 -0
- data/lib/advanced_billing/models/create_on_off_component.rb +14 -0
- data/lib/advanced_billing/models/create_or_update_endpoint.rb +14 -0
- data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +14 -0
- data/lib/advanced_billing/models/create_or_update_product.rb +29 -0
- data/lib/advanced_billing/models/create_or_update_product_request.rb +13 -0
- data/lib/advanced_billing/models/create_or_update_segment_price.rb +16 -0
- data/lib/advanced_billing/models/create_payment.rb +15 -0
- data/lib/advanced_billing/models/create_payment_profile.rb +43 -0
- data/lib/advanced_billing/models/create_payment_profile_request.rb +14 -0
- data/lib/advanced_billing/models/create_prepaid_component.rb +14 -0
- data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +24 -0
- data/lib/advanced_billing/models/create_prepayment.rb +16 -0
- data/lib/advanced_billing/models/create_prepayment_request.rb +14 -0
- data/lib/advanced_billing/models/create_prepayment_response.rb +14 -0
- data/lib/advanced_billing/models/create_product_currency_price.rb +14 -0
- data/lib/advanced_billing/models/create_product_currency_prices_request.rb +14 -0
- data/lib/advanced_billing/models/create_product_family.rb +14 -0
- data/lib/advanced_billing/models/create_product_family_request.rb +14 -0
- data/lib/advanced_billing/models/create_product_price_point.rb +28 -0
- data/lib/advanced_billing/models/create_product_price_point_request.rb +14 -0
- data/lib/advanced_billing/models/create_quantity_based_component.rb +14 -0
- data/lib/advanced_billing/models/create_reason_code.rb +14 -0
- data/lib/advanced_billing/models/create_reason_code_request.rb +14 -0
- data/lib/advanced_billing/models/create_segment.rb +20 -0
- data/lib/advanced_billing/models/create_segment_request.rb +13 -0
- data/lib/advanced_billing/models/create_subscription.rb +72 -0
- data/lib/advanced_billing/models/create_subscription_component.rb +19 -0
- data/lib/advanced_billing/models/create_subscription_group.rb +14 -0
- data/lib/advanced_billing/models/create_subscription_group_request.rb +14 -0
- data/lib/advanced_billing/models/create_subscription_request.rb +14 -0
- data/lib/advanced_billing/models/create_usage.rb +16 -0
- data/lib/advanced_billing/models/create_usage_request.rb +13 -0
- data/lib/advanced_billing/models/created_prepayment.rb +19 -0
- data/lib/advanced_billing/models/credit_account_balance_changed.rb +20 -0
- data/lib/advanced_billing/models/credit_card_attributes.rb +16 -0
- data/lib/advanced_billing/models/credit_card_payment_profile.rb +32 -0
- data/lib/advanced_billing/models/credit_note.rb +35 -0
- data/lib/advanced_billing/models/credit_note_application.rb +16 -0
- data/lib/advanced_billing/models/credit_note_line_item.rb +30 -0
- data/lib/advanced_billing/models/credit_scheme_request.rb +14 -0
- data/lib/advanced_billing/models/currency_price.rb +19 -0
- data/lib/advanced_billing/models/currency_prices_response.rb +14 -0
- data/lib/advanced_billing/models/custom_field_value_change.rb +19 -0
- data/lib/advanced_billing/models/customer.rb +40 -0
- data/lib/advanced_billing/models/customer_attributes.rb +27 -0
- data/lib/advanced_billing/models/customer_change.rb +16 -0
- data/lib/advanced_billing/models/customer_changes_preview_response.rb +13 -0
- data/lib/advanced_billing/models/customer_custom_fields_change.rb +14 -0
- data/lib/advanced_billing/models/customer_error.rb +14 -0
- data/lib/advanced_billing/models/customer_payer_change.rb +14 -0
- data/lib/advanced_billing/models/customer_response.rb +14 -0
- data/lib/advanced_billing/models/debit_note.rb +30 -0
- data/lib/advanced_billing/models/deduct_service_credit.rb +14 -0
- data/lib/advanced_billing/models/deduct_service_credit_request.rb +14 -0
- data/lib/advanced_billing/models/delayed_cancellation_response.rb +13 -0
- data/lib/advanced_billing/models/delete_subscription_group_response.rb +14 -0
- data/lib/advanced_billing/models/dunner_data.rb +18 -0
- data/lib/advanced_billing/models/dunning_step_data.rb +19 -0
- data/lib/advanced_billing/models/dunning_step_reached.rb +14 -0
- data/lib/advanced_billing/models/ebb_component.rb +24 -0
- data/lib/advanced_billing/models/ebb_event.rb +14 -0
- data/lib/advanced_billing/models/enable_webhooks_request.rb +14 -0
- data/lib/advanced_billing/models/enable_webhooks_response.rb +14 -0
- data/lib/advanced_billing/models/endpoint.rb +16 -0
- data/lib/advanced_billing/models/endpoint_response.rb +14 -0
- data/lib/advanced_billing/models/errors.rb +14 -0
- data/lib/advanced_billing/models/event.rb +18 -0
- data/lib/advanced_billing/models/event_based_billing_segment_error.rb +14 -0
- data/lib/advanced_billing/models/event_response.rb +13 -0
- data/lib/advanced_billing/models/failed_payment_event.rb +16 -0
- data/lib/advanced_billing/models/failed_payment_event_data.rb +17 -0
- data/lib/advanced_billing/models/full_subscription_group_response.rb +25 -0
- data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +32 -0
- data/lib/advanced_billing/models/get_one_time_token_request.rb +14 -0
- data/lib/advanced_billing/models/group_billing.rb +14 -0
- data/lib/advanced_billing/models/group_settings.rb +14 -0
- data/lib/advanced_billing/models/group_target.rb +14 -0
- data/lib/advanced_billing/models/historic_usage.rb +16 -0
- data/lib/advanced_billing/models/invoice.rb +62 -0
- data/lib/advanced_billing/models/invoice_address.rb +15 -0
- data/lib/advanced_billing/models/invoice_avatax_details.rb +16 -0
- data/lib/advanced_billing/models/invoice_balance_item.rb +14 -0
- data/lib/advanced_billing/models/invoice_credit.rb +19 -0
- data/lib/advanced_billing/models/invoice_custom_field.rb +16 -0
- data/lib/advanced_billing/models/invoice_customer.rb +18 -0
- data/lib/advanced_billing/models/invoice_debit.rb +19 -0
- data/lib/advanced_billing/models/invoice_discount.rb +23 -0
- data/lib/advanced_billing/models/invoice_discount_breakout.rb +15 -0
- data/lib/advanced_billing/models/invoice_display_settings.rb +16 -0
- data/lib/advanced_billing/models/invoice_issued.rb +24 -0
- data/lib/advanced_billing/models/invoice_line_item.rb +34 -0
- data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +13 -0
- data/lib/advanced_billing/models/invoice_line_item_event_data.rb +30 -0
- data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +14 -0
- data/lib/advanced_billing/models/invoice_payer.rb +17 -0
- data/lib/advanced_billing/models/invoice_payer_change.rb +15 -0
- data/lib/advanced_billing/models/invoice_payment.rb +23 -0
- data/lib/advanced_billing/models/invoice_payment_application.rb +15 -0
- data/lib/advanced_billing/models/invoice_payment_method.rb +19 -0
- data/lib/advanced_billing/models/invoice_pre_payment.rb +16 -0
- data/lib/advanced_billing/models/invoice_previous_balance.rb +14 -0
- data/lib/advanced_billing/models/invoice_refund.rb +21 -0
- data/lib/advanced_billing/models/invoice_response.rb +13 -0
- data/lib/advanced_billing/models/invoice_seller.rb +15 -0
- data/lib/advanced_billing/models/invoice_tax.rb +24 -0
- data/lib/advanced_billing/models/invoice_tax_breakout.rb +16 -0
- data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +26 -0
- data/lib/advanced_billing/models/issue_advance_invoice_request.rb +13 -0
- data/lib/advanced_billing/models/issue_invoice_event.rb +16 -0
- data/lib/advanced_billing/models/issue_invoice_event_data.rb +17 -0
- data/lib/advanced_billing/models/issue_invoice_request.rb +14 -0
- data/lib/advanced_billing/models/issue_service_credit.rb +14 -0
- data/lib/advanced_billing/models/issue_service_credit_request.rb +14 -0
- data/lib/advanced_billing/models/item_price_point_changed.rb +18 -0
- data/lib/advanced_billing/models/item_price_point_data.rb +14 -0
- data/lib/advanced_billing/models/list_components_filter.rb +14 -0
- data/lib/advanced_billing/models/list_components_price_points_response.rb +14 -0
- data/lib/advanced_billing/models/list_coupons_filter.rb +19 -0
- data/lib/advanced_billing/models/list_credit_notes_response.rb +14 -0
- data/lib/advanced_billing/models/list_invoice_events_response.rb +15 -0
- data/lib/advanced_billing/models/list_invoices_response.rb +14 -0
- data/lib/advanced_billing/models/list_metafields_response.rb +17 -0
- data/lib/advanced_billing/models/list_mrr_filter.rb +14 -0
- data/lib/advanced_billing/models/list_mrr_response.rb +12 -0
- data/lib/advanced_billing/models/list_mrr_response_result.rb +18 -0
- data/lib/advanced_billing/models/list_offers_response.rb +13 -0
- data/lib/advanced_billing/models/list_prepayments_filter.rb +14 -0
- data/lib/advanced_billing/models/list_price_points_filter.rb +18 -0
- data/lib/advanced_billing/models/list_product_price_points_response.rb +14 -0
- data/lib/advanced_billing/models/list_products_filter.rb +16 -0
- data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +16 -0
- data/lib/advanced_billing/models/list_proforma_invoices_response.rb +14 -0
- data/lib/advanced_billing/models/list_public_keys_meta.rb +16 -0
- data/lib/advanced_billing/models/list_public_keys_response.rb +14 -0
- data/lib/advanced_billing/models/list_sale_rep_item.rb +16 -0
- data/lib/advanced_billing/models/list_segments_filter.rb +19 -0
- data/lib/advanced_billing/models/list_segments_response.rb +14 -0
- data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +21 -0
- data/lib/advanced_billing/models/list_subscription_components_filter.rb +14 -0
- data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +16 -0
- data/lib/advanced_billing/models/list_subscription_components_response.rb +14 -0
- data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +14 -0
- data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +14 -0
- data/lib/advanced_billing/models/list_subscription_groups_item.rb +23 -0
- data/lib/advanced_billing/models/list_subscription_groups_meta.rb +14 -0
- data/lib/advanced_billing/models/list_subscription_groups_response.rb +14 -0
- data/lib/advanced_billing/models/metadata.rb +17 -0
- data/lib/advanced_billing/models/metafield.rb +16 -0
- data/lib/advanced_billing/models/metafield_scope.rb +17 -0
- data/lib/advanced_billing/models/metered_component.rb +27 -0
- data/lib/advanced_billing/models/metered_usage.rb +18 -0
- data/lib/advanced_billing/models/movement.rb +21 -0
- data/lib/advanced_billing/models/movement_line_item.rb +19 -0
- data/lib/advanced_billing/models/mrr.rb +18 -0
- data/lib/advanced_billing/models/mrr_movement.rb +16 -0
- data/lib/advanced_billing/models/mrr_response.rb +12 -0
- data/lib/advanced_billing/models/multi_invoice_payment.rb +16 -0
- data/lib/advanced_billing/models/multi_invoice_payment_response.rb +13 -0
- data/lib/advanced_billing/models/nested_subscription_group.rb +16 -0
- data/lib/advanced_billing/models/net_terms.rb +21 -0
- data/lib/advanced_billing/models/offer.rb +30 -0
- data/lib/advanced_billing/models/offer_discount.rb +15 -0
- data/lib/advanced_billing/models/offer_item.rb +22 -0
- data/lib/advanced_billing/models/offer_response.rb +13 -0
- data/lib/advanced_billing/models/offer_signup_page.rb +17 -0
- data/lib/advanced_billing/models/ok_response.rb +12 -0
- data/lib/advanced_billing/models/on_off_component.rb +26 -0
- data/lib/advanced_billing/models/organization_address.rb +17 -0
- data/lib/advanced_billing/models/origin_invoice.rb +14 -0
- data/lib/advanced_billing/models/overage_pricing.rb +14 -0
- data/lib/advanced_billing/models/override_subscription.rb +19 -0
- data/lib/advanced_billing/models/override_subscription_request.rb +14 -0
- data/lib/advanced_billing/models/paginated_metadata.rb +17 -0
- data/lib/advanced_billing/models/paid_invoice.rb +15 -0
- data/lib/advanced_billing/models/pause_request.rb +13 -0
- data/lib/advanced_billing/models/payer_attributes.rb +24 -0
- data/lib/advanced_billing/models/payer_error.rb +14 -0
- data/lib/advanced_billing/models/payment_collection_method_changed.rb +14 -0
- data/lib/advanced_billing/models/payment_for_allocation.rb +15 -0
- data/lib/advanced_billing/models/payment_method_apple_pay.rb +13 -0
- data/lib/advanced_billing/models/payment_method_bank_account.rb +16 -0
- data/lib/advanced_billing/models/payment_method_credit_card.rb +17 -0
- data/lib/advanced_billing/models/payment_method_external.rb +15 -0
- data/lib/advanced_billing/models/payment_method_paypal.rb +14 -0
- data/lib/advanced_billing/models/payment_profile_attributes.rb +35 -0
- data/lib/advanced_billing/models/payment_profile_response.rb +14 -0
- data/lib/advanced_billing/models/payment_related_events.rb +14 -0
- data/lib/advanced_billing/models/paypal_payment_profile.rb +28 -0
- data/lib/advanced_billing/models/pending_cancellation_change.rb +14 -0
- data/lib/advanced_billing/models/portal_management_link.rb +18 -0
- data/lib/advanced_billing/models/prepaid_configuration.rb +20 -0
- data/lib/advanced_billing/models/prepaid_configuration_response.rb +14 -0
- data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +14 -0
- data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +19 -0
- data/lib/advanced_billing/models/prepaid_usage.rb +25 -0
- data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +15 -0
- data/lib/advanced_billing/models/prepaid_usage_component.rb +35 -0
- data/lib/advanced_billing/models/prepayment.rb +21 -0
- data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +18 -0
- data/lib/advanced_billing/models/prepayment_response.rb +14 -0
- data/lib/advanced_billing/models/prepayments_response.rb +14 -0
- data/lib/advanced_billing/models/preview_allocations_request.rb +17 -0
- data/lib/advanced_billing/models/price.rb +16 -0
- data/lib/advanced_billing/models/product.rb +55 -0
- data/lib/advanced_billing/models/product_family.rb +17 -0
- data/lib/advanced_billing/models/product_family_response.rb +14 -0
- data/lib/advanced_billing/models/product_price_point.rb +37 -0
- data/lib/advanced_billing/models/product_price_point_errors.rb +17 -0
- data/lib/advanced_billing/models/product_price_point_response.rb +14 -0
- data/lib/advanced_billing/models/product_response.rb +13 -0
- data/lib/advanced_billing/models/proforma_error.rb +14 -0
- data/lib/advanced_billing/models/proforma_invoice.rb +42 -0
- data/lib/advanced_billing/models/proforma_invoice_credit.rb +15 -0
- data/lib/advanced_billing/models/proforma_invoice_discount.rb +19 -0
- data/lib/advanced_billing/models/proforma_invoice_issued.rb +21 -0
- data/lib/advanced_billing/models/proforma_invoice_payment.rb +16 -0
- data/lib/advanced_billing/models/proforma_invoice_tax.rb +18 -0
- data/lib/advanced_billing/models/proration.rb +14 -0
- data/lib/advanced_billing/models/public_key.rb +16 -0
- data/lib/advanced_billing/models/public_signup_page.rb +15 -0
- data/lib/advanced_billing/models/quantity_based_component.rb +30 -0
- data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +14 -0
- data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +21 -0
- data/lib/advanced_billing/models/reactivate_subscription_request.rb +19 -0
- data/lib/advanced_billing/models/reactivation_billing.rb +14 -0
- data/lib/advanced_billing/models/reason_code.rb +17 -0
- data/lib/advanced_billing/models/reason_code_response.rb +14 -0
- data/lib/advanced_billing/models/record_payment_request.rb +13 -0
- data/lib/advanced_billing/models/record_payment_response.rb +14 -0
- data/lib/advanced_billing/models/referral_code.rb +15 -0
- data/lib/advanced_billing/models/referral_validation_response.rb +14 -0
- data/lib/advanced_billing/models/refund_consolidated_invoice.rb +17 -0
- data/lib/advanced_billing/models/refund_invoice.rb +17 -0
- data/lib/advanced_billing/models/refund_invoice_event.rb +16 -0
- data/lib/advanced_billing/models/refund_invoice_event_data.rb +21 -0
- data/lib/advanced_billing/models/refund_invoice_request.rb +13 -0
- data/lib/advanced_billing/models/refund_prepayment.rb +15 -0
- data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +13 -0
- data/lib/advanced_billing/models/refund_prepayment_request.rb +13 -0
- data/lib/advanced_billing/models/refund_success.rb +16 -0
- data/lib/advanced_billing/models/remove_payment_event.rb +16 -0
- data/lib/advanced_billing/models/remove_payment_event_data.rb +19 -0
- data/lib/advanced_billing/models/renewal_preview.rb +23 -0
- data/lib/advanced_billing/models/renewal_preview_component.rb +15 -0
- data/lib/advanced_billing/models/renewal_preview_line_item.rb +27 -0
- data/lib/advanced_billing/models/renewal_preview_request.rb +14 -0
- data/lib/advanced_billing/models/renewal_preview_response.rb +14 -0
- data/lib/advanced_billing/models/replay_webhooks_request.rb +12 -0
- data/lib/advanced_billing/models/replay_webhooks_response.rb +13 -0
- data/lib/advanced_billing/models/resent_invitation.rb +19 -0
- data/lib/advanced_billing/models/resume_options.rb +14 -0
- data/lib/advanced_billing/models/revoked_invitation.rb +16 -0
- data/lib/advanced_billing/models/sale_rep.rb +16 -0
- data/lib/advanced_billing/models/sale_rep_item_mrr.rb +14 -0
- data/lib/advanced_billing/models/sale_rep_settings.rb +19 -0
- data/lib/advanced_billing/models/sale_rep_subscription.rb +19 -0
- data/lib/advanced_billing/models/segment.rb +26 -0
- data/lib/advanced_billing/models/segment_price.rb +19 -0
- data/lib/advanced_billing/models/segment_response.rb +13 -0
- data/lib/advanced_billing/models/send_invoice_request.rb +16 -0
- data/lib/advanced_billing/models/service_credit.rb +17 -0
- data/lib/advanced_billing/models/service_credit_response.rb +14 -0
- data/lib/advanced_billing/models/signup_proforma_preview.rb +16 -0
- data/lib/advanced_billing/models/signup_proforma_preview_response.rb +14 -0
- data/lib/advanced_billing/models/site.rb +49 -0
- data/lib/advanced_billing/models/site_response.rb +13 -0
- data/lib/advanced_billing/models/site_statistics.rb +28 -0
- data/lib/advanced_billing/models/site_summary.rb +16 -0
- data/lib/advanced_billing/models/subscription.rb +84 -0
- data/lib/advanced_billing/models/subscription_component.rb +43 -0
- data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +14 -0
- data/lib/advanced_billing/models/subscription_component_response.rb +14 -0
- data/lib/advanced_billing/models/subscription_component_subscription.rb +14 -0
- data/lib/advanced_billing/models/subscription_custom_price.rb +27 -0
- data/lib/advanced_billing/models/subscription_filter.rb +17 -0
- data/lib/advanced_billing/models/subscription_group.rb +18 -0
- data/lib/advanced_billing/models/subscription_group_balances.rb +16 -0
- data/lib/advanced_billing/models/subscription_group_bank_account.rb +28 -0
- data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +15 -0
- data/lib/advanced_billing/models/subscription_group_credit_card.rb +30 -0
- data/lib/advanced_billing/models/subscription_group_customer.rb +16 -0
- data/lib/advanced_billing/models/subscription_group_item.rb +23 -0
- data/lib/advanced_billing/models/subscription_group_members_array_error.rb +13 -0
- data/lib/advanced_billing/models/subscription_group_payment_profile.rb +16 -0
- data/lib/advanced_billing/models/subscription_group_prepayment.rb +15 -0
- data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +14 -0
- data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +17 -0
- data/lib/advanced_billing/models/subscription_group_response.rb +14 -0
- data/lib/advanced_billing/models/subscription_group_signup.rb +22 -0
- data/lib/advanced_billing/models/subscription_group_signup_component.rb +17 -0
- data/lib/advanced_billing/models/subscription_group_signup_error.rb +18 -0
- data/lib/advanced_billing/models/subscription_group_signup_event_data.rb +14 -0
- data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +22 -0
- data/lib/advanced_billing/models/subscription_group_signup_item.rb +24 -0
- data/lib/advanced_billing/models/subscription_group_signup_request.rb +14 -0
- data/lib/advanced_billing/models/subscription_group_signup_response.rb +24 -0
- data/lib/advanced_billing/models/subscription_group_single_error.rb +14 -0
- data/lib/advanced_billing/models/subscription_group_subscription_error.rb +24 -0
- data/lib/advanced_billing/models/subscription_group_update_error.rb +13 -0
- data/lib/advanced_billing/models/subscription_included_coupon.rb +18 -0
- data/lib/advanced_billing/models/subscription_migration_preview.rb +18 -0
- data/lib/advanced_billing/models/subscription_migration_preview_options.rb +23 -0
- data/lib/advanced_billing/models/subscription_migration_preview_request.rb +14 -0
- data/lib/advanced_billing/models/subscription_migration_preview_response.rb +14 -0
- data/lib/advanced_billing/models/subscription_mrr.rb +16 -0
- data/lib/advanced_billing/models/subscription_mrr_breakout.rb +15 -0
- data/lib/advanced_billing/models/subscription_mrr_response.rb +14 -0
- data/lib/advanced_billing/models/subscription_note.rb +17 -0
- data/lib/advanced_billing/models/subscription_note_response.rb +13 -0
- data/lib/advanced_billing/models/subscription_preview.rb +16 -0
- data/lib/advanced_billing/models/subscription_preview_response.rb +14 -0
- data/lib/advanced_billing/models/subscription_product_change.rb +14 -0
- data/lib/advanced_billing/models/subscription_product_migration.rb +23 -0
- data/lib/advanced_billing/models/subscription_product_migration_request.rb +14 -0
- data/lib/advanced_billing/models/subscription_response.rb +14 -0
- data/lib/advanced_billing/models/subscription_state_change.rb +16 -0
- data/lib/advanced_billing/models/tax_configuration.rb +16 -0
- data/lib/advanced_billing/models/too_many_management_link_requests.rb +14 -0
- data/lib/advanced_billing/models/update_allocation_expiration_date.rb +14 -0
- data/lib/advanced_billing/models/update_component.rb +20 -0
- data/lib/advanced_billing/models/update_component_price_point.rb +19 -0
- data/lib/advanced_billing/models/update_component_price_point_request.rb +14 -0
- data/lib/advanced_billing/models/update_component_request.rb +14 -0
- data/lib/advanced_billing/models/update_coupon_currency.rb +14 -0
- data/lib/advanced_billing/models/update_currency_price.rb +14 -0
- data/lib/advanced_billing/models/update_currency_prices_request.rb +14 -0
- data/lib/advanced_billing/models/update_customer.rb +26 -0
- data/lib/advanced_billing/models/update_customer_request.rb +14 -0
- data/lib/advanced_billing/models/update_metadata.rb +14 -0
- data/lib/advanced_billing/models/update_metadata_request.rb +14 -0
- data/lib/advanced_billing/models/update_metafield.rb +16 -0
- data/lib/advanced_billing/models/update_metafields_request.rb +14 -0
- data/lib/advanced_billing/models/update_payment_profile.rb +23 -0
- data/lib/advanced_billing/models/update_payment_profile_request.rb +14 -0
- data/lib/advanced_billing/models/update_price.rb +16 -0
- data/lib/advanced_billing/models/update_product_price_point.rb +14 -0
- data/lib/advanced_billing/models/update_product_price_point_request.rb +14 -0
- data/lib/advanced_billing/models/update_reason_code.rb +14 -0
- data/lib/advanced_billing/models/update_reason_code_request.rb +14 -0
- data/lib/advanced_billing/models/update_segment.rb +14 -0
- data/lib/advanced_billing/models/update_segment_request.rb +13 -0
- data/lib/advanced_billing/models/update_subscription.rb +38 -0
- data/lib/advanced_billing/models/update_subscription_component.rb +14 -0
- data/lib/advanced_billing/models/update_subscription_group.rb +14 -0
- data/lib/advanced_billing/models/update_subscription_group_request.rb +14 -0
- data/lib/advanced_billing/models/update_subscription_note.rb +14 -0
- data/lib/advanced_billing/models/update_subscription_note_request.rb +13 -0
- data/lib/advanced_billing/models/update_subscription_request.rb +14 -0
- data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +20 -0
- data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +14 -0
- data/lib/advanced_billing/models/usage.rb +19 -0
- data/lib/advanced_billing/models/usage_response.rb +13 -0
- data/lib/advanced_billing/models/void_invoice.rb +13 -0
- data/lib/advanced_billing/models/void_invoice_event.rb +16 -0
- data/lib/advanced_billing/models/void_invoice_event_data.rb +18 -0
- data/lib/advanced_billing/models/void_invoice_request.rb +13 -0
- data/lib/advanced_billing/models/void_remainder_event.rb +16 -0
- data/lib/advanced_billing/models/void_remainder_event_data.rb +16 -0
- data/lib/advanced_billing/models/webhook.rb +22 -0
- data/lib/advanced_billing/models/webhook_response.rb +13 -0
- data/lib/advanced_billing/utilities/file_wrapper.rb +14 -2
- metadata +2 -2
@@ -55,5 +55,19 @@ module AdvancedBilling
|
|
55
55
|
EndpointResponse.new(endpoint: endpoint,
|
56
56
|
additional_properties: additional_properties)
|
57
57
|
end
|
58
|
+
|
59
|
+
# Provides a human-readable string representation of the object.
|
60
|
+
def to_s
|
61
|
+
class_name = self.class.name.split('::').last
|
62
|
+
"<#{class_name} endpoint: #{@endpoint}, additional_properties:"\
|
63
|
+
" #{get_additional_properties}>"
|
64
|
+
end
|
65
|
+
|
66
|
+
# Provides a debugging-friendly string with detailed object information.
|
67
|
+
def inspect
|
68
|
+
class_name = self.class.name.split('::').last
|
69
|
+
"<#{class_name} endpoint: #{@endpoint.inspect}, additional_properties:"\
|
70
|
+
" #{get_additional_properties}>"
|
71
|
+
end
|
58
72
|
end
|
59
73
|
end
|
@@ -64,5 +64,19 @@ module AdvancedBilling
|
|
64
64
|
price_point: price_point,
|
65
65
|
additional_properties: additional_properties)
|
66
66
|
end
|
67
|
+
|
68
|
+
# Provides a human-readable string representation of the object.
|
69
|
+
def to_s
|
70
|
+
class_name = self.class.name.split('::').last
|
71
|
+
"<#{class_name} per_page: #{@per_page}, price_point: #{@price_point},"\
|
72
|
+
" additional_properties: #{get_additional_properties}>"
|
73
|
+
end
|
74
|
+
|
75
|
+
# Provides a debugging-friendly string with detailed object information.
|
76
|
+
def inspect
|
77
|
+
class_name = self.class.name.split('::').last
|
78
|
+
"<#{class_name} per_page: #{@per_page.inspect}, price_point: #{@price_point.inspect},"\
|
79
|
+
" additional_properties: #{get_additional_properties}>"
|
80
|
+
end
|
67
81
|
end
|
68
82
|
end
|
@@ -218,5 +218,23 @@ module AdvancedBilling
|
|
218
218
|
.validate(value['event_specific_data'])
|
219
219
|
)
|
220
220
|
end
|
221
|
+
|
222
|
+
# Provides a human-readable string representation of the object.
|
223
|
+
def to_s
|
224
|
+
class_name = self.class.name.split('::').last
|
225
|
+
"<#{class_name} id: #{@id}, key: #{@key}, message: #{@message}, subscription_id:"\
|
226
|
+
" #{@subscription_id}, customer_id: #{@customer_id}, created_at: #{@created_at},"\
|
227
|
+
" event_specific_data: #{@event_specific_data}, additional_properties:"\
|
228
|
+
" #{get_additional_properties}>"
|
229
|
+
end
|
230
|
+
|
231
|
+
# Provides a debugging-friendly string with detailed object information.
|
232
|
+
def inspect
|
233
|
+
class_name = self.class.name.split('::').last
|
234
|
+
"<#{class_name} id: #{@id.inspect}, key: #{@key.inspect}, message: #{@message.inspect},"\
|
235
|
+
" subscription_id: #{@subscription_id.inspect}, customer_id: #{@customer_id.inspect},"\
|
236
|
+
" created_at: #{@created_at.inspect}, event_specific_data: #{@event_specific_data.inspect},"\
|
237
|
+
" additional_properties: #{get_additional_properties}>"
|
238
|
+
end
|
221
239
|
end
|
222
240
|
end
|
@@ -56,5 +56,19 @@ module AdvancedBilling
|
|
56
56
|
EventBasedBillingSegmentError.new(segments: segments,
|
57
57
|
additional_properties: additional_properties)
|
58
58
|
end
|
59
|
+
|
60
|
+
# Provides a human-readable string representation of the object.
|
61
|
+
def to_s
|
62
|
+
class_name = self.class.name.split('::').last
|
63
|
+
"<#{class_name} segments: #{@segments}, additional_properties:"\
|
64
|
+
" #{get_additional_properties}>"
|
65
|
+
end
|
66
|
+
|
67
|
+
# Provides a debugging-friendly string with detailed object information.
|
68
|
+
def inspect
|
69
|
+
class_name = self.class.name.split('::').last
|
70
|
+
"<#{class_name} segments: #{@segments.inspect}, additional_properties:"\
|
71
|
+
" #{get_additional_properties}>"
|
72
|
+
end
|
59
73
|
end
|
60
74
|
end
|
@@ -53,5 +53,18 @@ module AdvancedBilling
|
|
53
53
|
EventResponse.new(event: event,
|
54
54
|
additional_properties: additional_properties)
|
55
55
|
end
|
56
|
+
|
57
|
+
# Provides a human-readable string representation of the object.
|
58
|
+
def to_s
|
59
|
+
class_name = self.class.name.split('::').last
|
60
|
+
"<#{class_name} event: #{@event}, additional_properties: #{get_additional_properties}>"
|
61
|
+
end
|
62
|
+
|
63
|
+
# Provides a debugging-friendly string with detailed object information.
|
64
|
+
def inspect
|
65
|
+
class_name = self.class.name.split('::').last
|
66
|
+
"<#{class_name} event: #{@event.inspect}, additional_properties:"\
|
67
|
+
" #{get_additional_properties}>"
|
68
|
+
end
|
56
69
|
end
|
57
70
|
end
|
@@ -132,5 +132,21 @@ module AdvancedBilling
|
|
132
132
|
is_model_hash: true)
|
133
133
|
)
|
134
134
|
end
|
135
|
+
|
136
|
+
# Provides a human-readable string representation of the object.
|
137
|
+
def to_s
|
138
|
+
class_name = self.class.name.split('::').last
|
139
|
+
"<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\
|
140
|
+
" #{@event_type}, event_data: #{@event_data}, additional_properties:"\
|
141
|
+
" #{get_additional_properties}>"
|
142
|
+
end
|
143
|
+
|
144
|
+
# Provides a debugging-friendly string with detailed object information.
|
145
|
+
def inspect
|
146
|
+
class_name = self.class.name.split('::').last
|
147
|
+
"<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\
|
148
|
+
" #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\
|
149
|
+
" #{@event_data.inspect}, additional_properties: #{get_additional_properties}>"
|
150
|
+
end
|
135
151
|
end
|
136
152
|
end
|
@@ -124,5 +124,22 @@ module AdvancedBilling
|
|
124
124
|
->(val) { val.instance_of? Integer })
|
125
125
|
)
|
126
126
|
end
|
127
|
+
|
128
|
+
# Provides a human-readable string representation of the object.
|
129
|
+
def to_s
|
130
|
+
class_name = self.class.name.split('::').last
|
131
|
+
"<#{class_name} amount_in_cents: #{@amount_in_cents}, applied_amount: #{@applied_amount},"\
|
132
|
+
" memo: #{@memo}, payment_method: #{@payment_method}, transaction_id: #{@transaction_id},"\
|
133
|
+
" additional_properties: #{get_additional_properties}>"
|
134
|
+
end
|
135
|
+
|
136
|
+
# Provides a debugging-friendly string with detailed object information.
|
137
|
+
def inspect
|
138
|
+
class_name = self.class.name.split('::').last
|
139
|
+
"<#{class_name} amount_in_cents: #{@amount_in_cents.inspect}, applied_amount:"\
|
140
|
+
" #{@applied_amount.inspect}, memo: #{@memo.inspect}, payment_method:"\
|
141
|
+
" #{@payment_method.inspect}, transaction_id: #{@transaction_id.inspect},"\
|
142
|
+
" additional_properties: #{get_additional_properties}>"
|
143
|
+
end
|
127
144
|
end
|
128
145
|
end
|
@@ -533,5 +533,30 @@ module AdvancedBilling
|
|
533
533
|
def to_custom_next_assessment_at
|
534
534
|
DateTimeHelper.to_rfc3339(next_assessment_at)
|
535
535
|
end
|
536
|
+
|
537
|
+
# Provides a human-readable string representation of the object.
|
538
|
+
def to_s
|
539
|
+
class_name = self.class.name.split('::').last
|
540
|
+
"<#{class_name} uid: #{@uid}, scheme: #{@scheme}, customer_id: #{@customer_id},"\
|
541
|
+
" payment_profile_id: #{@payment_profile_id}, subscription_ids: #{@subscription_ids},"\
|
542
|
+
" primary_subscription_id: #{@primary_subscription_id}, next_assessment_at:"\
|
543
|
+
" #{@next_assessment_at}, state: #{@state}, cancel_at_end_of_period:"\
|
544
|
+
" #{@cancel_at_end_of_period}, current_billing_amount_in_cents:"\
|
545
|
+
" #{@current_billing_amount_in_cents}, customer: #{@customer}, account_balances:"\
|
546
|
+
" #{@account_balances}, additional_properties: #{get_additional_properties}>"
|
547
|
+
end
|
548
|
+
|
549
|
+
# Provides a debugging-friendly string with detailed object information.
|
550
|
+
def inspect
|
551
|
+
class_name = self.class.name.split('::').last
|
552
|
+
"<#{class_name} uid: #{@uid.inspect}, scheme: #{@scheme.inspect}, customer_id:"\
|
553
|
+
" #{@customer_id.inspect}, payment_profile_id: #{@payment_profile_id.inspect},"\
|
554
|
+
" subscription_ids: #{@subscription_ids.inspect}, primary_subscription_id:"\
|
555
|
+
" #{@primary_subscription_id.inspect}, next_assessment_at: #{@next_assessment_at.inspect},"\
|
556
|
+
" state: #{@state.inspect}, cancel_at_end_of_period: #{@cancel_at_end_of_period.inspect},"\
|
557
|
+
" current_billing_amount_in_cents: #{@current_billing_amount_in_cents.inspect}, customer:"\
|
558
|
+
" #{@customer.inspect}, account_balances: #{@account_balances.inspect},"\
|
559
|
+
" additional_properties: #{get_additional_properties}>"
|
560
|
+
end
|
536
561
|
end
|
537
562
|
end
|
@@ -253,5 +253,37 @@ module AdvancedBilling
|
|
253
253
|
gateway_handle: gateway_handle,
|
254
254
|
additional_properties: additional_properties)
|
255
255
|
end
|
256
|
+
|
257
|
+
# Provides a human-readable string representation of the object.
|
258
|
+
def to_s
|
259
|
+
class_name = self.class.name.split('::').last
|
260
|
+
"<#{class_name} id: #{@id}, first_name: #{@first_name}, last_name: #{@last_name},"\
|
261
|
+
" masked_card_number: #{@masked_card_number}, card_type: #{@card_type}, expiration_month:"\
|
262
|
+
" #{@expiration_month}, expiration_year: #{@expiration_year}, customer_id: #{@customer_id},"\
|
263
|
+
" current_vault: #{@current_vault}, vault_token: #{@vault_token}, billing_address:"\
|
264
|
+
" #{@billing_address}, billing_address_2: #{@billing_address_2}, billing_city:"\
|
265
|
+
" #{@billing_city}, billing_country: #{@billing_country}, billing_state: #{@billing_state},"\
|
266
|
+
" billing_zip: #{@billing_zip}, payment_type: #{@payment_type}, disabled: #{@disabled},"\
|
267
|
+
" site_gateway_setting_id: #{@site_gateway_setting_id}, customer_vault_token:"\
|
268
|
+
" #{@customer_vault_token}, gateway_handle: #{@gateway_handle}, additional_properties:"\
|
269
|
+
" #{get_additional_properties}>"
|
270
|
+
end
|
271
|
+
|
272
|
+
# Provides a debugging-friendly string with detailed object information.
|
273
|
+
def inspect
|
274
|
+
class_name = self.class.name.split('::').last
|
275
|
+
"<#{class_name} id: #{@id.inspect}, first_name: #{@first_name.inspect}, last_name:"\
|
276
|
+
" #{@last_name.inspect}, masked_card_number: #{@masked_card_number.inspect}, card_type:"\
|
277
|
+
" #{@card_type.inspect}, expiration_month: #{@expiration_month.inspect}, expiration_year:"\
|
278
|
+
" #{@expiration_year.inspect}, customer_id: #{@customer_id.inspect}, current_vault:"\
|
279
|
+
" #{@current_vault.inspect}, vault_token: #{@vault_token.inspect}, billing_address:"\
|
280
|
+
" #{@billing_address.inspect}, billing_address_2: #{@billing_address_2.inspect},"\
|
281
|
+
" billing_city: #{@billing_city.inspect}, billing_country: #{@billing_country.inspect},"\
|
282
|
+
" billing_state: #{@billing_state.inspect}, billing_zip: #{@billing_zip.inspect},"\
|
283
|
+
" payment_type: #{@payment_type.inspect}, disabled: #{@disabled.inspect},"\
|
284
|
+
" site_gateway_setting_id: #{@site_gateway_setting_id.inspect}, customer_vault_token:"\
|
285
|
+
" #{@customer_vault_token.inspect}, gateway_handle: #{@gateway_handle.inspect},"\
|
286
|
+
" additional_properties: #{get_additional_properties}>"
|
287
|
+
end
|
256
288
|
end
|
257
289
|
end
|
@@ -54,5 +54,19 @@ module AdvancedBilling
|
|
54
54
|
GetOneTimeTokenRequest.new(payment_profile: payment_profile,
|
55
55
|
additional_properties: additional_properties)
|
56
56
|
end
|
57
|
+
|
58
|
+
# Provides a human-readable string representation of the object.
|
59
|
+
def to_s
|
60
|
+
class_name = self.class.name.split('::').last
|
61
|
+
"<#{class_name} payment_profile: #{@payment_profile}, additional_properties:"\
|
62
|
+
" #{get_additional_properties}>"
|
63
|
+
end
|
64
|
+
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
66
|
+
def inspect
|
67
|
+
class_name = self.class.name.split('::').last
|
68
|
+
"<#{class_name} payment_profile: #{@payment_profile.inspect}, additional_properties:"\
|
69
|
+
" #{get_additional_properties}>"
|
70
|
+
end
|
57
71
|
end
|
58
72
|
end
|
@@ -91,5 +91,19 @@ module AdvancedBilling
|
|
91
91
|
|
92
92
|
true
|
93
93
|
end
|
94
|
+
|
95
|
+
# Provides a human-readable string representation of the object.
|
96
|
+
def to_s
|
97
|
+
class_name = self.class.name.split('::').last
|
98
|
+
"<#{class_name} accrue: #{@accrue}, align_date: #{@align_date}, prorate: #{@prorate},"\
|
99
|
+
" additional_properties: #{get_additional_properties}>"
|
100
|
+
end
|
101
|
+
|
102
|
+
# Provides a debugging-friendly string with detailed object information.
|
103
|
+
def inspect
|
104
|
+
class_name = self.class.name.split('::').last
|
105
|
+
"<#{class_name} accrue: #{@accrue.inspect}, align_date: #{@align_date.inspect}, prorate:"\
|
106
|
+
" #{@prorate.inspect}, additional_properties: #{get_additional_properties}>"
|
107
|
+
end
|
94
108
|
end
|
95
109
|
end
|
@@ -81,5 +81,19 @@ module AdvancedBilling
|
|
81
81
|
->(val) { GroupTarget.validate(val) },
|
82
82
|
is_model_hash: true)
|
83
83
|
end
|
84
|
+
|
85
|
+
# Provides a human-readable string representation of the object.
|
86
|
+
def to_s
|
87
|
+
class_name = self.class.name.split('::').last
|
88
|
+
"<#{class_name} target: #{@target}, billing: #{@billing}, additional_properties:"\
|
89
|
+
" #{get_additional_properties}>"
|
90
|
+
end
|
91
|
+
|
92
|
+
# Provides a debugging-friendly string with detailed object information.
|
93
|
+
def inspect
|
94
|
+
class_name = self.class.name.split('::').last
|
95
|
+
"<#{class_name} target: #{@target.inspect}, billing: #{@billing.inspect},"\
|
96
|
+
" additional_properties: #{get_additional_properties}>"
|
97
|
+
end
|
84
98
|
end
|
85
99
|
end
|
@@ -80,5 +80,19 @@ module AdvancedBilling
|
|
80
80
|
APIHelper.valid_type?(value['type'],
|
81
81
|
->(val) { GroupTargetType.validate(val) })
|
82
82
|
end
|
83
|
+
|
84
|
+
# Provides a human-readable string representation of the object.
|
85
|
+
def to_s
|
86
|
+
class_name = self.class.name.split('::').last
|
87
|
+
"<#{class_name} type: #{@type}, id: #{@id}, additional_properties:"\
|
88
|
+
" #{get_additional_properties}>"
|
89
|
+
end
|
90
|
+
|
91
|
+
# Provides a debugging-friendly string with detailed object information.
|
92
|
+
def inspect
|
93
|
+
class_name = self.class.name.split('::').last
|
94
|
+
"<#{class_name} type: #{@type.inspect}, id: #{@id.inspect}, additional_properties:"\
|
95
|
+
" #{get_additional_properties}>"
|
96
|
+
end
|
83
97
|
end
|
84
98
|
end
|
@@ -103,5 +103,21 @@ module AdvancedBilling
|
|
103
103
|
|
104
104
|
true
|
105
105
|
end
|
106
|
+
|
107
|
+
# Provides a human-readable string representation of the object.
|
108
|
+
def to_s
|
109
|
+
class_name = self.class.name.split('::').last
|
110
|
+
"<#{class_name} total_usage_quantity: #{@total_usage_quantity}, billing_period_starts_at:"\
|
111
|
+
" #{@billing_period_starts_at}, billing_period_ends_at: #{@billing_period_ends_at},"\
|
112
|
+
" additional_properties: #{get_additional_properties}>"
|
113
|
+
end
|
114
|
+
|
115
|
+
# Provides a debugging-friendly string with detailed object information.
|
116
|
+
def inspect
|
117
|
+
class_name = self.class.name.split('::').last
|
118
|
+
"<#{class_name} total_usage_quantity: #{@total_usage_quantity.inspect},"\
|
119
|
+
" billing_period_starts_at: #{@billing_period_starts_at.inspect}, billing_period_ends_at:"\
|
120
|
+
" #{@billing_period_ends_at.inspect}, additional_properties: #{get_additional_properties}>"
|
121
|
+
end
|
106
122
|
end
|
107
123
|
end
|
@@ -767,5 +767,67 @@ module AdvancedBilling
|
|
767
767
|
|
768
768
|
true
|
769
769
|
end
|
770
|
+
|
771
|
+
# Provides a human-readable string representation of the object.
|
772
|
+
def to_s
|
773
|
+
class_name = self.class.name.split('::').last
|
774
|
+
"<#{class_name} id: #{@id}, uid: #{@uid}, site_id: #{@site_id}, customer_id:"\
|
775
|
+
" #{@customer_id}, subscription_id: #{@subscription_id}, number: #{@number},"\
|
776
|
+
" sequence_number: #{@sequence_number}, transaction_time: #{@transaction_time}, created_at:"\
|
777
|
+
" #{@created_at}, updated_at: #{@updated_at}, issue_date: #{@issue_date}, due_date:"\
|
778
|
+
" #{@due_date}, paid_date: #{@paid_date}, status: #{@status}, role: #{@role},"\
|
779
|
+
" parent_invoice_id: #{@parent_invoice_id}, collection_method: #{@collection_method},"\
|
780
|
+
" payment_instructions: #{@payment_instructions}, currency: #{@currency},"\
|
781
|
+
" consolidation_level: #{@consolidation_level}, parent_invoice_uid: #{@parent_invoice_uid},"\
|
782
|
+
" subscription_group_id: #{@subscription_group_id}, parent_invoice_number:"\
|
783
|
+
" #{@parent_invoice_number}, group_primary_subscription_id:"\
|
784
|
+
" #{@group_primary_subscription_id}, product_name: #{@product_name}, product_family_name:"\
|
785
|
+
" #{@product_family_name}, seller: #{@seller}, customer: #{@customer}, payer: #{@payer},"\
|
786
|
+
" recipient_emails: #{@recipient_emails}, net_terms: #{@net_terms}, memo: #{@memo},"\
|
787
|
+
" billing_address: #{@billing_address}, shipping_address: #{@shipping_address},"\
|
788
|
+
" subtotal_amount: #{@subtotal_amount}, discount_amount: #{@discount_amount}, tax_amount:"\
|
789
|
+
" #{@tax_amount}, total_amount: #{@total_amount}, credit_amount: #{@credit_amount},"\
|
790
|
+
" debit_amount: #{@debit_amount}, refund_amount: #{@refund_amount}, paid_amount:"\
|
791
|
+
" #{@paid_amount}, due_amount: #{@due_amount}, line_items: #{@line_items}, discounts:"\
|
792
|
+
" #{@discounts}, taxes: #{@taxes}, credits: #{@credits}, debits: #{@debits}, refunds:"\
|
793
|
+
" #{@refunds}, payments: #{@payments}, custom_fields: #{@custom_fields}, display_settings:"\
|
794
|
+
" #{@display_settings}, avatax_details: #{@avatax_details}, public_url: #{@public_url},"\
|
795
|
+
" previous_balance_data: #{@previous_balance_data}, public_url_expires_on:"\
|
796
|
+
" #{@public_url_expires_on}, additional_properties: #{get_additional_properties}>"
|
797
|
+
end
|
798
|
+
|
799
|
+
# Provides a debugging-friendly string with detailed object information.
|
800
|
+
def inspect
|
801
|
+
class_name = self.class.name.split('::').last
|
802
|
+
"<#{class_name} id: #{@id.inspect}, uid: #{@uid.inspect}, site_id: #{@site_id.inspect},"\
|
803
|
+
" customer_id: #{@customer_id.inspect}, subscription_id: #{@subscription_id.inspect},"\
|
804
|
+
" number: #{@number.inspect}, sequence_number: #{@sequence_number.inspect},"\
|
805
|
+
" transaction_time: #{@transaction_time.inspect}, created_at: #{@created_at.inspect},"\
|
806
|
+
" updated_at: #{@updated_at.inspect}, issue_date: #{@issue_date.inspect}, due_date:"\
|
807
|
+
" #{@due_date.inspect}, paid_date: #{@paid_date.inspect}, status: #{@status.inspect}, role:"\
|
808
|
+
" #{@role.inspect}, parent_invoice_id: #{@parent_invoice_id.inspect}, collection_method:"\
|
809
|
+
" #{@collection_method.inspect}, payment_instructions: #{@payment_instructions.inspect},"\
|
810
|
+
" currency: #{@currency.inspect}, consolidation_level: #{@consolidation_level.inspect},"\
|
811
|
+
" parent_invoice_uid: #{@parent_invoice_uid.inspect}, subscription_group_id:"\
|
812
|
+
" #{@subscription_group_id.inspect}, parent_invoice_number:"\
|
813
|
+
" #{@parent_invoice_number.inspect}, group_primary_subscription_id:"\
|
814
|
+
" #{@group_primary_subscription_id.inspect}, product_name: #{@product_name.inspect},"\
|
815
|
+
" product_family_name: #{@product_family_name.inspect}, seller: #{@seller.inspect},"\
|
816
|
+
" customer: #{@customer.inspect}, payer: #{@payer.inspect}, recipient_emails:"\
|
817
|
+
" #{@recipient_emails.inspect}, net_terms: #{@net_terms.inspect}, memo: #{@memo.inspect},"\
|
818
|
+
" billing_address: #{@billing_address.inspect}, shipping_address:"\
|
819
|
+
" #{@shipping_address.inspect}, subtotal_amount: #{@subtotal_amount.inspect},"\
|
820
|
+
" discount_amount: #{@discount_amount.inspect}, tax_amount: #{@tax_amount.inspect},"\
|
821
|
+
" total_amount: #{@total_amount.inspect}, credit_amount: #{@credit_amount.inspect},"\
|
822
|
+
" debit_amount: #{@debit_amount.inspect}, refund_amount: #{@refund_amount.inspect},"\
|
823
|
+
" paid_amount: #{@paid_amount.inspect}, due_amount: #{@due_amount.inspect}, line_items:"\
|
824
|
+
" #{@line_items.inspect}, discounts: #{@discounts.inspect}, taxes: #{@taxes.inspect},"\
|
825
|
+
" credits: #{@credits.inspect}, debits: #{@debits.inspect}, refunds: #{@refunds.inspect},"\
|
826
|
+
" payments: #{@payments.inspect}, custom_fields: #{@custom_fields.inspect},"\
|
827
|
+
" display_settings: #{@display_settings.inspect}, avatax_details:"\
|
828
|
+
" #{@avatax_details.inspect}, public_url: #{@public_url.inspect}, previous_balance_data:"\
|
829
|
+
" #{@previous_balance_data.inspect}, public_url_expires_on:"\
|
830
|
+
" #{@public_url_expires_on.inspect}, additional_properties: #{get_additional_properties}>"
|
831
|
+
end
|
770
832
|
end
|
771
833
|
end
|
@@ -118,5 +118,20 @@ module AdvancedBilling
|
|
118
118
|
|
119
119
|
true
|
120
120
|
end
|
121
|
+
|
122
|
+
# Provides a human-readable string representation of the object.
|
123
|
+
def to_s
|
124
|
+
class_name = self.class.name.split('::').last
|
125
|
+
"<#{class_name} street: #{@street}, line2: #{@line2}, city: #{@city}, state: #{@state},"\
|
126
|
+
" zip: #{@zip}, country: #{@country}, additional_properties: #{get_additional_properties}>"
|
127
|
+
end
|
128
|
+
|
129
|
+
# Provides a debugging-friendly string with detailed object information.
|
130
|
+
def inspect
|
131
|
+
class_name = self.class.name.split('::').last
|
132
|
+
"<#{class_name} street: #{@street.inspect}, line2: #{@line2.inspect}, city:"\
|
133
|
+
" #{@city.inspect}, state: #{@state.inspect}, zip: #{@zip.inspect}, country:"\
|
134
|
+
" #{@country.inspect}, additional_properties: #{get_additional_properties}>"
|
135
|
+
end
|
121
136
|
end
|
122
137
|
end
|
@@ -126,5 +126,21 @@ module AdvancedBilling
|
|
126
126
|
|
127
127
|
true
|
128
128
|
end
|
129
|
+
|
130
|
+
# Provides a human-readable string representation of the object.
|
131
|
+
def to_s
|
132
|
+
class_name = self.class.name.split('::').last
|
133
|
+
"<#{class_name} id: #{@id}, status: #{@status}, document_code: #{@document_code},"\
|
134
|
+
" commit_date: #{@commit_date}, modify_date: #{@modify_date}, additional_properties:"\
|
135
|
+
" #{get_additional_properties}>"
|
136
|
+
end
|
137
|
+
|
138
|
+
# Provides a debugging-friendly string with detailed object information.
|
139
|
+
def inspect
|
140
|
+
class_name = self.class.name.split('::').last
|
141
|
+
"<#{class_name} id: #{@id.inspect}, status: #{@status.inspect}, document_code:"\
|
142
|
+
" #{@document_code.inspect}, commit_date: #{@commit_date.inspect}, modify_date:"\
|
143
|
+
" #{@modify_date.inspect}, additional_properties: #{get_additional_properties}>"
|
144
|
+
end
|
129
145
|
end
|
130
146
|
end
|
@@ -85,5 +85,19 @@ module AdvancedBilling
|
|
85
85
|
|
86
86
|
true
|
87
87
|
end
|
88
|
+
|
89
|
+
# Provides a human-readable string representation of the object.
|
90
|
+
def to_s
|
91
|
+
class_name = self.class.name.split('::').last
|
92
|
+
"<#{class_name} uid: #{@uid}, number: #{@number}, outstanding_amount:"\
|
93
|
+
" #{@outstanding_amount}, additional_properties: #{get_additional_properties}>"
|
94
|
+
end
|
95
|
+
|
96
|
+
# Provides a debugging-friendly string with detailed object information.
|
97
|
+
def inspect
|
98
|
+
class_name = self.class.name.split('::').last
|
99
|
+
"<#{class_name} uid: #{@uid.inspect}, number: #{@number.inspect}, outstanding_amount:"\
|
100
|
+
" #{@outstanding_amount.inspect}, additional_properties: #{get_additional_properties}>"
|
101
|
+
end
|
88
102
|
end
|
89
103
|
end
|
@@ -134,5 +134,24 @@ module AdvancedBilling
|
|
134
134
|
|
135
135
|
true
|
136
136
|
end
|
137
|
+
|
138
|
+
# Provides a human-readable string representation of the object.
|
139
|
+
def to_s
|
140
|
+
class_name = self.class.name.split('::').last
|
141
|
+
"<#{class_name} uid: #{@uid}, credit_note_number: #{@credit_note_number}, credit_note_uid:"\
|
142
|
+
" #{@credit_note_uid}, transaction_time: #{@transaction_time}, memo: #{@memo},"\
|
143
|
+
" original_amount: #{@original_amount}, applied_amount: #{@applied_amount},"\
|
144
|
+
" additional_properties: #{get_additional_properties}>"
|
145
|
+
end
|
146
|
+
|
147
|
+
# Provides a debugging-friendly string with detailed object information.
|
148
|
+
def inspect
|
149
|
+
class_name = self.class.name.split('::').last
|
150
|
+
"<#{class_name} uid: #{@uid.inspect}, credit_note_number: #{@credit_note_number.inspect},"\
|
151
|
+
" credit_note_uid: #{@credit_note_uid.inspect}, transaction_time:"\
|
152
|
+
" #{@transaction_time.inspect}, memo: #{@memo.inspect}, original_amount:"\
|
153
|
+
" #{@original_amount.inspect}, applied_amount: #{@applied_amount.inspect},"\
|
154
|
+
" additional_properties: #{get_additional_properties}>"
|
155
|
+
end
|
137
156
|
end
|
138
157
|
end
|
@@ -102,5 +102,21 @@ module AdvancedBilling
|
|
102
102
|
|
103
103
|
true
|
104
104
|
end
|
105
|
+
|
106
|
+
# Provides a human-readable string representation of the object.
|
107
|
+
def to_s
|
108
|
+
class_name = self.class.name.split('::').last
|
109
|
+
"<#{class_name} owner_id: #{@owner_id}, owner_type: #{@owner_type}, name: #{@name}, value:"\
|
110
|
+
" #{@value}, metadatum_id: #{@metadatum_id}, additional_properties:"\
|
111
|
+
" #{get_additional_properties}>"
|
112
|
+
end
|
113
|
+
|
114
|
+
# Provides a debugging-friendly string with detailed object information.
|
115
|
+
def inspect
|
116
|
+
class_name = self.class.name.split('::').last
|
117
|
+
"<#{class_name} owner_id: #{@owner_id.inspect}, owner_type: #{@owner_type.inspect}, name:"\
|
118
|
+
" #{@name.inspect}, value: #{@value.inspect}, metadatum_id: #{@metadatum_id.inspect},"\
|
119
|
+
" additional_properties: #{get_additional_properties}>"
|
120
|
+
end
|
105
121
|
end
|
106
122
|
end
|
@@ -127,5 +127,23 @@ module AdvancedBilling
|
|
127
127
|
|
128
128
|
true
|
129
129
|
end
|
130
|
+
|
131
|
+
# Provides a human-readable string representation of the object.
|
132
|
+
def to_s
|
133
|
+
class_name = self.class.name.split('::').last
|
134
|
+
"<#{class_name} chargify_id: #{@chargify_id}, first_name: #{@first_name}, last_name:"\
|
135
|
+
" #{@last_name}, organization: #{@organization}, email: #{@email}, vat_number:"\
|
136
|
+
" #{@vat_number}, reference: #{@reference}, additional_properties:"\
|
137
|
+
" #{get_additional_properties}>"
|
138
|
+
end
|
139
|
+
|
140
|
+
# Provides a debugging-friendly string with detailed object information.
|
141
|
+
def inspect
|
142
|
+
class_name = self.class.name.split('::').last
|
143
|
+
"<#{class_name} chargify_id: #{@chargify_id.inspect}, first_name: #{@first_name.inspect},"\
|
144
|
+
" last_name: #{@last_name.inspect}, organization: #{@organization.inspect}, email:"\
|
145
|
+
" #{@email.inspect}, vat_number: #{@vat_number.inspect}, reference: #{@reference.inspect},"\
|
146
|
+
" additional_properties: #{get_additional_properties}>"
|
147
|
+
end
|
130
148
|
end
|
131
149
|
end
|
@@ -144,5 +144,24 @@ module AdvancedBilling
|
|
144
144
|
|
145
145
|
true
|
146
146
|
end
|
147
|
+
|
148
|
+
# Provides a human-readable string representation of the object.
|
149
|
+
def to_s
|
150
|
+
class_name = self.class.name.split('::').last
|
151
|
+
"<#{class_name} uid: #{@uid}, debit_note_number: #{@debit_note_number}, debit_note_uid:"\
|
152
|
+
" #{@debit_note_uid}, role: #{@role}, transaction_time: #{@transaction_time}, memo:"\
|
153
|
+
" #{@memo}, original_amount: #{@original_amount}, applied_amount: #{@applied_amount},"\
|
154
|
+
" additional_properties: #{get_additional_properties}>"
|
155
|
+
end
|
156
|
+
|
157
|
+
# Provides a debugging-friendly string with detailed object information.
|
158
|
+
def inspect
|
159
|
+
class_name = self.class.name.split('::').last
|
160
|
+
"<#{class_name} uid: #{@uid.inspect}, debit_note_number: #{@debit_note_number.inspect},"\
|
161
|
+
" debit_note_uid: #{@debit_note_uid.inspect}, role: #{@role.inspect}, transaction_time:"\
|
162
|
+
" #{@transaction_time.inspect}, memo: #{@memo.inspect}, original_amount:"\
|
163
|
+
" #{@original_amount.inspect}, applied_amount: #{@applied_amount.inspect},"\
|
164
|
+
" additional_properties: #{get_additional_properties}>"
|
165
|
+
end
|
147
166
|
end
|
148
167
|
end
|
@@ -182,5 +182,28 @@ module AdvancedBilling
|
|
182
182
|
|
183
183
|
true
|
184
184
|
end
|
185
|
+
|
186
|
+
# Provides a human-readable string representation of the object.
|
187
|
+
def to_s
|
188
|
+
class_name = self.class.name.split('::').last
|
189
|
+
"<#{class_name} uid: #{@uid}, title: #{@title}, description: #{@description}, code:"\
|
190
|
+
" #{@code}, source_type: #{@source_type}, source_id: #{@source_id}, discount_type:"\
|
191
|
+
" #{@discount_type}, percentage: #{@percentage}, eligible_amount: #{@eligible_amount},"\
|
192
|
+
" discount_amount: #{@discount_amount}, transaction_id: #{@transaction_id},"\
|
193
|
+
" line_item_breakouts: #{@line_item_breakouts}, additional_properties:"\
|
194
|
+
" #{get_additional_properties}>"
|
195
|
+
end
|
196
|
+
|
197
|
+
# Provides a debugging-friendly string with detailed object information.
|
198
|
+
def inspect
|
199
|
+
class_name = self.class.name.split('::').last
|
200
|
+
"<#{class_name} uid: #{@uid.inspect}, title: #{@title.inspect}, description:"\
|
201
|
+
" #{@description.inspect}, code: #{@code.inspect}, source_type: #{@source_type.inspect},"\
|
202
|
+
" source_id: #{@source_id.inspect}, discount_type: #{@discount_type.inspect}, percentage:"\
|
203
|
+
" #{@percentage.inspect}, eligible_amount: #{@eligible_amount.inspect}, discount_amount:"\
|
204
|
+
" #{@discount_amount.inspect}, transaction_id: #{@transaction_id.inspect},"\
|
205
|
+
" line_item_breakouts: #{@line_item_breakouts.inspect}, additional_properties:"\
|
206
|
+
" #{get_additional_properties}>"
|
207
|
+
end
|
185
208
|
end
|
186
209
|
end
|
@@ -86,5 +86,20 @@ module AdvancedBilling
|
|
86
86
|
|
87
87
|
true
|
88
88
|
end
|
89
|
+
|
90
|
+
# Provides a human-readable string representation of the object.
|
91
|
+
def to_s
|
92
|
+
class_name = self.class.name.split('::').last
|
93
|
+
"<#{class_name} uid: #{@uid}, eligible_amount: #{@eligible_amount}, discount_amount:"\
|
94
|
+
" #{@discount_amount}, additional_properties: #{get_additional_properties}>"
|
95
|
+
end
|
96
|
+
|
97
|
+
# Provides a debugging-friendly string with detailed object information.
|
98
|
+
def inspect
|
99
|
+
class_name = self.class.name.split('::').last
|
100
|
+
"<#{class_name} uid: #{@uid.inspect}, eligible_amount: #{@eligible_amount.inspect},"\
|
101
|
+
" discount_amount: #{@discount_amount.inspect}, additional_properties:"\
|
102
|
+
" #{get_additional_properties}>"
|
103
|
+
end
|
89
104
|
end
|
90
105
|
end
|
@@ -80,5 +80,21 @@ module AdvancedBilling
|
|
80
80
|
|
81
81
|
true
|
82
82
|
end
|
83
|
+
|
84
|
+
# Provides a human-readable string representation of the object.
|
85
|
+
def to_s
|
86
|
+
class_name = self.class.name.split('::').last
|
87
|
+
"<#{class_name} hide_zero_subtotal_lines: #{@hide_zero_subtotal_lines},"\
|
88
|
+
" include_discounts_on_lines: #{@include_discounts_on_lines}, additional_properties:"\
|
89
|
+
" #{get_additional_properties}>"
|
90
|
+
end
|
91
|
+
|
92
|
+
# Provides a debugging-friendly string with detailed object information.
|
93
|
+
def inspect
|
94
|
+
class_name = self.class.name.split('::').last
|
95
|
+
"<#{class_name} hide_zero_subtotal_lines: #{@hide_zero_subtotal_lines.inspect},"\
|
96
|
+
" include_discounts_on_lines: #{@include_discounts_on_lines.inspect}, additional_properties:"\
|
97
|
+
" #{get_additional_properties}>"
|
98
|
+
end
|
83
99
|
end
|
84
100
|
end
|