diff --git a/LICENSE b/LICENSE index b9181f72..b85cedd2 100644 --- a/LICENSE +++ b/LICENSE @@ -3,7 +3,7 @@ License: The MIT License (MIT) http://opensource.org/licenses/MIT -Copyright (c) 2014 - 2024 APIMATIC Limited +Copyright (c) 2014 - 2025 APIMATIC Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 6ec0cbbb..add1d8a5 100644 --- a/README.md +++ b/README.md @@ -30,20 +30,20 @@ curl -u :x -H Accept:application/json -H Content-Type:application/json Install the gem from the command line: ```bash -gem install maxio-advanced-billing-sdk -v 6.0.0 +gem install maxio-advanced-billing-sdk -v 6.1.0 ``` Or add the gem to your Gemfile and run `bundle`: ```ruby -gem 'maxio-advanced-billing-sdk', '6.0.0' +gem 'maxio-advanced-billing-sdk', '6.1.0' ``` -For additional gem details, see the [RubyGems page for the maxio-advanced-billing-sdk gem](https://rubygems.org/gems/maxio-advanced-billing-sdk/versions/6.0.0). +For additional gem details, see the [RubyGems page for the maxio-advanced-billing-sdk gem](https://rubygems.org/gems/maxio-advanced-billing-sdk/versions/6.1.0). ## Initialize the API Client -**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/client.md) +**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/client.md) The following parameters are configurable for the API Client: @@ -60,7 +60,7 @@ The following parameters are configurable for the API Client: | `retry_statuses` | `Array` | A list of HTTP statuses to retry.
**Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** | | `retry_methods` | `Array` | A list of HTTP methods to retry.
**Default: %i[get put]** | | `http_callback` | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. | -| `basic_auth_credentials` | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/auth/basic-authentication.md) | The credential object for Basic Authentication | +| `basic_auth_credentials` | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/auth/basic-authentication.md) | The credential object for Basic Authentication | The API client can be initialized as follows: @@ -90,46 +90,46 @@ The SDK can be configured to use a different environment for making API calls. A This API uses the following authentication schemes. -* [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/auth/basic-authentication.md) +* [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/auth/basic-authentication.md) ## List of APIs -* [API Exports](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/api-exports.md) -* [Advance Invoice](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/advance-invoice.md) -* [Billing Portal](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/billing-portal.md) -* [Component Price Points](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/component-price-points.md) -* [Custom Fields](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/custom-fields.md) -* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/events-based-billing-segments.md) -* [Payment Profiles](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/payment-profiles.md) -* [Product Families](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/product-families.md) -* [Product Price Points](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/product-price-points.md) -* [Proforma Invoices](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/proforma-invoices.md) -* [Reason Codes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/reason-codes.md) -* [Referral Codes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/referral-codes.md) -* [Sales Commissions](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/sales-commissions.md) -* [Subscription Components](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/subscription-components.md) -* [Subscription Groups](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/subscription-groups.md) -* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/subscription-group-invoice-account.md) -* [Subscription Group Status](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/subscription-group-status.md) -* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/subscription-invoice-account.md) -* [Subscription Notes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/subscription-notes.md) -* [Subscription Products](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/subscription-products.md) -* [Subscription Status](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/subscription-status.md) -* [Coupons](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/coupons.md) -* [Components](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/components.md) -* [Customers](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/customers.md) -* [Events](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/events.md) -* [Insights](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/insights.md) -* [Invoices](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/invoices.md) -* [Offers](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/offers.md) -* [Products](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/products.md) -* [Sites](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/sites.md) -* [Subscriptions](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/subscriptions.md) -* [Webhooks](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/controllers/webhooks.md) +* [API Exports](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/api-exports.md) +* [Advance Invoice](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/advance-invoice.md) +* [Billing Portal](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/billing-portal.md) +* [Component Price Points](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/component-price-points.md) +* [Custom Fields](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/custom-fields.md) +* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/events-based-billing-segments.md) +* [Payment Profiles](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/payment-profiles.md) +* [Product Families](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/product-families.md) +* [Product Price Points](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/product-price-points.md) +* [Proforma Invoices](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/proforma-invoices.md) +* [Reason Codes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/reason-codes.md) +* [Referral Codes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/referral-codes.md) +* [Sales Commissions](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/sales-commissions.md) +* [Subscription Components](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-components.md) +* [Subscription Groups](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-groups.md) +* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-group-invoice-account.md) +* [Subscription Group Status](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-group-status.md) +* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-invoice-account.md) +* [Subscription Notes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-notes.md) +* [Subscription Products](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-products.md) +* [Subscription Status](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-status.md) +* [Coupons](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/coupons.md) +* [Components](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/components.md) +* [Customers](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/customers.md) +* [Events](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/events.md) +* [Insights](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/insights.md) +* [Invoices](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/invoices.md) +* [Offers](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/offers.md) +* [Products](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/products.md) +* [Sites](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/sites.md) +* [Subscriptions](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscriptions.md) +* [Webhooks](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/webhooks.md) ## Classes Documentation -* [Utility Classes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/utility-classes.md) -* [HttpResponse](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/http-response.md) -* [HttpRequest](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.0.0/doc/http-request.md) +* [Utility Classes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/utility-classes.md) +* [HttpResponse](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/http-response.md) +* [HttpRequest](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/http-request.md) diff --git a/advanced_billing.gemspec b/advanced_billing.gemspec index 97c18144..1b428526 100644 --- a/advanced_billing.gemspec +++ b/advanced_billing.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'maxio-advanced-billing-sdk' - s.version = '6.0.0' + s.version = '6.1.0' s.summary = 'SDK for Maxio Advanced Billing' s.description = "Ultimate billing and pricing flexibility for B2B SaaS.\nMaxio integrates directly into your product, so you can seamlessly manage your product catalog, bill customers, and collect payments." s.authors = ['Maxio SDK'] diff --git a/doc/controllers/sites.md b/doc/controllers/sites.md index 22f66ed9..89523fe0 100644 --- a/doc/controllers/sites.md +++ b/doc/controllers/sites.md @@ -62,6 +62,7 @@ result = sites_controller.read_site "string" ], "relationship_invoicing_enabled": true, + "schedule_subscription_cancellation_enabled": true, "customer_hierarchy_enabled": true, "whopays_enabled": true, "whopays_default_payer": "string", diff --git a/doc/models/prepaid-product-price-point-filter.md b/doc/models/prepaid-product-price-point-filter.md index b9f47598..a31a03f9 100644 --- a/doc/models/prepaid-product-price-point-filter.md +++ b/doc/models/prepaid-product-price-point-filter.md @@ -9,7 +9,7 @@ | Name | Type | Tags | Description | | --- | --- | --- | --- | -| `product_price_point_id` | `String` | Required, Constant | Passed as a parameter to list methods to return only non null values.
**Default**: `'not_null'` | +| `product_price_point_id` | `String` | Required, Constant | Passed as a parameter to list methods to return only non null values.
**Value**: `'not_null'` | ## Example (as JSON) diff --git a/doc/models/site.md b/doc/models/site.md index be966440..58970566 100644 --- a/doc/models/site.md +++ b/doc/models/site.md @@ -16,6 +16,7 @@ | `seller_id` | `Integer` | Optional | - | | `non_primary_currencies` | `Array` | Optional | - | | `relationship_invoicing_enabled` | `TrueClass \| FalseClass` | Optional | - | +| `schedule_subscription_cancellation_enabled` | `TrueClass \| FalseClass` | Optional | - | | `customer_hierarchy_enabled` | `TrueClass \| FalseClass` | Optional | - | | `whopays_enabled` | `TrueClass \| FalseClass` | Optional | - | | `whopays_default_payer` | `String` | Optional | - | diff --git a/lib/advanced_billing/controllers/base_controller.rb b/lib/advanced_billing/controllers/base_controller.rb index 20cec9cd..04dda883 100644 --- a/lib/advanced_billing/controllers/base_controller.rb +++ b/lib/advanced_billing/controllers/base_controller.rb @@ -10,7 +10,7 @@ class BaseController attr_accessor :config, :http_call_back def self.user_agent - 'AB SDK Ruby:6.0.0 on OS {os-info}' + 'AB SDK Ruby:6.1.0 on OS {os-info}' end def self.user_agent_parameters diff --git a/lib/advanced_billing/exceptions/api_exception.rb b/lib/advanced_billing/exceptions/api_exception.rb index fb367960..638a9517 100644 --- a/lib/advanced_billing/exceptions/api_exception.rb +++ b/lib/advanced_billing/exceptions/api_exception.rb @@ -6,5 +6,16 @@ module AdvancedBilling # Class for exceptions when there is a network error, status code error, etc. class APIException < CoreLibrary::ApiException + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} status_code: #{@response_code}, reason: #{@reason}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} status_code: #{@response_code.inspect}, reason: #{@reason.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/component_allocation_error_exception.rb b/lib/advanced_billing/exceptions/component_allocation_error_exception.rb index dd6d576a..7364e517 100644 --- a/lib/advanced_billing/exceptions/component_allocation_error_exception.rb +++ b/lib/advanced_billing/exceptions/component_allocation_error_exception.rb @@ -37,5 +37,17 @@ def unbox(hash) @errors = SKIP unless hash.key?('errors') end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/component_price_point_error_exception.rb b/lib/advanced_billing/exceptions/component_price_point_error_exception.rb index a63aac2e..e41f5ad7 100644 --- a/lib/advanced_billing/exceptions/component_price_point_error_exception.rb +++ b/lib/advanced_billing/exceptions/component_price_point_error_exception.rb @@ -37,5 +37,17 @@ def unbox(hash) @errors = SKIP unless hash.key?('errors') end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/customer_error_response_exception.rb b/lib/advanced_billing/exceptions/customer_error_response_exception.rb index 689bf001..9e34c77b 100644 --- a/lib/advanced_billing/exceptions/customer_error_response_exception.rb +++ b/lib/advanced_billing/exceptions/customer_error_response_exception.rb @@ -30,5 +30,17 @@ def unbox(hash) UnionTypeLookUp.get(:CustomerErrorResponseErrors), hash['errors'] ) : SKIP end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/error_array_map_response_exception.rb b/lib/advanced_billing/exceptions/error_array_map_response_exception.rb index 97f63032..84c575af 100644 --- a/lib/advanced_billing/exceptions/error_array_map_response_exception.rb +++ b/lib/advanced_billing/exceptions/error_array_map_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = hash.key?('errors') ? hash['errors'] : SKIP end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/error_list_response_exception.rb b/lib/advanced_billing/exceptions/error_list_response_exception.rb index aa5cdc69..83525bb3 100644 --- a/lib/advanced_billing/exceptions/error_list_response_exception.rb +++ b/lib/advanced_billing/exceptions/error_list_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = hash.key?('errors') ? hash['errors'] : nil end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/error_string_map_response_exception.rb b/lib/advanced_billing/exceptions/error_string_map_response_exception.rb index d1bed5b3..d2e843f1 100644 --- a/lib/advanced_billing/exceptions/error_string_map_response_exception.rb +++ b/lib/advanced_billing/exceptions/error_string_map_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = hash.key?('errors') ? hash['errors'] : SKIP end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb b/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb index 6fa4f170..79bdda66 100644 --- a/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb +++ b/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = Errors.from_hash(hash['errors']) if hash['errors'] end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb b/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb index 38dbf558..613cd2e8 100644 --- a/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb +++ b/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb @@ -31,5 +31,17 @@ def initialize(reason, response) def unbox(hash) @errors = hash.key?('errors') ? hash['errors'] : SKIP end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb b/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb index 01facdc0..ce10a5cb 100644 --- a/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb +++ b/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = EventBasedBillingSegmentError.from_hash(hash['errors']) if hash['errors'] end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb b/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb index 15eb21ea..a2c072dc 100644 --- a/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb +++ b/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = ProductPricePointErrors.from_hash(hash['errors']) if hash['errors'] end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb b/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb index 9ce9809a..8fe2a013 100644 --- a/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb +++ b/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = ProformaError.from_hash(hash['errors']) if hash['errors'] end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb b/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb index 9859c303..a8e984e5 100644 --- a/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb +++ b/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = RefundPrepaymentBaseRefundError.from_hash(hash['errors']) if hash['errors'] end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/single_error_response_exception.rb b/lib/advanced_billing/exceptions/single_error_response_exception.rb index 9edefdee..045a2962 100644 --- a/lib/advanced_billing/exceptions/single_error_response_exception.rb +++ b/lib/advanced_billing/exceptions/single_error_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @error = hash.key?('error') ? hash['error'] : nil end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} error: #{@error}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} error: #{@error.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/single_string_error_response_exception.rb b/lib/advanced_billing/exceptions/single_string_error_response_exception.rb index 7a30c011..f4ab3271 100644 --- a/lib/advanced_billing/exceptions/single_string_error_response_exception.rb +++ b/lib/advanced_billing/exceptions/single_string_error_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = hash.key?('errors') ? hash['errors'] : SKIP end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb b/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb index da6c1ab2..a04a95ea 100644 --- a/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb +++ b/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb @@ -43,5 +43,19 @@ def unbox(hash) @coupon_codes = hash.key?('coupon_codes') ? hash['coupon_codes'] : SKIP @subscription = hash.key?('subscription') ? hash['subscription'] : SKIP end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} codes: #{@codes}, coupon_code: #{@coupon_code}, coupon_codes:"\ + " #{@coupon_codes}, subscription: #{@subscription}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} codes: #{@codes.inspect}, coupon_code: #{@coupon_code.inspect},"\ + " coupon_codes: #{@coupon_codes.inspect}, subscription: #{@subscription.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb b/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb index 9f2754f5..4c96bf4f 100644 --- a/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb +++ b/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb @@ -37,5 +37,17 @@ def unbox(hash) @errors = SKIP unless hash.key?('errors') end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb b/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb index 98403afa..f7772a4c 100644 --- a/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +++ b/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb @@ -30,5 +30,17 @@ def unbox(hash) UnionTypeLookUp.get(:SubscriptionGroupCreateErrorResponseErrors), hash['errors'] ) : nil end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb b/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb index 95902910..a8beeaa9 100644 --- a/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb +++ b/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = SubscriptionGroupSignupError.from_hash(hash['errors']) if hash['errors'] end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb b/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb index 525594c3..cf8ba7f6 100644 --- a/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb +++ b/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = SubscriptionGroupUpdateError.from_hash(hash['errors']) if hash['errors'] end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb b/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb index edc5e243..aa3faf74 100644 --- a/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb +++ b/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @subscription = hash.key?('subscription') ? hash['subscription'] : nil end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/subscription_response_error_exception.rb b/lib/advanced_billing/exceptions/subscription_response_error_exception.rb index 28bce33c..85176332 100644 --- a/lib/advanced_billing/exceptions/subscription_response_error_exception.rb +++ b/lib/advanced_billing/exceptions/subscription_response_error_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @subscription = Subscription.from_hash(hash['subscription']) if hash['subscription'] end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb b/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb index e4dfa32c..b65126ed 100644 --- a/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb +++ b/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = AttributeError.from_hash(hash['errors']) if hash['errors'] end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb b/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb index 87d56fb7..5e35ac1a 100644 --- a/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb +++ b/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb @@ -28,5 +28,17 @@ def initialize(reason, response) def unbox(hash) @errors = TooManyManagementLinkRequests.from_hash(hash['errors']) if hash['errors'] end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} errors: #{@errors.inspect}>" + end end end diff --git a/lib/advanced_billing/models/account_balance.rb b/lib/advanced_billing/models/account_balance.rb index 8d49c46a..35fb6cb4 100644 --- a/lib/advanced_billing/models/account_balance.rb +++ b/lib/advanced_billing/models/account_balance.rb @@ -86,5 +86,22 @@ def self.from_hash(hash) remittance_balance_in_cents: remittance_balance_in_cents, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} balance_in_cents: #{@balance_in_cents}, automatic_balance_in_cents:"\ + " #{@automatic_balance_in_cents}, remittance_balance_in_cents:"\ + " #{@remittance_balance_in_cents}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} balance_in_cents: #{@balance_in_cents.inspect}, automatic_balance_in_cents:"\ + " #{@automatic_balance_in_cents.inspect}, remittance_balance_in_cents:"\ + " #{@remittance_balance_in_cents.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/account_balances.rb b/lib/advanced_billing/models/account_balances.rb index b12bb3f7..f698382d 100644 --- a/lib/advanced_billing/models/account_balances.rb +++ b/lib/advanced_billing/models/account_balances.rb @@ -98,5 +98,22 @@ def self.from_hash(hash) prepayments: prepayments, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} open_invoices: #{@open_invoices}, pending_invoices: #{@pending_invoices},"\ + " pending_discounts: #{@pending_discounts}, service_credits: #{@service_credits},"\ + " prepayments: #{@prepayments}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} open_invoices: #{@open_invoices.inspect}, pending_invoices:"\ + " #{@pending_invoices.inspect}, pending_discounts: #{@pending_discounts.inspect},"\ + " service_credits: #{@service_credits.inspect}, prepayments: #{@prepayments.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/ach_agreement.rb b/lib/advanced_billing/models/ach_agreement.rb index 9ff3f266..9c1f1101 100644 --- a/lib/advanced_billing/models/ach_agreement.rb +++ b/lib/advanced_billing/models/ach_agreement.rb @@ -102,5 +102,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} agreement_terms: #{@agreement_terms}, authorizer_first_name:"\ + " #{@authorizer_first_name}, authorizer_last_name: #{@authorizer_last_name}, ip_address:"\ + " #{@ip_address}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} agreement_terms: #{@agreement_terms.inspect}, authorizer_first_name:"\ + " #{@authorizer_first_name.inspect}, authorizer_last_name: #{@authorizer_last_name.inspect},"\ + " ip_address: #{@ip_address.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/activate_event_based_component.rb b/lib/advanced_billing/models/activate_event_based_component.rb index fcb614a7..51c62019 100644 --- a/lib/advanced_billing/models/activate_event_based_component.rb +++ b/lib/advanced_billing/models/activate_event_based_component.rb @@ -80,5 +80,20 @@ def self.from_hash(hash) custom_price: custom_price, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_point_id: #{@price_point_id}, billing_schedule: #{@billing_schedule},"\ + " custom_price: #{@custom_price}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_point_id: #{@price_point_id.inspect}, billing_schedule:"\ + " #{@billing_schedule.inspect}, custom_price: #{@custom_price.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/activate_subscription_request.rb b/lib/advanced_billing/models/activate_subscription_request.rb index 978f764e..87c0227d 100644 --- a/lib/advanced_billing/models/activate_subscription_request.rb +++ b/lib/advanced_billing/models/activate_subscription_request.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) ActivateSubscriptionRequest.new(revert_on_failure: revert_on_failure, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} revert_on_failure: #{@revert_on_failure}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} revert_on_failure: #{@revert_on_failure.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/add_coupons_request.rb b/lib/advanced_billing/models/add_coupons_request.rb index 3a8bc350..a9a7299d 100644 --- a/lib/advanced_billing/models/add_coupons_request.rb +++ b/lib/advanced_billing/models/add_coupons_request.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) AddCouponsRequest.new(codes: codes, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} codes: #{@codes}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} codes: #{@codes.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/add_subscription_to_a_group.rb b/lib/advanced_billing/models/add_subscription_to_a_group.rb index c1cadfd7..a317c254 100644 --- a/lib/advanced_billing/models/add_subscription_to_a_group.rb +++ b/lib/advanced_billing/models/add_subscription_to_a_group.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) AddSubscriptionToAGroup.new(group: group, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} group: #{@group}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} group: #{@group.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/address_change.rb b/lib/advanced_billing/models/address_change.rb index 59078bc8..530bb1e8 100644 --- a/lib/advanced_billing/models/address_change.rb +++ b/lib/advanced_billing/models/address_change.rb @@ -61,5 +61,19 @@ def self.from_hash(hash) after: after, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} before: #{@before}, after: #{@after}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} before: #{@before.inspect}, after: #{@after.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/agreement_acceptance.rb b/lib/advanced_billing/models/agreement_acceptance.rb index cce4a390..622622ae 100644 --- a/lib/advanced_billing/models/agreement_acceptance.rb +++ b/lib/advanced_billing/models/agreement_acceptance.rb @@ -129,5 +129,25 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} ip_address: #{@ip_address}, terms_url: #{@terms_url}, privacy_policy_url:"\ + " #{@privacy_policy_url}, return_refund_policy_url: #{@return_refund_policy_url},"\ + " delivery_policy_url: #{@delivery_policy_url}, secure_checkout_policy_url:"\ + " #{@secure_checkout_policy_url}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} ip_address: #{@ip_address.inspect}, terms_url: #{@terms_url.inspect},"\ + " privacy_policy_url: #{@privacy_policy_url.inspect}, return_refund_policy_url:"\ + " #{@return_refund_policy_url.inspect}, delivery_policy_url:"\ + " #{@delivery_policy_url.inspect}, secure_checkout_policy_url:"\ + " #{@secure_checkout_policy_url.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/allocate_components.rb b/lib/advanced_billing/models/allocate_components.rb index 4c2cdebd..54745686 100644 --- a/lib/advanced_billing/models/allocate_components.rb +++ b/lib/advanced_billing/models/allocate_components.rb @@ -153,5 +153,27 @@ def self.from_hash(hash) initiate_dunning: initiate_dunning, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} proration_upgrade_scheme: #{@proration_upgrade_scheme},"\ + " proration_downgrade_scheme: #{@proration_downgrade_scheme}, allocations: #{@allocations},"\ + " accrue_charge: #{@accrue_charge}, upgrade_charge: #{@upgrade_charge}, downgrade_credit:"\ + " #{@downgrade_credit}, payment_collection_method: #{@payment_collection_method},"\ + " initiate_dunning: #{@initiate_dunning}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} proration_upgrade_scheme: #{@proration_upgrade_scheme.inspect},"\ + " proration_downgrade_scheme: #{@proration_downgrade_scheme.inspect}, allocations:"\ + " #{@allocations.inspect}, accrue_charge: #{@accrue_charge.inspect}, upgrade_charge:"\ + " #{@upgrade_charge.inspect}, downgrade_credit: #{@downgrade_credit.inspect},"\ + " payment_collection_method: #{@payment_collection_method.inspect}, initiate_dunning:"\ + " #{@initiate_dunning.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/allocation.rb b/lib/advanced_billing/models/allocation.rb index c7d09de7..4e8aeac8 100644 --- a/lib/advanced_billing/models/allocation.rb +++ b/lib/advanced_billing/models/allocation.rb @@ -376,5 +376,42 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} allocation_id: #{@allocation_id}, component_id: #{@component_id},"\ + " component_handle: #{@component_handle}, subscription_id: #{@subscription_id}, quantity:"\ + " #{@quantity}, previous_quantity: #{@previous_quantity}, memo: #{@memo}, timestamp:"\ + " #{@timestamp}, created_at: #{@created_at}, proration_upgrade_scheme:"\ + " #{@proration_upgrade_scheme}, proration_downgrade_scheme: #{@proration_downgrade_scheme},"\ + " price_point_id: #{@price_point_id}, price_point_name: #{@price_point_name},"\ + " price_point_handle: #{@price_point_handle}, interval: #{@interval}, interval_unit:"\ + " #{@interval_unit}, previous_price_point_id: #{@previous_price_point_id}, accrue_charge:"\ + " #{@accrue_charge}, initiate_dunning: #{@initiate_dunning}, upgrade_charge:"\ + " #{@upgrade_charge}, downgrade_credit: #{@downgrade_credit}, payment: #{@payment},"\ + " expires_at: #{@expires_at}, used_quantity: #{@used_quantity}, charge_id: #{@charge_id},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} allocation_id: #{@allocation_id.inspect}, component_id:"\ + " #{@component_id.inspect}, component_handle: #{@component_handle.inspect}, subscription_id:"\ + " #{@subscription_id.inspect}, quantity: #{@quantity.inspect}, previous_quantity:"\ + " #{@previous_quantity.inspect}, memo: #{@memo.inspect}, timestamp: #{@timestamp.inspect},"\ + " created_at: #{@created_at.inspect}, proration_upgrade_scheme:"\ + " #{@proration_upgrade_scheme.inspect}, proration_downgrade_scheme:"\ + " #{@proration_downgrade_scheme.inspect}, price_point_id: #{@price_point_id.inspect},"\ + " price_point_name: #{@price_point_name.inspect}, price_point_handle:"\ + " #{@price_point_handle.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, previous_price_point_id: #{@previous_price_point_id.inspect},"\ + " accrue_charge: #{@accrue_charge.inspect}, initiate_dunning: #{@initiate_dunning.inspect},"\ + " upgrade_charge: #{@upgrade_charge.inspect}, downgrade_credit:"\ + " #{@downgrade_credit.inspect}, payment: #{@payment.inspect}, expires_at:"\ + " #{@expires_at.inspect}, used_quantity: #{@used_quantity.inspect}, charge_id:"\ + " #{@charge_id.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/allocation_expiration_date.rb b/lib/advanced_billing/models/allocation_expiration_date.rb index b4295f19..6bdd3657 100644 --- a/lib/advanced_billing/models/allocation_expiration_date.rb +++ b/lib/advanced_billing/models/allocation_expiration_date.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) def to_custom_expires_at DateTimeHelper.to_rfc3339(expires_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} expires_at: #{@expires_at}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} expires_at: #{@expires_at.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/allocation_preview.rb b/lib/advanced_billing/models/allocation_preview.rb index efcf760b..1d648d82 100644 --- a/lib/advanced_billing/models/allocation_preview.rb +++ b/lib/advanced_billing/models/allocation_preview.rb @@ -212,5 +212,31 @@ def to_custom_start_date def to_custom_end_date DateTimeHelper.to_rfc3339(end_date) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} start_date: #{@start_date}, end_date: #{@end_date}, subtotal_in_cents:"\ + " #{@subtotal_in_cents}, total_tax_in_cents: #{@total_tax_in_cents},"\ + " total_discount_in_cents: #{@total_discount_in_cents}, total_in_cents: #{@total_in_cents},"\ + " direction: #{@direction}, proration_scheme: #{@proration_scheme}, line_items:"\ + " #{@line_items}, accrue_charge: #{@accrue_charge}, allocations: #{@allocations},"\ + " period_type: #{@period_type}, existing_balance_in_cents: #{@existing_balance_in_cents},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} start_date: #{@start_date.inspect}, end_date: #{@end_date.inspect},"\ + " subtotal_in_cents: #{@subtotal_in_cents.inspect}, total_tax_in_cents:"\ + " #{@total_tax_in_cents.inspect}, total_discount_in_cents:"\ + " #{@total_discount_in_cents.inspect}, total_in_cents: #{@total_in_cents.inspect},"\ + " direction: #{@direction.inspect}, proration_scheme: #{@proration_scheme.inspect},"\ + " line_items: #{@line_items.inspect}, accrue_charge: #{@accrue_charge.inspect}, allocations:"\ + " #{@allocations.inspect}, period_type: #{@period_type.inspect}, existing_balance_in_cents:"\ + " #{@existing_balance_in_cents.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/allocation_preview_item.rb b/lib/advanced_billing/models/allocation_preview_item.rb index c1282731..54493bb2 100644 --- a/lib/advanced_billing/models/allocation_preview_item.rb +++ b/lib/advanced_billing/models/allocation_preview_item.rb @@ -269,5 +269,36 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id}, subscription_id: #{@subscription_id},"\ + " quantity: #{@quantity}, previous_quantity: #{@previous_quantity}, memo: #{@memo},"\ + " timestamp: #{@timestamp}, proration_upgrade_scheme: #{@proration_upgrade_scheme},"\ + " proration_downgrade_scheme: #{@proration_downgrade_scheme}, accrue_charge:"\ + " #{@accrue_charge}, upgrade_charge: #{@upgrade_charge}, downgrade_credit:"\ + " #{@downgrade_credit}, price_point_id: #{@price_point_id}, interval: #{@interval},"\ + " interval_unit: #{@interval_unit}, previous_price_point_id: #{@previous_price_point_id},"\ + " price_point_handle: #{@price_point_handle}, price_point_name: #{@price_point_name},"\ + " component_handle: #{@component_handle}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id.inspect}, subscription_id:"\ + " #{@subscription_id.inspect}, quantity: #{@quantity.inspect}, previous_quantity:"\ + " #{@previous_quantity.inspect}, memo: #{@memo.inspect}, timestamp: #{@timestamp.inspect},"\ + " proration_upgrade_scheme: #{@proration_upgrade_scheme.inspect},"\ + " proration_downgrade_scheme: #{@proration_downgrade_scheme.inspect}, accrue_charge:"\ + " #{@accrue_charge.inspect}, upgrade_charge: #{@upgrade_charge.inspect}, downgrade_credit:"\ + " #{@downgrade_credit.inspect}, price_point_id: #{@price_point_id.inspect}, interval:"\ + " #{@interval.inspect}, interval_unit: #{@interval_unit.inspect}, previous_price_point_id:"\ + " #{@previous_price_point_id.inspect}, price_point_handle: #{@price_point_handle.inspect},"\ + " price_point_name: #{@price_point_name.inspect}, component_handle:"\ + " #{@component_handle.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/allocation_preview_line_item.rb b/lib/advanced_billing/models/allocation_preview_line_item.rb index b4310f64..659a7d82 100644 --- a/lib/advanced_billing/models/allocation_preview_line_item.rb +++ b/lib/advanced_billing/models/allocation_preview_line_item.rb @@ -136,5 +136,26 @@ def self.from_hash(hash) direction: direction, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} transaction_type: #{@transaction_type}, kind: #{@kind}, amount_in_cents:"\ + " #{@amount_in_cents}, memo: #{@memo}, discount_amount_in_cents:"\ + " #{@discount_amount_in_cents}, taxable_amount_in_cents: #{@taxable_amount_in_cents},"\ + " component_id: #{@component_id}, component_handle: #{@component_handle}, direction:"\ + " #{@direction}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} transaction_type: #{@transaction_type.inspect}, kind: #{@kind.inspect},"\ + " amount_in_cents: #{@amount_in_cents.inspect}, memo: #{@memo.inspect},"\ + " discount_amount_in_cents: #{@discount_amount_in_cents.inspect}, taxable_amount_in_cents:"\ + " #{@taxable_amount_in_cents.inspect}, component_id: #{@component_id.inspect},"\ + " component_handle: #{@component_handle.inspect}, direction: #{@direction.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/allocation_preview_response.rb b/lib/advanced_billing/models/allocation_preview_response.rb index 4fa53141..26886f22 100644 --- a/lib/advanced_billing/models/allocation_preview_response.rb +++ b/lib/advanced_billing/models/allocation_preview_response.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) AllocationPreviewResponse.new(allocation_preview: allocation_preview, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} allocation_preview: #{@allocation_preview}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} allocation_preview: #{@allocation_preview.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/allocation_response.rb b/lib/advanced_billing/models/allocation_response.rb index df8f723b..0f41e573 100644 --- a/lib/advanced_billing/models/allocation_response.rb +++ b/lib/advanced_billing/models/allocation_response.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) AllocationResponse.new(allocation: allocation, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} allocation: #{@allocation}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} allocation: #{@allocation.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/allocation_settings.rb b/lib/advanced_billing/models/allocation_settings.rb index f39399cf..36736bf9 100644 --- a/lib/advanced_billing/models/allocation_settings.rb +++ b/lib/advanced_billing/models/allocation_settings.rb @@ -83,5 +83,20 @@ def self.from_hash(hash) accrue_charge: accrue_charge, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} upgrade_charge: #{@upgrade_charge}, downgrade_credit: #{@downgrade_credit},"\ + " accrue_charge: #{@accrue_charge}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} upgrade_charge: #{@upgrade_charge.inspect}, downgrade_credit:"\ + " #{@downgrade_credit.inspect}, accrue_charge: #{@accrue_charge.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/apple_pay_payment_profile.rb b/lib/advanced_billing/models/apple_pay_payment_profile.rb index 0ea116fe..a588a631 100644 --- a/lib/advanced_billing/models/apple_pay_payment_profile.rb +++ b/lib/advanced_billing/models/apple_pay_payment_profile.rb @@ -228,5 +228,32 @@ def self.validate(value) APIHelper.valid_type?(value['payment_type'], ->(val) { PaymentType.validate(val) }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, first_name: #{@first_name}, last_name: #{@last_name},"\ + " customer_id: #{@customer_id}, current_vault: #{@current_vault}, vault_token:"\ + " #{@vault_token}, billing_address: #{@billing_address}, billing_city: #{@billing_city},"\ + " billing_state: #{@billing_state}, billing_zip: #{@billing_zip}, billing_country:"\ + " #{@billing_country}, customer_vault_token: #{@customer_vault_token}, billing_address_2:"\ + " #{@billing_address_2}, payment_type: #{@payment_type}, site_gateway_setting_id:"\ + " #{@site_gateway_setting_id}, gateway_handle: #{@gateway_handle}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, first_name: #{@first_name.inspect}, last_name:"\ + " #{@last_name.inspect}, customer_id: #{@customer_id.inspect}, current_vault:"\ + " #{@current_vault.inspect}, vault_token: #{@vault_token.inspect}, billing_address:"\ + " #{@billing_address.inspect}, billing_city: #{@billing_city.inspect}, billing_state:"\ + " #{@billing_state.inspect}, billing_zip: #{@billing_zip.inspect}, billing_country:"\ + " #{@billing_country.inspect}, customer_vault_token: #{@customer_vault_token.inspect},"\ + " billing_address_2: #{@billing_address_2.inspect}, payment_type: #{@payment_type.inspect},"\ + " site_gateway_setting_id: #{@site_gateway_setting_id.inspect}, gateway_handle:"\ + " #{@gateway_handle.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/applied_credit_note_data.rb b/lib/advanced_billing/models/applied_credit_note_data.rb index 1857d1e7..cc677519 100644 --- a/lib/advanced_billing/models/applied_credit_note_data.rb +++ b/lib/advanced_billing/models/applied_credit_note_data.rb @@ -74,5 +74,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, number: #{@number}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, number: #{@number.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/apply_credit_note_event.rb b/lib/advanced_billing/models/apply_credit_note_event.rb index bb9c05b5..1e3279a7 100644 --- a/lib/advanced_billing/models/apply_credit_note_event.rb +++ b/lib/advanced_billing/models/apply_credit_note_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/apply_credit_note_event_data.rb b/lib/advanced_billing/models/apply_credit_note_event_data.rb index 70cbc83d..df363648 100644 --- a/lib/advanced_billing/models/apply_credit_note_event_data.rb +++ b/lib/advanced_billing/models/apply_credit_note_event_data.rb @@ -199,5 +199,26 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, credit_note_number: #{@credit_note_number}, credit_note_uid:"\ + " #{@credit_note_uid}, original_amount: #{@original_amount}, applied_amount:"\ + " #{@applied_amount}, transaction_time: #{@transaction_time}, memo: #{@memo}, role:"\ + " #{@role}, consolidated_invoice: #{@consolidated_invoice}, applied_credit_notes:"\ + " #{@applied_credit_notes}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, credit_note_number: #{@credit_note_number.inspect},"\ + " credit_note_uid: #{@credit_note_uid.inspect}, original_amount:"\ + " #{@original_amount.inspect}, applied_amount: #{@applied_amount.inspect}, transaction_time:"\ + " #{@transaction_time.inspect}, memo: #{@memo.inspect}, role: #{@role.inspect},"\ + " consolidated_invoice: #{@consolidated_invoice.inspect}, applied_credit_notes:"\ + " #{@applied_credit_notes.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/apply_debit_note_event.rb b/lib/advanced_billing/models/apply_debit_note_event.rb index 3e1e076b..d6abddad 100644 --- a/lib/advanced_billing/models/apply_debit_note_event.rb +++ b/lib/advanced_billing/models/apply_debit_note_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/apply_debit_note_event_data.rb b/lib/advanced_billing/models/apply_debit_note_event_data.rb index 77622b01..7f3108f4 100644 --- a/lib/advanced_billing/models/apply_debit_note_event_data.rb +++ b/lib/advanced_billing/models/apply_debit_note_event_data.rb @@ -147,5 +147,23 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} debit_note_number: #{@debit_note_number}, debit_note_uid:"\ + " #{@debit_note_uid}, original_amount: #{@original_amount}, applied_amount:"\ + " #{@applied_amount}, memo: #{@memo}, transaction_time: #{@transaction_time},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} debit_note_number: #{@debit_note_number.inspect}, debit_note_uid:"\ + " #{@debit_note_uid.inspect}, original_amount: #{@original_amount.inspect}, applied_amount:"\ + " #{@applied_amount.inspect}, memo: #{@memo.inspect}, transaction_time:"\ + " #{@transaction_time.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/apply_payment_event.rb b/lib/advanced_billing/models/apply_payment_event.rb index 0f843ccc..feb6ead5 100644 --- a/lib/advanced_billing/models/apply_payment_event.rb +++ b/lib/advanced_billing/models/apply_payment_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/apply_payment_event_data.rb b/lib/advanced_billing/models/apply_payment_event_data.rb index ba09c4bd..088f1d02 100644 --- a/lib/advanced_billing/models/apply_payment_event_data.rb +++ b/lib/advanced_billing/models/apply_payment_event_data.rb @@ -211,5 +211,28 @@ def self.validate(value) .validate(value['payment_method']) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} consolidation_level: #{@consolidation_level}, memo: #{@memo},"\ + " original_amount: #{@original_amount}, applied_amount: #{@applied_amount},"\ + " transaction_time: #{@transaction_time}, payment_method: #{@payment_method},"\ + " transaction_id: #{@transaction_id}, parent_invoice_number: #{@parent_invoice_number},"\ + " remaining_prepayment_amount: #{@remaining_prepayment_amount}, prepayment: #{@prepayment},"\ + " external: #{@external}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} consolidation_level: #{@consolidation_level.inspect}, memo:"\ + " #{@memo.inspect}, original_amount: #{@original_amount.inspect}, applied_amount:"\ + " #{@applied_amount.inspect}, transaction_time: #{@transaction_time.inspect},"\ + " payment_method: #{@payment_method.inspect}, transaction_id: #{@transaction_id.inspect},"\ + " parent_invoice_number: #{@parent_invoice_number.inspect}, remaining_prepayment_amount:"\ + " #{@remaining_prepayment_amount.inspect}, prepayment: #{@prepayment.inspect}, external:"\ + " #{@external.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/attribute_error.rb b/lib/advanced_billing/models/attribute_error.rb index d9ee98bd..4bcfa820 100644 --- a/lib/advanced_billing/models/attribute_error.rb +++ b/lib/advanced_billing/models/attribute_error.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) AttributeError.new(attribute: attribute, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} attribute: #{@attribute}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} attribute: #{@attribute.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/auto_resume.rb b/lib/advanced_billing/models/auto_resume.rb index 50762ae1..59fc54f3 100644 --- a/lib/advanced_billing/models/auto_resume.rb +++ b/lib/advanced_billing/models/auto_resume.rb @@ -66,5 +66,19 @@ def self.from_hash(hash) def to_custom_automatically_resume_at DateTimeHelper.to_rfc3339(automatically_resume_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} automatically_resume_at: #{@automatically_resume_at},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} automatically_resume_at: #{@automatically_resume_at.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/backport_invoice_event.rb b/lib/advanced_billing/models/backport_invoice_event.rb index fe3ae02b..6e0fff7a 100644 --- a/lib/advanced_billing/models/backport_invoice_event.rb +++ b/lib/advanced_billing/models/backport_invoice_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bank_account_attributes.rb b/lib/advanced_billing/models/bank_account_attributes.rb index 6e27693b..c1473996 100644 --- a/lib/advanced_billing/models/bank_account_attributes.rb +++ b/lib/advanced_billing/models/bank_account_attributes.rb @@ -186,5 +186,30 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} chargify_token: #{@chargify_token}, bank_name: #{@bank_name},"\ + " bank_routing_number: #{@bank_routing_number}, bank_account_number:"\ + " #{@bank_account_number}, bank_account_type: #{@bank_account_type}, bank_branch_code:"\ + " #{@bank_branch_code}, bank_iban: #{@bank_iban}, bank_account_holder_type:"\ + " #{@bank_account_holder_type}, payment_type: #{@payment_type}, current_vault:"\ + " #{@current_vault}, vault_token: #{@vault_token}, customer_vault_token:"\ + " #{@customer_vault_token}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} chargify_token: #{@chargify_token.inspect}, bank_name:"\ + " #{@bank_name.inspect}, bank_routing_number: #{@bank_routing_number.inspect},"\ + " bank_account_number: #{@bank_account_number.inspect}, bank_account_type:"\ + " #{@bank_account_type.inspect}, bank_branch_code: #{@bank_branch_code.inspect}, bank_iban:"\ + " #{@bank_iban.inspect}, bank_account_holder_type: #{@bank_account_holder_type.inspect},"\ + " payment_type: #{@payment_type.inspect}, current_vault: #{@current_vault.inspect},"\ + " vault_token: #{@vault_token.inspect}, customer_vault_token:"\ + " #{@customer_vault_token.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bank_account_payment_profile.rb b/lib/advanced_billing/models/bank_account_payment_profile.rb index 5dbee60b..9ee3e4d6 100644 --- a/lib/advanced_billing/models/bank_account_payment_profile.rb +++ b/lib/advanced_billing/models/bank_account_payment_profile.rb @@ -310,5 +310,40 @@ def self.validate(value) ->(val) { PaymentType.validate(val) }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, first_name: #{@first_name}, last_name: #{@last_name},"\ + " customer_id: #{@customer_id}, current_vault: #{@current_vault}, vault_token:"\ + " #{@vault_token}, billing_address: #{@billing_address}, billing_city: #{@billing_city},"\ + " billing_state: #{@billing_state}, billing_zip: #{@billing_zip}, billing_country:"\ + " #{@billing_country}, customer_vault_token: #{@customer_vault_token}, billing_address_2:"\ + " #{@billing_address_2}, bank_name: #{@bank_name}, masked_bank_routing_number:"\ + " #{@masked_bank_routing_number}, masked_bank_account_number:"\ + " #{@masked_bank_account_number}, bank_account_type: #{@bank_account_type},"\ + " bank_account_holder_type: #{@bank_account_holder_type}, payment_type: #{@payment_type},"\ + " verified: #{@verified}, site_gateway_setting_id: #{@site_gateway_setting_id},"\ + " gateway_handle: #{@gateway_handle}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, first_name: #{@first_name.inspect}, last_name:"\ + " #{@last_name.inspect}, customer_id: #{@customer_id.inspect}, current_vault:"\ + " #{@current_vault.inspect}, vault_token: #{@vault_token.inspect}, billing_address:"\ + " #{@billing_address.inspect}, billing_city: #{@billing_city.inspect}, billing_state:"\ + " #{@billing_state.inspect}, billing_zip: #{@billing_zip.inspect}, billing_country:"\ + " #{@billing_country.inspect}, customer_vault_token: #{@customer_vault_token.inspect},"\ + " billing_address_2: #{@billing_address_2.inspect}, bank_name: #{@bank_name.inspect},"\ + " masked_bank_routing_number: #{@masked_bank_routing_number.inspect},"\ + " masked_bank_account_number: #{@masked_bank_account_number.inspect}, bank_account_type:"\ + " #{@bank_account_type.inspect}, bank_account_holder_type:"\ + " #{@bank_account_holder_type.inspect}, payment_type: #{@payment_type.inspect}, verified:"\ + " #{@verified.inspect}, site_gateway_setting_id: #{@site_gateway_setting_id.inspect},"\ + " gateway_handle: #{@gateway_handle.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bank_account_response.rb b/lib/advanced_billing/models/bank_account_response.rb index 69775657..2b9a99fb 100644 --- a/lib/advanced_billing/models/bank_account_response.rb +++ b/lib/advanced_billing/models/bank_account_response.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) BankAccountResponse.new(payment_profile: payment_profile, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile: #{@payment_profile}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile: #{@payment_profile.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bank_account_verification.rb b/lib/advanced_billing/models/bank_account_verification.rb index 1c3382d2..917126aa 100644 --- a/lib/advanced_billing/models/bank_account_verification.rb +++ b/lib/advanced_billing/models/bank_account_verification.rb @@ -67,5 +67,19 @@ def self.from_hash(hash) deposit_2_in_cents: deposit_2_in_cents, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} deposit_1_in_cents: #{@deposit_1_in_cents}, deposit_2_in_cents:"\ + " #{@deposit_2_in_cents}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} deposit_1_in_cents: #{@deposit_1_in_cents.inspect}, deposit_2_in_cents:"\ + " #{@deposit_2_in_cents.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bank_account_verification_request.rb b/lib/advanced_billing/models/bank_account_verification_request.rb index fd140453..854d1453 100644 --- a/lib/advanced_billing/models/bank_account_verification_request.rb +++ b/lib/advanced_billing/models/bank_account_verification_request.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) BankAccountVerificationRequest.new(bank_account_verification: bank_account_verification, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} bank_account_verification: #{@bank_account_verification},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} bank_account_verification: #{@bank_account_verification.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/base_model.rb b/lib/advanced_billing/models/base_model.rb index 2204f330..19719f17 100644 --- a/lib/advanced_billing/models/base_model.rb +++ b/lib/advanced_billing/models/base_model.rb @@ -105,6 +105,18 @@ def to_json(options = {}) hash = to_hash hash.to_json(options) end + + def get_additional_properties + # Collect all additional properties + additional_props = instance_variables.each_with_object({}) do |var, hash| + var_name = var.to_s.delete('@').to_sym + if !self.class.names.key?(var_name.to_s) + hash[var_name] = instance_variable_get(var) + end + end + + additional_props + end end # rubocop:enable all end diff --git a/lib/advanced_billing/models/base_refund_error.rb b/lib/advanced_billing/models/base_refund_error.rb index 89747a9f..42e553cd 100644 --- a/lib/advanced_billing/models/base_refund_error.rb +++ b/lib/advanced_billing/models/base_refund_error.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) BaseRefundError.new(base: base, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} base: #{@base}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} base: #{@base.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/base_string_error.rb b/lib/advanced_billing/models/base_string_error.rb index 03d5f0b9..b14822b9 100644 --- a/lib/advanced_billing/models/base_string_error.rb +++ b/lib/advanced_billing/models/base_string_error.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) BaseStringError.new(base: base, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} base: #{@base}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} base: #{@base.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/batch_job.rb b/lib/advanced_billing/models/batch_job.rb index 3135f9f2..3aadea4d 100644 --- a/lib/advanced_billing/models/batch_job.rb +++ b/lib/advanced_billing/models/batch_job.rb @@ -113,5 +113,21 @@ def to_custom_finished_at def to_custom_created_at DateTimeHelper.to_rfc3339(created_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, finished_at: #{@finished_at}, row_count: #{@row_count},"\ + " created_at: #{@created_at}, completed: #{@completed}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, finished_at: #{@finished_at.inspect}, row_count:"\ + " #{@row_count.inspect}, created_at: #{@created_at.inspect}, completed:"\ + " #{@completed.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/batch_job_response.rb b/lib/advanced_billing/models/batch_job_response.rb index 28aa59d0..83feaa13 100644 --- a/lib/advanced_billing/models/batch_job_response.rb +++ b/lib/advanced_billing/models/batch_job_response.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) BatchJobResponse.new(batchjob: batchjob, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} batchjob: #{@batchjob}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} batchjob: #{@batchjob.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/billing_manifest.rb b/lib/advanced_billing/models/billing_manifest.rb index c5f6ae08..cb957fc6 100644 --- a/lib/advanced_billing/models/billing_manifest.rb +++ b/lib/advanced_billing/models/billing_manifest.rb @@ -169,5 +169,28 @@ def to_custom_start_date def to_custom_end_date DateTimeHelper.to_rfc3339(end_date) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} line_items: #{@line_items}, total_in_cents: #{@total_in_cents},"\ + " total_discount_in_cents: #{@total_discount_in_cents}, total_tax_in_cents:"\ + " #{@total_tax_in_cents}, subtotal_in_cents: #{@subtotal_in_cents}, start_date:"\ + " #{@start_date}, end_date: #{@end_date}, period_type: #{@period_type},"\ + " existing_balance_in_cents: #{@existing_balance_in_cents}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} line_items: #{@line_items.inspect}, total_in_cents:"\ + " #{@total_in_cents.inspect}, total_discount_in_cents: #{@total_discount_in_cents.inspect},"\ + " total_tax_in_cents: #{@total_tax_in_cents.inspect}, subtotal_in_cents:"\ + " #{@subtotal_in_cents.inspect}, start_date: #{@start_date.inspect}, end_date:"\ + " #{@end_date.inspect}, period_type: #{@period_type.inspect}, existing_balance_in_cents:"\ + " #{@existing_balance_in_cents.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/billing_manifest_item.rb b/lib/advanced_billing/models/billing_manifest_item.rb index 1f652019..4d014eb0 100644 --- a/lib/advanced_billing/models/billing_manifest_item.rb +++ b/lib/advanced_billing/models/billing_manifest_item.rb @@ -187,5 +187,32 @@ def self.from_hash(hash) period_range_end: period_range_end, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} transaction_type: #{@transaction_type}, kind: #{@kind}, amount_in_cents:"\ + " #{@amount_in_cents}, memo: #{@memo}, discount_amount_in_cents:"\ + " #{@discount_amount_in_cents}, taxable_amount_in_cents: #{@taxable_amount_in_cents},"\ + " component_id: #{@component_id}, component_handle: #{@component_handle}, component_name:"\ + " #{@component_name}, product_id: #{@product_id}, product_handle: #{@product_handle},"\ + " product_name: #{@product_name}, period_range_start: #{@period_range_start},"\ + " period_range_end: #{@period_range_end}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} transaction_type: #{@transaction_type.inspect}, kind: #{@kind.inspect},"\ + " amount_in_cents: #{@amount_in_cents.inspect}, memo: #{@memo.inspect},"\ + " discount_amount_in_cents: #{@discount_amount_in_cents.inspect}, taxable_amount_in_cents:"\ + " #{@taxable_amount_in_cents.inspect}, component_id: #{@component_id.inspect},"\ + " component_handle: #{@component_handle.inspect}, component_name:"\ + " #{@component_name.inspect}, product_id: #{@product_id.inspect}, product_handle:"\ + " #{@product_handle.inspect}, product_name: #{@product_name.inspect}, period_range_start:"\ + " #{@period_range_start.inspect}, period_range_end: #{@period_range_end.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/billing_schedule.rb b/lib/advanced_billing/models/billing_schedule.rb index 476fd325..5ed805a0 100644 --- a/lib/advanced_billing/models/billing_schedule.rb +++ b/lib/advanced_billing/models/billing_schedule.rb @@ -70,5 +70,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} initial_billing_at: #{@initial_billing_at}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} initial_billing_at: #{@initial_billing_at.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/breakouts.rb b/lib/advanced_billing/models/breakouts.rb index e5c6a7d5..80aa419e 100644 --- a/lib/advanced_billing/models/breakouts.rb +++ b/lib/advanced_billing/models/breakouts.rb @@ -88,5 +88,23 @@ def self.from_hash(hash) usage_amount_formatted: usage_amount_formatted, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} plan_amount_in_cents: #{@plan_amount_in_cents}, plan_amount_formatted:"\ + " #{@plan_amount_formatted}, usage_amount_in_cents: #{@usage_amount_in_cents},"\ + " usage_amount_formatted: #{@usage_amount_formatted}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} plan_amount_in_cents: #{@plan_amount_in_cents.inspect},"\ + " plan_amount_formatted: #{@plan_amount_formatted.inspect}, usage_amount_in_cents:"\ + " #{@usage_amount_in_cents.inspect}, usage_amount_formatted:"\ + " #{@usage_amount_formatted.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bulk_components_price_point_assignment.rb b/lib/advanced_billing/models/bulk_components_price_point_assignment.rb index dff6ee67..bf0f1f67 100644 --- a/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +++ b/lib/advanced_billing/models/bulk_components_price_point_assignment.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) BulkComponentsPricePointAssignment.new(components: components, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} components: #{@components}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} components: #{@components.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bulk_create_product_price_points_request.rb b/lib/advanced_billing/models/bulk_create_product_price_points_request.rb index 34651cbc..efc40a63 100644 --- a/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +++ b/lib/advanced_billing/models/bulk_create_product_price_points_request.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) BulkCreateProductPricePointsRequest.new(price_points: price_points, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bulk_create_product_price_points_response.rb b/lib/advanced_billing/models/bulk_create_product_price_points_response.rb index 305417fa..f2821682 100644 --- a/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +++ b/lib/advanced_billing/models/bulk_create_product_price_points_response.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) BulkCreateProductPricePointsResponse.new(price_points: price_points, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bulk_create_segments.rb b/lib/advanced_billing/models/bulk_create_segments.rb index d6c14bd7..8089a13d 100644 --- a/lib/advanced_billing/models/bulk_create_segments.rb +++ b/lib/advanced_billing/models/bulk_create_segments.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) BulkCreateSegments.new(segments: segments, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} segments: #{@segments}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} segments: #{@segments.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bulk_update_segments.rb b/lib/advanced_billing/models/bulk_update_segments.rb index ed1ee717..cded07d7 100644 --- a/lib/advanced_billing/models/bulk_update_segments.rb +++ b/lib/advanced_billing/models/bulk_update_segments.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) BulkUpdateSegments.new(segments: segments, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} segments: #{@segments}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} segments: #{@segments.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/bulk_update_segments_item.rb b/lib/advanced_billing/models/bulk_update_segments_item.rb index d0f77da3..071dd8fc 100644 --- a/lib/advanced_billing/models/bulk_update_segments_item.rb +++ b/lib/advanced_billing/models/bulk_update_segments_item.rb @@ -83,5 +83,19 @@ def self.from_hash(hash) prices: prices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, pricing_scheme: #{@pricing_scheme}, prices: #{@prices},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, pricing_scheme: #{@pricing_scheme.inspect}, prices:"\ + " #{@prices.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/calendar_billing.rb b/lib/advanced_billing/models/calendar_billing.rb index 585c7661..f3549cb6 100644 --- a/lib/advanced_billing/models/calendar_billing.rb +++ b/lib/advanced_billing/models/calendar_billing.rb @@ -84,5 +84,20 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} snap_day: #{@snap_day}, calendar_billing_first_charge:"\ + " #{@calendar_billing_first_charge}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} snap_day: #{@snap_day.inspect}, calendar_billing_first_charge:"\ + " #{@calendar_billing_first_charge.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb b/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb index ad5a8eb6..a932b441 100644 --- a/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +++ b/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb @@ -56,5 +56,19 @@ def self.from_hash(hash) CancelGroupedSubscriptionsRequest.new(charge_unbilled_usage: charge_unbilled_usage, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} charge_unbilled_usage: #{@charge_unbilled_usage}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} charge_unbilled_usage: #{@charge_unbilled_usage.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/cancellation_options.rb b/lib/advanced_billing/models/cancellation_options.rb index ffe03b11..a06f7392 100644 --- a/lib/advanced_billing/models/cancellation_options.rb +++ b/lib/advanced_billing/models/cancellation_options.rb @@ -68,5 +68,19 @@ def self.from_hash(hash) reason_code: reason_code, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} cancellation_message: #{@cancellation_message}, reason_code:"\ + " #{@reason_code}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} cancellation_message: #{@cancellation_message.inspect}, reason_code:"\ + " #{@reason_code.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/cancellation_request.rb b/lib/advanced_billing/models/cancellation_request.rb index 88fe929e..070bb1e8 100644 --- a/lib/advanced_billing/models/cancellation_request.rb +++ b/lib/advanced_billing/models/cancellation_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CancellationRequest.new(subscription: subscription, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/change_chargeback_status_event.rb b/lib/advanced_billing/models/change_chargeback_status_event.rb index 9763d005..05d8f43d 100644 --- a/lib/advanced_billing/models/change_chargeback_status_event.rb +++ b/lib/advanced_billing/models/change_chargeback_status_event.rb @@ -134,5 +134,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/change_chargeback_status_event_data.rb b/lib/advanced_billing/models/change_chargeback_status_event_data.rb index 3c11afaa..1d2c46e9 100644 --- a/lib/advanced_billing/models/change_chargeback_status_event_data.rb +++ b/lib/advanced_billing/models/change_chargeback_status_event_data.rb @@ -68,5 +68,19 @@ def self.validate(value) APIHelper.valid_type?(value['chargeback_status'], ->(val) { ChargebackStatus.validate(val) }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} chargeback_status: #{@chargeback_status}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} chargeback_status: #{@chargeback_status.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/change_invoice_collection_method_event.rb b/lib/advanced_billing/models/change_invoice_collection_method_event.rb index 387f1c22..5421c4ca 100644 --- a/lib/advanced_billing/models/change_invoice_collection_method_event.rb +++ b/lib/advanced_billing/models/change_invoice_collection_method_event.rb @@ -136,5 +136,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb b/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb index a0302c69..517d2818 100644 --- a/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +++ b/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb @@ -86,5 +86,20 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} from_collection_method: #{@from_collection_method}, to_collection_method:"\ + " #{@to_collection_method}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} from_collection_method: #{@from_collection_method.inspect},"\ + " to_collection_method: #{@to_collection_method.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/change_invoice_status_event.rb b/lib/advanced_billing/models/change_invoice_status_event.rb index 58599b97..3888cbc3 100644 --- a/lib/advanced_billing/models/change_invoice_status_event.rb +++ b/lib/advanced_billing/models/change_invoice_status_event.rb @@ -134,5 +134,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/change_invoice_status_event_data.rb b/lib/advanced_billing/models/change_invoice_status_event_data.rb index 60c72177..7bf6a984 100644 --- a/lib/advanced_billing/models/change_invoice_status_event_data.rb +++ b/lib/advanced_billing/models/change_invoice_status_event_data.rb @@ -124,5 +124,22 @@ def self.validate(value) ->(val) { InvoiceStatus.validate(val) }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} gateway_trans_id: #{@gateway_trans_id}, amount: #{@amount}, from_status:"\ + " #{@from_status}, to_status: #{@to_status}, consolidation_level: #{@consolidation_level},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} gateway_trans_id: #{@gateway_trans_id.inspect}, amount: #{@amount.inspect},"\ + " from_status: #{@from_status.inspect}, to_status: #{@to_status.inspect},"\ + " consolidation_level: #{@consolidation_level.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/chargify_ebb.rb b/lib/advanced_billing/models/chargify_ebb.rb index 30d98b9e..44640535 100644 --- a/lib/advanced_billing/models/chargify_ebb.rb +++ b/lib/advanced_billing/models/chargify_ebb.rb @@ -135,5 +135,23 @@ def to_custom_timestamp def to_custom_created_at DateTimeHelper.to_rfc3339(created_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} timestamp: #{@timestamp}, id: #{@id}, created_at: #{@created_at},"\ + " uniqueness_token: #{@uniqueness_token}, subscription_id: #{@subscription_id},"\ + " subscription_reference: #{@subscription_reference}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} timestamp: #{@timestamp.inspect}, id: #{@id.inspect}, created_at:"\ + " #{@created_at.inspect}, uniqueness_token: #{@uniqueness_token.inspect}, subscription_id:"\ + " #{@subscription_id.inspect}, subscription_reference: #{@subscription_reference.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component.rb b/lib/advanced_billing/models/component.rb index 254e5215..7bc66f56 100644 --- a/lib/advanced_billing/models/component.rb +++ b/lib/advanced_billing/models/component.rb @@ -479,5 +479,50 @@ def to_custom_updated_at def to_custom_archived_at DateTimeHelper.to_rfc3339(archived_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, name: #{@name}, handle: #{@handle}, pricing_scheme:"\ + " #{@pricing_scheme}, unit_name: #{@unit_name}, unit_price: #{@unit_price},"\ + " product_family_id: #{@product_family_id}, product_family_name: #{@product_family_name},"\ + " price_per_unit_in_cents: #{@price_per_unit_in_cents}, kind: #{@kind}, archived:"\ + " #{@archived}, taxable: #{@taxable}, description: #{@description}, default_price_point_id:"\ + " #{@default_price_point_id}, overage_prices: #{@overage_prices}, prices: #{@prices},"\ + " price_point_count: #{@price_point_count}, price_points_url: #{@price_points_url},"\ + " default_price_point_name: #{@default_price_point_name}, tax_code: #{@tax_code}, recurring:"\ + " #{@recurring}, upgrade_charge: #{@upgrade_charge}, downgrade_credit: #{@downgrade_credit},"\ + " created_at: #{@created_at}, updated_at: #{@updated_at}, archived_at: #{@archived_at},"\ + " hide_date_range_on_invoice: #{@hide_date_range_on_invoice}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities}, item_category: #{@item_category}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate}, accounting_code: #{@accounting_code},"\ + " event_based_billing_metric_id: #{@event_based_billing_metric_id}, interval: #{@interval},"\ + " interval_unit: #{@interval_unit}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, handle: #{@handle.inspect},"\ + " pricing_scheme: #{@pricing_scheme.inspect}, unit_name: #{@unit_name.inspect}, unit_price:"\ + " #{@unit_price.inspect}, product_family_id: #{@product_family_id.inspect},"\ + " product_family_name: #{@product_family_name.inspect}, price_per_unit_in_cents:"\ + " #{@price_per_unit_in_cents.inspect}, kind: #{@kind.inspect}, archived:"\ + " #{@archived.inspect}, taxable: #{@taxable.inspect}, description: #{@description.inspect},"\ + " default_price_point_id: #{@default_price_point_id.inspect}, overage_prices:"\ + " #{@overage_prices.inspect}, prices: #{@prices.inspect}, price_point_count:"\ + " #{@price_point_count.inspect}, price_points_url: #{@price_points_url.inspect},"\ + " default_price_point_name: #{@default_price_point_name.inspect}, tax_code:"\ + " #{@tax_code.inspect}, recurring: #{@recurring.inspect}, upgrade_charge:"\ + " #{@upgrade_charge.inspect}, downgrade_credit: #{@downgrade_credit.inspect}, created_at:"\ + " #{@created_at.inspect}, updated_at: #{@updated_at.inspect}, archived_at:"\ + " #{@archived_at.inspect}, hide_date_range_on_invoice:"\ + " #{@hide_date_range_on_invoice.inspect}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities.inspect}, item_category: #{@item_category.inspect},"\ + " use_site_exchange_rate: #{@use_site_exchange_rate.inspect}, accounting_code:"\ + " #{@accounting_code.inspect}, event_based_billing_metric_id:"\ + " #{@event_based_billing_metric_id.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_allocation_change.rb b/lib/advanced_billing/models/component_allocation_change.rb index ebbcfc71..b8b456ce 100644 --- a/lib/advanced_billing/models/component_allocation_change.rb +++ b/lib/advanced_billing/models/component_allocation_change.rb @@ -148,5 +148,25 @@ def self.validate(value) ->(val) { val.instance_of? Integer }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} previous_allocation: #{@previous_allocation}, new_allocation:"\ + " #{@new_allocation}, component_id: #{@component_id}, component_handle:"\ + " #{@component_handle}, memo: #{@memo}, allocation_id: #{@allocation_id},"\ + " allocated_quantity: #{@allocated_quantity}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} previous_allocation: #{@previous_allocation.inspect}, new_allocation:"\ + " #{@new_allocation.inspect}, component_id: #{@component_id.inspect}, component_handle:"\ + " #{@component_handle.inspect}, memo: #{@memo.inspect}, allocation_id:"\ + " #{@allocation_id.inspect}, allocated_quantity: #{@allocated_quantity.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_allocation_error_item.rb b/lib/advanced_billing/models/component_allocation_error_item.rb index b6fc23fb..c4d088dd 100644 --- a/lib/advanced_billing/models/component_allocation_error_item.rb +++ b/lib/advanced_billing/models/component_allocation_error_item.rb @@ -83,5 +83,20 @@ def self.from_hash(hash) on: on, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id}, message: #{@message}, kind: #{@kind}, on:"\ + " #{@on}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id.inspect}, message: #{@message.inspect}, kind:"\ + " #{@kind.inspect}, on: #{@on.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_cost_data.rb b/lib/advanced_billing/models/component_cost_data.rb index 9b8d912b..be970fe7 100644 --- a/lib/advanced_billing/models/component_cost_data.rb +++ b/lib/advanced_billing/models/component_cost_data.rb @@ -139,5 +139,24 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_code_id: #{@component_code_id}, price_point_id:"\ + " #{@price_point_id}, product_id: #{@product_id}, quantity: #{@quantity}, amount:"\ + " #{@amount}, pricing_scheme: #{@pricing_scheme}, tiers: #{@tiers}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_code_id: #{@component_code_id.inspect}, price_point_id:"\ + " #{@price_point_id.inspect}, product_id: #{@product_id.inspect}, quantity:"\ + " #{@quantity.inspect}, amount: #{@amount.inspect}, pricing_scheme:"\ + " #{@pricing_scheme.inspect}, tiers: #{@tiers.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_cost_data_rate_tier.rb b/lib/advanced_billing/models/component_cost_data_rate_tier.rb index 8c4548b6..27444443 100644 --- a/lib/advanced_billing/models/component_cost_data_rate_tier.rb +++ b/lib/advanced_billing/models/component_cost_data_rate_tier.rb @@ -107,5 +107,22 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} starting_quantity: #{@starting_quantity}, ending_quantity:"\ + " #{@ending_quantity}, quantity: #{@quantity}, unit_price: #{@unit_price}, amount:"\ + " #{@amount}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} starting_quantity: #{@starting_quantity.inspect}, ending_quantity:"\ + " #{@ending_quantity.inspect}, quantity: #{@quantity.inspect}, unit_price:"\ + " #{@unit_price.inspect}, amount: #{@amount.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_currency_price.rb b/lib/advanced_billing/models/component_currency_price.rb index 935fe581..c0dfc795 100644 --- a/lib/advanced_billing/models/component_currency_price.rb +++ b/lib/advanced_billing/models/component_currency_price.rb @@ -104,5 +104,22 @@ def self.from_hash(hash) price_point_id: price_point_id, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, currency: #{@currency}, price: #{@price}, formatted_price:"\ + " #{@formatted_price}, price_id: #{@price_id}, price_point_id: #{@price_point_id},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, currency: #{@currency.inspect}, price:"\ + " #{@price.inspect}, formatted_price: #{@formatted_price.inspect}, price_id:"\ + " #{@price_id.inspect}, price_point_id: #{@price_point_id.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_currency_prices_response.rb b/lib/advanced_billing/models/component_currency_prices_response.rb index 3410a460..81509380 100644 --- a/lib/advanced_billing/models/component_currency_prices_response.rb +++ b/lib/advanced_billing/models/component_currency_prices_response.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) ComponentCurrencyPricesResponse.new(currency_prices: currency_prices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_custom_price.rb b/lib/advanced_billing/models/component_custom_price.rb index a592cd87..0c0cb147 100644 --- a/lib/advanced_billing/models/component_custom_price.rb +++ b/lib/advanced_billing/models/component_custom_price.rb @@ -128,5 +128,22 @@ def self.validate(value) is_model_hash: true, is_inner_model_hash: true) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} tax_included: #{@tax_included}, pricing_scheme: #{@pricing_scheme},"\ + " interval: #{@interval}, interval_unit: #{@interval_unit}, prices: #{@prices},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} tax_included: #{@tax_included.inspect}, pricing_scheme:"\ + " #{@pricing_scheme.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, prices: #{@prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_price.rb b/lib/advanced_billing/models/component_price.rb index f4762850..573c657c 100644 --- a/lib/advanced_billing/models/component_price.rb +++ b/lib/advanced_billing/models/component_price.rb @@ -128,5 +128,24 @@ def self.from_hash(hash) segment_id: segment_id, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, component_id: #{@component_id}, starting_quantity:"\ + " #{@starting_quantity}, ending_quantity: #{@ending_quantity}, unit_price: #{@unit_price},"\ + " price_point_id: #{@price_point_id}, formatted_unit_price: #{@formatted_unit_price},"\ + " segment_id: #{@segment_id}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, component_id: #{@component_id.inspect},"\ + " starting_quantity: #{@starting_quantity.inspect}, ending_quantity:"\ + " #{@ending_quantity.inspect}, unit_price: #{@unit_price.inspect}, price_point_id:"\ + " #{@price_point_id.inspect}, formatted_unit_price: #{@formatted_unit_price.inspect},"\ + " segment_id: #{@segment_id.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_price_point.rb b/lib/advanced_billing/models/component_price_point.rb index 60bf7663..75b9e3c8 100644 --- a/lib/advanced_billing/models/component_price_point.rb +++ b/lib/advanced_billing/models/component_price_point.rb @@ -373,5 +373,40 @@ def to_custom_created_at def to_custom_updated_at DateTimeHelper.to_rfc3339(updated_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, type: #{@type}, default: #{@default}, name: #{@name},"\ + " pricing_scheme: #{@pricing_scheme}, component_id: #{@component_id}, handle: #{@handle},"\ + " archived_at: #{@archived_at}, created_at: #{@created_at}, updated_at: #{@updated_at},"\ + " prices: #{@prices}, use_site_exchange_rate: #{@use_site_exchange_rate}, subscription_id:"\ + " #{@subscription_id}, tax_included: #{@tax_included}, interval: #{@interval},"\ + " interval_unit: #{@interval_unit}, currency_prices: #{@currency_prices}, overage_prices:"\ + " #{@overage_prices}, overage_pricing_scheme: #{@overage_pricing_scheme},"\ + " renew_prepaid_allocation: #{@renew_prepaid_allocation}, rollover_prepaid_remainder:"\ + " #{@rollover_prepaid_remainder}, expiration_interval: #{@expiration_interval},"\ + " expiration_interval_unit: #{@expiration_interval_unit}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, type: #{@type.inspect}, default: #{@default.inspect},"\ + " name: #{@name.inspect}, pricing_scheme: #{@pricing_scheme.inspect}, component_id:"\ + " #{@component_id.inspect}, handle: #{@handle.inspect}, archived_at:"\ + " #{@archived_at.inspect}, created_at: #{@created_at.inspect}, updated_at:"\ + " #{@updated_at.inspect}, prices: #{@prices.inspect}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate.inspect}, subscription_id: #{@subscription_id.inspect},"\ + " tax_included: #{@tax_included.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, currency_prices: #{@currency_prices.inspect}, overage_prices:"\ + " #{@overage_prices.inspect}, overage_pricing_scheme: #{@overage_pricing_scheme.inspect},"\ + " renew_prepaid_allocation: #{@renew_prepaid_allocation.inspect},"\ + " rollover_prepaid_remainder: #{@rollover_prepaid_remainder.inspect}, expiration_interval:"\ + " #{@expiration_interval.inspect}, expiration_interval_unit:"\ + " #{@expiration_interval_unit.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_price_point_assignment.rb b/lib/advanced_billing/models/component_price_point_assignment.rb index 0173831b..2b1870f5 100644 --- a/lib/advanced_billing/models/component_price_point_assignment.rb +++ b/lib/advanced_billing/models/component_price_point_assignment.rb @@ -77,5 +77,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id}, price_point: #{@price_point},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id.inspect}, price_point:"\ + " #{@price_point.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_price_point_error_item.rb b/lib/advanced_billing/models/component_price_point_error_item.rb index aa5b7d57..0a1d4e01 100644 --- a/lib/advanced_billing/models/component_price_point_error_item.rb +++ b/lib/advanced_billing/models/component_price_point_error_item.rb @@ -74,5 +74,20 @@ def self.from_hash(hash) price_point: price_point, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id}, message: #{@message}, price_point:"\ + " #{@price_point}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id.inspect}, message: #{@message.inspect},"\ + " price_point: #{@price_point.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_price_point_item.rb b/lib/advanced_billing/models/component_price_point_item.rb index b341b229..a1ad9c13 100644 --- a/lib/advanced_billing/models/component_price_point_item.rb +++ b/lib/advanced_billing/models/component_price_point_item.rb @@ -133,5 +133,22 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, handle: #{@handle}, pricing_scheme: #{@pricing_scheme},"\ + " interval: #{@interval}, interval_unit: #{@interval_unit}, prices: #{@prices},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, handle: #{@handle.inspect}, pricing_scheme:"\ + " #{@pricing_scheme.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, prices: #{@prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_price_point_response.rb b/lib/advanced_billing/models/component_price_point_response.rb index cb307e6b..f65d9b86 100644 --- a/lib/advanced_billing/models/component_price_point_response.rb +++ b/lib/advanced_billing/models/component_price_point_response.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) ComponentPricePointResponse.new(price_point: price_point, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_price_points_response.rb b/lib/advanced_billing/models/component_price_points_response.rb index fb53772a..46357314 100644 --- a/lib/advanced_billing/models/component_price_points_response.rb +++ b/lib/advanced_billing/models/component_price_points_response.rb @@ -73,5 +73,19 @@ def self.from_hash(hash) meta: meta, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points}, meta: #{@meta}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points.inspect}, meta: #{@meta.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/component_response.rb b/lib/advanced_billing/models/component_response.rb index 3bd22574..85220381 100644 --- a/lib/advanced_billing/models/component_response.rb +++ b/lib/advanced_billing/models/component_response.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) ComponentResponse.new(component: component, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component: #{@component}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component: #{@component.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/consolidated_invoice.rb b/lib/advanced_billing/models/consolidated_invoice.rb index 460c7d38..16d373d2 100644 --- a/lib/advanced_billing/models/consolidated_invoice.rb +++ b/lib/advanced_billing/models/consolidated_invoice.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) ConsolidatedInvoice.new(invoices: invoices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} invoices: #{@invoices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} invoices: #{@invoices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/count_response.rb b/lib/advanced_billing/models/count_response.rb index a17158da..44feb75b 100644 --- a/lib/advanced_billing/models/count_response.rb +++ b/lib/advanced_billing/models/count_response.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) CountResponse.new(count: count, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} count: #{@count}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} count: #{@count.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon.rb b/lib/advanced_billing/models/coupon.rb index 475aa8c0..f6aa4e32 100644 --- a/lib/advanced_billing/models/coupon.rb +++ b/lib/advanced_billing/models/coupon.rb @@ -494,5 +494,51 @@ def to_custom_created_at def to_custom_updated_at DateTimeHelper.to_rfc3339(updated_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, name: #{@name}, code: #{@code}, description: #{@description},"\ + " amount: #{@amount}, amount_in_cents: #{@amount_in_cents}, product_family_id:"\ + " #{@product_family_id}, product_family_name: #{@product_family_name}, start_date:"\ + " #{@start_date}, end_date: #{@end_date}, percentage: #{@percentage}, recurring:"\ + " #{@recurring}, recurring_scheme: #{@recurring_scheme}, duration_period_count:"\ + " #{@duration_period_count}, duration_interval: #{@duration_interval},"\ + " duration_interval_unit: #{@duration_interval_unit}, duration_interval_span:"\ + " #{@duration_interval_span}, allow_negative_balance: #{@allow_negative_balance},"\ + " archived_at: #{@archived_at}, conversion_limit: #{@conversion_limit}, stackable:"\ + " #{@stackable}, compounding_strategy: #{@compounding_strategy}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate}, created_at: #{@created_at}, updated_at: #{@updated_at},"\ + " discount_type: #{@discount_type}, exclude_mid_period_allocations:"\ + " #{@exclude_mid_period_allocations}, apply_on_cancel_at_end_of_period:"\ + " #{@apply_on_cancel_at_end_of_period}, apply_on_subscription_expiration:"\ + " #{@apply_on_subscription_expiration}, coupon_restrictions: #{@coupon_restrictions},"\ + " currency_prices: #{@currency_prices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, code: #{@code.inspect},"\ + " description: #{@description.inspect}, amount: #{@amount.inspect}, amount_in_cents:"\ + " #{@amount_in_cents.inspect}, product_family_id: #{@product_family_id.inspect},"\ + " product_family_name: #{@product_family_name.inspect}, start_date: #{@start_date.inspect},"\ + " end_date: #{@end_date.inspect}, percentage: #{@percentage.inspect}, recurring:"\ + " #{@recurring.inspect}, recurring_scheme: #{@recurring_scheme.inspect},"\ + " duration_period_count: #{@duration_period_count.inspect}, duration_interval:"\ + " #{@duration_interval.inspect}, duration_interval_unit: #{@duration_interval_unit.inspect},"\ + " duration_interval_span: #{@duration_interval_span.inspect}, allow_negative_balance:"\ + " #{@allow_negative_balance.inspect}, archived_at: #{@archived_at.inspect},"\ + " conversion_limit: #{@conversion_limit.inspect}, stackable: #{@stackable.inspect},"\ + " compounding_strategy: #{@compounding_strategy.inspect}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate.inspect}, created_at: #{@created_at.inspect}, updated_at:"\ + " #{@updated_at.inspect}, discount_type: #{@discount_type.inspect},"\ + " exclude_mid_period_allocations: #{@exclude_mid_period_allocations.inspect},"\ + " apply_on_cancel_at_end_of_period: #{@apply_on_cancel_at_end_of_period.inspect},"\ + " apply_on_subscription_expiration: #{@apply_on_subscription_expiration.inspect},"\ + " coupon_restrictions: #{@coupon_restrictions.inspect}, currency_prices:"\ + " #{@currency_prices.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon_currency.rb b/lib/advanced_billing/models/coupon_currency.rb index db0df704..f54fa5f8 100644 --- a/lib/advanced_billing/models/coupon_currency.rb +++ b/lib/advanced_billing/models/coupon_currency.rb @@ -86,5 +86,20 @@ def self.from_hash(hash) coupon_id: coupon_id, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, currency: #{@currency}, price: #{@price}, coupon_id:"\ + " #{@coupon_id}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, currency: #{@currency.inspect}, price:"\ + " #{@price.inspect}, coupon_id: #{@coupon_id.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon_currency_request.rb b/lib/advanced_billing/models/coupon_currency_request.rb index 9dd01f1e..d059f421 100644 --- a/lib/advanced_billing/models/coupon_currency_request.rb +++ b/lib/advanced_billing/models/coupon_currency_request.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) CouponCurrencyRequest.new(currency_prices: currency_prices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon_currency_response.rb b/lib/advanced_billing/models/coupon_currency_response.rb index f4e6bdd9..fbbb78d1 100644 --- a/lib/advanced_billing/models/coupon_currency_response.rb +++ b/lib/advanced_billing/models/coupon_currency_response.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) CouponCurrencyResponse.new(currency_prices: currency_prices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon_payload.rb b/lib/advanced_billing/models/coupon_payload.rb index c42e0560..37fe642e 100644 --- a/lib/advanced_billing/models/coupon_payload.rb +++ b/lib/advanced_billing/models/coupon_payload.rb @@ -240,5 +240,34 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, code: #{@code}, description: #{@description}, percentage:"\ + " #{@percentage}, amount_in_cents: #{@amount_in_cents}, allow_negative_balance:"\ + " #{@allow_negative_balance}, recurring: #{@recurring}, end_date: #{@end_date},"\ + " product_family_id: #{@product_family_id}, stackable: #{@stackable}, compounding_strategy:"\ + " #{@compounding_strategy}, exclude_mid_period_allocations:"\ + " #{@exclude_mid_period_allocations}, apply_on_cancel_at_end_of_period:"\ + " #{@apply_on_cancel_at_end_of_period}, apply_on_subscription_expiration:"\ + " #{@apply_on_subscription_expiration}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, code: #{@code.inspect}, description:"\ + " #{@description.inspect}, percentage: #{@percentage.inspect}, amount_in_cents:"\ + " #{@amount_in_cents.inspect}, allow_negative_balance: #{@allow_negative_balance.inspect},"\ + " recurring: #{@recurring.inspect}, end_date: #{@end_date.inspect}, product_family_id:"\ + " #{@product_family_id.inspect}, stackable: #{@stackable.inspect}, compounding_strategy:"\ + " #{@compounding_strategy.inspect}, exclude_mid_period_allocations:"\ + " #{@exclude_mid_period_allocations.inspect}, apply_on_cancel_at_end_of_period:"\ + " #{@apply_on_cancel_at_end_of_period.inspect}, apply_on_subscription_expiration:"\ + " #{@apply_on_subscription_expiration.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon_request.rb b/lib/advanced_billing/models/coupon_request.rb index 5ee92fcf..15106290 100644 --- a/lib/advanced_billing/models/coupon_request.rb +++ b/lib/advanced_billing/models/coupon_request.rb @@ -78,5 +78,21 @@ def self.from_hash(hash) restricted_components: restricted_components, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} coupon: #{@coupon}, restricted_products: #{@restricted_products},"\ + " restricted_components: #{@restricted_components}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} coupon: #{@coupon.inspect}, restricted_products:"\ + " #{@restricted_products.inspect}, restricted_components: #{@restricted_components.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon_response.rb b/lib/advanced_billing/models/coupon_response.rb index 8f57daf0..98334275 100644 --- a/lib/advanced_billing/models/coupon_response.rb +++ b/lib/advanced_billing/models/coupon_response.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) CouponResponse.new(coupon: coupon, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} coupon: #{@coupon}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} coupon: #{@coupon.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon_restriction.rb b/lib/advanced_billing/models/coupon_restriction.rb index ed28bcf0..b2e4a257 100644 --- a/lib/advanced_billing/models/coupon_restriction.rb +++ b/lib/advanced_billing/models/coupon_restriction.rb @@ -94,5 +94,20 @@ def self.from_hash(hash) handle: handle, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, item_type: #{@item_type}, item_id: #{@item_id}, name: #{@name},"\ + " handle: #{@handle}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, item_type: #{@item_type.inspect}, item_id:"\ + " #{@item_id.inspect}, name: #{@name.inspect}, handle: #{@handle.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon_subcodes.rb b/lib/advanced_billing/models/coupon_subcodes.rb index e2b109e1..c4e5d286 100644 --- a/lib/advanced_billing/models/coupon_subcodes.rb +++ b/lib/advanced_billing/models/coupon_subcodes.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) CouponSubcodes.new(codes: codes, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} codes: #{@codes}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} codes: #{@codes.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon_subcodes_response.rb b/lib/advanced_billing/models/coupon_subcodes_response.rb index fcace821..2e27078f 100644 --- a/lib/advanced_billing/models/coupon_subcodes_response.rb +++ b/lib/advanced_billing/models/coupon_subcodes_response.rb @@ -75,5 +75,20 @@ def self.from_hash(hash) invalid_codes: invalid_codes, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} created_codes: #{@created_codes}, duplicate_codes: #{@duplicate_codes},"\ + " invalid_codes: #{@invalid_codes}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} created_codes: #{@created_codes.inspect}, duplicate_codes:"\ + " #{@duplicate_codes.inspect}, invalid_codes: #{@invalid_codes.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/coupon_usage.rb b/lib/advanced_billing/models/coupon_usage.rb index 988525d2..1bace984 100644 --- a/lib/advanced_billing/models/coupon_usage.rb +++ b/lib/advanced_billing/models/coupon_usage.rb @@ -119,5 +119,22 @@ def self.from_hash(hash) revenue_in_cents: revenue_in_cents, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, name: #{@name}, signups: #{@signups}, savings: #{@savings},"\ + " savings_in_cents: #{@savings_in_cents}, revenue: #{@revenue}, revenue_in_cents:"\ + " #{@revenue_in_cents}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, signups: #{@signups.inspect},"\ + " savings: #{@savings.inspect}, savings_in_cents: #{@savings_in_cents.inspect}, revenue:"\ + " #{@revenue.inspect}, revenue_in_cents: #{@revenue_in_cents.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_allocation.rb b/lib/advanced_billing/models/create_allocation.rb index 14b8a5a8..22190919 100644 --- a/lib/advanced_billing/models/create_allocation.rb +++ b/lib/advanced_billing/models/create_allocation.rb @@ -198,5 +198,29 @@ def self.validate(value) APIHelper.valid_type?(value['quantity'], ->(val) { val.instance_of? Float }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} quantity: #{@quantity}, component_id: #{@component_id}, memo: #{@memo},"\ + " proration_downgrade_scheme: #{@proration_downgrade_scheme}, proration_upgrade_scheme:"\ + " #{@proration_upgrade_scheme}, accrue_charge: #{@accrue_charge}, downgrade_credit:"\ + " #{@downgrade_credit}, upgrade_charge: #{@upgrade_charge}, initiate_dunning:"\ + " #{@initiate_dunning}, price_point_id: #{@price_point_id}, billing_schedule:"\ + " #{@billing_schedule}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} quantity: #{@quantity.inspect}, component_id: #{@component_id.inspect},"\ + " memo: #{@memo.inspect}, proration_downgrade_scheme:"\ + " #{@proration_downgrade_scheme.inspect}, proration_upgrade_scheme:"\ + " #{@proration_upgrade_scheme.inspect}, accrue_charge: #{@accrue_charge.inspect},"\ + " downgrade_credit: #{@downgrade_credit.inspect}, upgrade_charge:"\ + " #{@upgrade_charge.inspect}, initiate_dunning: #{@initiate_dunning.inspect},"\ + " price_point_id: #{@price_point_id.inspect}, billing_schedule:"\ + " #{@billing_schedule.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_allocation_request.rb b/lib/advanced_billing/models/create_allocation_request.rb index d0b6e9df..eb4238bb 100644 --- a/lib/advanced_billing/models/create_allocation_request.rb +++ b/lib/advanced_billing/models/create_allocation_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CreateAllocationRequest.new(allocation: allocation, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} allocation: #{@allocation}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} allocation: #{@allocation.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_component_price_point.rb b/lib/advanced_billing/models/create_component_price_point.rb index b39e7724..68575593 100644 --- a/lib/advanced_billing/models/create_component_price_point.rb +++ b/lib/advanced_billing/models/create_component_price_point.rb @@ -172,5 +172,24 @@ def self.validate(value) is_inner_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, handle: #{@handle}, pricing_scheme: #{@pricing_scheme},"\ + " prices: #{@prices}, use_site_exchange_rate: #{@use_site_exchange_rate}, tax_included:"\ + " #{@tax_included}, interval: #{@interval}, interval_unit: #{@interval_unit},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, handle: #{@handle.inspect}, pricing_scheme:"\ + " #{@pricing_scheme.inspect}, prices: #{@prices.inspect}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate.inspect}, tax_included: #{@tax_included.inspect}, interval:"\ + " #{@interval.inspect}, interval_unit: #{@interval_unit.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_component_price_point_request.rb b/lib/advanced_billing/models/create_component_price_point_request.rb index 0f5f17df..5b2b0fc8 100644 --- a/lib/advanced_billing/models/create_component_price_point_request.rb +++ b/lib/advanced_billing/models/create_component_price_point_request.rb @@ -69,5 +69,19 @@ def self.validate(value) UnionTypeLookUp.get(:CreateComponentPricePointRequestPricePoint) .validate(value['price_point']) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_component_price_points_request.rb b/lib/advanced_billing/models/create_component_price_points_request.rb index 37235320..d11cb7a2 100644 --- a/lib/advanced_billing/models/create_component_price_points_request.rb +++ b/lib/advanced_billing/models/create_component_price_points_request.rb @@ -69,5 +69,19 @@ def self.validate(value) UnionTypeLookUp.get(:CreateComponentPricePointsRequestPricePoints) .validate(value['price_points']) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_credit_note_event.rb b/lib/advanced_billing/models/create_credit_note_event.rb index 6858163c..4ab18d0e 100644 --- a/lib/advanced_billing/models/create_credit_note_event.rb +++ b/lib/advanced_billing/models/create_credit_note_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_currency_price.rb b/lib/advanced_billing/models/create_currency_price.rb index 66680fcb..d37b7997 100644 --- a/lib/advanced_billing/models/create_currency_price.rb +++ b/lib/advanced_billing/models/create_currency_price.rb @@ -74,5 +74,19 @@ def self.from_hash(hash) price_id: price_id, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currency: #{@currency}, price: #{@price}, price_id: #{@price_id},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currency: #{@currency.inspect}, price: #{@price.inspect}, price_id:"\ + " #{@price_id.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_currency_prices_request.rb b/lib/advanced_billing/models/create_currency_prices_request.rb index b171bb79..403496e1 100644 --- a/lib/advanced_billing/models/create_currency_prices_request.rb +++ b/lib/advanced_billing/models/create_currency_prices_request.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) CreateCurrencyPricesRequest.new(currency_prices: currency_prices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_customer.rb b/lib/advanced_billing/models/create_customer.rb index dd7f0194..fd13632c 100644 --- a/lib/advanced_billing/models/create_customer.rb +++ b/lib/advanced_billing/models/create_customer.rb @@ -224,5 +224,31 @@ def self.from_hash(hash) salesforce_id: salesforce_id, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name}, last_name: #{@last_name}, email: #{@email},"\ + " cc_emails: #{@cc_emails}, organization: #{@organization}, reference: #{@reference},"\ + " address: #{@address}, address_2: #{@address_2}, city: #{@city}, state: #{@state}, zip:"\ + " #{@zip}, country: #{@country}, phone: #{@phone}, locale: #{@locale}, vat_number:"\ + " #{@vat_number}, tax_exempt: #{@tax_exempt}, tax_exempt_reason: #{@tax_exempt_reason},"\ + " parent_id: #{@parent_id}, salesforce_id: #{@salesforce_id}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\ + " email: #{@email.inspect}, cc_emails: #{@cc_emails.inspect}, organization:"\ + " #{@organization.inspect}, reference: #{@reference.inspect}, address: #{@address.inspect},"\ + " address_2: #{@address_2.inspect}, city: #{@city.inspect}, state: #{@state.inspect}, zip:"\ + " #{@zip.inspect}, country: #{@country.inspect}, phone: #{@phone.inspect}, locale:"\ + " #{@locale.inspect}, vat_number: #{@vat_number.inspect}, tax_exempt:"\ + " #{@tax_exempt.inspect}, tax_exempt_reason: #{@tax_exempt_reason.inspect}, parent_id:"\ + " #{@parent_id.inspect}, salesforce_id: #{@salesforce_id.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_customer_request.rb b/lib/advanced_billing/models/create_customer_request.rb index 6b36805a..a48e260b 100644 --- a/lib/advanced_billing/models/create_customer_request.rb +++ b/lib/advanced_billing/models/create_customer_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CreateCustomerRequest.new(customer: customer, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} customer: #{@customer}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} customer: #{@customer.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_debit_note_event.rb b/lib/advanced_billing/models/create_debit_note_event.rb index c165e3d8..75d70ef7 100644 --- a/lib/advanced_billing/models/create_debit_note_event.rb +++ b/lib/advanced_billing/models/create_debit_note_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_ebb_component.rb b/lib/advanced_billing/models/create_ebb_component.rb index 90827f90..51013eab 100644 --- a/lib/advanced_billing/models/create_ebb_component.rb +++ b/lib/advanced_billing/models/create_ebb_component.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) CreateEBBComponent.new(event_based_component: event_based_component, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} event_based_component: #{@event_based_component}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} event_based_component: #{@event_based_component.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_invoice.rb b/lib/advanced_billing/models/create_invoice.rb index c046eccb..35fd3629 100644 --- a/lib/advanced_billing/models/create_invoice.rb +++ b/lib/advanced_billing/models/create_invoice.rb @@ -167,5 +167,26 @@ def self.from_hash(hash) status: status, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} line_items: #{@line_items}, issue_date: #{@issue_date}, net_terms:"\ + " #{@net_terms}, payment_instructions: #{@payment_instructions}, memo: #{@memo},"\ + " seller_address: #{@seller_address}, billing_address: #{@billing_address},"\ + " shipping_address: #{@shipping_address}, coupons: #{@coupons}, status: #{@status},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} line_items: #{@line_items.inspect}, issue_date: #{@issue_date.inspect},"\ + " net_terms: #{@net_terms.inspect}, payment_instructions: #{@payment_instructions.inspect},"\ + " memo: #{@memo.inspect}, seller_address: #{@seller_address.inspect}, billing_address:"\ + " #{@billing_address.inspect}, shipping_address: #{@shipping_address.inspect}, coupons:"\ + " #{@coupons.inspect}, status: #{@status.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_invoice_address.rb b/lib/advanced_billing/models/create_invoice_address.rb index 75b85626..66521b8d 100644 --- a/lib/advanced_billing/models/create_invoice_address.rb +++ b/lib/advanced_billing/models/create_invoice_address.rb @@ -129,5 +129,22 @@ def self.from_hash(hash) country: country, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name}, last_name: #{@last_name}, phone: #{@phone},"\ + " address: #{@address}, address_2: #{@address_2}, city: #{@city}, state: #{@state}, zip:"\ + " #{@zip}, country: #{@country}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\ + " phone: #{@phone.inspect}, address: #{@address.inspect}, address_2: #{@address_2.inspect},"\ + " city: #{@city.inspect}, state: #{@state.inspect}, zip: #{@zip.inspect}, country:"\ + " #{@country.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_invoice_coupon.rb b/lib/advanced_billing/models/create_invoice_coupon.rb index 5b8d9506..8b85fcca 100644 --- a/lib/advanced_billing/models/create_invoice_coupon.rb +++ b/lib/advanced_billing/models/create_invoice_coupon.rb @@ -123,5 +123,23 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} code: #{@code}, percentage: #{@percentage}, amount: #{@amount},"\ + " description: #{@description}, product_family_id: #{@product_family_id},"\ + " compounding_strategy: #{@compounding_strategy}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} code: #{@code.inspect}, percentage: #{@percentage.inspect}, amount:"\ + " #{@amount.inspect}, description: #{@description.inspect}, product_family_id:"\ + " #{@product_family_id.inspect}, compounding_strategy: #{@compounding_strategy.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_invoice_item.rb b/lib/advanced_billing/models/create_invoice_item.rb index eb6e684d..87ce47cb 100644 --- a/lib/advanced_billing/models/create_invoice_item.rb +++ b/lib/advanced_billing/models/create_invoice_item.rb @@ -190,5 +190,28 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} title: #{@title}, quantity: #{@quantity}, unit_price: #{@unit_price},"\ + " taxable: #{@taxable}, tax_code: #{@tax_code}, period_range_start: #{@period_range_start},"\ + " period_range_end: #{@period_range_end}, product_id: #{@product_id}, component_id:"\ + " #{@component_id}, price_point_id: #{@price_point_id}, product_price_point_id:"\ + " #{@product_price_point_id}, description: #{@description}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} title: #{@title.inspect}, quantity: #{@quantity.inspect}, unit_price:"\ + " #{@unit_price.inspect}, taxable: #{@taxable.inspect}, tax_code: #{@tax_code.inspect},"\ + " period_range_start: #{@period_range_start.inspect}, period_range_end:"\ + " #{@period_range_end.inspect}, product_id: #{@product_id.inspect}, component_id:"\ + " #{@component_id.inspect}, price_point_id: #{@price_point_id.inspect},"\ + " product_price_point_id: #{@product_price_point_id.inspect}, description:"\ + " #{@description.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_invoice_payment.rb b/lib/advanced_billing/models/create_invoice_payment.rb index 71723a56..28a0dd0e 100644 --- a/lib/advanced_billing/models/create_invoice_payment.rb +++ b/lib/advanced_billing/models/create_invoice_payment.rb @@ -119,5 +119,22 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount}, memo: #{@memo}, method: #{@method}, details:"\ + " #{@details}, payment_profile_id: #{@payment_profile_id}, received_on: #{@received_on},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount.inspect}, memo: #{@memo.inspect}, method:"\ + " #{@method.inspect}, details: #{@details.inspect}, payment_profile_id:"\ + " #{@payment_profile_id.inspect}, received_on: #{@received_on.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_invoice_payment_application.rb b/lib/advanced_billing/models/create_invoice_payment_application.rb index 5a92cf3b..b88da678 100644 --- a/lib/advanced_billing/models/create_invoice_payment_application.rb +++ b/lib/advanced_billing/models/create_invoice_payment_application.rb @@ -84,5 +84,19 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} invoice_uid: #{@invoice_uid}, amount: #{@amount}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} invoice_uid: #{@invoice_uid.inspect}, amount: #{@amount.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_invoice_payment_request.rb b/lib/advanced_billing/models/create_invoice_payment_request.rb index 23e70052..4cdff3eb 100644 --- a/lib/advanced_billing/models/create_invoice_payment_request.rb +++ b/lib/advanced_billing/models/create_invoice_payment_request.rb @@ -63,5 +63,19 @@ def self.from_hash(hash) type: type, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payment: #{@payment}, type: #{@type}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payment: #{@payment.inspect}, type: #{@type.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_invoice_request.rb b/lib/advanced_billing/models/create_invoice_request.rb index 0c8ed8d2..d280f41e 100644 --- a/lib/advanced_billing/models/create_invoice_request.rb +++ b/lib/advanced_billing/models/create_invoice_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) CreateInvoiceRequest.new(invoice: invoice, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} invoice: #{@invoice}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} invoice: #{@invoice.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_metadata.rb b/lib/advanced_billing/models/create_metadata.rb index dc63c921..618d2b3f 100644 --- a/lib/advanced_billing/models/create_metadata.rb +++ b/lib/advanced_billing/models/create_metadata.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) value: value, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, value: #{@value}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, value: #{@value.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_metadata_request.rb b/lib/advanced_billing/models/create_metadata_request.rb index 78c6e190..f399dc0f 100644 --- a/lib/advanced_billing/models/create_metadata_request.rb +++ b/lib/advanced_billing/models/create_metadata_request.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) CreateMetadataRequest.new(metadata: metadata, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} metadata: #{@metadata}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} metadata: #{@metadata.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_metafield.rb b/lib/advanced_billing/models/create_metafield.rb index d2542b99..5fbe32b0 100644 --- a/lib/advanced_billing/models/create_metafield.rb +++ b/lib/advanced_billing/models/create_metafield.rb @@ -100,5 +100,20 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, scope: #{@scope}, input_type: #{@input_type}, enum:"\ + " #{@enum}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, scope: #{@scope.inspect}, input_type:"\ + " #{@input_type.inspect}, enum: #{@enum.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_metafields_request.rb b/lib/advanced_billing/models/create_metafields_request.rb index 7eb4f842..5d2ee142 100644 --- a/lib/advanced_billing/models/create_metafields_request.rb +++ b/lib/advanced_billing/models/create_metafields_request.rb @@ -69,5 +69,19 @@ def self.validate(value) UnionTypeLookUp.get(:CreateMetafieldsRequestMetafields) .validate(value['metafields']) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} metafields: #{@metafields}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} metafields: #{@metafields.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_metered_component.rb b/lib/advanced_billing/models/create_metered_component.rb index daee2bb7..fbd74e1a 100644 --- a/lib/advanced_billing/models/create_metered_component.rb +++ b/lib/advanced_billing/models/create_metered_component.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) CreateMeteredComponent.new(metered_component: metered_component, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} metered_component: #{@metered_component}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} metered_component: #{@metered_component.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_multi_invoice_payment.rb b/lib/advanced_billing/models/create_multi_invoice_payment.rb index 65f816fa..0cf22459 100644 --- a/lib/advanced_billing/models/create_multi_invoice_payment.rb +++ b/lib/advanced_billing/models/create_multi_invoice_payment.rb @@ -138,5 +138,22 @@ def self.validate(value) is_inner_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} memo: #{@memo}, details: #{@details}, method: #{@method}, amount:"\ + " #{@amount}, received_on: #{@received_on}, applications: #{@applications},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} memo: #{@memo.inspect}, details: #{@details.inspect}, method:"\ + " #{@method.inspect}, amount: #{@amount.inspect}, received_on: #{@received_on.inspect},"\ + " applications: #{@applications.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_multi_invoice_payment_request.rb b/lib/advanced_billing/models/create_multi_invoice_payment_request.rb index 7f0d8350..c04a1d6c 100644 --- a/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +++ b/lib/advanced_billing/models/create_multi_invoice_payment_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) CreateMultiInvoicePaymentRequest.new(payment: payment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payment: #{@payment}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payment: #{@payment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_offer.rb b/lib/advanced_billing/models/create_offer.rb index 985654f4..9e28cc0b 100644 --- a/lib/advanced_billing/models/create_offer.rb +++ b/lib/advanced_billing/models/create_offer.rb @@ -118,5 +118,23 @@ def self.from_hash(hash) coupons: coupons, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, handle: #{@handle}, description: #{@description},"\ + " product_id: #{@product_id}, product_price_point_id: #{@product_price_point_id},"\ + " components: #{@components}, coupons: #{@coupons}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, handle: #{@handle.inspect}, description:"\ + " #{@description.inspect}, product_id: #{@product_id.inspect}, product_price_point_id:"\ + " #{@product_price_point_id.inspect}, components: #{@components.inspect}, coupons:"\ + " #{@coupons.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_offer_component.rb b/lib/advanced_billing/models/create_offer_component.rb index 20d8d039..d978b8f2 100644 --- a/lib/advanced_billing/models/create_offer_component.rb +++ b/lib/advanced_billing/models/create_offer_component.rb @@ -76,5 +76,21 @@ def self.from_hash(hash) starting_quantity: starting_quantity, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id}, price_point_id: #{@price_point_id},"\ + " starting_quantity: #{@starting_quantity}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id.inspect}, price_point_id:"\ + " #{@price_point_id.inspect}, starting_quantity: #{@starting_quantity.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_offer_request.rb b/lib/advanced_billing/models/create_offer_request.rb index a3fcbbce..d09a74cb 100644 --- a/lib/advanced_billing/models/create_offer_request.rb +++ b/lib/advanced_billing/models/create_offer_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) CreateOfferRequest.new(offer: offer, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} offer: #{@offer}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} offer: #{@offer.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_on_off_component.rb b/lib/advanced_billing/models/create_on_off_component.rb index ff772a72..3c5d7118 100644 --- a/lib/advanced_billing/models/create_on_off_component.rb +++ b/lib/advanced_billing/models/create_on_off_component.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) CreateOnOffComponent.new(on_off_component: on_off_component, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} on_off_component: #{@on_off_component}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} on_off_component: #{@on_off_component.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_or_update_endpoint.rb b/lib/advanced_billing/models/create_or_update_endpoint.rb index 97451495..637e9da4 100644 --- a/lib/advanced_billing/models/create_or_update_endpoint.rb +++ b/lib/advanced_billing/models/create_or_update_endpoint.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) webhook_subscriptions: webhook_subscriptions, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} url: #{@url}, webhook_subscriptions: #{@webhook_subscriptions},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} url: #{@url.inspect}, webhook_subscriptions:"\ + " #{@webhook_subscriptions.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_or_update_endpoint_request.rb b/lib/advanced_billing/models/create_or_update_endpoint_request.rb index 8fa4dfc1..2b4be149 100644 --- a/lib/advanced_billing/models/create_or_update_endpoint_request.rb +++ b/lib/advanced_billing/models/create_or_update_endpoint_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CreateOrUpdateEndpointRequest.new(endpoint: endpoint, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} endpoint: #{@endpoint}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} endpoint: #{@endpoint.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_or_update_product.rb b/lib/advanced_billing/models/create_or_update_product.rb index 12ac6987..45d75710 100644 --- a/lib/advanced_billing/models/create_or_update_product.rb +++ b/lib/advanced_billing/models/create_or_update_product.rb @@ -218,5 +218,34 @@ def self.from_hash(hash) tax_code: tax_code, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, handle: #{@handle}, description: #{@description},"\ + " accounting_code: #{@accounting_code}, require_credit_card: #{@require_credit_card},"\ + " price_in_cents: #{@price_in_cents}, interval: #{@interval}, interval_unit:"\ + " #{@interval_unit}, trial_price_in_cents: #{@trial_price_in_cents}, trial_interval:"\ + " #{@trial_interval}, trial_interval_unit: #{@trial_interval_unit}, trial_type:"\ + " #{@trial_type}, expiration_interval: #{@expiration_interval}, expiration_interval_unit:"\ + " #{@expiration_interval_unit}, auto_create_signup_page: #{@auto_create_signup_page},"\ + " tax_code: #{@tax_code}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, handle: #{@handle.inspect}, description:"\ + " #{@description.inspect}, accounting_code: #{@accounting_code.inspect},"\ + " require_credit_card: #{@require_credit_card.inspect}, price_in_cents:"\ + " #{@price_in_cents.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, trial_price_in_cents: #{@trial_price_in_cents.inspect},"\ + " trial_interval: #{@trial_interval.inspect}, trial_interval_unit:"\ + " #{@trial_interval_unit.inspect}, trial_type: #{@trial_type.inspect}, expiration_interval:"\ + " #{@expiration_interval.inspect}, expiration_interval_unit:"\ + " #{@expiration_interval_unit.inspect}, auto_create_signup_page:"\ + " #{@auto_create_signup_page.inspect}, tax_code: #{@tax_code.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_or_update_product_request.rb b/lib/advanced_billing/models/create_or_update_product_request.rb index 38dccd12..8f92d164 100644 --- a/lib/advanced_billing/models/create_or_update_product_request.rb +++ b/lib/advanced_billing/models/create_or_update_product_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) CreateOrUpdateProductRequest.new(product: product, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product: #{@product}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product: #{@product.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_or_update_segment_price.rb b/lib/advanced_billing/models/create_or_update_segment_price.rb index df9a7c9a..7d5d677f 100644 --- a/lib/advanced_billing/models/create_or_update_segment_price.rb +++ b/lib/advanced_billing/models/create_or_update_segment_price.rb @@ -92,5 +92,21 @@ def self.validate(value) UnionTypeLookUp.get(:CreateOrUpdateSegmentPriceUnitPrice) .validate(value['unit_price']) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} starting_quantity: #{@starting_quantity}, ending_quantity:"\ + " #{@ending_quantity}, unit_price: #{@unit_price}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} starting_quantity: #{@starting_quantity.inspect}, ending_quantity:"\ + " #{@ending_quantity.inspect}, unit_price: #{@unit_price.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_payment.rb b/lib/advanced_billing/models/create_payment.rb index 27d12767..599101d8 100644 --- a/lib/advanced_billing/models/create_payment.rb +++ b/lib/advanced_billing/models/create_payment.rb @@ -80,5 +80,20 @@ def self.from_hash(hash) payment_method: payment_method, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount}, memo: #{@memo}, payment_details: #{@payment_details},"\ + " payment_method: #{@payment_method}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount.inspect}, memo: #{@memo.inspect}, payment_details:"\ + " #{@payment_details.inspect}, payment_method: #{@payment_method.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_payment_profile.rb b/lib/advanced_billing/models/create_payment_profile.rb index 7e15d8a4..c24d41d6 100644 --- a/lib/advanced_billing/models/create_payment_profile.rb +++ b/lib/advanced_billing/models/create_payment_profile.rb @@ -417,5 +417,48 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} chargify_token: #{@chargify_token}, id: #{@id}, payment_type:"\ + " #{@payment_type}, first_name: #{@first_name}, last_name: #{@last_name},"\ + " masked_card_number: #{@masked_card_number}, full_number: #{@full_number}, card_type:"\ + " #{@card_type}, expiration_month: #{@expiration_month}, expiration_year:"\ + " #{@expiration_year}, billing_address: #{@billing_address}, billing_address_2:"\ + " #{@billing_address_2}, billing_city: #{@billing_city}, billing_state: #{@billing_state},"\ + " billing_country: #{@billing_country}, billing_zip: #{@billing_zip}, current_vault:"\ + " #{@current_vault}, vault_token: #{@vault_token}, customer_vault_token:"\ + " #{@customer_vault_token}, customer_id: #{@customer_id}, paypal_email: #{@paypal_email},"\ + " payment_method_nonce: #{@payment_method_nonce}, gateway_handle: #{@gateway_handle}, cvv:"\ + " #{@cvv}, bank_name: #{@bank_name}, bank_iban: #{@bank_iban}, bank_routing_number:"\ + " #{@bank_routing_number}, bank_account_number: #{@bank_account_number}, bank_branch_code:"\ + " #{@bank_branch_code}, bank_account_type: #{@bank_account_type}, bank_account_holder_type:"\ + " #{@bank_account_holder_type}, last_four: #{@last_four}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} chargify_token: #{@chargify_token.inspect}, id: #{@id.inspect},"\ + " payment_type: #{@payment_type.inspect}, first_name: #{@first_name.inspect}, last_name:"\ + " #{@last_name.inspect}, masked_card_number: #{@masked_card_number.inspect}, full_number:"\ + " #{@full_number.inspect}, card_type: #{@card_type.inspect}, expiration_month:"\ + " #{@expiration_month.inspect}, expiration_year: #{@expiration_year.inspect},"\ + " billing_address: #{@billing_address.inspect}, billing_address_2:"\ + " #{@billing_address_2.inspect}, billing_city: #{@billing_city.inspect}, billing_state:"\ + " #{@billing_state.inspect}, billing_country: #{@billing_country.inspect}, billing_zip:"\ + " #{@billing_zip.inspect}, current_vault: #{@current_vault.inspect}, vault_token:"\ + " #{@vault_token.inspect}, customer_vault_token: #{@customer_vault_token.inspect},"\ + " customer_id: #{@customer_id.inspect}, paypal_email: #{@paypal_email.inspect},"\ + " payment_method_nonce: #{@payment_method_nonce.inspect}, gateway_handle:"\ + " #{@gateway_handle.inspect}, cvv: #{@cvv.inspect}, bank_name: #{@bank_name.inspect},"\ + " bank_iban: #{@bank_iban.inspect}, bank_routing_number: #{@bank_routing_number.inspect},"\ + " bank_account_number: #{@bank_account_number.inspect}, bank_branch_code:"\ + " #{@bank_branch_code.inspect}, bank_account_type: #{@bank_account_type.inspect},"\ + " bank_account_holder_type: #{@bank_account_holder_type.inspect}, last_four:"\ + " #{@last_four.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_payment_profile_request.rb b/lib/advanced_billing/models/create_payment_profile_request.rb index db417bb8..6b0b5669 100644 --- a/lib/advanced_billing/models/create_payment_profile_request.rb +++ b/lib/advanced_billing/models/create_payment_profile_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) CreatePaymentProfileRequest.new(payment_profile: payment_profile, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile: #{@payment_profile}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile: #{@payment_profile.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_prepaid_component.rb b/lib/advanced_billing/models/create_prepaid_component.rb index 6f3e9c4d..bd5993f1 100644 --- a/lib/advanced_billing/models/create_prepaid_component.rb +++ b/lib/advanced_billing/models/create_prepaid_component.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) CreatePrepaidComponent.new(prepaid_usage_component: prepaid_usage_component, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepaid_usage_component: #{@prepaid_usage_component},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepaid_usage_component: #{@prepaid_usage_component.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb b/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb index 45ddba4e..17e5a33a 100644 --- a/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +++ b/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb @@ -205,5 +205,29 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, handle: #{@handle}, pricing_scheme: #{@pricing_scheme},"\ + " prices: #{@prices}, overage_pricing: #{@overage_pricing}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate}, rollover_prepaid_remainder: #{@rollover_prepaid_remainder},"\ + " renew_prepaid_allocation: #{@renew_prepaid_allocation}, expiration_interval:"\ + " #{@expiration_interval}, expiration_interval_unit: #{@expiration_interval_unit},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, handle: #{@handle.inspect}, pricing_scheme:"\ + " #{@pricing_scheme.inspect}, prices: #{@prices.inspect}, overage_pricing:"\ + " #{@overage_pricing.inspect}, use_site_exchange_rate: #{@use_site_exchange_rate.inspect},"\ + " rollover_prepaid_remainder: #{@rollover_prepaid_remainder.inspect},"\ + " renew_prepaid_allocation: #{@renew_prepaid_allocation.inspect}, expiration_interval:"\ + " #{@expiration_interval.inspect}, expiration_interval_unit:"\ + " #{@expiration_interval_unit.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_prepayment.rb b/lib/advanced_billing/models/create_prepayment.rb index d22bd0c9..5354e550 100644 --- a/lib/advanced_billing/models/create_prepayment.rb +++ b/lib/advanced_billing/models/create_prepayment.rb @@ -95,5 +95,21 @@ def self.from_hash(hash) payment_profile_id: payment_profile_id, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount}, details: #{@details}, memo: #{@memo}, method:"\ + " #{@method}, payment_profile_id: #{@payment_profile_id}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount.inspect}, details: #{@details.inspect}, memo:"\ + " #{@memo.inspect}, method: #{@method.inspect}, payment_profile_id:"\ + " #{@payment_profile_id.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_prepayment_request.rb b/lib/advanced_billing/models/create_prepayment_request.rb index 8f73eb57..a45c54f5 100644 --- a/lib/advanced_billing/models/create_prepayment_request.rb +++ b/lib/advanced_billing/models/create_prepayment_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CreatePrepaymentRequest.new(prepayment: prepayment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepayment: #{@prepayment}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepayment: #{@prepayment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_prepayment_response.rb b/lib/advanced_billing/models/create_prepayment_response.rb index 68082b8b..c6d61090 100644 --- a/lib/advanced_billing/models/create_prepayment_response.rb +++ b/lib/advanced_billing/models/create_prepayment_response.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CreatePrepaymentResponse.new(prepayment: prepayment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepayment: #{@prepayment}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepayment: #{@prepayment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_product_currency_price.rb b/lib/advanced_billing/models/create_product_currency_price.rb index dd1532f8..2ce1557b 100644 --- a/lib/advanced_billing/models/create_product_currency_price.rb +++ b/lib/advanced_billing/models/create_product_currency_price.rb @@ -69,5 +69,19 @@ def self.from_hash(hash) role: role, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currency: #{@currency}, price: #{@price}, role: #{@role},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currency: #{@currency.inspect}, price: #{@price.inspect}, role:"\ + " #{@role.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_product_currency_prices_request.rb b/lib/advanced_billing/models/create_product_currency_prices_request.rb index bd9394c0..b0b4826c 100644 --- a/lib/advanced_billing/models/create_product_currency_prices_request.rb +++ b/lib/advanced_billing/models/create_product_currency_prices_request.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) CreateProductCurrencyPricesRequest.new(currency_prices: currency_prices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_product_family.rb b/lib/advanced_billing/models/create_product_family.rb index a94d5d9e..c6ebc0d7 100644 --- a/lib/advanced_billing/models/create_product_family.rb +++ b/lib/advanced_billing/models/create_product_family.rb @@ -76,5 +76,19 @@ def self.from_hash(hash) description: description, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, handle: #{@handle}, description: #{@description},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, handle: #{@handle.inspect}, description:"\ + " #{@description.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_product_family_request.rb b/lib/advanced_billing/models/create_product_family_request.rb index ba9634ba..38e775a6 100644 --- a/lib/advanced_billing/models/create_product_family_request.rb +++ b/lib/advanced_billing/models/create_product_family_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) CreateProductFamilyRequest.new(product_family: product_family, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product_family: #{@product_family}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product_family: #{@product_family.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_product_price_point.rb b/lib/advanced_billing/models/create_product_price_point.rb index 6c3fa3fd..f5dcca54 100644 --- a/lib/advanced_billing/models/create_product_price_point.rb +++ b/lib/advanced_billing/models/create_product_price_point.rb @@ -198,5 +198,33 @@ def self.from_hash(hash) use_site_exchange_rate: use_site_exchange_rate, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, handle: #{@handle}, price_in_cents: #{@price_in_cents},"\ + " interval: #{@interval}, interval_unit: #{@interval_unit}, trial_price_in_cents:"\ + " #{@trial_price_in_cents}, trial_interval: #{@trial_interval}, trial_interval_unit:"\ + " #{@trial_interval_unit}, trial_type: #{@trial_type}, initial_charge_in_cents:"\ + " #{@initial_charge_in_cents}, initial_charge_after_trial: #{@initial_charge_after_trial},"\ + " expiration_interval: #{@expiration_interval}, expiration_interval_unit:"\ + " #{@expiration_interval_unit}, use_site_exchange_rate: #{@use_site_exchange_rate},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, handle: #{@handle.inspect}, price_in_cents:"\ + " #{@price_in_cents.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, trial_price_in_cents: #{@trial_price_in_cents.inspect},"\ + " trial_interval: #{@trial_interval.inspect}, trial_interval_unit:"\ + " #{@trial_interval_unit.inspect}, trial_type: #{@trial_type.inspect},"\ + " initial_charge_in_cents: #{@initial_charge_in_cents.inspect}, initial_charge_after_trial:"\ + " #{@initial_charge_after_trial.inspect}, expiration_interval:"\ + " #{@expiration_interval.inspect}, expiration_interval_unit:"\ + " #{@expiration_interval_unit.inspect}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_product_price_point_request.rb b/lib/advanced_billing/models/create_product_price_point_request.rb index bc61cd2f..e1710820 100644 --- a/lib/advanced_billing/models/create_product_price_point_request.rb +++ b/lib/advanced_billing/models/create_product_price_point_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CreateProductPricePointRequest.new(price_point: price_point, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_quantity_based_component.rb b/lib/advanced_billing/models/create_quantity_based_component.rb index b76814ce..617449a0 100644 --- a/lib/advanced_billing/models/create_quantity_based_component.rb +++ b/lib/advanced_billing/models/create_quantity_based_component.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) CreateQuantityBasedComponent.new(quantity_based_component: quantity_based_component, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} quantity_based_component: #{@quantity_based_component},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} quantity_based_component: #{@quantity_based_component.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_reason_code.rb b/lib/advanced_billing/models/create_reason_code.rb index 24508cf5..c982e781 100644 --- a/lib/advanced_billing/models/create_reason_code.rb +++ b/lib/advanced_billing/models/create_reason_code.rb @@ -72,5 +72,19 @@ def self.from_hash(hash) position: position, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} code: #{@code}, description: #{@description}, position: #{@position},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} code: #{@code.inspect}, description: #{@description.inspect}, position:"\ + " #{@position.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_reason_code_request.rb b/lib/advanced_billing/models/create_reason_code_request.rb index a6c9cafc..6bbba398 100644 --- a/lib/advanced_billing/models/create_reason_code_request.rb +++ b/lib/advanced_billing/models/create_reason_code_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CreateReasonCodeRequest.new(reason_code: reason_code, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} reason_code: #{@reason_code}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} reason_code: #{@reason_code.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_segment.rb b/lib/advanced_billing/models/create_segment.rb index 0e9a54b6..89e2542b 100644 --- a/lib/advanced_billing/models/create_segment.rb +++ b/lib/advanced_billing/models/create_segment.rb @@ -147,5 +147,25 @@ def self.validate(value) APIHelper.valid_type?(value['pricing_scheme'], ->(val) { PricingScheme.validate(val) }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} segment_property_1_value: #{@segment_property_1_value},"\ + " segment_property_2_value: #{@segment_property_2_value}, segment_property_3_value:"\ + " #{@segment_property_3_value}, segment_property_4_value: #{@segment_property_4_value},"\ + " pricing_scheme: #{@pricing_scheme}, prices: #{@prices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} segment_property_1_value: #{@segment_property_1_value.inspect},"\ + " segment_property_2_value: #{@segment_property_2_value.inspect}, segment_property_3_value:"\ + " #{@segment_property_3_value.inspect}, segment_property_4_value:"\ + " #{@segment_property_4_value.inspect}, pricing_scheme: #{@pricing_scheme.inspect}, prices:"\ + " #{@prices.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_segment_request.rb b/lib/advanced_billing/models/create_segment_request.rb index a76faa05..cec954cc 100644 --- a/lib/advanced_billing/models/create_segment_request.rb +++ b/lib/advanced_billing/models/create_segment_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) CreateSegmentRequest.new(segment: segment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} segment: #{@segment}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} segment: #{@segment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_subscription.rb b/lib/advanced_billing/models/create_subscription.rb index fc6a463f..ea1b9437 100644 --- a/lib/advanced_billing/models/create_subscription.rb +++ b/lib/advanced_billing/models/create_subscription.rb @@ -749,5 +749,77 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product_handle: #{@product_handle}, product_id: #{@product_id},"\ + " product_price_point_handle: #{@product_price_point_handle}, product_price_point_id:"\ + " #{@product_price_point_id}, custom_price: #{@custom_price}, coupon_code: #{@coupon_code},"\ + " coupon_codes: #{@coupon_codes}, payment_collection_method: #{@payment_collection_method},"\ + " receives_invoice_emails: #{@receives_invoice_emails}, net_terms: #{@net_terms},"\ + " customer_id: #{@customer_id}, next_billing_at: #{@next_billing_at}, initial_billing_at:"\ + " #{@initial_billing_at}, stored_credential_transaction_id:"\ + " #{@stored_credential_transaction_id}, sales_rep_id: #{@sales_rep_id}, payment_profile_id:"\ + " #{@payment_profile_id}, reference: #{@reference}, customer_attributes:"\ + " #{@customer_attributes}, payment_profile_attributes: #{@payment_profile_attributes},"\ + " credit_card_attributes: #{@credit_card_attributes}, bank_account_attributes:"\ + " #{@bank_account_attributes}, components: #{@components}, calendar_billing:"\ + " #{@calendar_billing}, metafields: #{@metafields}, customer_reference:"\ + " #{@customer_reference}, group: #{@group}, ref: #{@ref}, cancellation_message:"\ + " #{@cancellation_message}, cancellation_method: #{@cancellation_method}, currency:"\ + " #{@currency}, expires_at: #{@expires_at}, expiration_tracks_next_billing_change:"\ + " #{@expiration_tracks_next_billing_change}, agreement_terms: #{@agreement_terms},"\ + " authorizer_first_name: #{@authorizer_first_name}, authorizer_last_name:"\ + " #{@authorizer_last_name}, calendar_billing_first_charge:"\ + " #{@calendar_billing_first_charge}, reason_code: #{@reason_code}, product_change_delayed:"\ + " #{@product_change_delayed}, offer_id: #{@offer_id}, prepaid_configuration:"\ + " #{@prepaid_configuration}, previous_billing_at: #{@previous_billing_at}, import_mrr:"\ + " #{@import_mrr}, canceled_at: #{@canceled_at}, activated_at: #{@activated_at},"\ + " agreement_acceptance: #{@agreement_acceptance}, ach_agreement: #{@ach_agreement},"\ + " dunning_communication_delay_enabled: #{@dunning_communication_delay_enabled},"\ + " dunning_communication_delay_time_zone: #{@dunning_communication_delay_time_zone},"\ + " skip_billing_manifest_taxes: #{@skip_billing_manifest_taxes}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product_handle: #{@product_handle.inspect}, product_id:"\ + " #{@product_id.inspect}, product_price_point_handle:"\ + " #{@product_price_point_handle.inspect}, product_price_point_id:"\ + " #{@product_price_point_id.inspect}, custom_price: #{@custom_price.inspect}, coupon_code:"\ + " #{@coupon_code.inspect}, coupon_codes: #{@coupon_codes.inspect},"\ + " payment_collection_method: #{@payment_collection_method.inspect}, receives_invoice_emails:"\ + " #{@receives_invoice_emails.inspect}, net_terms: #{@net_terms.inspect}, customer_id:"\ + " #{@customer_id.inspect}, next_billing_at: #{@next_billing_at.inspect}, initial_billing_at:"\ + " #{@initial_billing_at.inspect}, stored_credential_transaction_id:"\ + " #{@stored_credential_transaction_id.inspect}, sales_rep_id: #{@sales_rep_id.inspect},"\ + " payment_profile_id: #{@payment_profile_id.inspect}, reference: #{@reference.inspect},"\ + " customer_attributes: #{@customer_attributes.inspect}, payment_profile_attributes:"\ + " #{@payment_profile_attributes.inspect}, credit_card_attributes:"\ + " #{@credit_card_attributes.inspect}, bank_account_attributes:"\ + " #{@bank_account_attributes.inspect}, components: #{@components.inspect}, calendar_billing:"\ + " #{@calendar_billing.inspect}, metafields: #{@metafields.inspect}, customer_reference:"\ + " #{@customer_reference.inspect}, group: #{@group.inspect}, ref: #{@ref.inspect},"\ + " cancellation_message: #{@cancellation_message.inspect}, cancellation_method:"\ + " #{@cancellation_method.inspect}, currency: #{@currency.inspect}, expires_at:"\ + " #{@expires_at.inspect}, expiration_tracks_next_billing_change:"\ + " #{@expiration_tracks_next_billing_change.inspect}, agreement_terms:"\ + " #{@agreement_terms.inspect}, authorizer_first_name: #{@authorizer_first_name.inspect},"\ + " authorizer_last_name: #{@authorizer_last_name.inspect}, calendar_billing_first_charge:"\ + " #{@calendar_billing_first_charge.inspect}, reason_code: #{@reason_code.inspect},"\ + " product_change_delayed: #{@product_change_delayed.inspect}, offer_id:"\ + " #{@offer_id.inspect}, prepaid_configuration: #{@prepaid_configuration.inspect},"\ + " previous_billing_at: #{@previous_billing_at.inspect}, import_mrr: #{@import_mrr.inspect},"\ + " canceled_at: #{@canceled_at.inspect}, activated_at: #{@activated_at.inspect},"\ + " agreement_acceptance: #{@agreement_acceptance.inspect}, ach_agreement:"\ + " #{@ach_agreement.inspect}, dunning_communication_delay_enabled:"\ + " #{@dunning_communication_delay_enabled.inspect}, dunning_communication_delay_time_zone:"\ + " #{@dunning_communication_delay_time_zone.inspect}, skip_billing_manifest_taxes:"\ + " #{@skip_billing_manifest_taxes.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_subscription_component.rb b/lib/advanced_billing/models/create_subscription_component.rb index e5ba1b1c..30d174c3 100644 --- a/lib/advanced_billing/models/create_subscription_component.rb +++ b/lib/advanced_billing/models/create_subscription_component.rb @@ -129,5 +129,24 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id}, enabled: #{@enabled}, unit_balance:"\ + " #{@unit_balance}, allocated_quantity: #{@allocated_quantity}, quantity: #{@quantity},"\ + " price_point_id: #{@price_point_id}, custom_price: #{@custom_price}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id.inspect}, enabled: #{@enabled.inspect},"\ + " unit_balance: #{@unit_balance.inspect}, allocated_quantity:"\ + " #{@allocated_quantity.inspect}, quantity: #{@quantity.inspect}, price_point_id:"\ + " #{@price_point_id.inspect}, custom_price: #{@custom_price.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_subscription_group.rb b/lib/advanced_billing/models/create_subscription_group.rb index 9d8d54d2..1d8df0f8 100644 --- a/lib/advanced_billing/models/create_subscription_group.rb +++ b/lib/advanced_billing/models/create_subscription_group.rb @@ -65,5 +65,19 @@ def self.from_hash(hash) member_ids: member_ids, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_id: #{@subscription_id}, member_ids: #{@member_ids},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_id: #{@subscription_id.inspect}, member_ids:"\ + " #{@member_ids.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_subscription_group_request.rb b/lib/advanced_billing/models/create_subscription_group_request.rb index af14a06e..ab5110f5 100644 --- a/lib/advanced_billing/models/create_subscription_group_request.rb +++ b/lib/advanced_billing/models/create_subscription_group_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) CreateSubscriptionGroupRequest.new(subscription_group: subscription_group, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_subscription_request.rb b/lib/advanced_billing/models/create_subscription_request.rb index 33e7e0e3..834dbd80 100644 --- a/lib/advanced_billing/models/create_subscription_request.rb +++ b/lib/advanced_billing/models/create_subscription_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CreateSubscriptionRequest.new(subscription: subscription, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_usage.rb b/lib/advanced_billing/models/create_usage.rb index daf34e90..9e75c5ce 100644 --- a/lib/advanced_billing/models/create_usage.rb +++ b/lib/advanced_billing/models/create_usage.rb @@ -91,5 +91,21 @@ def self.from_hash(hash) billing_schedule: billing_schedule, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} quantity: #{@quantity}, price_point_id: #{@price_point_id}, memo: #{@memo},"\ + " billing_schedule: #{@billing_schedule}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} quantity: #{@quantity.inspect}, price_point_id: #{@price_point_id.inspect},"\ + " memo: #{@memo.inspect}, billing_schedule: #{@billing_schedule.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/create_usage_request.rb b/lib/advanced_billing/models/create_usage_request.rb index e63647bb..9d3610fd 100644 --- a/lib/advanced_billing/models/create_usage_request.rb +++ b/lib/advanced_billing/models/create_usage_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) CreateUsageRequest.new(usage: usage, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} usage: #{@usage}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} usage: #{@usage.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/created_prepayment.rb b/lib/advanced_billing/models/created_prepayment.rb index 1dfa10d5..191e8752 100644 --- a/lib/advanced_billing/models/created_prepayment.rb +++ b/lib/advanced_billing/models/created_prepayment.rb @@ -128,5 +128,24 @@ def self.from_hash(hash) def to_custom_created_at DateTimeHelper.to_rfc3339(created_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, subscription_id: #{@subscription_id}, amount_in_cents:"\ + " #{@amount_in_cents}, memo: #{@memo}, created_at: #{@created_at},"\ + " starting_balance_in_cents: #{@starting_balance_in_cents}, ending_balance_in_cents:"\ + " #{@ending_balance_in_cents}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, subscription_id: #{@subscription_id.inspect},"\ + " amount_in_cents: #{@amount_in_cents.inspect}, memo: #{@memo.inspect}, created_at:"\ + " #{@created_at.inspect}, starting_balance_in_cents: #{@starting_balance_in_cents.inspect},"\ + " ending_balance_in_cents: #{@ending_balance_in_cents.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/credit_account_balance_changed.rb b/lib/advanced_billing/models/credit_account_balance_changed.rb index f44e485f..a24fa1c2 100644 --- a/lib/advanced_billing/models/credit_account_balance_changed.rb +++ b/lib/advanced_billing/models/credit_account_balance_changed.rb @@ -132,5 +132,25 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} reason: #{@reason}, service_credit_account_balance_in_cents:"\ + " #{@service_credit_account_balance_in_cents}, service_credit_balance_change_in_cents:"\ + " #{@service_credit_balance_change_in_cents}, currency_code: #{@currency_code}, at_time:"\ + " #{@at_time}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} reason: #{@reason.inspect}, service_credit_account_balance_in_cents:"\ + " #{@service_credit_account_balance_in_cents.inspect},"\ + ' service_credit_balance_change_in_cents:'\ + " #{@service_credit_balance_change_in_cents.inspect}, currency_code:"\ + " #{@currency_code.inspect}, at_time: #{@at_time.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/credit_card_attributes.rb b/lib/advanced_billing/models/credit_card_attributes.rb index 730617a6..e3d6047f 100644 --- a/lib/advanced_billing/models/credit_card_attributes.rb +++ b/lib/advanced_billing/models/credit_card_attributes.rb @@ -86,5 +86,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} full_number: #{@full_number}, expiration_month: #{@expiration_month},"\ + " expiration_year: #{@expiration_year}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} full_number: #{@full_number.inspect}, expiration_month:"\ + " #{@expiration_month.inspect}, expiration_year: #{@expiration_year.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/credit_card_payment_profile.rb b/lib/advanced_billing/models/credit_card_payment_profile.rb index 30e83c4d..478b479d 100644 --- a/lib/advanced_billing/models/credit_card_payment_profile.rb +++ b/lib/advanced_billing/models/credit_card_payment_profile.rb @@ -300,5 +300,37 @@ def self.validate(value) APIHelper.valid_type?(value['payment_type'], ->(val) { PaymentType.validate(val) }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, first_name: #{@first_name}, last_name: #{@last_name},"\ + " masked_card_number: #{@masked_card_number}, card_type: #{@card_type}, expiration_month:"\ + " #{@expiration_month}, expiration_year: #{@expiration_year}, customer_id: #{@customer_id},"\ + " current_vault: #{@current_vault}, vault_token: #{@vault_token}, billing_address:"\ + " #{@billing_address}, billing_city: #{@billing_city}, billing_state: #{@billing_state},"\ + " billing_zip: #{@billing_zip}, billing_country: #{@billing_country}, customer_vault_token:"\ + " #{@customer_vault_token}, billing_address_2: #{@billing_address_2}, payment_type:"\ + " #{@payment_type}, disabled: #{@disabled}, chargify_token: #{@chargify_token},"\ + " site_gateway_setting_id: #{@site_gateway_setting_id}, gateway_handle: #{@gateway_handle},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, first_name: #{@first_name.inspect}, last_name:"\ + " #{@last_name.inspect}, masked_card_number: #{@masked_card_number.inspect}, card_type:"\ + " #{@card_type.inspect}, expiration_month: #{@expiration_month.inspect}, expiration_year:"\ + " #{@expiration_year.inspect}, customer_id: #{@customer_id.inspect}, current_vault:"\ + " #{@current_vault.inspect}, vault_token: #{@vault_token.inspect}, billing_address:"\ + " #{@billing_address.inspect}, billing_city: #{@billing_city.inspect}, billing_state:"\ + " #{@billing_state.inspect}, billing_zip: #{@billing_zip.inspect}, billing_country:"\ + " #{@billing_country.inspect}, customer_vault_token: #{@customer_vault_token.inspect},"\ + " billing_address_2: #{@billing_address_2.inspect}, payment_type: #{@payment_type.inspect},"\ + " disabled: #{@disabled.inspect}, chargify_token: #{@chargify_token.inspect},"\ + " site_gateway_setting_id: #{@site_gateway_setting_id.inspect}, gateway_handle:"\ + " #{@gateway_handle.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/credit_note.rb b/lib/advanced_billing/models/credit_note.rb index fde850ae..899461b4 100644 --- a/lib/advanced_billing/models/credit_note.rb +++ b/lib/advanced_billing/models/credit_note.rb @@ -405,5 +405,40 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, site_id: #{@site_id}, customer_id: #{@customer_id},"\ + " subscription_id: #{@subscription_id}, number: #{@number}, sequence_number:"\ + " #{@sequence_number}, issue_date: #{@issue_date}, applied_date: #{@applied_date}, status:"\ + " #{@status}, currency: #{@currency}, memo: #{@memo}, seller: #{@seller}, customer:"\ + " #{@customer}, billing_address: #{@billing_address}, shipping_address:"\ + " #{@shipping_address}, subtotal_amount: #{@subtotal_amount}, discount_amount:"\ + " #{@discount_amount}, tax_amount: #{@tax_amount}, total_amount: #{@total_amount},"\ + " applied_amount: #{@applied_amount}, remaining_amount: #{@remaining_amount}, line_items:"\ + " #{@line_items}, discounts: #{@discounts}, taxes: #{@taxes}, applications:"\ + " #{@applications}, refunds: #{@refunds}, origin_invoices: #{@origin_invoices},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, site_id: #{@site_id.inspect}, customer_id:"\ + " #{@customer_id.inspect}, subscription_id: #{@subscription_id.inspect}, number:"\ + " #{@number.inspect}, sequence_number: #{@sequence_number.inspect}, issue_date:"\ + " #{@issue_date.inspect}, applied_date: #{@applied_date.inspect}, status:"\ + " #{@status.inspect}, currency: #{@currency.inspect}, memo: #{@memo.inspect}, seller:"\ + " #{@seller.inspect}, customer: #{@customer.inspect}, billing_address:"\ + " #{@billing_address.inspect}, shipping_address: #{@shipping_address.inspect},"\ + " subtotal_amount: #{@subtotal_amount.inspect}, discount_amount:"\ + " #{@discount_amount.inspect}, tax_amount: #{@tax_amount.inspect}, total_amount:"\ + " #{@total_amount.inspect}, applied_amount: #{@applied_amount.inspect}, remaining_amount:"\ + " #{@remaining_amount.inspect}, line_items: #{@line_items.inspect}, discounts:"\ + " #{@discounts.inspect}, taxes: #{@taxes.inspect}, applications: #{@applications.inspect},"\ + " refunds: #{@refunds.inspect}, origin_invoices: #{@origin_invoices.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/credit_note_application.rb b/lib/advanced_billing/models/credit_note_application.rb index 5359aaa6..3c5ea951 100644 --- a/lib/advanced_billing/models/credit_note_application.rb +++ b/lib/advanced_billing/models/credit_note_application.rb @@ -112,5 +112,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, transaction_time: #{@transaction_time}, invoice_uid:"\ + " #{@invoice_uid}, memo: #{@memo}, applied_amount: #{@applied_amount},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, transaction_time: #{@transaction_time.inspect},"\ + " invoice_uid: #{@invoice_uid.inspect}, memo: #{@memo.inspect}, applied_amount:"\ + " #{@applied_amount.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/credit_note_line_item.rb b/lib/advanced_billing/models/credit_note_line_item.rb index fcc2f03f..a3dc94c8 100644 --- a/lib/advanced_billing/models/credit_note_line_item.rb +++ b/lib/advanced_billing/models/credit_note_line_item.rb @@ -274,5 +274,35 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, title: #{@title}, description: #{@description}, quantity:"\ + " #{@quantity}, unit_price: #{@unit_price}, subtotal_amount: #{@subtotal_amount},"\ + " discount_amount: #{@discount_amount}, tax_amount: #{@tax_amount}, total_amount:"\ + " #{@total_amount}, tiered_unit_price: #{@tiered_unit_price}, period_range_start:"\ + " #{@period_range_start}, period_range_end: #{@period_range_end}, product_id:"\ + " #{@product_id}, product_version: #{@product_version}, component_id: #{@component_id},"\ + " price_point_id: #{@price_point_id}, billing_schedule_item_id:"\ + " #{@billing_schedule_item_id}, custom_item: #{@custom_item}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, title: #{@title.inspect}, description:"\ + " #{@description.inspect}, quantity: #{@quantity.inspect}, unit_price:"\ + " #{@unit_price.inspect}, subtotal_amount: #{@subtotal_amount.inspect}, discount_amount:"\ + " #{@discount_amount.inspect}, tax_amount: #{@tax_amount.inspect}, total_amount:"\ + " #{@total_amount.inspect}, tiered_unit_price: #{@tiered_unit_price.inspect},"\ + " period_range_start: #{@period_range_start.inspect}, period_range_end:"\ + " #{@period_range_end.inspect}, product_id: #{@product_id.inspect}, product_version:"\ + " #{@product_version.inspect}, component_id: #{@component_id.inspect}, price_point_id:"\ + " #{@price_point_id.inspect}, billing_schedule_item_id:"\ + " #{@billing_schedule_item_id.inspect}, custom_item: #{@custom_item.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/credit_scheme_request.rb b/lib/advanced_billing/models/credit_scheme_request.rb index 1a6a4d6f..05675d0a 100644 --- a/lib/advanced_billing/models/credit_scheme_request.rb +++ b/lib/advanced_billing/models/credit_scheme_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CreditSchemeRequest.new(credit_scheme: credit_scheme, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} credit_scheme: #{@credit_scheme}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} credit_scheme: #{@credit_scheme.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/currency_price.rb b/lib/advanced_billing/models/currency_price.rb index 162de1b1..77e176c3 100644 --- a/lib/advanced_billing/models/currency_price.rb +++ b/lib/advanced_billing/models/currency_price.rb @@ -124,5 +124,24 @@ def self.from_hash(hash) role: role, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, currency: #{@currency}, price: #{@price}, formatted_price:"\ + " #{@formatted_price}, price_id: #{@price_id}, price_point_id: #{@price_point_id},"\ + " product_price_point_id: #{@product_price_point_id}, role: #{@role}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, currency: #{@currency.inspect}, price:"\ + " #{@price.inspect}, formatted_price: #{@formatted_price.inspect}, price_id:"\ + " #{@price_id.inspect}, price_point_id: #{@price_point_id.inspect}, product_price_point_id:"\ + " #{@product_price_point_id.inspect}, role: #{@role.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/currency_prices_response.rb b/lib/advanced_billing/models/currency_prices_response.rb index 403d0ec2..6fa889b7 100644 --- a/lib/advanced_billing/models/currency_prices_response.rb +++ b/lib/advanced_billing/models/currency_prices_response.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) CurrencyPricesResponse.new(currency_prices: currency_prices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/custom_field_value_change.rb b/lib/advanced_billing/models/custom_field_value_change.rb index dd210eae..38f7b2d9 100644 --- a/lib/advanced_billing/models/custom_field_value_change.rb +++ b/lib/advanced_billing/models/custom_field_value_change.rb @@ -149,5 +149,24 @@ def self.validate(value) ->(val) { val.instance_of? Integer }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} event_type: #{@event_type}, metafield_name: #{@metafield_name},"\ + " metafield_id: #{@metafield_id}, old_value: #{@old_value}, new_value: #{@new_value},"\ + " resource_type: #{@resource_type}, resource_id: #{@resource_id}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} event_type: #{@event_type.inspect}, metafield_name:"\ + " #{@metafield_name.inspect}, metafield_id: #{@metafield_id.inspect}, old_value:"\ + " #{@old_value.inspect}, new_value: #{@new_value.inspect}, resource_type:"\ + " #{@resource_type.inspect}, resource_id: #{@resource_id.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/customer.rb b/lib/advanced_billing/models/customer.rb index c1b9a307..ee0ced81 100644 --- a/lib/advanced_billing/models/customer.rb +++ b/lib/advanced_billing/models/customer.rb @@ -434,5 +434,45 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name}, last_name: #{@last_name}, email: #{@email},"\ + " cc_emails: #{@cc_emails}, organization: #{@organization}, reference: #{@reference}, id:"\ + " #{@id}, created_at: #{@created_at}, updated_at: #{@updated_at}, address: #{@address},"\ + " address_2: #{@address_2}, city: #{@city}, state: #{@state}, state_name: #{@state_name},"\ + " zip: #{@zip}, country: #{@country}, country_name: #{@country_name}, phone: #{@phone},"\ + " verified: #{@verified}, portal_customer_created_at: #{@portal_customer_created_at},"\ + " portal_invite_last_sent_at: #{@portal_invite_last_sent_at},"\ + " portal_invite_last_accepted_at: #{@portal_invite_last_accepted_at}, tax_exempt:"\ + " #{@tax_exempt}, vat_number: #{@vat_number}, parent_id: #{@parent_id}, locale: #{@locale},"\ + " default_subscription_group_uid: #{@default_subscription_group_uid}, salesforce_id:"\ + " #{@salesforce_id}, tax_exempt_reason: #{@tax_exempt_reason},"\ + " default_auto_renewal_profile_id: #{@default_auto_renewal_profile_id},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\ + " email: #{@email.inspect}, cc_emails: #{@cc_emails.inspect}, organization:"\ + " #{@organization.inspect}, reference: #{@reference.inspect}, id: #{@id.inspect},"\ + " created_at: #{@created_at.inspect}, updated_at: #{@updated_at.inspect}, address:"\ + " #{@address.inspect}, address_2: #{@address_2.inspect}, city: #{@city.inspect}, state:"\ + " #{@state.inspect}, state_name: #{@state_name.inspect}, zip: #{@zip.inspect}, country:"\ + " #{@country.inspect}, country_name: #{@country_name.inspect}, phone: #{@phone.inspect},"\ + " verified: #{@verified.inspect}, portal_customer_created_at:"\ + " #{@portal_customer_created_at.inspect}, portal_invite_last_sent_at:"\ + " #{@portal_invite_last_sent_at.inspect}, portal_invite_last_accepted_at:"\ + " #{@portal_invite_last_accepted_at.inspect}, tax_exempt: #{@tax_exempt.inspect},"\ + " vat_number: #{@vat_number.inspect}, parent_id: #{@parent_id.inspect}, locale:"\ + " #{@locale.inspect}, default_subscription_group_uid:"\ + " #{@default_subscription_group_uid.inspect}, salesforce_id: #{@salesforce_id.inspect},"\ + " tax_exempt_reason: #{@tax_exempt_reason.inspect}, default_auto_renewal_profile_id:"\ + " #{@default_auto_renewal_profile_id.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/customer_attributes.rb b/lib/advanced_billing/models/customer_attributes.rb index f0d5f5b0..4deb5142 100644 --- a/lib/advanced_billing/models/customer_attributes.rb +++ b/lib/advanced_billing/models/customer_attributes.rb @@ -273,5 +273,32 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name}, last_name: #{@last_name}, email: #{@email},"\ + " cc_emails: #{@cc_emails}, organization: #{@organization}, reference: #{@reference},"\ + " address: #{@address}, address_2: #{@address_2}, city: #{@city}, state: #{@state}, zip:"\ + " #{@zip}, country: #{@country}, phone: #{@phone}, verified: #{@verified}, tax_exempt:"\ + " #{@tax_exempt}, vat_number: #{@vat_number}, metafields: #{@metafields}, parent_id:"\ + " #{@parent_id}, salesforce_id: #{@salesforce_id}, default_auto_renewal_profile_id:"\ + " #{@default_auto_renewal_profile_id}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\ + " email: #{@email.inspect}, cc_emails: #{@cc_emails.inspect}, organization:"\ + " #{@organization.inspect}, reference: #{@reference.inspect}, address: #{@address.inspect},"\ + " address_2: #{@address_2.inspect}, city: #{@city.inspect}, state: #{@state.inspect}, zip:"\ + " #{@zip.inspect}, country: #{@country.inspect}, phone: #{@phone.inspect}, verified:"\ + " #{@verified.inspect}, tax_exempt: #{@tax_exempt.inspect}, vat_number:"\ + " #{@vat_number.inspect}, metafields: #{@metafields.inspect}, parent_id:"\ + " #{@parent_id.inspect}, salesforce_id: #{@salesforce_id.inspect},"\ + " default_auto_renewal_profile_id: #{@default_auto_renewal_profile_id.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/customer_change.rb b/lib/advanced_billing/models/customer_change.rb index 97447b5c..cc4c8b7f 100644 --- a/lib/advanced_billing/models/customer_change.rb +++ b/lib/advanced_billing/models/customer_change.rb @@ -91,5 +91,21 @@ def self.from_hash(hash) custom_fields: custom_fields, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payer: #{@payer}, shipping_address: #{@shipping_address}, billing_address:"\ + " #{@billing_address}, custom_fields: #{@custom_fields}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payer: #{@payer.inspect}, shipping_address: #{@shipping_address.inspect},"\ + " billing_address: #{@billing_address.inspect}, custom_fields: #{@custom_fields.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/customer_changes_preview_response.rb b/lib/advanced_billing/models/customer_changes_preview_response.rb index 25a1f361..bcfc0189 100644 --- a/lib/advanced_billing/models/customer_changes_preview_response.rb +++ b/lib/advanced_billing/models/customer_changes_preview_response.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) CustomerChangesPreviewResponse.new(changes: changes, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} changes: #{@changes}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} changes: #{@changes.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/customer_custom_fields_change.rb b/lib/advanced_billing/models/customer_custom_fields_change.rb index 708fc4cd..bd53741f 100644 --- a/lib/advanced_billing/models/customer_custom_fields_change.rb +++ b/lib/advanced_billing/models/customer_custom_fields_change.rb @@ -79,5 +79,19 @@ def self.from_hash(hash) after: after, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} before: #{@before}, after: #{@after}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} before: #{@before.inspect}, after: #{@after.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/customer_error.rb b/lib/advanced_billing/models/customer_error.rb index 691a3fb0..a1075397 100644 --- a/lib/advanced_billing/models/customer_error.rb +++ b/lib/advanced_billing/models/customer_error.rb @@ -65,5 +65,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} customer: #{@customer}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} customer: #{@customer.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/customer_payer_change.rb b/lib/advanced_billing/models/customer_payer_change.rb index 9de22d19..914b20a4 100644 --- a/lib/advanced_billing/models/customer_payer_change.rb +++ b/lib/advanced_billing/models/customer_payer_change.rb @@ -61,5 +61,19 @@ def self.from_hash(hash) after: after, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} before: #{@before}, after: #{@after}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} before: #{@before.inspect}, after: #{@after.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/customer_response.rb b/lib/advanced_billing/models/customer_response.rb index 41812b4f..af9d3cc4 100644 --- a/lib/advanced_billing/models/customer_response.rb +++ b/lib/advanced_billing/models/customer_response.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) CustomerResponse.new(customer: customer, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} customer: #{@customer}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} customer: #{@customer.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/debit_note.rb b/lib/advanced_billing/models/debit_note.rb index 53d4ee88..c72b1c73 100644 --- a/lib/advanced_billing/models/debit_note.rb +++ b/lib/advanced_billing/models/debit_note.rb @@ -332,5 +332,35 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, site_id: #{@site_id}, customer_id: #{@customer_id},"\ + " subscription_id: #{@subscription_id}, number: #{@number}, sequence_number:"\ + " #{@sequence_number}, origin_credit_note_uid: #{@origin_credit_note_uid},"\ + " origin_credit_note_number: #{@origin_credit_note_number}, issue_date: #{@issue_date},"\ + " applied_date: #{@applied_date}, due_date: #{@due_date}, status: #{@status}, memo:"\ + " #{@memo}, role: #{@role}, currency: #{@currency}, seller: #{@seller}, customer:"\ + " #{@customer}, billing_address: #{@billing_address}, shipping_address:"\ + " #{@shipping_address}, line_items: #{@line_items}, discounts: #{@discounts}, taxes:"\ + " #{@taxes}, refunds: #{@refunds}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, site_id: #{@site_id.inspect}, customer_id:"\ + " #{@customer_id.inspect}, subscription_id: #{@subscription_id.inspect}, number:"\ + " #{@number.inspect}, sequence_number: #{@sequence_number.inspect}, origin_credit_note_uid:"\ + " #{@origin_credit_note_uid.inspect}, origin_credit_note_number:"\ + " #{@origin_credit_note_number.inspect}, issue_date: #{@issue_date.inspect}, applied_date:"\ + " #{@applied_date.inspect}, due_date: #{@due_date.inspect}, status: #{@status.inspect},"\ + " memo: #{@memo.inspect}, role: #{@role.inspect}, currency: #{@currency.inspect}, seller:"\ + " #{@seller.inspect}, customer: #{@customer.inspect}, billing_address:"\ + " #{@billing_address.inspect}, shipping_address: #{@shipping_address.inspect}, line_items:"\ + " #{@line_items.inspect}, discounts: #{@discounts.inspect}, taxes: #{@taxes.inspect},"\ + " refunds: #{@refunds.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/deduct_service_credit.rb b/lib/advanced_billing/models/deduct_service_credit.rb index f01f2290..664180fa 100644 --- a/lib/advanced_billing/models/deduct_service_credit.rb +++ b/lib/advanced_billing/models/deduct_service_credit.rb @@ -79,5 +79,19 @@ def self.validate(value) UnionTypeLookUp.get(:DeductServiceCreditAmount) .validate(value['amount']) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount}, memo: #{@memo}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount.inspect}, memo: #{@memo.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/deduct_service_credit_request.rb b/lib/advanced_billing/models/deduct_service_credit_request.rb index d8c0a9a9..0a407fb4 100644 --- a/lib/advanced_billing/models/deduct_service_credit_request.rb +++ b/lib/advanced_billing/models/deduct_service_credit_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) DeductServiceCreditRequest.new(deduction: deduction, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} deduction: #{@deduction}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} deduction: #{@deduction.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/delayed_cancellation_response.rb b/lib/advanced_billing/models/delayed_cancellation_response.rb index ea30eb93..714603cb 100644 --- a/lib/advanced_billing/models/delayed_cancellation_response.rb +++ b/lib/advanced_billing/models/delayed_cancellation_response.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) DelayedCancellationResponse.new(message: message, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} message: #{@message}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} message: #{@message.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/delete_subscription_group_response.rb b/lib/advanced_billing/models/delete_subscription_group_response.rb index 668ceadf..993852ff 100644 --- a/lib/advanced_billing/models/delete_subscription_group_response.rb +++ b/lib/advanced_billing/models/delete_subscription_group_response.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) deleted: deleted, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, deleted: #{@deleted}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, deleted: #{@deleted.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/dunner_data.rb b/lib/advanced_billing/models/dunner_data.rb index 164da4ee..e4282b57 100644 --- a/lib/advanced_billing/models/dunner_data.rb +++ b/lib/advanced_billing/models/dunner_data.rb @@ -148,5 +148,23 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} state: #{@state}, subscription_id: #{@subscription_id},"\ + " revenue_at_risk_in_cents: #{@revenue_at_risk_in_cents}, created_at: #{@created_at},"\ + " attempts: #{@attempts}, last_attempted_at: #{@last_attempted_at}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} state: #{@state.inspect}, subscription_id: #{@subscription_id.inspect},"\ + " revenue_at_risk_in_cents: #{@revenue_at_risk_in_cents.inspect}, created_at:"\ + " #{@created_at.inspect}, attempts: #{@attempts.inspect}, last_attempted_at:"\ + " #{@last_attempted_at.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/dunning_step_data.rb b/lib/advanced_billing/models/dunning_step_data.rb index 8f1639a2..9e5e256b 100644 --- a/lib/advanced_billing/models/dunning_step_data.rb +++ b/lib/advanced_billing/models/dunning_step_data.rb @@ -154,5 +154,24 @@ def self.validate(value) ->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} day_threshold: #{@day_threshold}, action: #{@action}, email_body:"\ + " #{@email_body}, email_subject: #{@email_subject}, send_email: #{@send_email},"\ + " send_bcc_email: #{@send_bcc_email}, send_sms: #{@send_sms}, sms_body: #{@sms_body},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} day_threshold: #{@day_threshold.inspect}, action: #{@action.inspect},"\ + " email_body: #{@email_body.inspect}, email_subject: #{@email_subject.inspect}, send_email:"\ + " #{@send_email.inspect}, send_bcc_email: #{@send_bcc_email.inspect}, send_sms:"\ + " #{@send_sms.inspect}, sms_body: #{@sms_body.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/dunning_step_reached.rb b/lib/advanced_billing/models/dunning_step_reached.rb index 593b6c7c..1aac016d 100644 --- a/lib/advanced_billing/models/dunning_step_reached.rb +++ b/lib/advanced_billing/models/dunning_step_reached.rb @@ -102,5 +102,19 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} dunner: #{@dunner}, current_step: #{@current_step}, next_step:"\ + " #{@next_step}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} dunner: #{@dunner.inspect}, current_step: #{@current_step.inspect},"\ + " next_step: #{@next_step.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/ebb_component.rb b/lib/advanced_billing/models/ebb_component.rb index 296d33b0..e23012af 100644 --- a/lib/advanced_billing/models/ebb_component.rb +++ b/lib/advanced_billing/models/ebb_component.rb @@ -262,5 +262,29 @@ def self.validate(value) ->(val) { val.instance_of? Integer }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, unit_name: #{@unit_name}, description: #{@description},"\ + " handle: #{@handle}, taxable: #{@taxable}, pricing_scheme: #{@pricing_scheme}, prices:"\ + " #{@prices}, price_points: #{@price_points}, unit_price: #{@unit_price}, tax_code:"\ + " #{@tax_code}, hide_date_range_on_invoice: #{@hide_date_range_on_invoice},"\ + " event_based_billing_metric_id: #{@event_based_billing_metric_id}, interval: #{@interval},"\ + " interval_unit: #{@interval_unit}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, unit_name: #{@unit_name.inspect}, description:"\ + " #{@description.inspect}, handle: #{@handle.inspect}, taxable: #{@taxable.inspect},"\ + " pricing_scheme: #{@pricing_scheme.inspect}, prices: #{@prices.inspect}, price_points:"\ + " #{@price_points.inspect}, unit_price: #{@unit_price.inspect}, tax_code:"\ + " #{@tax_code.inspect}, hide_date_range_on_invoice: #{@hide_date_range_on_invoice.inspect},"\ + " event_based_billing_metric_id: #{@event_based_billing_metric_id.inspect}, interval:"\ + " #{@interval.inspect}, interval_unit: #{@interval_unit.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/ebb_event.rb b/lib/advanced_billing/models/ebb_event.rb index 58d97321..29a3315f 100644 --- a/lib/advanced_billing/models/ebb_event.rb +++ b/lib/advanced_billing/models/ebb_event.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) EBBEvent.new(chargify: chargify, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} chargify: #{@chargify}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} chargify: #{@chargify.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/enable_webhooks_request.rb b/lib/advanced_billing/models/enable_webhooks_request.rb index 61d83584..4da5628b 100644 --- a/lib/advanced_billing/models/enable_webhooks_request.rb +++ b/lib/advanced_billing/models/enable_webhooks_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) EnableWebhooksRequest.new(webhooks_enabled: webhooks_enabled, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} webhooks_enabled: #{@webhooks_enabled}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} webhooks_enabled: #{@webhooks_enabled.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/enable_webhooks_response.rb b/lib/advanced_billing/models/enable_webhooks_response.rb index 05a77e02..25565e2b 100644 --- a/lib/advanced_billing/models/enable_webhooks_response.rb +++ b/lib/advanced_billing/models/enable_webhooks_response.rb @@ -56,5 +56,19 @@ def self.from_hash(hash) EnableWebhooksResponse.new(webhooks_enabled: webhooks_enabled, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} webhooks_enabled: #{@webhooks_enabled}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} webhooks_enabled: #{@webhooks_enabled.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/endpoint.rb b/lib/advanced_billing/models/endpoint.rb index 6434909a..fedb8b27 100644 --- a/lib/advanced_billing/models/endpoint.rb +++ b/lib/advanced_billing/models/endpoint.rb @@ -93,5 +93,21 @@ def self.from_hash(hash) webhook_subscriptions: webhook_subscriptions, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, url: #{@url}, site_id: #{@site_id}, status: #{@status},"\ + " webhook_subscriptions: #{@webhook_subscriptions}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, url: #{@url.inspect}, site_id: #{@site_id.inspect},"\ + " status: #{@status.inspect}, webhook_subscriptions: #{@webhook_subscriptions.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/endpoint_response.rb b/lib/advanced_billing/models/endpoint_response.rb index ad8f97b4..2b67b18a 100644 --- a/lib/advanced_billing/models/endpoint_response.rb +++ b/lib/advanced_billing/models/endpoint_response.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) EndpointResponse.new(endpoint: endpoint, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} endpoint: #{@endpoint}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} endpoint: #{@endpoint.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/errors.rb b/lib/advanced_billing/models/errors.rb index 8bdda610..4ae713f8 100644 --- a/lib/advanced_billing/models/errors.rb +++ b/lib/advanced_billing/models/errors.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) price_point: price_point, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} per_page: #{@per_page}, price_point: #{@price_point},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} per_page: #{@per_page.inspect}, price_point: #{@price_point.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/event.rb b/lib/advanced_billing/models/event.rb index b23eb099..e626a6c7 100644 --- a/lib/advanced_billing/models/event.rb +++ b/lib/advanced_billing/models/event.rb @@ -218,5 +218,23 @@ def self.validate(value) .validate(value['event_specific_data']) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, key: #{@key}, message: #{@message}, subscription_id:"\ + " #{@subscription_id}, customer_id: #{@customer_id}, created_at: #{@created_at},"\ + " event_specific_data: #{@event_specific_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, key: #{@key.inspect}, message: #{@message.inspect},"\ + " subscription_id: #{@subscription_id.inspect}, customer_id: #{@customer_id.inspect},"\ + " created_at: #{@created_at.inspect}, event_specific_data: #{@event_specific_data.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/event_based_billing_segment_error.rb b/lib/advanced_billing/models/event_based_billing_segment_error.rb index 6b14894e..b0450a8a 100644 --- a/lib/advanced_billing/models/event_based_billing_segment_error.rb +++ b/lib/advanced_billing/models/event_based_billing_segment_error.rb @@ -56,5 +56,19 @@ def self.from_hash(hash) EventBasedBillingSegmentError.new(segments: segments, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} segments: #{@segments}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} segments: #{@segments.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/event_response.rb b/lib/advanced_billing/models/event_response.rb index bd895b3e..902db8ba 100644 --- a/lib/advanced_billing/models/event_response.rb +++ b/lib/advanced_billing/models/event_response.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) EventResponse.new(event: event, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} event: #{@event}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} event: #{@event.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/failed_payment_event.rb b/lib/advanced_billing/models/failed_payment_event.rb index 701bcc6c..d3247e78 100644 --- a/lib/advanced_billing/models/failed_payment_event.rb +++ b/lib/advanced_billing/models/failed_payment_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/failed_payment_event_data.rb b/lib/advanced_billing/models/failed_payment_event_data.rb index 58957dd5..f0221803 100644 --- a/lib/advanced_billing/models/failed_payment_event_data.rb +++ b/lib/advanced_billing/models/failed_payment_event_data.rb @@ -124,5 +124,22 @@ def self.validate(value) ->(val) { val.instance_of? Integer }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount_in_cents: #{@amount_in_cents}, applied_amount: #{@applied_amount},"\ + " memo: #{@memo}, payment_method: #{@payment_method}, transaction_id: #{@transaction_id},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount_in_cents: #{@amount_in_cents.inspect}, applied_amount:"\ + " #{@applied_amount.inspect}, memo: #{@memo.inspect}, payment_method:"\ + " #{@payment_method.inspect}, transaction_id: #{@transaction_id.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/full_subscription_group_response.rb b/lib/advanced_billing/models/full_subscription_group_response.rb index ab0116a4..b96e23fd 100644 --- a/lib/advanced_billing/models/full_subscription_group_response.rb +++ b/lib/advanced_billing/models/full_subscription_group_response.rb @@ -533,5 +533,30 @@ def self.from_hash(hash) def to_custom_next_assessment_at DateTimeHelper.to_rfc3339(next_assessment_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, scheme: #{@scheme}, customer_id: #{@customer_id},"\ + " payment_profile_id: #{@payment_profile_id}, subscription_ids: #{@subscription_ids},"\ + " primary_subscription_id: #{@primary_subscription_id}, next_assessment_at:"\ + " #{@next_assessment_at}, state: #{@state}, cancel_at_end_of_period:"\ + " #{@cancel_at_end_of_period}, current_billing_amount_in_cents:"\ + " #{@current_billing_amount_in_cents}, customer: #{@customer}, account_balances:"\ + " #{@account_balances}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, scheme: #{@scheme.inspect}, customer_id:"\ + " #{@customer_id.inspect}, payment_profile_id: #{@payment_profile_id.inspect},"\ + " subscription_ids: #{@subscription_ids.inspect}, primary_subscription_id:"\ + " #{@primary_subscription_id.inspect}, next_assessment_at: #{@next_assessment_at.inspect},"\ + " state: #{@state.inspect}, cancel_at_end_of_period: #{@cancel_at_end_of_period.inspect},"\ + " current_billing_amount_in_cents: #{@current_billing_amount_in_cents.inspect}, customer:"\ + " #{@customer.inspect}, account_balances: #{@account_balances.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/get_one_time_token_payment_profile.rb b/lib/advanced_billing/models/get_one_time_token_payment_profile.rb index e3a75736..7b4d6f33 100644 --- a/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +++ b/lib/advanced_billing/models/get_one_time_token_payment_profile.rb @@ -253,5 +253,37 @@ def self.from_hash(hash) gateway_handle: gateway_handle, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, first_name: #{@first_name}, last_name: #{@last_name},"\ + " masked_card_number: #{@masked_card_number}, card_type: #{@card_type}, expiration_month:"\ + " #{@expiration_month}, expiration_year: #{@expiration_year}, customer_id: #{@customer_id},"\ + " current_vault: #{@current_vault}, vault_token: #{@vault_token}, billing_address:"\ + " #{@billing_address}, billing_address_2: #{@billing_address_2}, billing_city:"\ + " #{@billing_city}, billing_country: #{@billing_country}, billing_state: #{@billing_state},"\ + " billing_zip: #{@billing_zip}, payment_type: #{@payment_type}, disabled: #{@disabled},"\ + " site_gateway_setting_id: #{@site_gateway_setting_id}, customer_vault_token:"\ + " #{@customer_vault_token}, gateway_handle: #{@gateway_handle}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, first_name: #{@first_name.inspect}, last_name:"\ + " #{@last_name.inspect}, masked_card_number: #{@masked_card_number.inspect}, card_type:"\ + " #{@card_type.inspect}, expiration_month: #{@expiration_month.inspect}, expiration_year:"\ + " #{@expiration_year.inspect}, customer_id: #{@customer_id.inspect}, current_vault:"\ + " #{@current_vault.inspect}, vault_token: #{@vault_token.inspect}, billing_address:"\ + " #{@billing_address.inspect}, billing_address_2: #{@billing_address_2.inspect},"\ + " billing_city: #{@billing_city.inspect}, billing_country: #{@billing_country.inspect},"\ + " billing_state: #{@billing_state.inspect}, billing_zip: #{@billing_zip.inspect},"\ + " payment_type: #{@payment_type.inspect}, disabled: #{@disabled.inspect},"\ + " site_gateway_setting_id: #{@site_gateway_setting_id.inspect}, customer_vault_token:"\ + " #{@customer_vault_token.inspect}, gateway_handle: #{@gateway_handle.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/get_one_time_token_request.rb b/lib/advanced_billing/models/get_one_time_token_request.rb index dcef9642..740d37fe 100644 --- a/lib/advanced_billing/models/get_one_time_token_request.rb +++ b/lib/advanced_billing/models/get_one_time_token_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) GetOneTimeTokenRequest.new(payment_profile: payment_profile, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile: #{@payment_profile}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile: #{@payment_profile.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/group_billing.rb b/lib/advanced_billing/models/group_billing.rb index 6dbd82f0..ce1d221d 100644 --- a/lib/advanced_billing/models/group_billing.rb +++ b/lib/advanced_billing/models/group_billing.rb @@ -91,5 +91,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} accrue: #{@accrue}, align_date: #{@align_date}, prorate: #{@prorate},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} accrue: #{@accrue.inspect}, align_date: #{@align_date.inspect}, prorate:"\ + " #{@prorate.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/group_settings.rb b/lib/advanced_billing/models/group_settings.rb index d42b8af9..52cb8d5e 100644 --- a/lib/advanced_billing/models/group_settings.rb +++ b/lib/advanced_billing/models/group_settings.rb @@ -81,5 +81,19 @@ def self.validate(value) ->(val) { GroupTarget.validate(val) }, is_model_hash: true) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} target: #{@target}, billing: #{@billing}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} target: #{@target.inspect}, billing: #{@billing.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/group_target.rb b/lib/advanced_billing/models/group_target.rb index ba99477d..ae51a139 100644 --- a/lib/advanced_billing/models/group_target.rb +++ b/lib/advanced_billing/models/group_target.rb @@ -80,5 +80,19 @@ def self.validate(value) APIHelper.valid_type?(value['type'], ->(val) { GroupTargetType.validate(val) }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} type: #{@type}, id: #{@id}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} type: #{@type.inspect}, id: #{@id.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/historic_usage.rb b/lib/advanced_billing/models/historic_usage.rb index 4763b9d6..199906ad 100644 --- a/lib/advanced_billing/models/historic_usage.rb +++ b/lib/advanced_billing/models/historic_usage.rb @@ -103,5 +103,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} total_usage_quantity: #{@total_usage_quantity}, billing_period_starts_at:"\ + " #{@billing_period_starts_at}, billing_period_ends_at: #{@billing_period_ends_at},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} total_usage_quantity: #{@total_usage_quantity.inspect},"\ + " billing_period_starts_at: #{@billing_period_starts_at.inspect}, billing_period_ends_at:"\ + " #{@billing_period_ends_at.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice.rb b/lib/advanced_billing/models/invoice.rb index aca03acd..dfb5b12a 100644 --- a/lib/advanced_billing/models/invoice.rb +++ b/lib/advanced_billing/models/invoice.rb @@ -767,5 +767,67 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, uid: #{@uid}, site_id: #{@site_id}, customer_id:"\ + " #{@customer_id}, subscription_id: #{@subscription_id}, number: #{@number},"\ + " sequence_number: #{@sequence_number}, transaction_time: #{@transaction_time}, created_at:"\ + " #{@created_at}, updated_at: #{@updated_at}, issue_date: #{@issue_date}, due_date:"\ + " #{@due_date}, paid_date: #{@paid_date}, status: #{@status}, role: #{@role},"\ + " parent_invoice_id: #{@parent_invoice_id}, collection_method: #{@collection_method},"\ + " payment_instructions: #{@payment_instructions}, currency: #{@currency},"\ + " consolidation_level: #{@consolidation_level}, parent_invoice_uid: #{@parent_invoice_uid},"\ + " subscription_group_id: #{@subscription_group_id}, parent_invoice_number:"\ + " #{@parent_invoice_number}, group_primary_subscription_id:"\ + " #{@group_primary_subscription_id}, product_name: #{@product_name}, product_family_name:"\ + " #{@product_family_name}, seller: #{@seller}, customer: #{@customer}, payer: #{@payer},"\ + " recipient_emails: #{@recipient_emails}, net_terms: #{@net_terms}, memo: #{@memo},"\ + " billing_address: #{@billing_address}, shipping_address: #{@shipping_address},"\ + " subtotal_amount: #{@subtotal_amount}, discount_amount: #{@discount_amount}, tax_amount:"\ + " #{@tax_amount}, total_amount: #{@total_amount}, credit_amount: #{@credit_amount},"\ + " debit_amount: #{@debit_amount}, refund_amount: #{@refund_amount}, paid_amount:"\ + " #{@paid_amount}, due_amount: #{@due_amount}, line_items: #{@line_items}, discounts:"\ + " #{@discounts}, taxes: #{@taxes}, credits: #{@credits}, debits: #{@debits}, refunds:"\ + " #{@refunds}, payments: #{@payments}, custom_fields: #{@custom_fields}, display_settings:"\ + " #{@display_settings}, avatax_details: #{@avatax_details}, public_url: #{@public_url},"\ + " previous_balance_data: #{@previous_balance_data}, public_url_expires_on:"\ + " #{@public_url_expires_on}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, uid: #{@uid.inspect}, site_id: #{@site_id.inspect},"\ + " customer_id: #{@customer_id.inspect}, subscription_id: #{@subscription_id.inspect},"\ + " number: #{@number.inspect}, sequence_number: #{@sequence_number.inspect},"\ + " transaction_time: #{@transaction_time.inspect}, created_at: #{@created_at.inspect},"\ + " updated_at: #{@updated_at.inspect}, issue_date: #{@issue_date.inspect}, due_date:"\ + " #{@due_date.inspect}, paid_date: #{@paid_date.inspect}, status: #{@status.inspect}, role:"\ + " #{@role.inspect}, parent_invoice_id: #{@parent_invoice_id.inspect}, collection_method:"\ + " #{@collection_method.inspect}, payment_instructions: #{@payment_instructions.inspect},"\ + " currency: #{@currency.inspect}, consolidation_level: #{@consolidation_level.inspect},"\ + " parent_invoice_uid: #{@parent_invoice_uid.inspect}, subscription_group_id:"\ + " #{@subscription_group_id.inspect}, parent_invoice_number:"\ + " #{@parent_invoice_number.inspect}, group_primary_subscription_id:"\ + " #{@group_primary_subscription_id.inspect}, product_name: #{@product_name.inspect},"\ + " product_family_name: #{@product_family_name.inspect}, seller: #{@seller.inspect},"\ + " customer: #{@customer.inspect}, payer: #{@payer.inspect}, recipient_emails:"\ + " #{@recipient_emails.inspect}, net_terms: #{@net_terms.inspect}, memo: #{@memo.inspect},"\ + " billing_address: #{@billing_address.inspect}, shipping_address:"\ + " #{@shipping_address.inspect}, subtotal_amount: #{@subtotal_amount.inspect},"\ + " discount_amount: #{@discount_amount.inspect}, tax_amount: #{@tax_amount.inspect},"\ + " total_amount: #{@total_amount.inspect}, credit_amount: #{@credit_amount.inspect},"\ + " debit_amount: #{@debit_amount.inspect}, refund_amount: #{@refund_amount.inspect},"\ + " paid_amount: #{@paid_amount.inspect}, due_amount: #{@due_amount.inspect}, line_items:"\ + " #{@line_items.inspect}, discounts: #{@discounts.inspect}, taxes: #{@taxes.inspect},"\ + " credits: #{@credits.inspect}, debits: #{@debits.inspect}, refunds: #{@refunds.inspect},"\ + " payments: #{@payments.inspect}, custom_fields: #{@custom_fields.inspect},"\ + " display_settings: #{@display_settings.inspect}, avatax_details:"\ + " #{@avatax_details.inspect}, public_url: #{@public_url.inspect}, previous_balance_data:"\ + " #{@previous_balance_data.inspect}, public_url_expires_on:"\ + " #{@public_url_expires_on.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_address.rb b/lib/advanced_billing/models/invoice_address.rb index 91100f06..f10d8459 100644 --- a/lib/advanced_billing/models/invoice_address.rb +++ b/lib/advanced_billing/models/invoice_address.rb @@ -118,5 +118,20 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} street: #{@street}, line2: #{@line2}, city: #{@city}, state: #{@state},"\ + " zip: #{@zip}, country: #{@country}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} street: #{@street.inspect}, line2: #{@line2.inspect}, city:"\ + " #{@city.inspect}, state: #{@state.inspect}, zip: #{@zip.inspect}, country:"\ + " #{@country.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_avatax_details.rb b/lib/advanced_billing/models/invoice_avatax_details.rb index 6ca97961..c3809c1a 100644 --- a/lib/advanced_billing/models/invoice_avatax_details.rb +++ b/lib/advanced_billing/models/invoice_avatax_details.rb @@ -126,5 +126,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, status: #{@status}, document_code: #{@document_code},"\ + " commit_date: #{@commit_date}, modify_date: #{@modify_date}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, status: #{@status.inspect}, document_code:"\ + " #{@document_code.inspect}, commit_date: #{@commit_date.inspect}, modify_date:"\ + " #{@modify_date.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_balance_item.rb b/lib/advanced_billing/models/invoice_balance_item.rb index 5aa66563..b9f198ce 100644 --- a/lib/advanced_billing/models/invoice_balance_item.rb +++ b/lib/advanced_billing/models/invoice_balance_item.rb @@ -85,5 +85,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, number: #{@number}, outstanding_amount:"\ + " #{@outstanding_amount}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, number: #{@number.inspect}, outstanding_amount:"\ + " #{@outstanding_amount.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_credit.rb b/lib/advanced_billing/models/invoice_credit.rb index 1a6f888f..83f38f9f 100644 --- a/lib/advanced_billing/models/invoice_credit.rb +++ b/lib/advanced_billing/models/invoice_credit.rb @@ -134,5 +134,24 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, credit_note_number: #{@credit_note_number}, credit_note_uid:"\ + " #{@credit_note_uid}, transaction_time: #{@transaction_time}, memo: #{@memo},"\ + " original_amount: #{@original_amount}, applied_amount: #{@applied_amount},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, credit_note_number: #{@credit_note_number.inspect},"\ + " credit_note_uid: #{@credit_note_uid.inspect}, transaction_time:"\ + " #{@transaction_time.inspect}, memo: #{@memo.inspect}, original_amount:"\ + " #{@original_amount.inspect}, applied_amount: #{@applied_amount.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_custom_field.rb b/lib/advanced_billing/models/invoice_custom_field.rb index 8bdd1e04..dfd4a0b6 100644 --- a/lib/advanced_billing/models/invoice_custom_field.rb +++ b/lib/advanced_billing/models/invoice_custom_field.rb @@ -102,5 +102,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} owner_id: #{@owner_id}, owner_type: #{@owner_type}, name: #{@name}, value:"\ + " #{@value}, metadatum_id: #{@metadatum_id}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} owner_id: #{@owner_id.inspect}, owner_type: #{@owner_type.inspect}, name:"\ + " #{@name.inspect}, value: #{@value.inspect}, metadatum_id: #{@metadatum_id.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_customer.rb b/lib/advanced_billing/models/invoice_customer.rb index 1c794344..1258bc1b 100644 --- a/lib/advanced_billing/models/invoice_customer.rb +++ b/lib/advanced_billing/models/invoice_customer.rb @@ -127,5 +127,23 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} chargify_id: #{@chargify_id}, first_name: #{@first_name}, last_name:"\ + " #{@last_name}, organization: #{@organization}, email: #{@email}, vat_number:"\ + " #{@vat_number}, reference: #{@reference}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} chargify_id: #{@chargify_id.inspect}, first_name: #{@first_name.inspect},"\ + " last_name: #{@last_name.inspect}, organization: #{@organization.inspect}, email:"\ + " #{@email.inspect}, vat_number: #{@vat_number.inspect}, reference: #{@reference.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_debit.rb b/lib/advanced_billing/models/invoice_debit.rb index 512207c5..b131ed33 100644 --- a/lib/advanced_billing/models/invoice_debit.rb +++ b/lib/advanced_billing/models/invoice_debit.rb @@ -144,5 +144,24 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, debit_note_number: #{@debit_note_number}, debit_note_uid:"\ + " #{@debit_note_uid}, role: #{@role}, transaction_time: #{@transaction_time}, memo:"\ + " #{@memo}, original_amount: #{@original_amount}, applied_amount: #{@applied_amount},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, debit_note_number: #{@debit_note_number.inspect},"\ + " debit_note_uid: #{@debit_note_uid.inspect}, role: #{@role.inspect}, transaction_time:"\ + " #{@transaction_time.inspect}, memo: #{@memo.inspect}, original_amount:"\ + " #{@original_amount.inspect}, applied_amount: #{@applied_amount.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_discount.rb b/lib/advanced_billing/models/invoice_discount.rb index feee67ca..44b225bd 100644 --- a/lib/advanced_billing/models/invoice_discount.rb +++ b/lib/advanced_billing/models/invoice_discount.rb @@ -182,5 +182,28 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, title: #{@title}, description: #{@description}, code:"\ + " #{@code}, source_type: #{@source_type}, source_id: #{@source_id}, discount_type:"\ + " #{@discount_type}, percentage: #{@percentage}, eligible_amount: #{@eligible_amount},"\ + " discount_amount: #{@discount_amount}, transaction_id: #{@transaction_id},"\ + " line_item_breakouts: #{@line_item_breakouts}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, title: #{@title.inspect}, description:"\ + " #{@description.inspect}, code: #{@code.inspect}, source_type: #{@source_type.inspect},"\ + " source_id: #{@source_id.inspect}, discount_type: #{@discount_type.inspect}, percentage:"\ + " #{@percentage.inspect}, eligible_amount: #{@eligible_amount.inspect}, discount_amount:"\ + " #{@discount_amount.inspect}, transaction_id: #{@transaction_id.inspect},"\ + " line_item_breakouts: #{@line_item_breakouts.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_discount_breakout.rb b/lib/advanced_billing/models/invoice_discount_breakout.rb index e5a44472..1c02f712 100644 --- a/lib/advanced_billing/models/invoice_discount_breakout.rb +++ b/lib/advanced_billing/models/invoice_discount_breakout.rb @@ -86,5 +86,20 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, eligible_amount: #{@eligible_amount}, discount_amount:"\ + " #{@discount_amount}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, eligible_amount: #{@eligible_amount.inspect},"\ + " discount_amount: #{@discount_amount.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_display_settings.rb b/lib/advanced_billing/models/invoice_display_settings.rb index 7647f07b..2c78eb58 100644 --- a/lib/advanced_billing/models/invoice_display_settings.rb +++ b/lib/advanced_billing/models/invoice_display_settings.rb @@ -80,5 +80,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} hide_zero_subtotal_lines: #{@hide_zero_subtotal_lines},"\ + " include_discounts_on_lines: #{@include_discounts_on_lines}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} hide_zero_subtotal_lines: #{@hide_zero_subtotal_lines.inspect},"\ + " include_discounts_on_lines: #{@include_discounts_on_lines.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_issued.rb b/lib/advanced_billing/models/invoice_issued.rb index 7fdf8017..9fcb39ba 100644 --- a/lib/advanced_billing/models/invoice_issued.rb +++ b/lib/advanced_billing/models/invoice_issued.rb @@ -258,5 +258,29 @@ def self.validate(value) is_inner_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, number: #{@number}, role: #{@role}, due_date: #{@due_date},"\ + " issue_date: #{@issue_date}, paid_date: #{@paid_date}, due_amount: #{@due_amount},"\ + " paid_amount: #{@paid_amount}, tax_amount: #{@tax_amount}, refund_amount:"\ + " #{@refund_amount}, total_amount: #{@total_amount}, status_amount: #{@status_amount},"\ + " product_name: #{@product_name}, consolidation_level: #{@consolidation_level}, line_items:"\ + " #{@line_items}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, number: #{@number.inspect}, role: #{@role.inspect},"\ + " due_date: #{@due_date.inspect}, issue_date: #{@issue_date.inspect}, paid_date:"\ + " #{@paid_date.inspect}, due_amount: #{@due_amount.inspect}, paid_amount:"\ + " #{@paid_amount.inspect}, tax_amount: #{@tax_amount.inspect}, refund_amount:"\ + " #{@refund_amount.inspect}, total_amount: #{@total_amount.inspect}, status_amount:"\ + " #{@status_amount.inspect}, product_name: #{@product_name.inspect}, consolidation_level:"\ + " #{@consolidation_level.inspect}, line_items: #{@line_items.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_line_item.rb b/lib/advanced_billing/models/invoice_line_item.rb index fb8102e2..96a0bcfb 100644 --- a/lib/advanced_billing/models/invoice_line_item.rb +++ b/lib/advanced_billing/models/invoice_line_item.rb @@ -347,5 +347,39 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, title: #{@title}, description: #{@description}, quantity:"\ + " #{@quantity}, unit_price: #{@unit_price}, subtotal_amount: #{@subtotal_amount},"\ + " discount_amount: #{@discount_amount}, tax_amount: #{@tax_amount}, total_amount:"\ + " #{@total_amount}, tiered_unit_price: #{@tiered_unit_price}, period_range_start:"\ + " #{@period_range_start}, period_range_end: #{@period_range_end}, transaction_id:"\ + " #{@transaction_id}, product_id: #{@product_id}, product_version: #{@product_version},"\ + " component_id: #{@component_id}, price_point_id: #{@price_point_id},"\ + " billing_schedule_item_id: #{@billing_schedule_item_id}, hide: #{@hide},"\ + " component_cost_data: #{@component_cost_data}, product_price_point_id:"\ + " #{@product_price_point_id}, custom_item: #{@custom_item}, kind: #{@kind},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, title: #{@title.inspect}, description:"\ + " #{@description.inspect}, quantity: #{@quantity.inspect}, unit_price:"\ + " #{@unit_price.inspect}, subtotal_amount: #{@subtotal_amount.inspect}, discount_amount:"\ + " #{@discount_amount.inspect}, tax_amount: #{@tax_amount.inspect}, total_amount:"\ + " #{@total_amount.inspect}, tiered_unit_price: #{@tiered_unit_price.inspect},"\ + " period_range_start: #{@period_range_start.inspect}, period_range_end:"\ + " #{@period_range_end.inspect}, transaction_id: #{@transaction_id.inspect}, product_id:"\ + " #{@product_id.inspect}, product_version: #{@product_version.inspect}, component_id:"\ + " #{@component_id.inspect}, price_point_id: #{@price_point_id.inspect},"\ + " billing_schedule_item_id: #{@billing_schedule_item_id.inspect}, hide: #{@hide.inspect},"\ + " component_cost_data: #{@component_cost_data.inspect}, product_price_point_id:"\ + " #{@product_price_point_id.inspect}, custom_item: #{@custom_item.inspect}, kind:"\ + " #{@kind.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb b/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb index 802f5e75..e0f9fc06 100644 --- a/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +++ b/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb @@ -74,5 +74,18 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} rates: #{@rates}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} rates: #{@rates.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_line_item_event_data.rb b/lib/advanced_billing/models/invoice_line_item_event_data.rb index 2de9d133..6f85dec3 100644 --- a/lib/advanced_billing/models/invoice_line_item_event_data.rb +++ b/lib/advanced_billing/models/invoice_line_item_event_data.rb @@ -270,5 +270,35 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, title: #{@title}, description: #{@description}, quantity:"\ + " #{@quantity}, quantity_delta: #{@quantity_delta}, unit_price: #{@unit_price},"\ + " period_range_start: #{@period_range_start}, period_range_end: #{@period_range_end},"\ + " amount: #{@amount}, line_references: #{@line_references}, pricing_details_index:"\ + " #{@pricing_details_index}, pricing_details: #{@pricing_details}, tax_code: #{@tax_code},"\ + " tax_amount: #{@tax_amount}, product_id: #{@product_id}, product_price_point_id:"\ + " #{@product_price_point_id}, price_point_id: #{@price_point_id}, component_id:"\ + " #{@component_id}, billing_schedule_item_id: #{@billing_schedule_item_id}, custom_item:"\ + " #{@custom_item}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, title: #{@title.inspect}, description:"\ + " #{@description.inspect}, quantity: #{@quantity.inspect}, quantity_delta:"\ + " #{@quantity_delta.inspect}, unit_price: #{@unit_price.inspect}, period_range_start:"\ + " #{@period_range_start.inspect}, period_range_end: #{@period_range_end.inspect}, amount:"\ + " #{@amount.inspect}, line_references: #{@line_references.inspect}, pricing_details_index:"\ + " #{@pricing_details_index.inspect}, pricing_details: #{@pricing_details.inspect}, tax_code:"\ + " #{@tax_code.inspect}, tax_amount: #{@tax_amount.inspect}, product_id:"\ + " #{@product_id.inspect}, product_price_point_id: #{@product_price_point_id.inspect},"\ + " price_point_id: #{@price_point_id.inspect}, component_id: #{@component_id.inspect},"\ + " billing_schedule_item_id: #{@billing_schedule_item_id.inspect}, custom_item:"\ + " #{@custom_item.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb b/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb index 9e95e11d..ed284642 100644 --- a/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +++ b/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb @@ -74,5 +74,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} label: #{@label}, amount: #{@amount}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} label: #{@label.inspect}, amount: #{@amount.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_payer.rb b/lib/advanced_billing/models/invoice_payer.rb index b8107754..fceae333 100644 --- a/lib/advanced_billing/models/invoice_payer.rb +++ b/lib/advanced_billing/models/invoice_payer.rb @@ -115,5 +115,22 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} chargify_id: #{@chargify_id}, first_name: #{@first_name}, last_name:"\ + " #{@last_name}, organization: #{@organization}, email: #{@email}, vat_number:"\ + " #{@vat_number}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} chargify_id: #{@chargify_id.inspect}, first_name: #{@first_name.inspect},"\ + " last_name: #{@last_name.inspect}, organization: #{@organization.inspect}, email:"\ + " #{@email.inspect}, vat_number: #{@vat_number.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_payer_change.rb b/lib/advanced_billing/models/invoice_payer_change.rb index 26df8624..3b508911 100644 --- a/lib/advanced_billing/models/invoice_payer_change.rb +++ b/lib/advanced_billing/models/invoice_payer_change.rb @@ -83,5 +83,20 @@ def self.from_hash(hash) email: email, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name}, last_name: #{@last_name}, organization:"\ + " #{@organization}, email: #{@email}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\ + " organization: #{@organization.inspect}, email: #{@email.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_payment.rb b/lib/advanced_billing/models/invoice_payment.rb index 9919c47b..3c3733c4 100644 --- a/lib/advanced_billing/models/invoice_payment.rb +++ b/lib/advanced_billing/models/invoice_payment.rb @@ -191,5 +191,28 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} transaction_time: #{@transaction_time}, memo: #{@memo}, original_amount:"\ + " #{@original_amount}, applied_amount: #{@applied_amount}, payment_method:"\ + " #{@payment_method}, transaction_id: #{@transaction_id}, prepayment: #{@prepayment},"\ + " gateway_handle: #{@gateway_handle}, gateway_used: #{@gateway_used},"\ + " gateway_transaction_id: #{@gateway_transaction_id}, received_on: #{@received_on}, uid:"\ + " #{@uid}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} transaction_time: #{@transaction_time.inspect}, memo: #{@memo.inspect},"\ + " original_amount: #{@original_amount.inspect}, applied_amount: #{@applied_amount.inspect},"\ + " payment_method: #{@payment_method.inspect}, transaction_id: #{@transaction_id.inspect},"\ + " prepayment: #{@prepayment.inspect}, gateway_handle: #{@gateway_handle.inspect},"\ + " gateway_used: #{@gateway_used.inspect}, gateway_transaction_id:"\ + " #{@gateway_transaction_id.inspect}, received_on: #{@received_on.inspect}, uid:"\ + " #{@uid.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_payment_application.rb b/lib/advanced_billing/models/invoice_payment_application.rb index 4fc79549..7c968c3d 100644 --- a/lib/advanced_billing/models/invoice_payment_application.rb +++ b/lib/advanced_billing/models/invoice_payment_application.rb @@ -78,5 +78,20 @@ def self.from_hash(hash) applied_amount: applied_amount, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} invoice_uid: #{@invoice_uid}, application_uid: #{@application_uid},"\ + " applied_amount: #{@applied_amount}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} invoice_uid: #{@invoice_uid.inspect}, application_uid:"\ + " #{@application_uid.inspect}, applied_amount: #{@applied_amount.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_payment_method.rb b/lib/advanced_billing/models/invoice_payment_method.rb index cb263cb3..0e1f8deb 100644 --- a/lib/advanced_billing/models/invoice_payment_method.rb +++ b/lib/advanced_billing/models/invoice_payment_method.rb @@ -134,5 +134,24 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} details: #{@details}, kind: #{@kind}, memo: #{@memo}, type: #{@type},"\ + " card_brand: #{@card_brand}, card_expiration: #{@card_expiration}, last_four:"\ + " #{@last_four}, masked_card_number: #{@masked_card_number}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} details: #{@details.inspect}, kind: #{@kind.inspect}, memo:"\ + " #{@memo.inspect}, type: #{@type.inspect}, card_brand: #{@card_brand.inspect},"\ + " card_expiration: #{@card_expiration.inspect}, last_four: #{@last_four.inspect},"\ + " masked_card_number: #{@masked_card_number.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_pre_payment.rb b/lib/advanced_billing/models/invoice_pre_payment.rb index 03a998b5..c62ba1cc 100644 --- a/lib/advanced_billing/models/invoice_pre_payment.rb +++ b/lib/advanced_billing/models/invoice_pre_payment.rb @@ -79,5 +79,21 @@ def self.from_hash(hash) ending_balance_in_cents: ending_balance_in_cents, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_id: #{@subscription_id}, amount_in_cents: #{@amount_in_cents},"\ + " ending_balance_in_cents: #{@ending_balance_in_cents}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_id: #{@subscription_id.inspect}, amount_in_cents:"\ + " #{@amount_in_cents.inspect}, ending_balance_in_cents: #{@ending_balance_in_cents.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_previous_balance.rb b/lib/advanced_billing/models/invoice_previous_balance.rb index 6cc19d37..2c2e59d0 100644 --- a/lib/advanced_billing/models/invoice_previous_balance.rb +++ b/lib/advanced_billing/models/invoice_previous_balance.rb @@ -92,5 +92,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} captured_at: #{@captured_at}, invoices: #{@invoices},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} captured_at: #{@captured_at.inspect}, invoices: #{@invoices.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_refund.rb b/lib/advanced_billing/models/invoice_refund.rb index aa1dda64..ae82ef16 100644 --- a/lib/advanced_billing/models/invoice_refund.rb +++ b/lib/advanced_billing/models/invoice_refund.rb @@ -151,5 +151,26 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} transaction_id: #{@transaction_id}, payment_id: #{@payment_id}, memo:"\ + " #{@memo}, original_amount: #{@original_amount}, applied_amount: #{@applied_amount},"\ + " gateway_transaction_id: #{@gateway_transaction_id}, gateway_used: #{@gateway_used},"\ + " gateway_handle: #{@gateway_handle}, ach_late_reject: #{@ach_late_reject},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} transaction_id: #{@transaction_id.inspect}, payment_id:"\ + " #{@payment_id.inspect}, memo: #{@memo.inspect}, original_amount:"\ + " #{@original_amount.inspect}, applied_amount: #{@applied_amount.inspect},"\ + " gateway_transaction_id: #{@gateway_transaction_id.inspect}, gateway_used:"\ + " #{@gateway_used.inspect}, gateway_handle: #{@gateway_handle.inspect}, ach_late_reject:"\ + " #{@ach_late_reject.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_response.rb b/lib/advanced_billing/models/invoice_response.rb index 694381e9..c1d165b5 100644 --- a/lib/advanced_billing/models/invoice_response.rb +++ b/lib/advanced_billing/models/invoice_response.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) InvoiceResponse.new(invoice: invoice, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} invoice: #{@invoice}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} invoice: #{@invoice.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_seller.rb b/lib/advanced_billing/models/invoice_seller.rb index cb9d2eaf..ec18f997 100644 --- a/lib/advanced_billing/models/invoice_seller.rb +++ b/lib/advanced_billing/models/invoice_seller.rb @@ -96,5 +96,20 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, address: #{@address}, phone: #{@phone}, logo_url:"\ + " #{@logo_url}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, address: #{@address.inspect}, phone:"\ + " #{@phone.inspect}, logo_url: #{@logo_url.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_tax.rb b/lib/advanced_billing/models/invoice_tax.rb index 6a1efb36..3b590585 100644 --- a/lib/advanced_billing/models/invoice_tax.rb +++ b/lib/advanced_billing/models/invoice_tax.rb @@ -210,5 +210,29 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, title: #{@title}, description: #{@description}, source_type:"\ + " #{@source_type}, source_id: #{@source_id}, percentage: #{@percentage}, taxable_amount:"\ + " #{@taxable_amount}, tax_amount: #{@tax_amount}, transaction_id: #{@transaction_id},"\ + " line_item_breakouts: #{@line_item_breakouts}, tax_component_breakouts:"\ + " #{@tax_component_breakouts}, eu_vat: #{@eu_vat}, type: #{@type}, tax_exempt_amount:"\ + " #{@tax_exempt_amount}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, title: #{@title.inspect}, description:"\ + " #{@description.inspect}, source_type: #{@source_type.inspect}, source_id:"\ + " #{@source_id.inspect}, percentage: #{@percentage.inspect}, taxable_amount:"\ + " #{@taxable_amount.inspect}, tax_amount: #{@tax_amount.inspect}, transaction_id:"\ + " #{@transaction_id.inspect}, line_item_breakouts: #{@line_item_breakouts.inspect},"\ + " tax_component_breakouts: #{@tax_component_breakouts.inspect}, eu_vat: #{@eu_vat.inspect},"\ + " type: #{@type.inspect}, tax_exempt_amount: #{@tax_exempt_amount.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_tax_breakout.rb b/lib/advanced_billing/models/invoice_tax_breakout.rb index 9ecfcdb6..ba4c3581 100644 --- a/lib/advanced_billing/models/invoice_tax_breakout.rb +++ b/lib/advanced_billing/models/invoice_tax_breakout.rb @@ -95,5 +95,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, taxable_amount: #{@taxable_amount}, tax_amount:"\ + " #{@tax_amount}, tax_exempt_amount: #{@tax_exempt_amount}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, taxable_amount: #{@taxable_amount.inspect},"\ + " tax_amount: #{@tax_amount.inspect}, tax_exempt_amount: #{@tax_exempt_amount.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/invoice_tax_component_breakout.rb b/lib/advanced_billing/models/invoice_tax_component_breakout.rb index 05d742aa..801385dd 100644 --- a/lib/advanced_billing/models/invoice_tax_component_breakout.rb +++ b/lib/advanced_billing/models/invoice_tax_component_breakout.rb @@ -194,5 +194,31 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} tax_rule_id: #{@tax_rule_id}, percentage: #{@percentage}, country_code:"\ + " #{@country_code}, subdivision_code: #{@subdivision_code}, tax_amount: #{@tax_amount},"\ + " taxable_amount: #{@taxable_amount}, tax_exempt_amount: #{@tax_exempt_amount},"\ + " non_taxable_amount: #{@non_taxable_amount}, tax_name: #{@tax_name}, tax_type:"\ + " #{@tax_type}, rate_type: #{@rate_type}, tax_authority_type: #{@tax_authority_type},"\ + " state_assigned_no: #{@state_assigned_no}, tax_sub_type: #{@tax_sub_type},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} tax_rule_id: #{@tax_rule_id.inspect}, percentage: #{@percentage.inspect},"\ + " country_code: #{@country_code.inspect}, subdivision_code: #{@subdivision_code.inspect},"\ + " tax_amount: #{@tax_amount.inspect}, taxable_amount: #{@taxable_amount.inspect},"\ + " tax_exempt_amount: #{@tax_exempt_amount.inspect}, non_taxable_amount:"\ + " #{@non_taxable_amount.inspect}, tax_name: #{@tax_name.inspect}, tax_type:"\ + " #{@tax_type.inspect}, rate_type: #{@rate_type.inspect}, tax_authority_type:"\ + " #{@tax_authority_type.inspect}, state_assigned_no: #{@state_assigned_no.inspect},"\ + " tax_sub_type: #{@tax_sub_type.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/issue_advance_invoice_request.rb b/lib/advanced_billing/models/issue_advance_invoice_request.rb index 03cb7b3a..8449c675 100644 --- a/lib/advanced_billing/models/issue_advance_invoice_request.rb +++ b/lib/advanced_billing/models/issue_advance_invoice_request.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) IssueAdvanceInvoiceRequest.new(force: force, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} force: #{@force}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} force: #{@force.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/issue_invoice_event.rb b/lib/advanced_billing/models/issue_invoice_event.rb index 4260babf..e24d28ee 100644 --- a/lib/advanced_billing/models/issue_invoice_event.rb +++ b/lib/advanced_billing/models/issue_invoice_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/issue_invoice_event_data.rb b/lib/advanced_billing/models/issue_invoice_event_data.rb index f346a585..a8295a53 100644 --- a/lib/advanced_billing/models/issue_invoice_event_data.rb +++ b/lib/advanced_billing/models/issue_invoice_event_data.rb @@ -138,5 +138,22 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} consolidation_level: #{@consolidation_level}, from_status: #{@from_status},"\ + " to_status: #{@to_status}, due_amount: #{@due_amount}, total_amount: #{@total_amount},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} consolidation_level: #{@consolidation_level.inspect}, from_status:"\ + " #{@from_status.inspect}, to_status: #{@to_status.inspect}, due_amount:"\ + " #{@due_amount.inspect}, total_amount: #{@total_amount.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/issue_invoice_request.rb b/lib/advanced_billing/models/issue_invoice_request.rb index e1dda80a..8ecc49e1 100644 --- a/lib/advanced_billing/models/issue_invoice_request.rb +++ b/lib/advanced_billing/models/issue_invoice_request.rb @@ -69,5 +69,19 @@ def self.from_hash(hash) IssueInvoiceRequest.new(on_failed_payment: on_failed_payment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} on_failed_payment: #{@on_failed_payment}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} on_failed_payment: #{@on_failed_payment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/issue_service_credit.rb b/lib/advanced_billing/models/issue_service_credit.rb index c50b29ba..0dd63c1f 100644 --- a/lib/advanced_billing/models/issue_service_credit.rb +++ b/lib/advanced_billing/models/issue_service_credit.rb @@ -79,5 +79,19 @@ def self.validate(value) UnionTypeLookUp.get(:IssueServiceCreditAmount) .validate(value['amount']) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount}, memo: #{@memo}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount.inspect}, memo: #{@memo.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/issue_service_credit_request.rb b/lib/advanced_billing/models/issue_service_credit_request.rb index 0e17a274..1af47935 100644 --- a/lib/advanced_billing/models/issue_service_credit_request.rb +++ b/lib/advanced_billing/models/issue_service_credit_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) IssueServiceCreditRequest.new(service_credit: service_credit, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} service_credit: #{@service_credit}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} service_credit: #{@service_credit.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/item_price_point_changed.rb b/lib/advanced_billing/models/item_price_point_changed.rb index a537542d..489b3971 100644 --- a/lib/advanced_billing/models/item_price_point_changed.rb +++ b/lib/advanced_billing/models/item_price_point_changed.rb @@ -139,5 +139,23 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} item_id: #{@item_id}, item_type: #{@item_type}, item_handle:"\ + " #{@item_handle}, item_name: #{@item_name}, previous_price_point: #{@previous_price_point},"\ + " current_price_point: #{@current_price_point}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} item_id: #{@item_id.inspect}, item_type: #{@item_type.inspect},"\ + " item_handle: #{@item_handle.inspect}, item_name: #{@item_name.inspect},"\ + " previous_price_point: #{@previous_price_point.inspect}, current_price_point:"\ + " #{@current_price_point.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/item_price_point_data.rb b/lib/advanced_billing/models/item_price_point_data.rb index 7f4fa0fa..9e276726 100644 --- a/lib/advanced_billing/models/item_price_point_data.rb +++ b/lib/advanced_billing/models/item_price_point_data.rb @@ -84,5 +84,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, handle: #{@handle}, name: #{@name}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, handle: #{@handle.inspect}, name: #{@name.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_components_filter.rb b/lib/advanced_billing/models/list_components_filter.rb index d7802cd4..6a4bc9ce 100644 --- a/lib/advanced_billing/models/list_components_filter.rb +++ b/lib/advanced_billing/models/list_components_filter.rb @@ -69,5 +69,19 @@ def self.from_hash(hash) use_site_exchange_rate: use_site_exchange_rate, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} ids: #{@ids}, use_site_exchange_rate: #{@use_site_exchange_rate},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} ids: #{@ids.inspect}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_components_price_points_response.rb b/lib/advanced_billing/models/list_components_price_points_response.rb index 09bc8dfc..7145ff7c 100644 --- a/lib/advanced_billing/models/list_components_price_points_response.rb +++ b/lib/advanced_billing/models/list_components_price_points_response.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) ListComponentsPricePointsResponse.new(price_points: price_points, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_coupons_filter.rb b/lib/advanced_billing/models/list_coupons_filter.rb index 2986c515..ae646c01 100644 --- a/lib/advanced_billing/models/list_coupons_filter.rb +++ b/lib/advanced_billing/models/list_coupons_filter.rb @@ -159,5 +159,24 @@ def to_custom_start_datetime def to_custom_end_datetime DateTimeHelper.to_rfc3339(end_datetime) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} date_field: #{@date_field}, start_date: #{@start_date}, end_date:"\ + " #{@end_date}, start_datetime: #{@start_datetime}, end_datetime: #{@end_datetime}, ids:"\ + " #{@ids}, codes: #{@codes}, use_site_exchange_rate: #{@use_site_exchange_rate},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} date_field: #{@date_field.inspect}, start_date: #{@start_date.inspect},"\ + " end_date: #{@end_date.inspect}, start_datetime: #{@start_datetime.inspect}, end_datetime:"\ + " #{@end_datetime.inspect}, ids: #{@ids.inspect}, codes: #{@codes.inspect},"\ + " use_site_exchange_rate: #{@use_site_exchange_rate.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_credit_notes_response.rb b/lib/advanced_billing/models/list_credit_notes_response.rb index b75ff2cc..775884ad 100644 --- a/lib/advanced_billing/models/list_credit_notes_response.rb +++ b/lib/advanced_billing/models/list_credit_notes_response.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) ListCreditNotesResponse.new(credit_notes: credit_notes, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} credit_notes: #{@credit_notes}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} credit_notes: #{@credit_notes.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_invoice_events_response.rb b/lib/advanced_billing/models/list_invoice_events_response.rb index 6854882a..866a52f2 100644 --- a/lib/advanced_billing/models/list_invoice_events_response.rb +++ b/lib/advanced_billing/models/list_invoice_events_response.rb @@ -95,5 +95,20 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} events: #{@events}, page: #{@page}, per_page: #{@per_page}, total_pages:"\ + " #{@total_pages}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} events: #{@events.inspect}, page: #{@page.inspect}, per_page:"\ + " #{@per_page.inspect}, total_pages: #{@total_pages.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_invoices_response.rb b/lib/advanced_billing/models/list_invoices_response.rb index 6a6e7ee2..ea5f7acb 100644 --- a/lib/advanced_billing/models/list_invoices_response.rb +++ b/lib/advanced_billing/models/list_invoices_response.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) ListInvoicesResponse.new(invoices: invoices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} invoices: #{@invoices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} invoices: #{@invoices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_metafields_response.rb b/lib/advanced_billing/models/list_metafields_response.rb index dd0d5710..781c4270 100644 --- a/lib/advanced_billing/models/list_metafields_response.rb +++ b/lib/advanced_billing/models/list_metafields_response.rb @@ -101,5 +101,22 @@ def self.from_hash(hash) metafields: metafields, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} total_count: #{@total_count}, current_page: #{@current_page}, total_pages:"\ + " #{@total_pages}, per_page: #{@per_page}, metafields: #{@metafields},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} total_count: #{@total_count.inspect}, current_page:"\ + " #{@current_page.inspect}, total_pages: #{@total_pages.inspect}, per_page:"\ + " #{@per_page.inspect}, metafields: #{@metafields.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_mrr_filter.rb b/lib/advanced_billing/models/list_mrr_filter.rb index 67eb645c..388b78d5 100644 --- a/lib/advanced_billing/models/list_mrr_filter.rb +++ b/lib/advanced_billing/models/list_mrr_filter.rb @@ -57,5 +57,19 @@ def self.from_hash(hash) ListMrrFilter.new(subscription_ids: subscription_ids, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_ids: #{@subscription_ids}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_ids: #{@subscription_ids.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_mrr_response.rb b/lib/advanced_billing/models/list_mrr_response.rb index a7bdf45a..8601060e 100644 --- a/lib/advanced_billing/models/list_mrr_response.rb +++ b/lib/advanced_billing/models/list_mrr_response.rb @@ -53,5 +53,17 @@ def self.from_hash(hash) ListMRRResponse.new(mrr: mrr, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} mrr: #{@mrr}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} mrr: #{@mrr.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_mrr_response_result.rb b/lib/advanced_billing/models/list_mrr_response_result.rb index 05a6267d..141f643b 100644 --- a/lib/advanced_billing/models/list_mrr_response_result.rb +++ b/lib/advanced_billing/models/list_mrr_response_result.rb @@ -121,5 +121,23 @@ def self.from_hash(hash) movements: movements, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} page: #{@page}, per_page: #{@per_page}, total_pages: #{@total_pages},"\ + " total_entries: #{@total_entries}, currency: #{@currency}, currency_symbol:"\ + " #{@currency_symbol}, movements: #{@movements}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} page: #{@page.inspect}, per_page: #{@per_page.inspect}, total_pages:"\ + " #{@total_pages.inspect}, total_entries: #{@total_entries.inspect}, currency:"\ + " #{@currency.inspect}, currency_symbol: #{@currency_symbol.inspect}, movements:"\ + " #{@movements.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_offers_response.rb b/lib/advanced_billing/models/list_offers_response.rb index 7c2e8a0b..28b8f7d8 100644 --- a/lib/advanced_billing/models/list_offers_response.rb +++ b/lib/advanced_billing/models/list_offers_response.rb @@ -64,5 +64,18 @@ def self.from_hash(hash) ListOffersResponse.new(offers: offers, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} offers: #{@offers}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} offers: #{@offers.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_prepayments_filter.rb b/lib/advanced_billing/models/list_prepayments_filter.rb index 633922c4..9181735d 100644 --- a/lib/advanced_billing/models/list_prepayments_filter.rb +++ b/lib/advanced_billing/models/list_prepayments_filter.rb @@ -82,5 +82,19 @@ def self.from_hash(hash) end_date: end_date, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} date_field: #{@date_field}, start_date: #{@start_date}, end_date:"\ + " #{@end_date}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} date_field: #{@date_field.inspect}, start_date: #{@start_date.inspect},"\ + " end_date: #{@end_date.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_price_points_filter.rb b/lib/advanced_billing/models/list_price_points_filter.rb index f8a47713..2900581d 100644 --- a/lib/advanced_billing/models/list_price_points_filter.rb +++ b/lib/advanced_billing/models/list_price_points_filter.rb @@ -153,5 +153,23 @@ def to_custom_start_datetime def to_custom_end_datetime DateTimeHelper.to_rfc3339(end_datetime) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} date_field: #{@date_field}, start_date: #{@start_date}, end_date:"\ + " #{@end_date}, start_datetime: #{@start_datetime}, end_datetime: #{@end_datetime}, type:"\ + " #{@type}, ids: #{@ids}, archived_at: #{@archived_at}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} date_field: #{@date_field.inspect}, start_date: #{@start_date.inspect},"\ + " end_date: #{@end_date.inspect}, start_datetime: #{@start_datetime.inspect}, end_datetime:"\ + " #{@end_datetime.inspect}, type: #{@type.inspect}, ids: #{@ids.inspect}, archived_at:"\ + " #{@archived_at.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_product_price_points_response.rb b/lib/advanced_billing/models/list_product_price_points_response.rb index 9f64efaf..32f61617 100644 --- a/lib/advanced_billing/models/list_product_price_points_response.rb +++ b/lib/advanced_billing/models/list_product_price_points_response.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) ListProductPricePointsResponse.new(price_points: price_points, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_points: #{@price_points.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_products_filter.rb b/lib/advanced_billing/models/list_products_filter.rb index 12cb29ee..e6767022 100644 --- a/lib/advanced_billing/models/list_products_filter.rb +++ b/lib/advanced_billing/models/list_products_filter.rb @@ -86,5 +86,21 @@ def self.from_hash(hash) use_site_exchange_rate: use_site_exchange_rate, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} ids: #{@ids}, prepaid_product_price_point: #{@prepaid_product_price_point},"\ + " use_site_exchange_rate: #{@use_site_exchange_rate}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} ids: #{@ids.inspect}, prepaid_product_price_point:"\ + " #{@prepaid_product_price_point.inspect}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_proforma_invoices_meta.rb b/lib/advanced_billing/models/list_proforma_invoices_meta.rb index 950f6066..671e5a42 100644 --- a/lib/advanced_billing/models/list_proforma_invoices_meta.rb +++ b/lib/advanced_billing/models/list_proforma_invoices_meta.rb @@ -83,5 +83,21 @@ def self.from_hash(hash) status_code: status_code, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} total_count: #{@total_count}, current_page: #{@current_page}, total_pages:"\ + " #{@total_pages}, status_code: #{@status_code}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} total_count: #{@total_count.inspect}, current_page:"\ + " #{@current_page.inspect}, total_pages: #{@total_pages.inspect}, status_code:"\ + " #{@status_code.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_proforma_invoices_response.rb b/lib/advanced_billing/models/list_proforma_invoices_response.rb index be774f54..37f59dcb 100644 --- a/lib/advanced_billing/models/list_proforma_invoices_response.rb +++ b/lib/advanced_billing/models/list_proforma_invoices_response.rb @@ -74,5 +74,19 @@ def self.from_hash(hash) meta: meta, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} proforma_invoices: #{@proforma_invoices}, meta: #{@meta},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} proforma_invoices: #{@proforma_invoices.inspect}, meta: #{@meta.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_public_keys_meta.rb b/lib/advanced_billing/models/list_public_keys_meta.rb index 9b0da018..7ecae9d5 100644 --- a/lib/advanced_billing/models/list_public_keys_meta.rb +++ b/lib/advanced_billing/models/list_public_keys_meta.rb @@ -83,5 +83,21 @@ def self.from_hash(hash) per_page: per_page, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} total_count: #{@total_count}, current_page: #{@current_page}, total_pages:"\ + " #{@total_pages}, per_page: #{@per_page}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} total_count: #{@total_count.inspect}, current_page:"\ + " #{@current_page.inspect}, total_pages: #{@total_pages.inspect}, per_page:"\ + " #{@per_page.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_public_keys_response.rb b/lib/advanced_billing/models/list_public_keys_response.rb index 590a7412..e77c713c 100644 --- a/lib/advanced_billing/models/list_public_keys_response.rb +++ b/lib/advanced_billing/models/list_public_keys_response.rb @@ -74,5 +74,19 @@ def self.from_hash(hash) meta: meta, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} chargify_js_keys: #{@chargify_js_keys}, meta: #{@meta},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} chargify_js_keys: #{@chargify_js_keys.inspect}, meta: #{@meta.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_sale_rep_item.rb b/lib/advanced_billing/models/list_sale_rep_item.rb index eff21618..5da47d46 100644 --- a/lib/advanced_billing/models/list_sale_rep_item.rb +++ b/lib/advanced_billing/models/list_sale_rep_item.rb @@ -95,5 +95,21 @@ def self.from_hash(hash) test_mode: test_mode, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, full_name: #{@full_name}, subscriptions_count:"\ + " #{@subscriptions_count}, mrr_data: #{@mrr_data}, test_mode: #{@test_mode},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, full_name: #{@full_name.inspect}, subscriptions_count:"\ + " #{@subscriptions_count.inspect}, mrr_data: #{@mrr_data.inspect}, test_mode:"\ + " #{@test_mode.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_segments_filter.rb b/lib/advanced_billing/models/list_segments_filter.rb index e68d2c36..8abcb30a 100644 --- a/lib/advanced_billing/models/list_segments_filter.rb +++ b/lib/advanced_billing/models/list_segments_filter.rb @@ -98,5 +98,24 @@ def self.from_hash(hash) segment_property_4_value: segment_property_4_value, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} segment_property_1_value: #{@segment_property_1_value},"\ + " segment_property_2_value: #{@segment_property_2_value}, segment_property_3_value:"\ + " #{@segment_property_3_value}, segment_property_4_value: #{@segment_property_4_value},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} segment_property_1_value: #{@segment_property_1_value.inspect},"\ + " segment_property_2_value: #{@segment_property_2_value.inspect}, segment_property_3_value:"\ + " #{@segment_property_3_value.inspect}, segment_property_4_value:"\ + " #{@segment_property_4_value.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_segments_response.rb b/lib/advanced_billing/models/list_segments_response.rb index 972578a8..6953d553 100644 --- a/lib/advanced_billing/models/list_segments_response.rb +++ b/lib/advanced_billing/models/list_segments_response.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) ListSegmentsResponse.new(segments: segments, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} segments: #{@segments}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} segments: #{@segments.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb b/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb index a4612408..8fb68685 100644 --- a/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +++ b/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb @@ -146,5 +146,26 @@ def self.from_hash(hash) def to_custom_created_at DateTimeHelper.to_rfc3339(created_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, subscription_group_uid: #{@subscription_group_uid},"\ + " amount_in_cents: #{@amount_in_cents}, remaining_amount_in_cents:"\ + " #{@remaining_amount_in_cents}, details: #{@details}, external: #{@external}, memo:"\ + " #{@memo}, payment_type: #{@payment_type}, created_at: #{@created_at},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, subscription_group_uid:"\ + " #{@subscription_group_uid.inspect}, amount_in_cents: #{@amount_in_cents.inspect},"\ + " remaining_amount_in_cents: #{@remaining_amount_in_cents.inspect}, details:"\ + " #{@details.inspect}, external: #{@external.inspect}, memo: #{@memo.inspect}, payment_type:"\ + " #{@payment_type.inspect}, created_at: #{@created_at.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_subscription_components_filter.rb b/lib/advanced_billing/models/list_subscription_components_filter.rb index 2fd25887..48e9697a 100644 --- a/lib/advanced_billing/models/list_subscription_components_filter.rb +++ b/lib/advanced_billing/models/list_subscription_components_filter.rb @@ -69,5 +69,19 @@ def self.from_hash(hash) use_site_exchange_rate: use_site_exchange_rate, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currencies: #{@currencies}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currencies: #{@currencies.inspect}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb b/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb index 0a22e76a..bc1d5d50 100644 --- a/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +++ b/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb @@ -78,5 +78,21 @@ def self.from_hash(hash) subscription: subscription, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currencies: #{@currencies}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate}, subscription: #{@subscription}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currencies: #{@currencies.inspect}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate.inspect}, subscription: #{@subscription.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_subscription_components_response.rb b/lib/advanced_billing/models/list_subscription_components_response.rb index 1028a6ae..4ce1b2c4 100644 --- a/lib/advanced_billing/models/list_subscription_components_response.rb +++ b/lib/advanced_billing/models/list_subscription_components_response.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) ListSubscriptionComponentsResponse.new(subscriptions_components: subscriptions_components, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscriptions_components: #{@subscriptions_components},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscriptions_components: #{@subscriptions_components.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_subscription_group_prepayment.rb b/lib/advanced_billing/models/list_subscription_group_prepayment.rb index bd91de73..fee67306 100644 --- a/lib/advanced_billing/models/list_subscription_group_prepayment.rb +++ b/lib/advanced_billing/models/list_subscription_group_prepayment.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) ListSubscriptionGroupPrepayment.new(prepayment: prepayment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepayment: #{@prepayment}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepayment: #{@prepayment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb b/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb index a52c3a48..f4d3a514 100644 --- a/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +++ b/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) ListSubscriptionGroupPrepaymentResponse.new(prepayments: prepayments, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepayments: #{@prepayments}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepayments: #{@prepayments.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_subscription_groups_item.rb b/lib/advanced_billing/models/list_subscription_groups_item.rb index 8e319fdf..d3fea0cc 100644 --- a/lib/advanced_billing/models/list_subscription_groups_item.rb +++ b/lib/advanced_billing/models/list_subscription_groups_item.rb @@ -164,5 +164,28 @@ def self.from_hash(hash) def to_custom_next_assessment_at DateTimeHelper.to_rfc3339(next_assessment_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, scheme: #{@scheme}, customer_id: #{@customer_id},"\ + " payment_profile_id: #{@payment_profile_id}, subscription_ids: #{@subscription_ids},"\ + " primary_subscription_id: #{@primary_subscription_id}, next_assessment_at:"\ + " #{@next_assessment_at}, state: #{@state}, cancel_at_end_of_period:"\ + " #{@cancel_at_end_of_period}, account_balances: #{@account_balances}, group_type:"\ + " #{@group_type}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, scheme: #{@scheme.inspect}, customer_id:"\ + " #{@customer_id.inspect}, payment_profile_id: #{@payment_profile_id.inspect},"\ + " subscription_ids: #{@subscription_ids.inspect}, primary_subscription_id:"\ + " #{@primary_subscription_id.inspect}, next_assessment_at: #{@next_assessment_at.inspect},"\ + " state: #{@state.inspect}, cancel_at_end_of_period: #{@cancel_at_end_of_period.inspect},"\ + " account_balances: #{@account_balances.inspect}, group_type: #{@group_type.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_subscription_groups_meta.rb b/lib/advanced_billing/models/list_subscription_groups_meta.rb index dff8ccff..784539f5 100644 --- a/lib/advanced_billing/models/list_subscription_groups_meta.rb +++ b/lib/advanced_billing/models/list_subscription_groups_meta.rb @@ -65,5 +65,19 @@ def self.from_hash(hash) total_count: total_count, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} current_page: #{@current_page}, total_count: #{@total_count},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} current_page: #{@current_page.inspect}, total_count:"\ + " #{@total_count.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/list_subscription_groups_response.rb b/lib/advanced_billing/models/list_subscription_groups_response.rb index 1fa136d8..98e8d13d 100644 --- a/lib/advanced_billing/models/list_subscription_groups_response.rb +++ b/lib/advanced_billing/models/list_subscription_groups_response.rb @@ -74,5 +74,19 @@ def self.from_hash(hash) meta: meta, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_groups: #{@subscription_groups}, meta: #{@meta},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_groups: #{@subscription_groups.inspect}, meta:"\ + " #{@meta.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/metadata.rb b/lib/advanced_billing/models/metadata.rb index 62e41815..9c38aa98 100644 --- a/lib/advanced_billing/models/metadata.rb +++ b/lib/advanced_billing/models/metadata.rb @@ -117,5 +117,22 @@ def self.from_hash(hash) def to_custom_deleted_at DateTimeHelper.to_rfc3339(deleted_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, value: #{@value}, resource_id: #{@resource_id}, name: #{@name},"\ + " deleted_at: #{@deleted_at}, metafield_id: #{@metafield_id}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, value: #{@value.inspect}, resource_id:"\ + " #{@resource_id.inspect}, name: #{@name.inspect}, deleted_at: #{@deleted_at.inspect},"\ + " metafield_id: #{@metafield_id.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/metafield.rb b/lib/advanced_billing/models/metafield.rb index 3577eb7b..3e049a4a 100644 --- a/lib/advanced_billing/models/metafield.rb +++ b/lib/advanced_billing/models/metafield.rb @@ -125,5 +125,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, name: #{@name}, scope: #{@scope}, data_count: #{@data_count},"\ + " input_type: #{@input_type}, enum: #{@enum}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, scope: #{@scope.inspect},"\ + " data_count: #{@data_count.inspect}, input_type: #{@input_type.inspect}, enum:"\ + " #{@enum.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/metafield_scope.rb b/lib/advanced_billing/models/metafield_scope.rb index 8418027a..0d33857b 100644 --- a/lib/advanced_billing/models/metafield_scope.rb +++ b/lib/advanced_billing/models/metafield_scope.rb @@ -124,5 +124,22 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} csv: #{@csv}, invoices: #{@invoices}, statements: #{@statements}, portal:"\ + " #{@portal}, public_show: #{@public_show}, public_edit: #{@public_edit}, hosted:"\ + " #{@hosted}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} csv: #{@csv.inspect}, invoices: #{@invoices.inspect}, statements:"\ + " #{@statements.inspect}, portal: #{@portal.inspect}, public_show: #{@public_show.inspect},"\ + " public_edit: #{@public_edit.inspect}, hosted: #{@hosted.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/metered_component.rb b/lib/advanced_billing/models/metered_component.rb index 19291ba8..642634e9 100644 --- a/lib/advanced_billing/models/metered_component.rb +++ b/lib/advanced_billing/models/metered_component.rb @@ -290,5 +290,32 @@ def self.validate(value) ->(val) { PricingScheme.validate(val) }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, unit_name: #{@unit_name}, description: #{@description},"\ + " handle: #{@handle}, taxable: #{@taxable}, pricing_scheme: #{@pricing_scheme}, prices:"\ + " #{@prices}, price_points: #{@price_points}, unit_price: #{@unit_price}, tax_code:"\ + " #{@tax_code}, hide_date_range_on_invoice: #{@hide_date_range_on_invoice},"\ + " display_on_hosted_page: #{@display_on_hosted_page}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities}, public_signup_page_ids: #{@public_signup_page_ids},"\ + " interval: #{@interval}, interval_unit: #{@interval_unit}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, unit_name: #{@unit_name.inspect}, description:"\ + " #{@description.inspect}, handle: #{@handle.inspect}, taxable: #{@taxable.inspect},"\ + " pricing_scheme: #{@pricing_scheme.inspect}, prices: #{@prices.inspect}, price_points:"\ + " #{@price_points.inspect}, unit_price: #{@unit_price.inspect}, tax_code:"\ + " #{@tax_code.inspect}, hide_date_range_on_invoice: #{@hide_date_range_on_invoice.inspect},"\ + " display_on_hosted_page: #{@display_on_hosted_page.inspect}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities.inspect}, public_signup_page_ids:"\ + " #{@public_signup_page_ids.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/metered_usage.rb b/lib/advanced_billing/models/metered_usage.rb index c88110f9..ce3eb432 100644 --- a/lib/advanced_billing/models/metered_usage.rb +++ b/lib/advanced_billing/models/metered_usage.rb @@ -137,5 +137,23 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} previous_unit_balance: #{@previous_unit_balance}, new_unit_balance:"\ + " #{@new_unit_balance}, usage_quantity: #{@usage_quantity}, component_id: #{@component_id},"\ + " component_handle: #{@component_handle}, memo: #{@memo}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} previous_unit_balance: #{@previous_unit_balance.inspect}, new_unit_balance:"\ + " #{@new_unit_balance.inspect}, usage_quantity: #{@usage_quantity.inspect}, component_id:"\ + " #{@component_id.inspect}, component_handle: #{@component_handle.inspect}, memo:"\ + " #{@memo.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/movement.rb b/lib/advanced_billing/models/movement.rb index 382c287a..afe093d6 100644 --- a/lib/advanced_billing/models/movement.rb +++ b/lib/advanced_billing/models/movement.rb @@ -152,5 +152,26 @@ def self.from_hash(hash) def to_custom_timestamp DateTimeHelper.to_rfc3339(timestamp) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} timestamp: #{@timestamp}, amount_in_cents: #{@amount_in_cents},"\ + " amount_formatted: #{@amount_formatted}, description: #{@description}, category:"\ + " #{@category}, breakouts: #{@breakouts}, line_items: #{@line_items}, subscription_id:"\ + " #{@subscription_id}, subscriber_name: #{@subscriber_name}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} timestamp: #{@timestamp.inspect}, amount_in_cents:"\ + " #{@amount_in_cents.inspect}, amount_formatted: #{@amount_formatted.inspect}, description:"\ + " #{@description.inspect}, category: #{@category.inspect}, breakouts: #{@breakouts.inspect},"\ + " line_items: #{@line_items.inspect}, subscription_id: #{@subscription_id.inspect},"\ + " subscriber_name: #{@subscriber_name.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/movement_line_item.rb b/lib/advanced_billing/models/movement_line_item.rb index e96fea0d..a43bf961 100644 --- a/lib/advanced_billing/models/movement_line_item.rb +++ b/lib/advanced_billing/models/movement_line_item.rb @@ -148,5 +148,24 @@ def self.from_hash(hash) recurring: recurring, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product_id: #{@product_id}, component_id: #{@component_id}, price_point_id:"\ + " #{@price_point_id}, name: #{@name}, mrr: #{@mrr}, mrr_movements: #{@mrr_movements},"\ + " quantity: #{@quantity}, prev_quantity: #{@prev_quantity}, recurring: #{@recurring},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product_id: #{@product_id.inspect}, component_id: #{@component_id.inspect},"\ + " price_point_id: #{@price_point_id.inspect}, name: #{@name.inspect}, mrr: #{@mrr.inspect},"\ + " mrr_movements: #{@mrr_movements.inspect}, quantity: #{@quantity.inspect}, prev_quantity:"\ + " #{@prev_quantity.inspect}, recurring: #{@recurring.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/mrr.rb b/lib/advanced_billing/models/mrr.rb index f80271f8..76b5f924 100644 --- a/lib/advanced_billing/models/mrr.rb +++ b/lib/advanced_billing/models/mrr.rb @@ -114,5 +114,23 @@ def self.from_hash(hash) def to_custom_at_time DateTimeHelper.to_rfc3339(at_time) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount_in_cents: #{@amount_in_cents}, amount_formatted:"\ + " #{@amount_formatted}, currency: #{@currency}, currency_symbol: #{@currency_symbol},"\ + " breakouts: #{@breakouts}, at_time: #{@at_time}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount_in_cents: #{@amount_in_cents.inspect}, amount_formatted:"\ + " #{@amount_formatted.inspect}, currency: #{@currency.inspect}, currency_symbol:"\ + " #{@currency_symbol.inspect}, breakouts: #{@breakouts.inspect}, at_time:"\ + " #{@at_time.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/mrr_movement.rb b/lib/advanced_billing/models/mrr_movement.rb index 80d6583b..4a9e50b1 100644 --- a/lib/advanced_billing/models/mrr_movement.rb +++ b/lib/advanced_billing/models/mrr_movement.rb @@ -84,5 +84,21 @@ def self.from_hash(hash) lead_delta: lead_delta, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount}, category: #{@category}, subscriber_delta:"\ + " #{@subscriber_delta}, lead_delta: #{@lead_delta}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount.inspect}, category: #{@category.inspect},"\ + " subscriber_delta: #{@subscriber_delta.inspect}, lead_delta: #{@lead_delta.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/mrr_response.rb b/lib/advanced_billing/models/mrr_response.rb index 23c19c09..1f3b8586 100644 --- a/lib/advanced_billing/models/mrr_response.rb +++ b/lib/advanced_billing/models/mrr_response.rb @@ -53,5 +53,17 @@ def self.from_hash(hash) MRRResponse.new(mrr: mrr, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} mrr: #{@mrr}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} mrr: #{@mrr.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/multi_invoice_payment.rb b/lib/advanced_billing/models/multi_invoice_payment.rb index 1ec99117..8312ffa4 100644 --- a/lib/advanced_billing/models/multi_invoice_payment.rb +++ b/lib/advanced_billing/models/multi_invoice_payment.rb @@ -96,5 +96,21 @@ def self.from_hash(hash) applications: applications, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} transaction_id: #{@transaction_id}, total_amount: #{@total_amount},"\ + " currency_code: #{@currency_code}, applications: #{@applications}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} transaction_id: #{@transaction_id.inspect}, total_amount:"\ + " #{@total_amount.inspect}, currency_code: #{@currency_code.inspect}, applications:"\ + " #{@applications.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/multi_invoice_payment_response.rb b/lib/advanced_billing/models/multi_invoice_payment_response.rb index 775f96b0..e985e311 100644 --- a/lib/advanced_billing/models/multi_invoice_payment_response.rb +++ b/lib/advanced_billing/models/multi_invoice_payment_response.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) MultiInvoicePaymentResponse.new(payment: payment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payment: #{@payment}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payment: #{@payment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/nested_subscription_group.rb b/lib/advanced_billing/models/nested_subscription_group.rb index 53a89ac0..4c833259 100644 --- a/lib/advanced_billing/models/nested_subscription_group.rb +++ b/lib/advanced_billing/models/nested_subscription_group.rb @@ -87,5 +87,21 @@ def self.from_hash(hash) primary: primary, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, scheme: #{@scheme}, primary_subscription_id:"\ + " #{@primary_subscription_id}, primary: #{@primary}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, scheme: #{@scheme.inspect}, primary_subscription_id:"\ + " #{@primary_subscription_id.inspect}, primary: #{@primary.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/net_terms.rb b/lib/advanced_billing/models/net_terms.rb index 0b511579..739ed277 100644 --- a/lib/advanced_billing/models/net_terms.rb +++ b/lib/advanced_billing/models/net_terms.rb @@ -99,5 +99,26 @@ def self.from_hash(hash) custom_net_terms_enabled: custom_net_terms_enabled, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} default_net_terms: #{@default_net_terms}, automatic_net_terms:"\ + " #{@automatic_net_terms}, remittance_net_terms: #{@remittance_net_terms},"\ + " net_terms_on_remittance_signups_enabled: #{@net_terms_on_remittance_signups_enabled},"\ + " custom_net_terms_enabled: #{@custom_net_terms_enabled}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} default_net_terms: #{@default_net_terms.inspect}, automatic_net_terms:"\ + " #{@automatic_net_terms.inspect}, remittance_net_terms: #{@remittance_net_terms.inspect},"\ + ' net_terms_on_remittance_signups_enabled:'\ + " #{@net_terms_on_remittance_signups_enabled.inspect}, custom_net_terms_enabled:"\ + " #{@custom_net_terms_enabled.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/offer.rb b/lib/advanced_billing/models/offer.rb index b3f6c9db..4f2c5690 100644 --- a/lib/advanced_billing/models/offer.rb +++ b/lib/advanced_billing/models/offer.rb @@ -285,5 +285,35 @@ def to_custom_updated_at def to_custom_archived_at DateTimeHelper.to_rfc3339(archived_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, site_id: #{@site_id}, product_family_id: #{@product_family_id},"\ + " product_id: #{@product_id}, product_price_point_id: #{@product_price_point_id},"\ + " product_revisable_number: #{@product_revisable_number}, name: #{@name}, handle:"\ + " #{@handle}, description: #{@description}, created_at: #{@created_at}, updated_at:"\ + " #{@updated_at}, archived_at: #{@archived_at}, offer_items: #{@offer_items},"\ + " offer_discounts: #{@offer_discounts}, product_family_name: #{@product_family_name},"\ + " product_name: #{@product_name}, product_price_point_name: #{@product_price_point_name},"\ + " product_price_in_cents: #{@product_price_in_cents}, offer_signup_pages:"\ + " #{@offer_signup_pages}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, site_id: #{@site_id.inspect}, product_family_id:"\ + " #{@product_family_id.inspect}, product_id: #{@product_id.inspect}, product_price_point_id:"\ + " #{@product_price_point_id.inspect}, product_revisable_number:"\ + " #{@product_revisable_number.inspect}, name: #{@name.inspect}, handle: #{@handle.inspect},"\ + " description: #{@description.inspect}, created_at: #{@created_at.inspect}, updated_at:"\ + " #{@updated_at.inspect}, archived_at: #{@archived_at.inspect}, offer_items:"\ + " #{@offer_items.inspect}, offer_discounts: #{@offer_discounts.inspect},"\ + " product_family_name: #{@product_family_name.inspect}, product_name:"\ + " #{@product_name.inspect}, product_price_point_name: #{@product_price_point_name.inspect},"\ + " product_price_in_cents: #{@product_price_in_cents.inspect}, offer_signup_pages:"\ + " #{@offer_signup_pages.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/offer_discount.rb b/lib/advanced_billing/models/offer_discount.rb index b9bbbd71..a87e3e32 100644 --- a/lib/advanced_billing/models/offer_discount.rb +++ b/lib/advanced_billing/models/offer_discount.rb @@ -74,5 +74,20 @@ def self.from_hash(hash) coupon_name: coupon_name, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} coupon_code: #{@coupon_code}, coupon_id: #{@coupon_id}, coupon_name:"\ + " #{@coupon_name}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} coupon_code: #{@coupon_code.inspect}, coupon_id: #{@coupon_id.inspect},"\ + " coupon_name: #{@coupon_name.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/offer_item.rb b/lib/advanced_billing/models/offer_item.rb index fa93b31e..713fe2dd 100644 --- a/lib/advanced_billing/models/offer_item.rb +++ b/lib/advanced_billing/models/offer_item.rb @@ -162,5 +162,27 @@ def self.from_hash(hash) interval_unit: interval_unit, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id}, price_point_id: #{@price_point_id},"\ + " starting_quantity: #{@starting_quantity}, editable: #{@editable}, component_unit_price:"\ + " #{@component_unit_price}, component_name: #{@component_name}, price_point_name:"\ + " #{@price_point_name}, currency_prices: #{@currency_prices}, interval: #{@interval},"\ + " interval_unit: #{@interval_unit}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id.inspect}, price_point_id:"\ + " #{@price_point_id.inspect}, starting_quantity: #{@starting_quantity.inspect}, editable:"\ + " #{@editable.inspect}, component_unit_price: #{@component_unit_price.inspect},"\ + " component_name: #{@component_name.inspect}, price_point_name:"\ + " #{@price_point_name.inspect}, currency_prices: #{@currency_prices.inspect}, interval:"\ + " #{@interval.inspect}, interval_unit: #{@interval_unit.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/offer_response.rb b/lib/advanced_billing/models/offer_response.rb index 03d6efca..2e0f2596 100644 --- a/lib/advanced_billing/models/offer_response.rb +++ b/lib/advanced_billing/models/offer_response.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) OfferResponse.new(offer: offer, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} offer: #{@offer}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} offer: #{@offer.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/offer_signup_page.rb b/lib/advanced_billing/models/offer_signup_page.rb index ceda2871..f04a4d4f 100644 --- a/lib/advanced_billing/models/offer_signup_page.rb +++ b/lib/advanced_billing/models/offer_signup_page.rb @@ -101,5 +101,22 @@ def self.from_hash(hash) url: url, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, nickname: #{@nickname}, enabled: #{@enabled}, return_url:"\ + " #{@return_url}, return_params: #{@return_params}, url: #{@url}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, nickname: #{@nickname.inspect}, enabled:"\ + " #{@enabled.inspect}, return_url: #{@return_url.inspect}, return_params:"\ + " #{@return_params.inspect}, url: #{@url.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/ok_response.rb b/lib/advanced_billing/models/ok_response.rb index bab87e23..1fb65bdb 100644 --- a/lib/advanced_billing/models/ok_response.rb +++ b/lib/advanced_billing/models/ok_response.rb @@ -55,5 +55,17 @@ def self.from_hash(hash) OkResponse.new(ok: ok, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} ok: #{@ok}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} ok: #{@ok.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/on_off_component.rb b/lib/advanced_billing/models/on_off_component.rb index b5f61f4a..b149ac2e 100644 --- a/lib/advanced_billing/models/on_off_component.rb +++ b/lib/advanced_billing/models/on_off_component.rb @@ -263,5 +263,31 @@ def self.validate(value) .validate(value['unit_price']) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, description: #{@description}, handle: #{@handle}, taxable:"\ + " #{@taxable}, upgrade_charge: #{@upgrade_charge}, downgrade_credit: #{@downgrade_credit},"\ + " price_points: #{@price_points}, unit_price: #{@unit_price}, tax_code: #{@tax_code},"\ + " hide_date_range_on_invoice: #{@hide_date_range_on_invoice}, display_on_hosted_page:"\ + " #{@display_on_hosted_page}, allow_fractional_quantities: #{@allow_fractional_quantities},"\ + " public_signup_page_ids: #{@public_signup_page_ids}, interval: #{@interval}, interval_unit:"\ + " #{@interval_unit}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, description: #{@description.inspect}, handle:"\ + " #{@handle.inspect}, taxable: #{@taxable.inspect}, upgrade_charge:"\ + " #{@upgrade_charge.inspect}, downgrade_credit: #{@downgrade_credit.inspect}, price_points:"\ + " #{@price_points.inspect}, unit_price: #{@unit_price.inspect}, tax_code:"\ + " #{@tax_code.inspect}, hide_date_range_on_invoice: #{@hide_date_range_on_invoice.inspect},"\ + " display_on_hosted_page: #{@display_on_hosted_page.inspect}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities.inspect}, public_signup_page_ids:"\ + " #{@public_signup_page_ids.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/organization_address.rb b/lib/advanced_billing/models/organization_address.rb index 48db7af4..267591c7 100644 --- a/lib/advanced_billing/models/organization_address.rb +++ b/lib/advanced_billing/models/organization_address.rb @@ -129,5 +129,22 @@ def self.from_hash(hash) phone: phone, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} street: #{@street}, line2: #{@line2}, city: #{@city}, state: #{@state},"\ + " zip: #{@zip}, country: #{@country}, name: #{@name}, phone: #{@phone},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} street: #{@street.inspect}, line2: #{@line2.inspect}, city:"\ + " #{@city.inspect}, state: #{@state.inspect}, zip: #{@zip.inspect}, country:"\ + " #{@country.inspect}, name: #{@name.inspect}, phone: #{@phone.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/origin_invoice.rb b/lib/advanced_billing/models/origin_invoice.rb index 9c697ccd..b1a3f451 100644 --- a/lib/advanced_billing/models/origin_invoice.rb +++ b/lib/advanced_billing/models/origin_invoice.rb @@ -74,5 +74,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, number: #{@number}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, number: #{@number.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/overage_pricing.rb b/lib/advanced_billing/models/overage_pricing.rb index ff7beb9e..490d0ab5 100644 --- a/lib/advanced_billing/models/overage_pricing.rb +++ b/lib/advanced_billing/models/overage_pricing.rb @@ -91,5 +91,19 @@ def self.validate(value) APIHelper.valid_type?(value['pricing_scheme'], ->(val) { PricingScheme.validate(val) }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} pricing_scheme: #{@pricing_scheme}, prices: #{@prices},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} pricing_scheme: #{@pricing_scheme.inspect}, prices: #{@prices.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/override_subscription.rb b/lib/advanced_billing/models/override_subscription.rb index 66959b76..28fd3946 100644 --- a/lib/advanced_billing/models/override_subscription.rb +++ b/lib/advanced_billing/models/override_subscription.rb @@ -137,5 +137,24 @@ def to_custom_expires_at def to_custom_current_period_starts_at DateTimeHelper.to_rfc3339(current_period_starts_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} activated_at: #{@activated_at}, canceled_at: #{@canceled_at},"\ + " cancellation_message: #{@cancellation_message}, expires_at: #{@expires_at},"\ + " current_period_starts_at: #{@current_period_starts_at}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} activated_at: #{@activated_at.inspect}, canceled_at:"\ + " #{@canceled_at.inspect}, cancellation_message: #{@cancellation_message.inspect},"\ + " expires_at: #{@expires_at.inspect}, current_period_starts_at:"\ + " #{@current_period_starts_at.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/override_subscription_request.rb b/lib/advanced_billing/models/override_subscription_request.rb index c201e0c2..83a41524 100644 --- a/lib/advanced_billing/models/override_subscription_request.rb +++ b/lib/advanced_billing/models/override_subscription_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) OverrideSubscriptionRequest.new(subscription: subscription, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/paginated_metadata.rb b/lib/advanced_billing/models/paginated_metadata.rb index c659e6e9..7fd31472 100644 --- a/lib/advanced_billing/models/paginated_metadata.rb +++ b/lib/advanced_billing/models/paginated_metadata.rb @@ -101,5 +101,22 @@ def self.from_hash(hash) metadata: metadata, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} total_count: #{@total_count}, current_page: #{@current_page}, total_pages:"\ + " #{@total_pages}, per_page: #{@per_page}, metadata: #{@metadata}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} total_count: #{@total_count.inspect}, current_page:"\ + " #{@current_page.inspect}, total_pages: #{@total_pages.inspect}, per_page:"\ + " #{@per_page.inspect}, metadata: #{@metadata.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/paid_invoice.rb b/lib/advanced_billing/models/paid_invoice.rb index 0b8e9c3d..1d803db5 100644 --- a/lib/advanced_billing/models/paid_invoice.rb +++ b/lib/advanced_billing/models/paid_invoice.rb @@ -85,5 +85,20 @@ def self.from_hash(hash) paid_amount: paid_amount, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} invoice_id: #{@invoice_id}, status: #{@status}, due_amount: #{@due_amount},"\ + " paid_amount: #{@paid_amount}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} invoice_id: #{@invoice_id.inspect}, status: #{@status.inspect}, due_amount:"\ + " #{@due_amount.inspect}, paid_amount: #{@paid_amount.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/pause_request.rb b/lib/advanced_billing/models/pause_request.rb index 7df08532..2dfa7195 100644 --- a/lib/advanced_billing/models/pause_request.rb +++ b/lib/advanced_billing/models/pause_request.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) PauseRequest.new(hold: hold, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} hold: #{@hold}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} hold: #{@hold.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payer_attributes.rb b/lib/advanced_billing/models/payer_attributes.rb index 1b2d93c1..43cea4f6 100644 --- a/lib/advanced_billing/models/payer_attributes.rb +++ b/lib/advanced_billing/models/payer_attributes.rb @@ -226,5 +226,29 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name}, last_name: #{@last_name}, email: #{@email},"\ + " cc_emails: #{@cc_emails}, organization: #{@organization}, reference: #{@reference},"\ + " address: #{@address}, address_2: #{@address_2}, city: #{@city}, state: #{@state}, zip:"\ + " #{@zip}, country: #{@country}, phone: #{@phone}, locale: #{@locale}, vat_number:"\ + " #{@vat_number}, tax_exempt: #{@tax_exempt}, tax_exempt_reason: #{@tax_exempt_reason},"\ + " metafields: #{@metafields}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\ + " email: #{@email.inspect}, cc_emails: #{@cc_emails.inspect}, organization:"\ + " #{@organization.inspect}, reference: #{@reference.inspect}, address: #{@address.inspect},"\ + " address_2: #{@address_2.inspect}, city: #{@city.inspect}, state: #{@state.inspect}, zip:"\ + " #{@zip.inspect}, country: #{@country.inspect}, phone: #{@phone.inspect}, locale:"\ + " #{@locale.inspect}, vat_number: #{@vat_number.inspect}, tax_exempt:"\ + " #{@tax_exempt.inspect}, tax_exempt_reason: #{@tax_exempt_reason.inspect}, metafields:"\ + " #{@metafields.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payer_error.rb b/lib/advanced_billing/models/payer_error.rb index 72482b06..0fa7b3a0 100644 --- a/lib/advanced_billing/models/payer_error.rb +++ b/lib/advanced_billing/models/payer_error.rb @@ -74,5 +74,19 @@ def self.from_hash(hash) email: email, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} last_name: #{@last_name}, first_name: #{@first_name}, email: #{@email},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} last_name: #{@last_name.inspect}, first_name: #{@first_name.inspect},"\ + " email: #{@email.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payment_collection_method_changed.rb b/lib/advanced_billing/models/payment_collection_method_changed.rb index 3860daa2..aed5f546 100644 --- a/lib/advanced_billing/models/payment_collection_method_changed.rb +++ b/lib/advanced_billing/models/payment_collection_method_changed.rb @@ -84,5 +84,19 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} previous_value: #{@previous_value}, current_value: #{@current_value},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} previous_value: #{@previous_value.inspect}, current_value:"\ + " #{@current_value.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payment_for_allocation.rb b/lib/advanced_billing/models/payment_for_allocation.rb index c58c7bd6..59493987 100644 --- a/lib/advanced_billing/models/payment_for_allocation.rb +++ b/lib/advanced_billing/models/payment_for_allocation.rb @@ -94,5 +94,20 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, amount_in_cents: #{@amount_in_cents}, success: #{@success},"\ + " memo: #{@memo}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, amount_in_cents: #{@amount_in_cents.inspect}, success:"\ + " #{@success.inspect}, memo: #{@memo.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payment_method_apple_pay.rb b/lib/advanced_billing/models/payment_method_apple_pay.rb index 7f5b8119..e83fa2b3 100644 --- a/lib/advanced_billing/models/payment_method_apple_pay.rb +++ b/lib/advanced_billing/models/payment_method_apple_pay.rb @@ -67,5 +67,18 @@ def self.validate(value) APIHelper.valid_type?(value['type'], ->(val) { InvoiceEventPaymentMethod.validate(val) }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} type: #{@type}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} type: #{@type.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payment_method_bank_account.rb b/lib/advanced_billing/models/payment_method_bank_account.rb index c5ebbe29..3a90c4f8 100644 --- a/lib/advanced_billing/models/payment_method_bank_account.rb +++ b/lib/advanced_billing/models/payment_method_bank_account.rb @@ -98,5 +98,21 @@ def self.validate(value) ->(val) { InvoiceEventPaymentMethod.validate(val) }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} masked_account_number: #{@masked_account_number}, masked_routing_number:"\ + " #{@masked_routing_number}, type: #{@type}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} masked_account_number: #{@masked_account_number.inspect},"\ + " masked_routing_number: #{@masked_routing_number.inspect}, type: #{@type.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payment_method_credit_card.rb b/lib/advanced_billing/models/payment_method_credit_card.rb index c6abf48a..d9564b9c 100644 --- a/lib/advanced_billing/models/payment_method_credit_card.rb +++ b/lib/advanced_billing/models/payment_method_credit_card.rb @@ -120,5 +120,22 @@ def self.validate(value) ->(val) { InvoiceEventPaymentMethod.validate(val) }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} card_brand: #{@card_brand}, card_expiration: #{@card_expiration},"\ + " last_four: #{@last_four}, masked_card_number: #{@masked_card_number}, type: #{@type},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} card_brand: #{@card_brand.inspect}, card_expiration:"\ + " #{@card_expiration.inspect}, last_four: #{@last_four.inspect}, masked_card_number:"\ + " #{@masked_card_number.inspect}, type: #{@type.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payment_method_external.rb b/lib/advanced_billing/models/payment_method_external.rb index a1ed9a6e..12cafabe 100644 --- a/lib/advanced_billing/models/payment_method_external.rb +++ b/lib/advanced_billing/models/payment_method_external.rb @@ -110,5 +110,20 @@ def self.validate(value) ->(val) { InvoiceEventPaymentMethod.validate(val) }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} details: #{@details}, kind: #{@kind}, memo: #{@memo}, type: #{@type},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} details: #{@details.inspect}, kind: #{@kind.inspect}, memo:"\ + " #{@memo.inspect}, type: #{@type.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payment_method_paypal.rb b/lib/advanced_billing/models/payment_method_paypal.rb index 1cc5d6b2..d3db089c 100644 --- a/lib/advanced_billing/models/payment_method_paypal.rb +++ b/lib/advanced_billing/models/payment_method_paypal.rb @@ -83,5 +83,19 @@ def self.validate(value) ->(val) { InvoiceEventPaymentMethod.validate(val) }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} email: #{@email}, type: #{@type}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} email: #{@email.inspect}, type: #{@type.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payment_profile_attributes.rb b/lib/advanced_billing/models/payment_profile_attributes.rb index 591a81bc..c52f6f3a 100644 --- a/lib/advanced_billing/models/payment_profile_attributes.rb +++ b/lib/advanced_billing/models/payment_profile_attributes.rb @@ -361,5 +361,40 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} chargify_token: #{@chargify_token}, id: #{@id}, payment_type:"\ + " #{@payment_type}, first_name: #{@first_name}, last_name: #{@last_name},"\ + " masked_card_number: #{@masked_card_number}, full_number: #{@full_number}, card_type:"\ + " #{@card_type}, expiration_month: #{@expiration_month}, expiration_year:"\ + " #{@expiration_year}, billing_address: #{@billing_address}, billing_address_2:"\ + " #{@billing_address_2}, billing_city: #{@billing_city}, billing_state: #{@billing_state},"\ + " billing_country: #{@billing_country}, billing_zip: #{@billing_zip}, current_vault:"\ + " #{@current_vault}, vault_token: #{@vault_token}, customer_vault_token:"\ + " #{@customer_vault_token}, customer_id: #{@customer_id}, paypal_email: #{@paypal_email},"\ + " payment_method_nonce: #{@payment_method_nonce}, gateway_handle: #{@gateway_handle}, cvv:"\ + " #{@cvv}, last_four: #{@last_four}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} chargify_token: #{@chargify_token.inspect}, id: #{@id.inspect},"\ + " payment_type: #{@payment_type.inspect}, first_name: #{@first_name.inspect}, last_name:"\ + " #{@last_name.inspect}, masked_card_number: #{@masked_card_number.inspect}, full_number:"\ + " #{@full_number.inspect}, card_type: #{@card_type.inspect}, expiration_month:"\ + " #{@expiration_month.inspect}, expiration_year: #{@expiration_year.inspect},"\ + " billing_address: #{@billing_address.inspect}, billing_address_2:"\ + " #{@billing_address_2.inspect}, billing_city: #{@billing_city.inspect}, billing_state:"\ + " #{@billing_state.inspect}, billing_country: #{@billing_country.inspect}, billing_zip:"\ + " #{@billing_zip.inspect}, current_vault: #{@current_vault.inspect}, vault_token:"\ + " #{@vault_token.inspect}, customer_vault_token: #{@customer_vault_token.inspect},"\ + " customer_id: #{@customer_id.inspect}, paypal_email: #{@paypal_email.inspect},"\ + " payment_method_nonce: #{@payment_method_nonce.inspect}, gateway_handle:"\ + " #{@gateway_handle.inspect}, cvv: #{@cvv.inspect}, last_four: #{@last_four.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payment_profile_response.rb b/lib/advanced_billing/models/payment_profile_response.rb index 78758b65..b45e026e 100644 --- a/lib/advanced_billing/models/payment_profile_response.rb +++ b/lib/advanced_billing/models/payment_profile_response.rb @@ -69,5 +69,19 @@ def self.validate(value) UnionTypeLookUp.get(:PaymentProfile) .validate(value['payment_profile']) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile: #{@payment_profile}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile: #{@payment_profile.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/payment_related_events.rb b/lib/advanced_billing/models/payment_related_events.rb index 9ec864b0..38a08d64 100644 --- a/lib/advanced_billing/models/payment_related_events.rb +++ b/lib/advanced_billing/models/payment_related_events.rb @@ -85,5 +85,19 @@ def self.validate(value) ->(val) { val.instance_of? Integer }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product_id: #{@product_id}, account_transaction_id:"\ + " #{@account_transaction_id}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product_id: #{@product_id.inspect}, account_transaction_id:"\ + " #{@account_transaction_id.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/paypal_payment_profile.rb b/lib/advanced_billing/models/paypal_payment_profile.rb index f92dc374..b98e4e89 100644 --- a/lib/advanced_billing/models/paypal_payment_profile.rb +++ b/lib/advanced_billing/models/paypal_payment_profile.rb @@ -238,5 +238,33 @@ def self.validate(value) APIHelper.valid_type?(value['payment_type'], ->(val) { PaymentType.validate(val) }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, first_name: #{@first_name}, last_name: #{@last_name},"\ + " customer_id: #{@customer_id}, current_vault: #{@current_vault}, vault_token:"\ + " #{@vault_token}, billing_address: #{@billing_address}, billing_city: #{@billing_city},"\ + " billing_state: #{@billing_state}, billing_zip: #{@billing_zip}, billing_country:"\ + " #{@billing_country}, customer_vault_token: #{@customer_vault_token}, billing_address_2:"\ + " #{@billing_address_2}, payment_type: #{@payment_type}, site_gateway_setting_id:"\ + " #{@site_gateway_setting_id}, gateway_handle: #{@gateway_handle}, paypal_email:"\ + " #{@paypal_email}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, first_name: #{@first_name.inspect}, last_name:"\ + " #{@last_name.inspect}, customer_id: #{@customer_id.inspect}, current_vault:"\ + " #{@current_vault.inspect}, vault_token: #{@vault_token.inspect}, billing_address:"\ + " #{@billing_address.inspect}, billing_city: #{@billing_city.inspect}, billing_state:"\ + " #{@billing_state.inspect}, billing_zip: #{@billing_zip.inspect}, billing_country:"\ + " #{@billing_country.inspect}, customer_vault_token: #{@customer_vault_token.inspect},"\ + " billing_address_2: #{@billing_address_2.inspect}, payment_type: #{@payment_type.inspect},"\ + " site_gateway_setting_id: #{@site_gateway_setting_id.inspect}, gateway_handle:"\ + " #{@gateway_handle.inspect}, paypal_email: #{@paypal_email.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/pending_cancellation_change.rb b/lib/advanced_billing/models/pending_cancellation_change.rb index cae3781d..0fa2945c 100644 --- a/lib/advanced_billing/models/pending_cancellation_change.rb +++ b/lib/advanced_billing/models/pending_cancellation_change.rb @@ -91,5 +91,19 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} cancellation_state: #{@cancellation_state}, cancels_at: #{@cancels_at},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} cancellation_state: #{@cancellation_state.inspect}, cancels_at:"\ + " #{@cancels_at.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/portal_management_link.rb b/lib/advanced_billing/models/portal_management_link.rb index 6356a62a..f36286c6 100644 --- a/lib/advanced_billing/models/portal_management_link.rb +++ b/lib/advanced_billing/models/portal_management_link.rb @@ -137,5 +137,23 @@ def to_custom_expires_at def to_custom_last_invite_sent_at DateTimeHelper.to_rfc3339(last_invite_sent_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} url: #{@url}, fetch_count: #{@fetch_count}, created_at: #{@created_at},"\ + " new_link_available_at: #{@new_link_available_at}, expires_at: #{@expires_at},"\ + " last_invite_sent_at: #{@last_invite_sent_at}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} url: #{@url.inspect}, fetch_count: #{@fetch_count.inspect}, created_at:"\ + " #{@created_at.inspect}, new_link_available_at: #{@new_link_available_at.inspect},"\ + " expires_at: #{@expires_at.inspect}, last_invite_sent_at: #{@last_invite_sent_at.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepaid_configuration.rb b/lib/advanced_billing/models/prepaid_configuration.rb index 604a7b6d..7b85fd84 100644 --- a/lib/advanced_billing/models/prepaid_configuration.rb +++ b/lib/advanced_billing/models/prepaid_configuration.rb @@ -109,5 +109,25 @@ def self.from_hash(hash) replenish_threshold_amount_in_cents: replenish_threshold_amount_in_cents, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, initial_funding_amount_in_cents:"\ + " #{@initial_funding_amount_in_cents}, replenish_to_amount_in_cents:"\ + " #{@replenish_to_amount_in_cents}, auto_replenish: #{@auto_replenish},"\ + " replenish_threshold_amount_in_cents: #{@replenish_threshold_amount_in_cents},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, initial_funding_amount_in_cents:"\ + " #{@initial_funding_amount_in_cents.inspect}, replenish_to_amount_in_cents:"\ + " #{@replenish_to_amount_in_cents.inspect}, auto_replenish: #{@auto_replenish.inspect},"\ + " replenish_threshold_amount_in_cents: #{@replenish_threshold_amount_in_cents.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepaid_configuration_response.rb b/lib/advanced_billing/models/prepaid_configuration_response.rb index 5dfe793b..dfcf1c83 100644 --- a/lib/advanced_billing/models/prepaid_configuration_response.rb +++ b/lib/advanced_billing/models/prepaid_configuration_response.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) PrepaidConfigurationResponse.new(prepaid_configuration: prepaid_configuration, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepaid_configuration: #{@prepaid_configuration}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepaid_configuration: #{@prepaid_configuration.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepaid_product_price_point_filter.rb b/lib/advanced_billing/models/prepaid_product_price_point_filter.rb index 79fb2506..f7b53985 100644 --- a/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +++ b/lib/advanced_billing/models/prepaid_product_price_point_filter.rb @@ -52,5 +52,19 @@ def self.from_hash(hash) # Create object from extracted values. PrepaidProductPricePointFilter.new(additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product_price_point_id: #{@product_price_point_id}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product_price_point_id: #{@product_price_point_id.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb b/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb index 1b880c17..c5d7759c 100644 --- a/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +++ b/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb @@ -115,5 +115,24 @@ def self.validate(value) ->(val) { val.instance_of? Integer }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} reason: #{@reason}, current_account_balance_in_cents:"\ + " #{@current_account_balance_in_cents}, prepayment_account_balance_in_cents:"\ + " #{@prepayment_account_balance_in_cents}, current_usage_amount_in_cents:"\ + " #{@current_usage_amount_in_cents}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} reason: #{@reason.inspect}, current_account_balance_in_cents:"\ + " #{@current_account_balance_in_cents.inspect}, prepayment_account_balance_in_cents:"\ + " #{@prepayment_account_balance_in_cents.inspect}, current_usage_amount_in_cents:"\ + " #{@current_usage_amount_in_cents.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepaid_usage.rb b/lib/advanced_billing/models/prepaid_usage.rb index 9c2fb6b1..98d398c8 100644 --- a/lib/advanced_billing/models/prepaid_usage.rb +++ b/lib/advanced_billing/models/prepaid_usage.rb @@ -204,5 +204,30 @@ def self.validate(value) is_inner_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} previous_unit_balance: #{@previous_unit_balance},"\ + " previous_overage_unit_balance: #{@previous_overage_unit_balance}, new_unit_balance:"\ + " #{@new_unit_balance}, new_overage_unit_balance: #{@new_overage_unit_balance},"\ + " usage_quantity: #{@usage_quantity}, overage_usage_quantity: #{@overage_usage_quantity},"\ + " component_id: #{@component_id}, component_handle: #{@component_handle}, memo: #{@memo},"\ + " allocation_details: #{@allocation_details}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} previous_unit_balance: #{@previous_unit_balance.inspect},"\ + " previous_overage_unit_balance: #{@previous_overage_unit_balance.inspect},"\ + " new_unit_balance: #{@new_unit_balance.inspect}, new_overage_unit_balance:"\ + " #{@new_overage_unit_balance.inspect}, usage_quantity: #{@usage_quantity.inspect},"\ + " overage_usage_quantity: #{@overage_usage_quantity.inspect}, component_id:"\ + " #{@component_id.inspect}, component_handle: #{@component_handle.inspect}, memo:"\ + " #{@memo.inspect}, allocation_details: #{@allocation_details.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb b/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb index 6cbed655..70362edd 100644 --- a/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +++ b/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb @@ -85,5 +85,20 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} allocation_id: #{@allocation_id}, charge_id: #{@charge_id}, usage_quantity:"\ + " #{@usage_quantity}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} allocation_id: #{@allocation_id.inspect}, charge_id: #{@charge_id.inspect},"\ + " usage_quantity: #{@usage_quantity.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepaid_usage_component.rb b/lib/advanced_billing/models/prepaid_usage_component.rb index b364defa..241a75e7 100644 --- a/lib/advanced_billing/models/prepaid_usage_component.rb +++ b/lib/advanced_billing/models/prepaid_usage_component.rb @@ -359,5 +359,40 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, unit_name: #{@unit_name}, description: #{@description},"\ + " handle: #{@handle}, taxable: #{@taxable}, pricing_scheme: #{@pricing_scheme}, prices:"\ + " #{@prices}, upgrade_charge: #{@upgrade_charge}, downgrade_credit: #{@downgrade_credit},"\ + " price_points: #{@price_points}, unit_price: #{@unit_price}, tax_code: #{@tax_code},"\ + " hide_date_range_on_invoice: #{@hide_date_range_on_invoice}, overage_pricing:"\ + " #{@overage_pricing}, rollover_prepaid_remainder: #{@rollover_prepaid_remainder},"\ + " renew_prepaid_allocation: #{@renew_prepaid_allocation}, expiration_interval:"\ + " #{@expiration_interval}, expiration_interval_unit: #{@expiration_interval_unit},"\ + " display_on_hosted_page: #{@display_on_hosted_page}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities}, public_signup_page_ids: #{@public_signup_page_ids},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, unit_name: #{@unit_name.inspect}, description:"\ + " #{@description.inspect}, handle: #{@handle.inspect}, taxable: #{@taxable.inspect},"\ + " pricing_scheme: #{@pricing_scheme.inspect}, prices: #{@prices.inspect}, upgrade_charge:"\ + " #{@upgrade_charge.inspect}, downgrade_credit: #{@downgrade_credit.inspect}, price_points:"\ + " #{@price_points.inspect}, unit_price: #{@unit_price.inspect}, tax_code:"\ + " #{@tax_code.inspect}, hide_date_range_on_invoice: #{@hide_date_range_on_invoice.inspect},"\ + " overage_pricing: #{@overage_pricing.inspect}, rollover_prepaid_remainder:"\ + " #{@rollover_prepaid_remainder.inspect}, renew_prepaid_allocation:"\ + " #{@renew_prepaid_allocation.inspect}, expiration_interval:"\ + " #{@expiration_interval.inspect}, expiration_interval_unit:"\ + " #{@expiration_interval_unit.inspect}, display_on_hosted_page:"\ + " #{@display_on_hosted_page.inspect}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities.inspect}, public_signup_page_ids:"\ + " #{@public_signup_page_ids.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepayment.rb b/lib/advanced_billing/models/prepayment.rb index 863b99c1..2d1c6255 100644 --- a/lib/advanced_billing/models/prepayment.rb +++ b/lib/advanced_billing/models/prepayment.rb @@ -143,5 +143,26 @@ def self.from_hash(hash) def to_custom_created_at DateTimeHelper.to_rfc3339(created_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, subscription_id: #{@subscription_id}, amount_in_cents:"\ + " #{@amount_in_cents}, remaining_amount_in_cents: #{@remaining_amount_in_cents},"\ + " refunded_amount_in_cents: #{@refunded_amount_in_cents}, details: #{@details}, external:"\ + " #{@external}, memo: #{@memo}, payment_type: #{@payment_type}, created_at: #{@created_at},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, subscription_id: #{@subscription_id.inspect},"\ + " amount_in_cents: #{@amount_in_cents.inspect}, remaining_amount_in_cents:"\ + " #{@remaining_amount_in_cents.inspect}, refunded_amount_in_cents:"\ + " #{@refunded_amount_in_cents.inspect}, details: #{@details.inspect}, external:"\ + " #{@external.inspect}, memo: #{@memo.inspect}, payment_type: #{@payment_type.inspect},"\ + " created_at: #{@created_at.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepayment_account_balance_changed.rb b/lib/advanced_billing/models/prepayment_account_balance_changed.rb index 901a0216..3e6af649 100644 --- a/lib/advanced_billing/models/prepayment_account_balance_changed.rb +++ b/lib/advanced_billing/models/prepayment_account_balance_changed.rb @@ -113,5 +113,23 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} reason: #{@reason}, prepayment_account_balance_in_cents:"\ + " #{@prepayment_account_balance_in_cents}, prepayment_balance_change_in_cents:"\ + " #{@prepayment_balance_change_in_cents}, currency_code: #{@currency_code},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} reason: #{@reason.inspect}, prepayment_account_balance_in_cents:"\ + " #{@prepayment_account_balance_in_cents.inspect}, prepayment_balance_change_in_cents:"\ + " #{@prepayment_balance_change_in_cents.inspect}, currency_code: #{@currency_code.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepayment_response.rb b/lib/advanced_billing/models/prepayment_response.rb index e44f532d..4eed43ba 100644 --- a/lib/advanced_billing/models/prepayment_response.rb +++ b/lib/advanced_billing/models/prepayment_response.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) PrepaymentResponse.new(prepayment: prepayment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepayment: #{@prepayment}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepayment: #{@prepayment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/prepayments_response.rb b/lib/advanced_billing/models/prepayments_response.rb index 23c2aea1..41acff2a 100644 --- a/lib/advanced_billing/models/prepayments_response.rb +++ b/lib/advanced_billing/models/prepayments_response.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) PrepaymentsResponse.new(prepayments: prepayments, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepayments: #{@prepayments}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepayments: #{@prepayments.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/preview_allocations_request.rb b/lib/advanced_billing/models/preview_allocations_request.rb index 36ed5f68..437d9e54 100644 --- a/lib/advanced_billing/models/preview_allocations_request.rb +++ b/lib/advanced_billing/models/preview_allocations_request.rb @@ -103,5 +103,22 @@ def self.from_hash(hash) downgrade_credit: downgrade_credit, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} allocations: #{@allocations}, effective_proration_date:"\ + " #{@effective_proration_date}, upgrade_charge: #{@upgrade_charge}, downgrade_credit:"\ + " #{@downgrade_credit}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} allocations: #{@allocations.inspect}, effective_proration_date:"\ + " #{@effective_proration_date.inspect}, upgrade_charge: #{@upgrade_charge.inspect},"\ + " downgrade_credit: #{@downgrade_credit.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/price.rb b/lib/advanced_billing/models/price.rb index 27e0be49..c0f82074 100644 --- a/lib/advanced_billing/models/price.rb +++ b/lib/advanced_billing/models/price.rb @@ -103,5 +103,21 @@ def self.validate(value) .validate(value['unit_price']) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} starting_quantity: #{@starting_quantity}, ending_quantity:"\ + " #{@ending_quantity}, unit_price: #{@unit_price}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} starting_quantity: #{@starting_quantity.inspect}, ending_quantity:"\ + " #{@ending_quantity.inspect}, unit_price: #{@unit_price.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/product.rb b/lib/advanced_billing/models/product.rb index d2ecf02d..fdfe56f1 100644 --- a/lib/advanced_billing/models/product.rb +++ b/lib/advanced_billing/models/product.rb @@ -522,5 +522,60 @@ def to_custom_updated_at def to_custom_archived_at DateTimeHelper.to_rfc3339(archived_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, name: #{@name}, handle: #{@handle}, description:"\ + " #{@description}, accounting_code: #{@accounting_code}, request_credit_card:"\ + " #{@request_credit_card}, expiration_interval: #{@expiration_interval},"\ + " expiration_interval_unit: #{@expiration_interval_unit}, created_at: #{@created_at},"\ + " updated_at: #{@updated_at}, price_in_cents: #{@price_in_cents}, interval: #{@interval},"\ + " interval_unit: #{@interval_unit}, initial_charge_in_cents: #{@initial_charge_in_cents},"\ + " trial_price_in_cents: #{@trial_price_in_cents}, trial_interval: #{@trial_interval},"\ + " trial_interval_unit: #{@trial_interval_unit}, archived_at: #{@archived_at},"\ + " require_credit_card: #{@require_credit_card}, return_params: #{@return_params}, taxable:"\ + " #{@taxable}, update_return_url: #{@update_return_url}, initial_charge_after_trial:"\ + " #{@initial_charge_after_trial}, version_number: #{@version_number}, update_return_params:"\ + " #{@update_return_params}, product_family: #{@product_family}, public_signup_pages:"\ + " #{@public_signup_pages}, product_price_point_name: #{@product_price_point_name},"\ + " request_billing_address: #{@request_billing_address}, require_billing_address:"\ + " #{@require_billing_address}, require_shipping_address: #{@require_shipping_address},"\ + " tax_code: #{@tax_code}, default_product_price_point_id:"\ + " #{@default_product_price_point_id}, use_site_exchange_rate: #{@use_site_exchange_rate},"\ + " item_category: #{@item_category}, product_price_point_id: #{@product_price_point_id},"\ + " product_price_point_handle: #{@product_price_point_handle}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, handle: #{@handle.inspect},"\ + " description: #{@description.inspect}, accounting_code: #{@accounting_code.inspect},"\ + " request_credit_card: #{@request_credit_card.inspect}, expiration_interval:"\ + " #{@expiration_interval.inspect}, expiration_interval_unit:"\ + " #{@expiration_interval_unit.inspect}, created_at: #{@created_at.inspect}, updated_at:"\ + " #{@updated_at.inspect}, price_in_cents: #{@price_in_cents.inspect}, interval:"\ + " #{@interval.inspect}, interval_unit: #{@interval_unit.inspect}, initial_charge_in_cents:"\ + " #{@initial_charge_in_cents.inspect}, trial_price_in_cents:"\ + " #{@trial_price_in_cents.inspect}, trial_interval: #{@trial_interval.inspect},"\ + " trial_interval_unit: #{@trial_interval_unit.inspect}, archived_at:"\ + " #{@archived_at.inspect}, require_credit_card: #{@require_credit_card.inspect},"\ + " return_params: #{@return_params.inspect}, taxable: #{@taxable.inspect}, update_return_url:"\ + " #{@update_return_url.inspect}, initial_charge_after_trial:"\ + " #{@initial_charge_after_trial.inspect}, version_number: #{@version_number.inspect},"\ + " update_return_params: #{@update_return_params.inspect}, product_family:"\ + " #{@product_family.inspect}, public_signup_pages: #{@public_signup_pages.inspect},"\ + " product_price_point_name: #{@product_price_point_name.inspect}, request_billing_address:"\ + " #{@request_billing_address.inspect}, require_billing_address:"\ + " #{@require_billing_address.inspect}, require_shipping_address:"\ + " #{@require_shipping_address.inspect}, tax_code: #{@tax_code.inspect},"\ + " default_product_price_point_id: #{@default_product_price_point_id.inspect},"\ + " use_site_exchange_rate: #{@use_site_exchange_rate.inspect}, item_category:"\ + " #{@item_category.inspect}, product_price_point_id: #{@product_price_point_id.inspect},"\ + " product_price_point_handle: #{@product_price_point_handle.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/product_family.rb b/lib/advanced_billing/models/product_family.rb index 88a5c11e..000a19d4 100644 --- a/lib/advanced_billing/models/product_family.rb +++ b/lib/advanced_billing/models/product_family.rb @@ -132,5 +132,22 @@ def to_custom_created_at def to_custom_updated_at DateTimeHelper.to_rfc3339(updated_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, name: #{@name}, handle: #{@handle}, accounting_code:"\ + " #{@accounting_code}, description: #{@description}, created_at: #{@created_at}, updated_at:"\ + " #{@updated_at}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, handle: #{@handle.inspect},"\ + " accounting_code: #{@accounting_code.inspect}, description: #{@description.inspect},"\ + " created_at: #{@created_at.inspect}, updated_at: #{@updated_at.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/product_family_response.rb b/lib/advanced_billing/models/product_family_response.rb index 13657b7f..8b36e6b1 100644 --- a/lib/advanced_billing/models/product_family_response.rb +++ b/lib/advanced_billing/models/product_family_response.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) ProductFamilyResponse.new(product_family: product_family, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product_family: #{@product_family}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product_family: #{@product_family.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/product_price_point.rb b/lib/advanced_billing/models/product_price_point.rb index 50cfa500..ef68884a 100644 --- a/lib/advanced_billing/models/product_price_point.rb +++ b/lib/advanced_billing/models/product_price_point.rb @@ -347,5 +347,42 @@ def to_custom_created_at def to_custom_updated_at DateTimeHelper.to_rfc3339(updated_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, name: #{@name}, handle: #{@handle}, price_in_cents:"\ + " #{@price_in_cents}, interval: #{@interval}, interval_unit: #{@interval_unit},"\ + " trial_price_in_cents: #{@trial_price_in_cents}, trial_interval: #{@trial_interval},"\ + " trial_interval_unit: #{@trial_interval_unit}, trial_type: #{@trial_type},"\ + " introductory_offer: #{@introductory_offer}, initial_charge_in_cents:"\ + " #{@initial_charge_in_cents}, initial_charge_after_trial: #{@initial_charge_after_trial},"\ + " expiration_interval: #{@expiration_interval}, expiration_interval_unit:"\ + " #{@expiration_interval_unit}, product_id: #{@product_id}, archived_at: #{@archived_at},"\ + " created_at: #{@created_at}, updated_at: #{@updated_at}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate}, type: #{@type}, tax_included: #{@tax_included},"\ + " subscription_id: #{@subscription_id}, currency_prices: #{@currency_prices},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, handle: #{@handle.inspect},"\ + " price_in_cents: #{@price_in_cents.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, trial_price_in_cents: #{@trial_price_in_cents.inspect},"\ + " trial_interval: #{@trial_interval.inspect}, trial_interval_unit:"\ + " #{@trial_interval_unit.inspect}, trial_type: #{@trial_type.inspect}, introductory_offer:"\ + " #{@introductory_offer.inspect}, initial_charge_in_cents:"\ + " #{@initial_charge_in_cents.inspect}, initial_charge_after_trial:"\ + " #{@initial_charge_after_trial.inspect}, expiration_interval:"\ + " #{@expiration_interval.inspect}, expiration_interval_unit:"\ + " #{@expiration_interval_unit.inspect}, product_id: #{@product_id.inspect}, archived_at:"\ + " #{@archived_at.inspect}, created_at: #{@created_at.inspect}, updated_at:"\ + " #{@updated_at.inspect}, use_site_exchange_rate: #{@use_site_exchange_rate.inspect}, type:"\ + " #{@type.inspect}, tax_included: #{@tax_included.inspect}, subscription_id:"\ + " #{@subscription_id.inspect}, currency_prices: #{@currency_prices.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/product_price_point_errors.rb b/lib/advanced_billing/models/product_price_point_errors.rb index 9941fe89..5edbf156 100644 --- a/lib/advanced_billing/models/product_price_point_errors.rb +++ b/lib/advanced_billing/models/product_price_point_errors.rb @@ -103,5 +103,22 @@ def self.from_hash(hash) price_in_cents: price_in_cents, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point}, interval: #{@interval}, interval_unit:"\ + " #{@interval_unit}, name: #{@name}, price: #{@price}, price_in_cents: #{@price_in_cents},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point.inspect}, interval: #{@interval.inspect},"\ + " interval_unit: #{@interval_unit.inspect}, name: #{@name.inspect}, price:"\ + " #{@price.inspect}, price_in_cents: #{@price_in_cents.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/product_price_point_response.rb b/lib/advanced_billing/models/product_price_point_response.rb index ad326580..482d38ea 100644 --- a/lib/advanced_billing/models/product_price_point_response.rb +++ b/lib/advanced_billing/models/product_price_point_response.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) ProductPricePointResponse.new(price_point: price_point, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/product_response.rb b/lib/advanced_billing/models/product_response.rb index ea05e3a7..a8e18f85 100644 --- a/lib/advanced_billing/models/product_response.rb +++ b/lib/advanced_billing/models/product_response.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) ProductResponse.new(product: product, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product: #{@product}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product: #{@product.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/proforma_error.rb b/lib/advanced_billing/models/proforma_error.rb index 582fca8b..794221ea 100644 --- a/lib/advanced_billing/models/proforma_error.rb +++ b/lib/advanced_billing/models/proforma_error.rb @@ -56,5 +56,19 @@ def self.from_hash(hash) ProformaError.new(subscription: subscription, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/proforma_invoice.rb b/lib/advanced_billing/models/proforma_invoice.rb index 613955f7..e37abd3a 100644 --- a/lib/advanced_billing/models/proforma_invoice.rb +++ b/lib/advanced_billing/models/proforma_invoice.rb @@ -525,5 +525,47 @@ def self.from_hash(hash) def to_custom_created_at DateTimeHelper.to_rfc3339(created_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, site_id: #{@site_id}, customer_id: #{@customer_id},"\ + " subscription_id: #{@subscription_id}, number: #{@number}, sequence_number:"\ + " #{@sequence_number}, created_at: #{@created_at}, delivery_date: #{@delivery_date}, status:"\ + " #{@status}, collection_method: #{@collection_method}, payment_instructions:"\ + " #{@payment_instructions}, currency: #{@currency}, consolidation_level:"\ + " #{@consolidation_level}, product_name: #{@product_name}, product_family_name:"\ + " #{@product_family_name}, role: #{@role}, seller: #{@seller}, customer: #{@customer}, memo:"\ + " #{@memo}, billing_address: #{@billing_address}, shipping_address: #{@shipping_address},"\ + " subtotal_amount: #{@subtotal_amount}, discount_amount: #{@discount_amount}, tax_amount:"\ + " #{@tax_amount}, total_amount: #{@total_amount}, credit_amount: #{@credit_amount},"\ + " paid_amount: #{@paid_amount}, refund_amount: #{@refund_amount}, due_amount:"\ + " #{@due_amount}, line_items: #{@line_items}, discounts: #{@discounts}, taxes: #{@taxes},"\ + " credits: #{@credits}, payments: #{@payments}, custom_fields: #{@custom_fields},"\ + " public_url: #{@public_url}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, site_id: #{@site_id.inspect}, customer_id:"\ + " #{@customer_id.inspect}, subscription_id: #{@subscription_id.inspect}, number:"\ + " #{@number.inspect}, sequence_number: #{@sequence_number.inspect}, created_at:"\ + " #{@created_at.inspect}, delivery_date: #{@delivery_date.inspect}, status:"\ + " #{@status.inspect}, collection_method: #{@collection_method.inspect},"\ + " payment_instructions: #{@payment_instructions.inspect}, currency: #{@currency.inspect},"\ + " consolidation_level: #{@consolidation_level.inspect}, product_name:"\ + " #{@product_name.inspect}, product_family_name: #{@product_family_name.inspect}, role:"\ + " #{@role.inspect}, seller: #{@seller.inspect}, customer: #{@customer.inspect}, memo:"\ + " #{@memo.inspect}, billing_address: #{@billing_address.inspect}, shipping_address:"\ + " #{@shipping_address.inspect}, subtotal_amount: #{@subtotal_amount.inspect},"\ + " discount_amount: #{@discount_amount.inspect}, tax_amount: #{@tax_amount.inspect},"\ + " total_amount: #{@total_amount.inspect}, credit_amount: #{@credit_amount.inspect},"\ + " paid_amount: #{@paid_amount.inspect}, refund_amount: #{@refund_amount.inspect},"\ + " due_amount: #{@due_amount.inspect}, line_items: #{@line_items.inspect}, discounts:"\ + " #{@discounts.inspect}, taxes: #{@taxes.inspect}, credits: #{@credits.inspect}, payments:"\ + " #{@payments.inspect}, custom_fields: #{@custom_fields.inspect}, public_url:"\ + " #{@public_url.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/proforma_invoice_credit.rb b/lib/advanced_billing/models/proforma_invoice_credit.rb index 861f6ae2..00e424f3 100644 --- a/lib/advanced_billing/models/proforma_invoice_credit.rb +++ b/lib/advanced_billing/models/proforma_invoice_credit.rb @@ -85,5 +85,20 @@ def self.from_hash(hash) applied_amount: applied_amount, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, memo: #{@memo}, original_amount: #{@original_amount},"\ + " applied_amount: #{@applied_amount}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, memo: #{@memo.inspect}, original_amount:"\ + " #{@original_amount.inspect}, applied_amount: #{@applied_amount.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/proforma_invoice_discount.rb b/lib/advanced_billing/models/proforma_invoice_discount.rb index 20397011..a2b689c6 100644 --- a/lib/advanced_billing/models/proforma_invoice_discount.rb +++ b/lib/advanced_billing/models/proforma_invoice_discount.rb @@ -132,5 +132,24 @@ def self.from_hash(hash) line_item_breakouts: line_item_breakouts, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, title: #{@title}, code: #{@code}, source_type:"\ + " #{@source_type}, discount_type: #{@discount_type}, eligible_amount: #{@eligible_amount},"\ + " discount_amount: #{@discount_amount}, line_item_breakouts: #{@line_item_breakouts},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, title: #{@title.inspect}, code: #{@code.inspect},"\ + " source_type: #{@source_type.inspect}, discount_type: #{@discount_type.inspect},"\ + " eligible_amount: #{@eligible_amount.inspect}, discount_amount:"\ + " #{@discount_amount.inspect}, line_item_breakouts: #{@line_item_breakouts.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/proforma_invoice_issued.rb b/lib/advanced_billing/models/proforma_invoice_issued.rb index 47b8ac69..a6a08310 100644 --- a/lib/advanced_billing/models/proforma_invoice_issued.rb +++ b/lib/advanced_billing/models/proforma_invoice_issued.rb @@ -213,5 +213,26 @@ def self.validate(value) is_inner_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, number: #{@number}, role: #{@role}, delivery_date:"\ + " #{@delivery_date}, created_at: #{@created_at}, due_amount: #{@due_amount}, paid_amount:"\ + " #{@paid_amount}, tax_amount: #{@tax_amount}, total_amount: #{@total_amount}, product_name:"\ + " #{@product_name}, line_items: #{@line_items}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, number: #{@number.inspect}, role: #{@role.inspect},"\ + " delivery_date: #{@delivery_date.inspect}, created_at: #{@created_at.inspect}, due_amount:"\ + " #{@due_amount.inspect}, paid_amount: #{@paid_amount.inspect}, tax_amount:"\ + " #{@tax_amount.inspect}, total_amount: #{@total_amount.inspect}, product_name:"\ + " #{@product_name.inspect}, line_items: #{@line_items.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/proforma_invoice_payment.rb b/lib/advanced_billing/models/proforma_invoice_payment.rb index ad1a5d09..b5bba9a1 100644 --- a/lib/advanced_billing/models/proforma_invoice_payment.rb +++ b/lib/advanced_billing/models/proforma_invoice_payment.rb @@ -85,5 +85,21 @@ def self.from_hash(hash) prepayment: prepayment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} memo: #{@memo}, original_amount: #{@original_amount}, applied_amount:"\ + " #{@applied_amount}, prepayment: #{@prepayment}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} memo: #{@memo.inspect}, original_amount: #{@original_amount.inspect},"\ + " applied_amount: #{@applied_amount.inspect}, prepayment: #{@prepayment.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/proforma_invoice_tax.rb b/lib/advanced_billing/models/proforma_invoice_tax.rb index cec3b86d..ef279f69 100644 --- a/lib/advanced_billing/models/proforma_invoice_tax.rb +++ b/lib/advanced_billing/models/proforma_invoice_tax.rb @@ -121,5 +121,23 @@ def self.from_hash(hash) line_item_breakouts: line_item_breakouts, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, title: #{@title}, source_type: #{@source_type}, percentage:"\ + " #{@percentage}, taxable_amount: #{@taxable_amount}, tax_amount: #{@tax_amount},"\ + " line_item_breakouts: #{@line_item_breakouts}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, title: #{@title.inspect}, source_type:"\ + " #{@source_type.inspect}, percentage: #{@percentage.inspect}, taxable_amount:"\ + " #{@taxable_amount.inspect}, tax_amount: #{@tax_amount.inspect}, line_item_breakouts:"\ + " #{@line_item_breakouts.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/proration.rb b/lib/advanced_billing/models/proration.rb index 17ce2dc3..15d5a4f8 100644 --- a/lib/advanced_billing/models/proration.rb +++ b/lib/advanced_billing/models/proration.rb @@ -57,5 +57,19 @@ def self.from_hash(hash) Proration.new(preserve_period: preserve_period, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} preserve_period: #{@preserve_period}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} preserve_period: #{@preserve_period.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/public_key.rb b/lib/advanced_billing/models/public_key.rb index 2bf6a5b2..5ef43e19 100644 --- a/lib/advanced_billing/models/public_key.rb +++ b/lib/advanced_billing/models/public_key.rb @@ -84,5 +84,21 @@ def self.from_hash(hash) def to_custom_created_at DateTimeHelper.to_rfc3339(created_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} public_key: #{@public_key}, requires_security_token:"\ + " #{@requires_security_token}, created_at: #{@created_at}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} public_key: #{@public_key.inspect}, requires_security_token:"\ + " #{@requires_security_token.inspect}, created_at: #{@created_at.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/public_signup_page.rb b/lib/advanced_billing/models/public_signup_page.rb index d6092dc2..2293cb76 100644 --- a/lib/advanced_billing/models/public_signup_page.rb +++ b/lib/advanced_billing/models/public_signup_page.rb @@ -87,5 +87,20 @@ def self.from_hash(hash) url: url, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, return_url: #{@return_url}, return_params: #{@return_params},"\ + " url: #{@url}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, return_url: #{@return_url.inspect}, return_params:"\ + " #{@return_params.inspect}, url: #{@url.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/quantity_based_component.rb b/lib/advanced_billing/models/quantity_based_component.rb index 21866a70..192573de 100644 --- a/lib/advanced_billing/models/quantity_based_component.rb +++ b/lib/advanced_billing/models/quantity_based_component.rb @@ -326,5 +326,35 @@ def self.validate(value) ->(val) { PricingScheme.validate(val) }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, unit_name: #{@unit_name}, description: #{@description},"\ + " handle: #{@handle}, taxable: #{@taxable}, pricing_scheme: #{@pricing_scheme}, prices:"\ + " #{@prices}, upgrade_charge: #{@upgrade_charge}, downgrade_credit: #{@downgrade_credit},"\ + " price_points: #{@price_points}, unit_price: #{@unit_price}, tax_code: #{@tax_code},"\ + " hide_date_range_on_invoice: #{@hide_date_range_on_invoice}, recurring: #{@recurring},"\ + " display_on_hosted_page: #{@display_on_hosted_page}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities}, public_signup_page_ids: #{@public_signup_page_ids},"\ + " interval: #{@interval}, interval_unit: #{@interval_unit}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, unit_name: #{@unit_name.inspect}, description:"\ + " #{@description.inspect}, handle: #{@handle.inspect}, taxable: #{@taxable.inspect},"\ + " pricing_scheme: #{@pricing_scheme.inspect}, prices: #{@prices.inspect}, upgrade_charge:"\ + " #{@upgrade_charge.inspect}, downgrade_credit: #{@downgrade_credit.inspect}, price_points:"\ + " #{@price_points.inspect}, unit_price: #{@unit_price.inspect}, tax_code:"\ + " #{@tax_code.inspect}, hide_date_range_on_invoice: #{@hide_date_range_on_invoice.inspect},"\ + " recurring: #{@recurring.inspect}, display_on_hosted_page:"\ + " #{@display_on_hosted_page.inspect}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities.inspect}, public_signup_page_ids:"\ + " #{@public_signup_page_ids.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/reactivate_subscription_group_request.rb b/lib/advanced_billing/models/reactivate_subscription_group_request.rb index 88c6ceda..54fd733f 100644 --- a/lib/advanced_billing/models/reactivate_subscription_group_request.rb +++ b/lib/advanced_billing/models/reactivate_subscription_group_request.rb @@ -66,5 +66,19 @@ def self.from_hash(hash) resume_members: resume_members, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} resume: #{@resume}, resume_members: #{@resume_members},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} resume: #{@resume.inspect}, resume_members: #{@resume_members.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/reactivate_subscription_group_response.rb b/lib/advanced_billing/models/reactivate_subscription_group_response.rb index 2e71f7eb..f79cbee5 100644 --- a/lib/advanced_billing/models/reactivate_subscription_group_response.rb +++ b/lib/advanced_billing/models/reactivate_subscription_group_response.rb @@ -144,5 +144,26 @@ def self.from_hash(hash) def to_custom_next_assessment_at DateTimeHelper.to_rfc3339(next_assessment_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, scheme: #{@scheme}, customer_id: #{@customer_id},"\ + " payment_profile_id: #{@payment_profile_id}, subscription_ids: #{@subscription_ids},"\ + " primary_subscription_id: #{@primary_subscription_id}, next_assessment_at:"\ + " #{@next_assessment_at}, state: #{@state}, cancel_at_end_of_period:"\ + " #{@cancel_at_end_of_period}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, scheme: #{@scheme.inspect}, customer_id:"\ + " #{@customer_id.inspect}, payment_profile_id: #{@payment_profile_id.inspect},"\ + " subscription_ids: #{@subscription_ids.inspect}, primary_subscription_id:"\ + " #{@primary_subscription_id.inspect}, next_assessment_at: #{@next_assessment_at.inspect},"\ + " state: #{@state.inspect}, cancel_at_end_of_period: #{@cancel_at_end_of_period.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/reactivate_subscription_request.rb b/lib/advanced_billing/models/reactivate_subscription_request.rb index b8637ebb..d48dd052 100644 --- a/lib/advanced_billing/models/reactivate_subscription_request.rb +++ b/lib/advanced_billing/models/reactivate_subscription_request.rb @@ -128,5 +128,24 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} calendar_billing: #{@calendar_billing}, include_trial: #{@include_trial},"\ + " preserve_balance: #{@preserve_balance}, coupon_code: #{@coupon_code},"\ + " use_credits_and_prepayments: #{@use_credits_and_prepayments}, resume: #{@resume},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} calendar_billing: #{@calendar_billing.inspect}, include_trial:"\ + " #{@include_trial.inspect}, preserve_balance: #{@preserve_balance.inspect}, coupon_code:"\ + " #{@coupon_code.inspect}, use_credits_and_prepayments:"\ + " #{@use_credits_and_prepayments.inspect}, resume: #{@resume.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/reactivation_billing.rb b/lib/advanced_billing/models/reactivation_billing.rb index 55debe16..7bb2c9cf 100644 --- a/lib/advanced_billing/models/reactivation_billing.rb +++ b/lib/advanced_billing/models/reactivation_billing.rb @@ -72,5 +72,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} reactivation_charge: #{@reactivation_charge}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} reactivation_charge: #{@reactivation_charge.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/reason_code.rb b/lib/advanced_billing/models/reason_code.rb index 4c0a7307..490721db 100644 --- a/lib/advanced_billing/models/reason_code.rb +++ b/lib/advanced_billing/models/reason_code.rb @@ -128,5 +128,22 @@ def to_custom_created_at def to_custom_updated_at DateTimeHelper.to_rfc3339(updated_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, site_id: #{@site_id}, code: #{@code}, description:"\ + " #{@description}, position: #{@position}, created_at: #{@created_at}, updated_at:"\ + " #{@updated_at}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, site_id: #{@site_id.inspect}, code: #{@code.inspect},"\ + " description: #{@description.inspect}, position: #{@position.inspect}, created_at:"\ + " #{@created_at.inspect}, updated_at: #{@updated_at.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/reason_code_response.rb b/lib/advanced_billing/models/reason_code_response.rb index 0f5b825e..ab74c382 100644 --- a/lib/advanced_billing/models/reason_code_response.rb +++ b/lib/advanced_billing/models/reason_code_response.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) ReasonCodeResponse.new(reason_code: reason_code, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} reason_code: #{@reason_code}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} reason_code: #{@reason_code.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/record_payment_request.rb b/lib/advanced_billing/models/record_payment_request.rb index 7c84b7e7..9c26eba8 100644 --- a/lib/advanced_billing/models/record_payment_request.rb +++ b/lib/advanced_billing/models/record_payment_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) RecordPaymentRequest.new(payment: payment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payment: #{@payment}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payment: #{@payment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/record_payment_response.rb b/lib/advanced_billing/models/record_payment_response.rb index d5f5b4d4..f71a6ba2 100644 --- a/lib/advanced_billing/models/record_payment_response.rb +++ b/lib/advanced_billing/models/record_payment_response.rb @@ -76,5 +76,19 @@ def self.from_hash(hash) prepayment: prepayment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} paid_invoices: #{@paid_invoices}, prepayment: #{@prepayment},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} paid_invoices: #{@paid_invoices.inspect}, prepayment:"\ + " #{@prepayment.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/referral_code.rb b/lib/advanced_billing/models/referral_code.rb index 0592e1e2..0ea1a3ec 100644 --- a/lib/advanced_billing/models/referral_code.rb +++ b/lib/advanced_billing/models/referral_code.rb @@ -84,5 +84,20 @@ def self.from_hash(hash) code: code, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, site_id: #{@site_id}, subscription_id: #{@subscription_id},"\ + " code: #{@code}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, site_id: #{@site_id.inspect}, subscription_id:"\ + " #{@subscription_id.inspect}, code: #{@code.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/referral_validation_response.rb b/lib/advanced_billing/models/referral_validation_response.rb index 90c8cf98..9b76ab7e 100644 --- a/lib/advanced_billing/models/referral_validation_response.rb +++ b/lib/advanced_billing/models/referral_validation_response.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) ReferralValidationResponse.new(referral_code: referral_code, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} referral_code: #{@referral_code}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} referral_code: #{@referral_code.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/refund_consolidated_invoice.rb b/lib/advanced_billing/models/refund_consolidated_invoice.rb index aa9925f1..d29e0875 100644 --- a/lib/advanced_billing/models/refund_consolidated_invoice.rb +++ b/lib/advanced_billing/models/refund_consolidated_invoice.rb @@ -130,5 +130,22 @@ def self.validate(value) .validate(value['segment_uids']) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} memo: #{@memo}, payment_id: #{@payment_id}, segment_uids: #{@segment_uids},"\ + " external: #{@external}, apply_credit: #{@apply_credit}, amount: #{@amount},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} memo: #{@memo.inspect}, payment_id: #{@payment_id.inspect}, segment_uids:"\ + " #{@segment_uids.inspect}, external: #{@external.inspect}, apply_credit:"\ + " #{@apply_credit.inspect}, amount: #{@amount.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/refund_invoice.rb b/lib/advanced_billing/models/refund_invoice.rb index e5d24cb7..59a1a5a9 100644 --- a/lib/advanced_billing/models/refund_invoice.rb +++ b/lib/advanced_billing/models/refund_invoice.rb @@ -130,5 +130,22 @@ def self.validate(value) ->(val) { val.instance_of? Integer }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount}, memo: #{@memo}, payment_id: #{@payment_id}, external:"\ + " #{@external}, apply_credit: #{@apply_credit}, void_invoice: #{@void_invoice},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount.inspect}, memo: #{@memo.inspect}, payment_id:"\ + " #{@payment_id.inspect}, external: #{@external.inspect}, apply_credit:"\ + " #{@apply_credit.inspect}, void_invoice: #{@void_invoice.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/refund_invoice_event.rb b/lib/advanced_billing/models/refund_invoice_event.rb index 96372701..436d0b8f 100644 --- a/lib/advanced_billing/models/refund_invoice_event.rb +++ b/lib/advanced_billing/models/refund_invoice_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/refund_invoice_event_data.rb b/lib/advanced_billing/models/refund_invoice_event_data.rb index 5a1630a3..c1aa64f1 100644 --- a/lib/advanced_billing/models/refund_invoice_event_data.rb +++ b/lib/advanced_billing/models/refund_invoice_event_data.rb @@ -197,5 +197,26 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} apply_credit: #{@apply_credit}, consolidation_level:"\ + " #{@consolidation_level}, credit_note_attributes: #{@credit_note_attributes}, memo:"\ + " #{@memo}, original_amount: #{@original_amount}, payment_id: #{@payment_id}, refund_amount:"\ + " #{@refund_amount}, refund_id: #{@refund_id}, transaction_time: #{@transaction_time},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} apply_credit: #{@apply_credit.inspect}, consolidation_level:"\ + " #{@consolidation_level.inspect}, credit_note_attributes:"\ + " #{@credit_note_attributes.inspect}, memo: #{@memo.inspect}, original_amount:"\ + " #{@original_amount.inspect}, payment_id: #{@payment_id.inspect}, refund_amount:"\ + " #{@refund_amount.inspect}, refund_id: #{@refund_id.inspect}, transaction_time:"\ + " #{@transaction_time.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/refund_invoice_request.rb b/lib/advanced_billing/models/refund_invoice_request.rb index a4540831..e9515ee4 100644 --- a/lib/advanced_billing/models/refund_invoice_request.rb +++ b/lib/advanced_billing/models/refund_invoice_request.rb @@ -69,5 +69,18 @@ def self.validate(value) UnionTypeLookUp.get(:RefundInvoiceRequestRefund) .validate(value['refund']) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} refund: #{@refund}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} refund: #{@refund.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/refund_prepayment.rb b/lib/advanced_billing/models/refund_prepayment.rb index a08b18c5..b1c6ebf0 100644 --- a/lib/advanced_billing/models/refund_prepayment.rb +++ b/lib/advanced_billing/models/refund_prepayment.rb @@ -113,5 +113,20 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount_in_cents: #{@amount_in_cents}, amount: #{@amount}, memo: #{@memo},"\ + " external: #{@external}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount_in_cents: #{@amount_in_cents.inspect}, amount: #{@amount.inspect},"\ + " memo: #{@memo.inspect}, external: #{@external.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb b/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb index c974d60f..18b6593c 100644 --- a/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +++ b/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) RefundPrepaymentBaseRefundError.new(refund: refund, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} refund: #{@refund}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} refund: #{@refund.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/refund_prepayment_request.rb b/lib/advanced_billing/models/refund_prepayment_request.rb index 8d88c528..cbd00fa2 100644 --- a/lib/advanced_billing/models/refund_prepayment_request.rb +++ b/lib/advanced_billing/models/refund_prepayment_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) RefundPrepaymentRequest.new(refund: refund, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} refund: #{@refund}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} refund: #{@refund.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/refund_success.rb b/lib/advanced_billing/models/refund_success.rb index 6dceaed0..100ca669 100644 --- a/lib/advanced_billing/models/refund_success.rb +++ b/lib/advanced_billing/models/refund_success.rb @@ -97,5 +97,21 @@ def self.validate(value) ->(val) { val.instance_of? Integer }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} refund_id: #{@refund_id}, gateway_transaction_id:"\ + " #{@gateway_transaction_id}, product_id: #{@product_id}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} refund_id: #{@refund_id.inspect}, gateway_transaction_id:"\ + " #{@gateway_transaction_id.inspect}, product_id: #{@product_id.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/remove_payment_event.rb b/lib/advanced_billing/models/remove_payment_event.rb index 616d07e2..f83a6833 100644 --- a/lib/advanced_billing/models/remove_payment_event.rb +++ b/lib/advanced_billing/models/remove_payment_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/remove_payment_event_data.rb b/lib/advanced_billing/models/remove_payment_event_data.rb index 6db28ae6..82dc8b88 100644 --- a/lib/advanced_billing/models/remove_payment_event_data.rb +++ b/lib/advanced_billing/models/remove_payment_event_data.rb @@ -156,5 +156,24 @@ def self.validate(value) ->(val) { val.instance_of? TrueClass or val.instance_of? FalseClass }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} transaction_id: #{@transaction_id}, memo: #{@memo}, original_amount:"\ + " #{@original_amount}, applied_amount: #{@applied_amount}, transaction_time:"\ + " #{@transaction_time}, payment_method: #{@payment_method}, prepayment: #{@prepayment},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} transaction_id: #{@transaction_id.inspect}, memo: #{@memo.inspect},"\ + " original_amount: #{@original_amount.inspect}, applied_amount: #{@applied_amount.inspect},"\ + " transaction_time: #{@transaction_time.inspect}, payment_method:"\ + " #{@payment_method.inspect}, prepayment: #{@prepayment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/renewal_preview.rb b/lib/advanced_billing/models/renewal_preview.rb index 89e24fda..1253eb1b 100644 --- a/lib/advanced_billing/models/renewal_preview.rb +++ b/lib/advanced_billing/models/renewal_preview.rb @@ -170,5 +170,28 @@ def self.from_hash(hash) def to_custom_next_assessment_at DateTimeHelper.to_rfc3339(next_assessment_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} next_assessment_at: #{@next_assessment_at}, subtotal_in_cents:"\ + " #{@subtotal_in_cents}, total_tax_in_cents: #{@total_tax_in_cents},"\ + " total_discount_in_cents: #{@total_discount_in_cents}, total_in_cents: #{@total_in_cents},"\ + " existing_balance_in_cents: #{@existing_balance_in_cents}, total_amount_due_in_cents:"\ + " #{@total_amount_due_in_cents}, uncalculated_taxes: #{@uncalculated_taxes}, line_items:"\ + " #{@line_items}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} next_assessment_at: #{@next_assessment_at.inspect}, subtotal_in_cents:"\ + " #{@subtotal_in_cents.inspect}, total_tax_in_cents: #{@total_tax_in_cents.inspect},"\ + " total_discount_in_cents: #{@total_discount_in_cents.inspect}, total_in_cents:"\ + " #{@total_in_cents.inspect}, existing_balance_in_cents:"\ + " #{@existing_balance_in_cents.inspect}, total_amount_due_in_cents:"\ + " #{@total_amount_due_in_cents.inspect}, uncalculated_taxes: #{@uncalculated_taxes.inspect},"\ + " line_items: #{@line_items.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/renewal_preview_component.rb b/lib/advanced_billing/models/renewal_preview_component.rb index 3d79344f..33bc36f5 100644 --- a/lib/advanced_billing/models/renewal_preview_component.rb +++ b/lib/advanced_billing/models/renewal_preview_component.rb @@ -97,5 +97,20 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id}, quantity: #{@quantity}, price_point_id:"\ + " #{@price_point_id}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id.inspect}, quantity: #{@quantity.inspect},"\ + " price_point_id: #{@price_point_id.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/renewal_preview_line_item.rb b/lib/advanced_billing/models/renewal_preview_line_item.rb index d77ef192..261f5fec 100644 --- a/lib/advanced_billing/models/renewal_preview_line_item.rb +++ b/lib/advanced_billing/models/renewal_preview_line_item.rb @@ -187,5 +187,32 @@ def self.from_hash(hash) period_range_end: period_range_end, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} transaction_type: #{@transaction_type}, kind: #{@kind}, amount_in_cents:"\ + " #{@amount_in_cents}, memo: #{@memo}, discount_amount_in_cents:"\ + " #{@discount_amount_in_cents}, taxable_amount_in_cents: #{@taxable_amount_in_cents},"\ + " product_id: #{@product_id}, product_name: #{@product_name}, component_id:"\ + " #{@component_id}, component_handle: #{@component_handle}, component_name:"\ + " #{@component_name}, product_handle: #{@product_handle}, period_range_start:"\ + " #{@period_range_start}, period_range_end: #{@period_range_end}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} transaction_type: #{@transaction_type.inspect}, kind: #{@kind.inspect},"\ + " amount_in_cents: #{@amount_in_cents.inspect}, memo: #{@memo.inspect},"\ + " discount_amount_in_cents: #{@discount_amount_in_cents.inspect}, taxable_amount_in_cents:"\ + " #{@taxable_amount_in_cents.inspect}, product_id: #{@product_id.inspect}, product_name:"\ + " #{@product_name.inspect}, component_id: #{@component_id.inspect}, component_handle:"\ + " #{@component_handle.inspect}, component_name: #{@component_name.inspect}, product_handle:"\ + " #{@product_handle.inspect}, period_range_start: #{@period_range_start.inspect},"\ + " period_range_end: #{@period_range_end.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/renewal_preview_request.rb b/lib/advanced_billing/models/renewal_preview_request.rb index 9c53ed36..7b4785df 100644 --- a/lib/advanced_billing/models/renewal_preview_request.rb +++ b/lib/advanced_billing/models/renewal_preview_request.rb @@ -67,5 +67,19 @@ def self.from_hash(hash) RenewalPreviewRequest.new(components: components, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} components: #{@components}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} components: #{@components.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/renewal_preview_response.rb b/lib/advanced_billing/models/renewal_preview_response.rb index c2b62c77..a4c172f2 100644 --- a/lib/advanced_billing/models/renewal_preview_response.rb +++ b/lib/advanced_billing/models/renewal_preview_response.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) RenewalPreviewResponse.new(renewal_preview: renewal_preview, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} renewal_preview: #{@renewal_preview}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} renewal_preview: #{@renewal_preview.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/replay_webhooks_request.rb b/lib/advanced_billing/models/replay_webhooks_request.rb index 401d56c4..5efe32a5 100644 --- a/lib/advanced_billing/models/replay_webhooks_request.rb +++ b/lib/advanced_billing/models/replay_webhooks_request.rb @@ -53,5 +53,17 @@ def self.from_hash(hash) ReplayWebhooksRequest.new(ids: ids, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} ids: #{@ids}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} ids: #{@ids.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/replay_webhooks_response.rb b/lib/advanced_billing/models/replay_webhooks_response.rb index 5889f5ce..e55dbd24 100644 --- a/lib/advanced_billing/models/replay_webhooks_response.rb +++ b/lib/advanced_billing/models/replay_webhooks_response.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) ReplayWebhooksResponse.new(status: status, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} status: #{@status}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} status: #{@status.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/resent_invitation.rb b/lib/advanced_billing/models/resent_invitation.rb index 6654be6f..bc69ecf5 100644 --- a/lib/advanced_billing/models/resent_invitation.rb +++ b/lib/advanced_billing/models/resent_invitation.rb @@ -123,5 +123,24 @@ def to_custom_last_invite_sent_at def to_custom_last_invite_accepted_at DateTimeHelper.to_rfc3339(last_invite_accepted_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} last_sent_at: #{@last_sent_at}, last_accepted_at: #{@last_accepted_at},"\ + " send_invite_link_text: #{@send_invite_link_text}, uninvited_count: #{@uninvited_count},"\ + " last_invite_sent_at: #{@last_invite_sent_at}, last_invite_accepted_at:"\ + " #{@last_invite_accepted_at}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} last_sent_at: #{@last_sent_at.inspect}, last_accepted_at:"\ + " #{@last_accepted_at.inspect}, send_invite_link_text: #{@send_invite_link_text.inspect},"\ + " uninvited_count: #{@uninvited_count.inspect}, last_invite_sent_at:"\ + " #{@last_invite_sent_at.inspect}, last_invite_accepted_at:"\ + " #{@last_invite_accepted_at.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/resume_options.rb b/lib/advanced_billing/models/resume_options.rb index 4cada3cb..9129df6f 100644 --- a/lib/advanced_billing/models/resume_options.rb +++ b/lib/advanced_billing/models/resume_options.rb @@ -81,5 +81,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} require_resume: #{@require_resume}, forgive_balance: #{@forgive_balance},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} require_resume: #{@require_resume.inspect}, forgive_balance:"\ + " #{@forgive_balance.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/revoked_invitation.rb b/lib/advanced_billing/models/revoked_invitation.rb index 7ed69e9d..52de74ab 100644 --- a/lib/advanced_billing/models/revoked_invitation.rb +++ b/lib/advanced_billing/models/revoked_invitation.rb @@ -76,5 +76,21 @@ def self.from_hash(hash) uninvited_count: uninvited_count, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} last_sent_at: #{@last_sent_at}, last_accepted_at: #{@last_accepted_at},"\ + " uninvited_count: #{@uninvited_count}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} last_sent_at: #{@last_sent_at.inspect}, last_accepted_at:"\ + " #{@last_accepted_at.inspect}, uninvited_count: #{@uninvited_count.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/sale_rep.rb b/lib/advanced_billing/models/sale_rep.rb index 4eb298b8..ddb9163f 100644 --- a/lib/advanced_billing/models/sale_rep.rb +++ b/lib/advanced_billing/models/sale_rep.rb @@ -103,5 +103,21 @@ def self.from_hash(hash) subscriptions: subscriptions, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, full_name: #{@full_name}, subscriptions_count:"\ + " #{@subscriptions_count}, test_mode: #{@test_mode}, subscriptions: #{@subscriptions},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, full_name: #{@full_name.inspect}, subscriptions_count:"\ + " #{@subscriptions_count.inspect}, test_mode: #{@test_mode.inspect}, subscriptions:"\ + " #{@subscriptions.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/sale_rep_item_mrr.rb b/lib/advanced_billing/models/sale_rep_item_mrr.rb index 73e1ebd7..5245dc9c 100644 --- a/lib/advanced_billing/models/sale_rep_item_mrr.rb +++ b/lib/advanced_billing/models/sale_rep_item_mrr.rb @@ -74,5 +74,19 @@ def self.from_hash(hash) recurring: recurring, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} mrr: #{@mrr}, usage: #{@usage}, recurring: #{@recurring},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} mrr: #{@mrr.inspect}, usage: #{@usage.inspect}, recurring:"\ + " #{@recurring.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/sale_rep_settings.rb b/lib/advanced_billing/models/sale_rep_settings.rb index 21a86c41..d9f88246 100644 --- a/lib/advanced_billing/models/sale_rep_settings.rb +++ b/lib/advanced_billing/models/sale_rep_settings.rb @@ -114,5 +114,24 @@ def self.from_hash(hash) sales_rep_name: sales_rep_name, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} customer_name: #{@customer_name}, subscription_id: #{@subscription_id},"\ + " site_link: #{@site_link}, site_name: #{@site_name}, subscription_mrr:"\ + " #{@subscription_mrr}, sales_rep_id: #{@sales_rep_id}, sales_rep_name: #{@sales_rep_name},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} customer_name: #{@customer_name.inspect}, subscription_id:"\ + " #{@subscription_id.inspect}, site_link: #{@site_link.inspect}, site_name:"\ + " #{@site_name.inspect}, subscription_mrr: #{@subscription_mrr.inspect}, sales_rep_id:"\ + " #{@sales_rep_id.inspect}, sales_rep_name: #{@sales_rep_name.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/sale_rep_subscription.rb b/lib/advanced_billing/models/sale_rep_subscription.rb index 392e7d6d..5cf8f41c 100644 --- a/lib/advanced_billing/models/sale_rep_subscription.rb +++ b/lib/advanced_billing/models/sale_rep_subscription.rb @@ -142,5 +142,24 @@ def self.from_hash(hash) churn_date: churn_date, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, site_name: #{@site_name}, subscription_url:"\ + " #{@subscription_url}, customer_name: #{@customer_name}, created_at: #{@created_at}, mrr:"\ + " #{@mrr}, usage: #{@usage}, recurring: #{@recurring}, last_payment: #{@last_payment},"\ + " churn_date: #{@churn_date}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, site_name: #{@site_name.inspect}, subscription_url:"\ + " #{@subscription_url.inspect}, customer_name: #{@customer_name.inspect}, created_at:"\ + " #{@created_at.inspect}, mrr: #{@mrr.inspect}, usage: #{@usage.inspect}, recurring:"\ + " #{@recurring.inspect}, last_payment: #{@last_payment.inspect}, churn_date:"\ + " #{@churn_date.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/segment.rb b/lib/advanced_billing/models/segment.rb index 3c173325..adfa983d 100644 --- a/lib/advanced_billing/models/segment.rb +++ b/lib/advanced_billing/models/segment.rb @@ -227,5 +227,31 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, component_id: #{@component_id}, price_point_id:"\ + " #{@price_point_id}, event_based_billing_metric_id: #{@event_based_billing_metric_id},"\ + " pricing_scheme: #{@pricing_scheme}, segment_property_1_value:"\ + " #{@segment_property_1_value}, segment_property_2_value: #{@segment_property_2_value},"\ + " segment_property_3_value: #{@segment_property_3_value}, segment_property_4_value:"\ + " #{@segment_property_4_value}, created_at: #{@created_at}, updated_at: #{@updated_at},"\ + " prices: #{@prices}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, component_id: #{@component_id.inspect}, price_point_id:"\ + " #{@price_point_id.inspect}, event_based_billing_metric_id:"\ + " #{@event_based_billing_metric_id.inspect}, pricing_scheme: #{@pricing_scheme.inspect},"\ + " segment_property_1_value: #{@segment_property_1_value.inspect}, segment_property_2_value:"\ + " #{@segment_property_2_value.inspect}, segment_property_3_value:"\ + " #{@segment_property_3_value.inspect}, segment_property_4_value:"\ + " #{@segment_property_4_value.inspect}, created_at: #{@created_at.inspect}, updated_at:"\ + " #{@updated_at.inspect}, prices: #{@prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/segment_price.rb b/lib/advanced_billing/models/segment_price.rb index 55e5ef55..f8fe3e45 100644 --- a/lib/advanced_billing/models/segment_price.rb +++ b/lib/advanced_billing/models/segment_price.rb @@ -137,5 +137,24 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, component_id: #{@component_id}, starting_quantity:"\ + " #{@starting_quantity}, ending_quantity: #{@ending_quantity}, unit_price: #{@unit_price},"\ + " price_point_id: #{@price_point_id}, formatted_unit_price: #{@formatted_unit_price},"\ + " segment_id: #{@segment_id}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, component_id: #{@component_id.inspect},"\ + " starting_quantity: #{@starting_quantity.inspect}, ending_quantity:"\ + " #{@ending_quantity.inspect}, unit_price: #{@unit_price.inspect}, price_point_id:"\ + " #{@price_point_id.inspect}, formatted_unit_price: #{@formatted_unit_price.inspect},"\ + " segment_id: #{@segment_id.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/segment_response.rb b/lib/advanced_billing/models/segment_response.rb index 24889afd..9e3fbf58 100644 --- a/lib/advanced_billing/models/segment_response.rb +++ b/lib/advanced_billing/models/segment_response.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) SegmentResponse.new(segment: segment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} segment: #{@segment}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} segment: #{@segment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/send_invoice_request.rb b/lib/advanced_billing/models/send_invoice_request.rb index 04a382e4..7fa30552 100644 --- a/lib/advanced_billing/models/send_invoice_request.rb +++ b/lib/advanced_billing/models/send_invoice_request.rb @@ -77,5 +77,21 @@ def self.from_hash(hash) bcc_recipient_emails: bcc_recipient_emails, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} recipient_emails: #{@recipient_emails}, cc_recipient_emails:"\ + " #{@cc_recipient_emails}, bcc_recipient_emails: #{@bcc_recipient_emails},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} recipient_emails: #{@recipient_emails.inspect}, cc_recipient_emails:"\ + " #{@cc_recipient_emails.inspect}, bcc_recipient_emails: #{@bcc_recipient_emails.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/service_credit.rb b/lib/advanced_billing/models/service_credit.rb index ce956070..a28bc904 100644 --- a/lib/advanced_billing/models/service_credit.rb +++ b/lib/advanced_billing/models/service_credit.rb @@ -95,5 +95,22 @@ def self.from_hash(hash) memo: memo, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, amount_in_cents: #{@amount_in_cents}, ending_balance_in_cents:"\ + " #{@ending_balance_in_cents}, entry_type: #{@entry_type}, memo: #{@memo},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, amount_in_cents: #{@amount_in_cents.inspect},"\ + " ending_balance_in_cents: #{@ending_balance_in_cents.inspect}, entry_type:"\ + " #{@entry_type.inspect}, memo: #{@memo.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/service_credit_response.rb b/lib/advanced_billing/models/service_credit_response.rb index e9749987..d1d479ee 100644 --- a/lib/advanced_billing/models/service_credit_response.rb +++ b/lib/advanced_billing/models/service_credit_response.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) ServiceCreditResponse.new(service_credit: service_credit, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} service_credit: #{@service_credit}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} service_credit: #{@service_credit.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/signup_proforma_preview.rb b/lib/advanced_billing/models/signup_proforma_preview.rb index c88394dc..953351fe 100644 --- a/lib/advanced_billing/models/signup_proforma_preview.rb +++ b/lib/advanced_billing/models/signup_proforma_preview.rb @@ -67,5 +67,21 @@ def self.from_hash(hash) next_proforma_invoice: next_proforma_invoice, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} current_proforma_invoice: #{@current_proforma_invoice},"\ + " next_proforma_invoice: #{@next_proforma_invoice}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} current_proforma_invoice: #{@current_proforma_invoice.inspect},"\ + " next_proforma_invoice: #{@next_proforma_invoice.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/signup_proforma_preview_response.rb b/lib/advanced_billing/models/signup_proforma_preview_response.rb index 3996465f..92409f83 100644 --- a/lib/advanced_billing/models/signup_proforma_preview_response.rb +++ b/lib/advanced_billing/models/signup_proforma_preview_response.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) SignupProformaPreviewResponse.new(proforma_invoice_preview: proforma_invoice_preview, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} proforma_invoice_preview: #{@proforma_invoice_preview},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} proforma_invoice_preview: #{@proforma_invoice_preview.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/site.rb b/lib/advanced_billing/models/site.rb index 046c374a..b74a888f 100644 --- a/lib/advanced_billing/models/site.rb +++ b/lib/advanced_billing/models/site.rb @@ -37,6 +37,10 @@ class Site < BaseModel # @return [TrueClass | FalseClass] attr_accessor :relationship_invoicing_enabled + # TODO: Write general description for this method + # @return [TrueClass | FalseClass] + attr_accessor :schedule_subscription_cancellation_enabled + # TODO: Write general description for this method # @return [TrueClass | FalseClass] attr_accessor :customer_hierarchy_enabled @@ -84,6 +88,8 @@ def self.names @_hash['non_primary_currencies'] = 'non_primary_currencies' @_hash['relationship_invoicing_enabled'] = 'relationship_invoicing_enabled' + @_hash['schedule_subscription_cancellation_enabled'] = + 'schedule_subscription_cancellation_enabled' @_hash['customer_hierarchy_enabled'] = 'customer_hierarchy_enabled' @_hash['whopays_enabled'] = 'whopays_enabled' @_hash['whopays_default_payer'] = 'whopays_default_payer' @@ -107,6 +113,7 @@ def self.optionals seller_id non_primary_currencies relationship_invoicing_enabled + schedule_subscription_cancellation_enabled customer_hierarchy_enabled whopays_enabled whopays_default_payer @@ -127,6 +134,7 @@ def self.nullables def initialize(id: SKIP, name: SKIP, subdomain: SKIP, currency: SKIP, seller_id: SKIP, non_primary_currencies: SKIP, relationship_invoicing_enabled: SKIP, + schedule_subscription_cancellation_enabled: SKIP, customer_hierarchy_enabled: SKIP, whopays_enabled: SKIP, whopays_default_payer: SKIP, allocation_settings: SKIP, default_payment_collection_method: SKIP, @@ -147,6 +155,10 @@ def initialize(id: SKIP, name: SKIP, subdomain: SKIP, currency: SKIP, @relationship_invoicing_enabled = relationship_invoicing_enabled end + unless schedule_subscription_cancellation_enabled == SKIP + @schedule_subscription_cancellation_enabled = + schedule_subscription_cancellation_enabled + end unless customer_hierarchy_enabled == SKIP @customer_hierarchy_enabled = customer_hierarchy_enabled @@ -178,6 +190,8 @@ def self.from_hash(hash) hash.key?('non_primary_currencies') ? hash['non_primary_currencies'] : SKIP relationship_invoicing_enabled = hash.key?('relationship_invoicing_enabled') ? hash['relationship_invoicing_enabled'] : SKIP + schedule_subscription_cancellation_enabled = + hash.key?('schedule_subscription_cancellation_enabled') ? hash['schedule_subscription_cancellation_enabled'] : SKIP customer_hierarchy_enabled = hash.key?('customer_hierarchy_enabled') ? hash['customer_hierarchy_enabled'] : SKIP whopays_enabled = @@ -206,6 +220,7 @@ def self.from_hash(hash) seller_id: seller_id, non_primary_currencies: non_primary_currencies, relationship_invoicing_enabled: relationship_invoicing_enabled, + schedule_subscription_cancellation_enabled: schedule_subscription_cancellation_enabled, customer_hierarchy_enabled: customer_hierarchy_enabled, whopays_enabled: whopays_enabled, whopays_default_payer: whopays_default_payer, @@ -217,5 +232,39 @@ def self.from_hash(hash) test: test, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, name: #{@name}, subdomain: #{@subdomain}, currency:"\ + " #{@currency}, seller_id: #{@seller_id}, non_primary_currencies:"\ + " #{@non_primary_currencies}, relationship_invoicing_enabled:"\ + " #{@relationship_invoicing_enabled}, schedule_subscription_cancellation_enabled:"\ + " #{@schedule_subscription_cancellation_enabled}, customer_hierarchy_enabled:"\ + " #{@customer_hierarchy_enabled}, whopays_enabled: #{@whopays_enabled},"\ + " whopays_default_payer: #{@whopays_default_payer}, allocation_settings:"\ + " #{@allocation_settings}, default_payment_collection_method:"\ + " #{@default_payment_collection_method}, organization_address: #{@organization_address},"\ + " tax_configuration: #{@tax_configuration}, net_terms: #{@net_terms}, test: #{@test},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, subdomain:"\ + " #{@subdomain.inspect}, currency: #{@currency.inspect}, seller_id: #{@seller_id.inspect},"\ + " non_primary_currencies: #{@non_primary_currencies.inspect},"\ + " relationship_invoicing_enabled: #{@relationship_invoicing_enabled.inspect},"\ + ' schedule_subscription_cancellation_enabled:'\ + " #{@schedule_subscription_cancellation_enabled.inspect}, customer_hierarchy_enabled:"\ + " #{@customer_hierarchy_enabled.inspect}, whopays_enabled: #{@whopays_enabled.inspect},"\ + " whopays_default_payer: #{@whopays_default_payer.inspect}, allocation_settings:"\ + " #{@allocation_settings.inspect}, default_payment_collection_method:"\ + " #{@default_payment_collection_method.inspect}, organization_address:"\ + " #{@organization_address.inspect}, tax_configuration: #{@tax_configuration.inspect},"\ + " net_terms: #{@net_terms.inspect}, test: #{@test.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/site_response.rb b/lib/advanced_billing/models/site_response.rb index 9e3d0224..76258b58 100644 --- a/lib/advanced_billing/models/site_response.rb +++ b/lib/advanced_billing/models/site_response.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) SiteResponse.new(site: site, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} site: #{@site}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} site: #{@site.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/site_statistics.rb b/lib/advanced_billing/models/site_statistics.rb index 4c2fb99b..c2484c3e 100644 --- a/lib/advanced_billing/models/site_statistics.rb +++ b/lib/advanced_billing/models/site_statistics.rb @@ -176,5 +176,33 @@ def self.from_hash(hash) total_dunning_subscriptions: total_dunning_subscriptions, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} total_subscriptions: #{@total_subscriptions}, subscriptions_today:"\ + " #{@subscriptions_today}, total_revenue: #{@total_revenue}, revenue_today:"\ + " #{@revenue_today}, revenue_this_month: #{@revenue_this_month}, revenue_this_year:"\ + " #{@revenue_this_year}, total_canceled_subscriptions: #{@total_canceled_subscriptions},"\ + " total_active_subscriptions: #{@total_active_subscriptions}, total_past_due_subscriptions:"\ + " #{@total_past_due_subscriptions}, total_unpaid_subscriptions:"\ + " #{@total_unpaid_subscriptions}, total_dunning_subscriptions:"\ + " #{@total_dunning_subscriptions}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} total_subscriptions: #{@total_subscriptions.inspect}, subscriptions_today:"\ + " #{@subscriptions_today.inspect}, total_revenue: #{@total_revenue.inspect}, revenue_today:"\ + " #{@revenue_today.inspect}, revenue_this_month: #{@revenue_this_month.inspect},"\ + " revenue_this_year: #{@revenue_this_year.inspect}, total_canceled_subscriptions:"\ + " #{@total_canceled_subscriptions.inspect}, total_active_subscriptions:"\ + " #{@total_active_subscriptions.inspect}, total_past_due_subscriptions:"\ + " #{@total_past_due_subscriptions.inspect}, total_unpaid_subscriptions:"\ + " #{@total_unpaid_subscriptions.inspect}, total_dunning_subscriptions:"\ + " #{@total_dunning_subscriptions.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/site_summary.rb b/lib/advanced_billing/models/site_summary.rb index 4fe474bd..281aea4b 100644 --- a/lib/advanced_billing/models/site_summary.rb +++ b/lib/advanced_billing/models/site_summary.rb @@ -92,5 +92,21 @@ def self.from_hash(hash) stats: stats, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} seller_name: #{@seller_name}, site_name: #{@site_name}, site_id:"\ + " #{@site_id}, site_currency: #{@site_currency}, stats: #{@stats}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} seller_name: #{@seller_name.inspect}, site_name: #{@site_name.inspect},"\ + " site_id: #{@site_id.inspect}, site_currency: #{@site_currency.inspect}, stats:"\ + " #{@stats.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription.rb b/lib/advanced_billing/models/subscription.rb index dd43f6b8..c729df36 100644 --- a/lib/advanced_billing/models/subscription.rb +++ b/lib/advanced_billing/models/subscription.rb @@ -985,5 +985,89 @@ def to_custom_on_hold_at def to_custom_scheduled_cancellation_at DateTimeHelper.to_rfc3339(scheduled_cancellation_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, state: #{@state}, balance_in_cents: #{@balance_in_cents},"\ + " total_revenue_in_cents: #{@total_revenue_in_cents}, product_price_in_cents:"\ + " #{@product_price_in_cents}, product_version_number: #{@product_version_number},"\ + " current_period_ends_at: #{@current_period_ends_at}, next_assessment_at:"\ + " #{@next_assessment_at}, trial_started_at: #{@trial_started_at}, trial_ended_at:"\ + " #{@trial_ended_at}, activated_at: #{@activated_at}, expires_at: #{@expires_at},"\ + " created_at: #{@created_at}, updated_at: #{@updated_at}, cancellation_message:"\ + " #{@cancellation_message}, cancellation_method: #{@cancellation_method},"\ + " cancel_at_end_of_period: #{@cancel_at_end_of_period}, canceled_at: #{@canceled_at},"\ + " current_period_started_at: #{@current_period_started_at}, previous_state:"\ + " #{@previous_state}, signup_payment_id: #{@signup_payment_id}, signup_revenue:"\ + " #{@signup_revenue}, delayed_cancel_at: #{@delayed_cancel_at}, coupon_code:"\ + " #{@coupon_code}, snap_day: #{@snap_day}, payment_collection_method:"\ + " #{@payment_collection_method}, customer: #{@customer}, product: #{@product}, credit_card:"\ + " #{@credit_card}, group: #{@group}, bank_account: #{@bank_account}, payment_type:"\ + " #{@payment_type}, referral_code: #{@referral_code}, next_product_id: #{@next_product_id},"\ + " next_product_handle: #{@next_product_handle}, coupon_use_count: #{@coupon_use_count},"\ + " coupon_uses_allowed: #{@coupon_uses_allowed}, reason_code: #{@reason_code},"\ + " automatically_resume_at: #{@automatically_resume_at}, coupon_codes: #{@coupon_codes},"\ + " offer_id: #{@offer_id}, payer_id: #{@payer_id}, current_billing_amount_in_cents:"\ + " #{@current_billing_amount_in_cents}, product_price_point_id: #{@product_price_point_id},"\ + " product_price_point_type: #{@product_price_point_type}, next_product_price_point_id:"\ + " #{@next_product_price_point_id}, net_terms: #{@net_terms},"\ + " stored_credential_transaction_id: #{@stored_credential_transaction_id}, reference:"\ + " #{@reference}, on_hold_at: #{@on_hold_at}, prepaid_dunning: #{@prepaid_dunning}, coupons:"\ + " #{@coupons}, dunning_communication_delay_enabled: #{@dunning_communication_delay_enabled},"\ + " dunning_communication_delay_time_zone: #{@dunning_communication_delay_time_zone},"\ + " receives_invoice_emails: #{@receives_invoice_emails}, locale: #{@locale}, currency:"\ + " #{@currency}, scheduled_cancellation_at: #{@scheduled_cancellation_at},"\ + " credit_balance_in_cents: #{@credit_balance_in_cents}, prepayment_balance_in_cents:"\ + " #{@prepayment_balance_in_cents}, prepaid_configuration: #{@prepaid_configuration},"\ + " self_service_page_token: #{@self_service_page_token}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, state: #{@state.inspect}, balance_in_cents:"\ + " #{@balance_in_cents.inspect}, total_revenue_in_cents: #{@total_revenue_in_cents.inspect},"\ + " product_price_in_cents: #{@product_price_in_cents.inspect}, product_version_number:"\ + " #{@product_version_number.inspect}, current_period_ends_at:"\ + " #{@current_period_ends_at.inspect}, next_assessment_at: #{@next_assessment_at.inspect},"\ + " trial_started_at: #{@trial_started_at.inspect}, trial_ended_at:"\ + " #{@trial_ended_at.inspect}, activated_at: #{@activated_at.inspect}, expires_at:"\ + " #{@expires_at.inspect}, created_at: #{@created_at.inspect}, updated_at:"\ + " #{@updated_at.inspect}, cancellation_message: #{@cancellation_message.inspect},"\ + " cancellation_method: #{@cancellation_method.inspect}, cancel_at_end_of_period:"\ + " #{@cancel_at_end_of_period.inspect}, canceled_at: #{@canceled_at.inspect},"\ + " current_period_started_at: #{@current_period_started_at.inspect}, previous_state:"\ + " #{@previous_state.inspect}, signup_payment_id: #{@signup_payment_id.inspect},"\ + " signup_revenue: #{@signup_revenue.inspect}, delayed_cancel_at:"\ + " #{@delayed_cancel_at.inspect}, coupon_code: #{@coupon_code.inspect}, snap_day:"\ + " #{@snap_day.inspect}, payment_collection_method: #{@payment_collection_method.inspect},"\ + " customer: #{@customer.inspect}, product: #{@product.inspect}, credit_card:"\ + " #{@credit_card.inspect}, group: #{@group.inspect}, bank_account: #{@bank_account.inspect},"\ + " payment_type: #{@payment_type.inspect}, referral_code: #{@referral_code.inspect},"\ + " next_product_id: #{@next_product_id.inspect}, next_product_handle:"\ + " #{@next_product_handle.inspect}, coupon_use_count: #{@coupon_use_count.inspect},"\ + " coupon_uses_allowed: #{@coupon_uses_allowed.inspect}, reason_code:"\ + " #{@reason_code.inspect}, automatically_resume_at: #{@automatically_resume_at.inspect},"\ + " coupon_codes: #{@coupon_codes.inspect}, offer_id: #{@offer_id.inspect}, payer_id:"\ + " #{@payer_id.inspect}, current_billing_amount_in_cents:"\ + " #{@current_billing_amount_in_cents.inspect}, product_price_point_id:"\ + " #{@product_price_point_id.inspect}, product_price_point_type:"\ + " #{@product_price_point_type.inspect}, next_product_price_point_id:"\ + " #{@next_product_price_point_id.inspect}, net_terms: #{@net_terms.inspect},"\ + " stored_credential_transaction_id: #{@stored_credential_transaction_id.inspect}, reference:"\ + " #{@reference.inspect}, on_hold_at: #{@on_hold_at.inspect}, prepaid_dunning:"\ + " #{@prepaid_dunning.inspect}, coupons: #{@coupons.inspect},"\ + " dunning_communication_delay_enabled: #{@dunning_communication_delay_enabled.inspect},"\ + " dunning_communication_delay_time_zone: #{@dunning_communication_delay_time_zone.inspect},"\ + " receives_invoice_emails: #{@receives_invoice_emails.inspect}, locale: #{@locale.inspect},"\ + " currency: #{@currency.inspect}, scheduled_cancellation_at:"\ + " #{@scheduled_cancellation_at.inspect}, credit_balance_in_cents:"\ + " #{@credit_balance_in_cents.inspect}, prepayment_balance_in_cents:"\ + " #{@prepayment_balance_in_cents.inspect}, prepaid_configuration:"\ + " #{@prepaid_configuration.inspect}, self_service_page_token:"\ + " #{@self_service_page_token.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_component.rb b/lib/advanced_billing/models/subscription_component.rb index 90d45fb7..23fd88aa 100644 --- a/lib/advanced_billing/models/subscription_component.rb +++ b/lib/advanced_billing/models/subscription_component.rb @@ -476,5 +476,48 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, name: #{@name}, kind: #{@kind}, unit_name: #{@unit_name},"\ + " enabled: #{@enabled}, unit_balance: #{@unit_balance}, currency: #{@currency},"\ + " allocated_quantity: #{@allocated_quantity}, pricing_scheme: #{@pricing_scheme},"\ + " component_id: #{@component_id}, component_handle: #{@component_handle}, subscription_id:"\ + " #{@subscription_id}, recurring: #{@recurring}, upgrade_charge: #{@upgrade_charge},"\ + " downgrade_credit: #{@downgrade_credit}, archived_at: #{@archived_at}, price_point_id:"\ + " #{@price_point_id}, price_point_handle: #{@price_point_handle}, price_point_type:"\ + " #{@price_point_type}, price_point_name: #{@price_point_name}, product_family_id:"\ + " #{@product_family_id}, product_family_handle: #{@product_family_handle}, created_at:"\ + " #{@created_at}, updated_at: #{@updated_at}, use_site_exchange_rate:"\ + " #{@use_site_exchange_rate}, description: #{@description}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities}, subscription: #{@subscription}, historic_usages:"\ + " #{@historic_usages}, display_on_hosted_page: #{@display_on_hosted_page}, interval:"\ + " #{@interval}, interval_unit: #{@interval_unit}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, kind: #{@kind.inspect},"\ + " unit_name: #{@unit_name.inspect}, enabled: #{@enabled.inspect}, unit_balance:"\ + " #{@unit_balance.inspect}, currency: #{@currency.inspect}, allocated_quantity:"\ + " #{@allocated_quantity.inspect}, pricing_scheme: #{@pricing_scheme.inspect}, component_id:"\ + " #{@component_id.inspect}, component_handle: #{@component_handle.inspect}, subscription_id:"\ + " #{@subscription_id.inspect}, recurring: #{@recurring.inspect}, upgrade_charge:"\ + " #{@upgrade_charge.inspect}, downgrade_credit: #{@downgrade_credit.inspect}, archived_at:"\ + " #{@archived_at.inspect}, price_point_id: #{@price_point_id.inspect}, price_point_handle:"\ + " #{@price_point_handle.inspect}, price_point_type: #{@price_point_type.inspect},"\ + " price_point_name: #{@price_point_name.inspect}, product_family_id:"\ + " #{@product_family_id.inspect}, product_family_handle: #{@product_family_handle.inspect},"\ + " created_at: #{@created_at.inspect}, updated_at: #{@updated_at.inspect},"\ + " use_site_exchange_rate: #{@use_site_exchange_rate.inspect}, description:"\ + " #{@description.inspect}, allow_fractional_quantities:"\ + " #{@allow_fractional_quantities.inspect}, subscription: #{@subscription.inspect},"\ + " historic_usages: #{@historic_usages.inspect}, display_on_hosted_page:"\ + " #{@display_on_hosted_page.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_component_allocation_error_item.rb b/lib/advanced_billing/models/subscription_component_allocation_error_item.rb index e0262fd3..91d4ff56 100644 --- a/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +++ b/lib/advanced_billing/models/subscription_component_allocation_error_item.rb @@ -64,5 +64,19 @@ def self.from_hash(hash) message: message, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} kind: #{@kind}, message: #{@message}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} kind: #{@kind.inspect}, message: #{@message.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_component_response.rb b/lib/advanced_billing/models/subscription_component_response.rb index 439446b8..5635b7d6 100644 --- a/lib/advanced_billing/models/subscription_component_response.rb +++ b/lib/advanced_billing/models/subscription_component_response.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) SubscriptionComponentResponse.new(component: component, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component: #{@component}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component: #{@component.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_component_subscription.rb b/lib/advanced_billing/models/subscription_component_subscription.rb index 6483fa60..cd8eaad2 100644 --- a/lib/advanced_billing/models/subscription_component_subscription.rb +++ b/lib/advanced_billing/models/subscription_component_subscription.rb @@ -226,5 +226,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} state: #{@state}, updated_at: #{@updated_at}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} state: #{@state.inspect}, updated_at: #{@updated_at.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_custom_price.rb b/lib/advanced_billing/models/subscription_custom_price.rb index bc1bd232..f5ab4e36 100644 --- a/lib/advanced_billing/models/subscription_custom_price.rb +++ b/lib/advanced_billing/models/subscription_custom_price.rb @@ -214,5 +214,32 @@ def self.validate(value) ->(val) { IntervalUnit.validate(val) }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, handle: #{@handle}, price_in_cents: #{@price_in_cents},"\ + " interval: #{@interval}, interval_unit: #{@interval_unit}, trial_price_in_cents:"\ + " #{@trial_price_in_cents}, trial_interval: #{@trial_interval}, trial_interval_unit:"\ + " #{@trial_interval_unit}, initial_charge_in_cents: #{@initial_charge_in_cents},"\ + " initial_charge_after_trial: #{@initial_charge_after_trial}, expiration_interval:"\ + " #{@expiration_interval}, expiration_interval_unit: #{@expiration_interval_unit},"\ + " tax_included: #{@tax_included}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, handle: #{@handle.inspect}, price_in_cents:"\ + " #{@price_in_cents.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, trial_price_in_cents: #{@trial_price_in_cents.inspect},"\ + " trial_interval: #{@trial_interval.inspect}, trial_interval_unit:"\ + " #{@trial_interval_unit.inspect}, initial_charge_in_cents:"\ + " #{@initial_charge_in_cents.inspect}, initial_charge_after_trial:"\ + " #{@initial_charge_after_trial.inspect}, expiration_interval:"\ + " #{@expiration_interval.inspect}, expiration_interval_unit:"\ + " #{@expiration_interval_unit.inspect}, tax_included: #{@tax_included.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_filter.rb b/lib/advanced_billing/models/subscription_filter.rb index db24ad04..ed2154d0 100644 --- a/lib/advanced_billing/models/subscription_filter.rb +++ b/lib/advanced_billing/models/subscription_filter.rb @@ -145,5 +145,22 @@ def to_custom_start_datetime def to_custom_end_datetime DateTimeHelper.to_rfc3339(end_datetime) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} states: #{@states}, date_field: #{@date_field}, start_date: #{@start_date},"\ + " end_date: #{@end_date}, start_datetime: #{@start_datetime}, end_datetime:"\ + " #{@end_datetime}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} states: #{@states.inspect}, date_field: #{@date_field.inspect}, start_date:"\ + " #{@start_date.inspect}, end_date: #{@end_date.inspect}, start_datetime:"\ + " #{@start_datetime.inspect}, end_datetime: #{@end_datetime.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group.rb b/lib/advanced_billing/models/subscription_group.rb index a1cd320e..e0b4a53e 100644 --- a/lib/advanced_billing/models/subscription_group.rb +++ b/lib/advanced_billing/models/subscription_group.rb @@ -117,5 +117,23 @@ def self.from_hash(hash) def to_custom_created_at DateTimeHelper.to_rfc3339(created_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} customer_id: #{@customer_id}, payment_profile: #{@payment_profile},"\ + " payment_collection_method: #{@payment_collection_method}, subscription_ids:"\ + " #{@subscription_ids}, created_at: #{@created_at}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} customer_id: #{@customer_id.inspect}, payment_profile:"\ + " #{@payment_profile.inspect}, payment_collection_method:"\ + " #{@payment_collection_method.inspect}, subscription_ids: #{@subscription_ids.inspect},"\ + " created_at: #{@created_at.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_balances.rb b/lib/advanced_billing/models/subscription_group_balances.rb index 934acc61..fe53be49 100644 --- a/lib/advanced_billing/models/subscription_group_balances.rb +++ b/lib/advanced_billing/models/subscription_group_balances.rb @@ -86,5 +86,21 @@ def self.from_hash(hash) pending_discounts: pending_discounts, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepayments: #{@prepayments}, service_credits: #{@service_credits},"\ + " open_invoices: #{@open_invoices}, pending_discounts: #{@pending_discounts},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepayments: #{@prepayments.inspect}, service_credits:"\ + " #{@service_credits.inspect}, open_invoices: #{@open_invoices.inspect}, pending_discounts:"\ + " #{@pending_discounts.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_bank_account.rb b/lib/advanced_billing/models/subscription_group_bank_account.rb index b3cfdc1c..2b466ee8 100644 --- a/lib/advanced_billing/models/subscription_group_bank_account.rb +++ b/lib/advanced_billing/models/subscription_group_bank_account.rb @@ -226,5 +226,33 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} bank_name: #{@bank_name}, bank_account_number: #{@bank_account_number},"\ + " bank_routing_number: #{@bank_routing_number}, bank_iban: #{@bank_iban}, bank_branch_code:"\ + " #{@bank_branch_code}, bank_account_type: #{@bank_account_type}, bank_account_holder_type:"\ + " #{@bank_account_holder_type}, payment_type: #{@payment_type}, billing_address:"\ + " #{@billing_address}, billing_city: #{@billing_city}, billing_state: #{@billing_state},"\ + " billing_zip: #{@billing_zip}, billing_country: #{@billing_country}, chargify_token:"\ + " #{@chargify_token}, current_vault: #{@current_vault}, gateway_handle: #{@gateway_handle},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} bank_name: #{@bank_name.inspect}, bank_account_number:"\ + " #{@bank_account_number.inspect}, bank_routing_number: #{@bank_routing_number.inspect},"\ + " bank_iban: #{@bank_iban.inspect}, bank_branch_code: #{@bank_branch_code.inspect},"\ + " bank_account_type: #{@bank_account_type.inspect}, bank_account_holder_type:"\ + " #{@bank_account_holder_type.inspect}, payment_type: #{@payment_type.inspect},"\ + " billing_address: #{@billing_address.inspect}, billing_city: #{@billing_city.inspect},"\ + " billing_state: #{@billing_state.inspect}, billing_zip: #{@billing_zip.inspect},"\ + " billing_country: #{@billing_country.inspect}, chargify_token: #{@chargify_token.inspect},"\ + " current_vault: #{@current_vault.inspect}, gateway_handle: #{@gateway_handle.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_component_custom_price.rb b/lib/advanced_billing/models/subscription_group_component_custom_price.rb index b54976aa..bb40fdff 100644 --- a/lib/advanced_billing/models/subscription_group_component_custom_price.rb +++ b/lib/advanced_billing/models/subscription_group_component_custom_price.rb @@ -110,5 +110,20 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} pricing_scheme: #{@pricing_scheme}, prices: #{@prices}, overage_pricing:"\ + " #{@overage_pricing}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} pricing_scheme: #{@pricing_scheme.inspect}, prices: #{@prices.inspect},"\ + " overage_pricing: #{@overage_pricing.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_credit_card.rb b/lib/advanced_billing/models/subscription_group_credit_card.rb index 930a535a..530c1bba 100644 --- a/lib/advanced_billing/models/subscription_group_credit_card.rb +++ b/lib/advanced_billing/models/subscription_group_credit_card.rb @@ -267,5 +267,35 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} full_number: #{@full_number}, expiration_month: #{@expiration_month},"\ + " expiration_year: #{@expiration_year}, chargify_token: #{@chargify_token}, vault_token:"\ + " #{@vault_token}, current_vault: #{@current_vault}, gateway_handle: #{@gateway_handle},"\ + " first_name: #{@first_name}, last_name: #{@last_name}, billing_address:"\ + " #{@billing_address}, billing_address_2: #{@billing_address_2}, billing_city:"\ + " #{@billing_city}, billing_state: #{@billing_state}, billing_zip: #{@billing_zip},"\ + " billing_country: #{@billing_country}, last_four: #{@last_four}, card_type: #{@card_type},"\ + " customer_vault_token: #{@customer_vault_token}, cvv: #{@cvv}, payment_type:"\ + " #{@payment_type}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} full_number: #{@full_number.inspect}, expiration_month:"\ + " #{@expiration_month.inspect}, expiration_year: #{@expiration_year.inspect},"\ + " chargify_token: #{@chargify_token.inspect}, vault_token: #{@vault_token.inspect},"\ + " current_vault: #{@current_vault.inspect}, gateway_handle: #{@gateway_handle.inspect},"\ + " first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect}, billing_address:"\ + " #{@billing_address.inspect}, billing_address_2: #{@billing_address_2.inspect},"\ + " billing_city: #{@billing_city.inspect}, billing_state: #{@billing_state.inspect},"\ + " billing_zip: #{@billing_zip.inspect}, billing_country: #{@billing_country.inspect},"\ + " last_four: #{@last_four.inspect}, card_type: #{@card_type.inspect}, customer_vault_token:"\ + " #{@customer_vault_token.inspect}, cvv: #{@cvv.inspect}, payment_type:"\ + " #{@payment_type.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_customer.rb b/lib/advanced_billing/models/subscription_group_customer.rb index 8525bf4a..fe051813 100644 --- a/lib/advanced_billing/models/subscription_group_customer.rb +++ b/lib/advanced_billing/models/subscription_group_customer.rb @@ -92,5 +92,21 @@ def self.from_hash(hash) reference: reference, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name}, last_name: #{@last_name}, organization:"\ + " #{@organization}, email: #{@email}, reference: #{@reference}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\ + " organization: #{@organization.inspect}, email: #{@email.inspect}, reference:"\ + " #{@reference.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_item.rb b/lib/advanced_billing/models/subscription_group_item.rb index 1e4f359f..62ab007b 100644 --- a/lib/advanced_billing/models/subscription_group_item.rb +++ b/lib/advanced_billing/models/subscription_group_item.rb @@ -152,5 +152,28 @@ def self.from_hash(hash) balance_in_cents: balance_in_cents, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, reference: #{@reference}, product_id: #{@product_id},"\ + " product_handle: #{@product_handle}, product_price_point_id: #{@product_price_point_id},"\ + " product_price_point_handle: #{@product_price_point_handle}, currency: #{@currency},"\ + " coupon_code: #{@coupon_code}, total_revenue_in_cents: #{@total_revenue_in_cents},"\ + " balance_in_cents: #{@balance_in_cents}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, reference: #{@reference.inspect}, product_id:"\ + " #{@product_id.inspect}, product_handle: #{@product_handle.inspect},"\ + " product_price_point_id: #{@product_price_point_id.inspect}, product_price_point_handle:"\ + " #{@product_price_point_handle.inspect}, currency: #{@currency.inspect}, coupon_code:"\ + " #{@coupon_code.inspect}, total_revenue_in_cents: #{@total_revenue_in_cents.inspect},"\ + " balance_in_cents: #{@balance_in_cents.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_members_array_error.rb b/lib/advanced_billing/models/subscription_group_members_array_error.rb index f8a83095..2aba4b99 100644 --- a/lib/advanced_billing/models/subscription_group_members_array_error.rb +++ b/lib/advanced_billing/models/subscription_group_members_array_error.rb @@ -67,5 +67,18 @@ def self.validate(value) APIHelper.valid_type?(value['members'], ->(val) { val.instance_of? String }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} members: #{@members}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} members: #{@members.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_payment_profile.rb b/lib/advanced_billing/models/subscription_group_payment_profile.rb index 678c6e29..b421d9ec 100644 --- a/lib/advanced_billing/models/subscription_group_payment_profile.rb +++ b/lib/advanced_billing/models/subscription_group_payment_profile.rb @@ -84,5 +84,21 @@ def self.from_hash(hash) masked_card_number: masked_card_number, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, first_name: #{@first_name}, last_name: #{@last_name},"\ + " masked_card_number: #{@masked_card_number}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, first_name: #{@first_name.inspect}, last_name:"\ + " #{@last_name.inspect}, masked_card_number: #{@masked_card_number.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_prepayment.rb b/lib/advanced_billing/models/subscription_group_prepayment.rb index 9cbb7077..5bf42fa6 100644 --- a/lib/advanced_billing/models/subscription_group_prepayment.rb +++ b/lib/advanced_billing/models/subscription_group_prepayment.rb @@ -77,5 +77,20 @@ def self.from_hash(hash) method: method, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount}, details: #{@details}, memo: #{@memo}, method:"\ + " #{@method}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} amount: #{@amount.inspect}, details: #{@details.inspect}, memo:"\ + " #{@memo.inspect}, method: #{@method.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_prepayment_request.rb b/lib/advanced_billing/models/subscription_group_prepayment_request.rb index 1451aba9..07a5201d 100644 --- a/lib/advanced_billing/models/subscription_group_prepayment_request.rb +++ b/lib/advanced_billing/models/subscription_group_prepayment_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) SubscriptionGroupPrepaymentRequest.new(prepayment: prepayment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepayment: #{@prepayment}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepayment: #{@prepayment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_prepayment_response.rb b/lib/advanced_billing/models/subscription_group_prepayment_response.rb index 1f61a182..d1e09a41 100644 --- a/lib/advanced_billing/models/subscription_group_prepayment_response.rb +++ b/lib/advanced_billing/models/subscription_group_prepayment_response.rb @@ -97,5 +97,22 @@ def self.from_hash(hash) memo: memo, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, amount_in_cents: #{@amount_in_cents}, ending_balance_in_cents:"\ + " #{@ending_balance_in_cents}, entry_type: #{@entry_type}, memo: #{@memo},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, amount_in_cents: #{@amount_in_cents.inspect},"\ + " ending_balance_in_cents: #{@ending_balance_in_cents.inspect}, entry_type:"\ + " #{@entry_type.inspect}, memo: #{@memo.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_response.rb b/lib/advanced_billing/models/subscription_group_response.rb index 21afe7fc..8daac7de 100644 --- a/lib/advanced_billing/models/subscription_group_response.rb +++ b/lib/advanced_billing/models/subscription_group_response.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) SubscriptionGroupResponse.new(subscription_group: subscription_group, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_signup.rb b/lib/advanced_billing/models/subscription_group_signup.rb index 4890cb2f..acdb1a35 100644 --- a/lib/advanced_billing/models/subscription_group_signup.rb +++ b/lib/advanced_billing/models/subscription_group_signup.rb @@ -155,5 +155,27 @@ def self.from_hash(hash) bank_account_attributes: bank_account_attributes, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile_id: #{@payment_profile_id}, payer_id: #{@payer_id},"\ + " payer_reference: #{@payer_reference}, payment_collection_method:"\ + " #{@payment_collection_method}, payer_attributes: #{@payer_attributes},"\ + " credit_card_attributes: #{@credit_card_attributes}, bank_account_attributes:"\ + " #{@bank_account_attributes}, subscriptions: #{@subscriptions}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile_id: #{@payment_profile_id.inspect}, payer_id:"\ + " #{@payer_id.inspect}, payer_reference: #{@payer_reference.inspect},"\ + " payment_collection_method: #{@payment_collection_method.inspect}, payer_attributes:"\ + " #{@payer_attributes.inspect}, credit_card_attributes: #{@credit_card_attributes.inspect},"\ + " bank_account_attributes: #{@bank_account_attributes.inspect}, subscriptions:"\ + " #{@subscriptions.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_signup_component.rb b/lib/advanced_billing/models/subscription_group_signup_component.rb index 4a98e5c8..9c359521 100644 --- a/lib/advanced_billing/models/subscription_group_signup_component.rb +++ b/lib/advanced_billing/models/subscription_group_signup_component.rb @@ -113,5 +113,22 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id}, allocated_quantity: #{@allocated_quantity},"\ + " unit_balance: #{@unit_balance}, price_point_id: #{@price_point_id}, custom_price:"\ + " #{@custom_price}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id.inspect}, allocated_quantity:"\ + " #{@allocated_quantity.inspect}, unit_balance: #{@unit_balance.inspect}, price_point_id:"\ + " #{@price_point_id.inspect}, custom_price: #{@custom_price.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_signup_error.rb b/lib/advanced_billing/models/subscription_group_signup_error.rb index aa0750a1..ec3752cb 100644 --- a/lib/advanced_billing/models/subscription_group_signup_error.rb +++ b/lib/advanced_billing/models/subscription_group_signup_error.rb @@ -114,5 +114,23 @@ def self.from_hash(hash) payer_id: payer_id, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscriptions: #{@subscriptions}, payer_reference: #{@payer_reference},"\ + " payer: #{@payer}, subscription_group: #{@subscription_group}, payment_profile_id:"\ + " #{@payment_profile_id}, payer_id: #{@payer_id}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscriptions: #{@subscriptions.inspect}, payer_reference:"\ + " #{@payer_reference.inspect}, payer: #{@payer.inspect}, subscription_group:"\ + " #{@subscription_group.inspect}, payment_profile_id: #{@payment_profile_id.inspect},"\ + " payer_id: #{@payer_id.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_signup_event_data.rb b/lib/advanced_billing/models/subscription_group_signup_event_data.rb index 0d9dd7b9..0ed0fb5a 100644 --- a/lib/advanced_billing/models/subscription_group_signup_event_data.rb +++ b/lib/advanced_billing/models/subscription_group_signup_event_data.rb @@ -91,5 +91,19 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group}, customer: #{@customer},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group.inspect}, customer:"\ + " #{@customer.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_signup_failure_data.rb b/lib/advanced_billing/models/subscription_group_signup_failure_data.rb index 8c4a771b..d26b925d 100644 --- a/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +++ b/lib/advanced_billing/models/subscription_group_signup_failure_data.rb @@ -152,5 +152,27 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payer_id: #{@payer_id}, payer_reference: #{@payer_reference},"\ + " payment_profile_id: #{@payment_profile_id}, payment_collection_method:"\ + " #{@payment_collection_method}, payer_attributes: #{@payer_attributes},"\ + " credit_card_attributes: #{@credit_card_attributes}, bank_account_attributes:"\ + " #{@bank_account_attributes}, subscriptions: #{@subscriptions}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payer_id: #{@payer_id.inspect}, payer_reference:"\ + " #{@payer_reference.inspect}, payment_profile_id: #{@payment_profile_id.inspect},"\ + " payment_collection_method: #{@payment_collection_method.inspect}, payer_attributes:"\ + " #{@payer_attributes.inspect}, credit_card_attributes: #{@credit_card_attributes.inspect},"\ + " bank_account_attributes: #{@bank_account_attributes.inspect}, subscriptions:"\ + " #{@subscriptions.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_signup_item.rb b/lib/advanced_billing/models/subscription_group_signup_item.rb index c44a82b1..f7a33c8d 100644 --- a/lib/advanced_billing/models/subscription_group_signup_item.rb +++ b/lib/advanced_billing/models/subscription_group_signup_item.rb @@ -206,5 +206,29 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product_handle: #{@product_handle}, product_id: #{@product_id},"\ + " product_price_point_id: #{@product_price_point_id}, product_price_point_handle:"\ + " #{@product_price_point_handle}, offer_id: #{@offer_id}, reference: #{@reference}, primary:"\ + " #{@primary}, currency: #{@currency}, coupon_codes: #{@coupon_codes}, components:"\ + " #{@components}, custom_price: #{@custom_price}, calendar_billing: #{@calendar_billing},"\ + " metafields: #{@metafields}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product_handle: #{@product_handle.inspect}, product_id:"\ + " #{@product_id.inspect}, product_price_point_id: #{@product_price_point_id.inspect},"\ + " product_price_point_handle: #{@product_price_point_handle.inspect}, offer_id:"\ + " #{@offer_id.inspect}, reference: #{@reference.inspect}, primary: #{@primary.inspect},"\ + " currency: #{@currency.inspect}, coupon_codes: #{@coupon_codes.inspect}, components:"\ + " #{@components.inspect}, custom_price: #{@custom_price.inspect}, calendar_billing:"\ + " #{@calendar_billing.inspect}, metafields: #{@metafields.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_signup_request.rb b/lib/advanced_billing/models/subscription_group_signup_request.rb index 936beb8d..3680ab11 100644 --- a/lib/advanced_billing/models/subscription_group_signup_request.rb +++ b/lib/advanced_billing/models/subscription_group_signup_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) SubscriptionGroupSignupRequest.new(subscription_group: subscription_group, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_signup_response.rb b/lib/advanced_billing/models/subscription_group_signup_response.rb index 88dca622..c9abb08b 100644 --- a/lib/advanced_billing/models/subscription_group_signup_response.rb +++ b/lib/advanced_billing/models/subscription_group_signup_response.rb @@ -392,5 +392,29 @@ def self.from_hash(hash) def to_custom_next_assessment_at DateTimeHelper.to_rfc3339(next_assessment_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid}, scheme: #{@scheme}, customer_id: #{@customer_id},"\ + " payment_profile_id: #{@payment_profile_id}, subscription_ids: #{@subscription_ids},"\ + " primary_subscription_id: #{@primary_subscription_id}, next_assessment_at:"\ + " #{@next_assessment_at}, state: #{@state}, cancel_at_end_of_period:"\ + " #{@cancel_at_end_of_period}, subscriptions: #{@subscriptions}, payment_collection_method:"\ + " #{@payment_collection_method}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} uid: #{@uid.inspect}, scheme: #{@scheme.inspect}, customer_id:"\ + " #{@customer_id.inspect}, payment_profile_id: #{@payment_profile_id.inspect},"\ + " subscription_ids: #{@subscription_ids.inspect}, primary_subscription_id:"\ + " #{@primary_subscription_id.inspect}, next_assessment_at: #{@next_assessment_at.inspect},"\ + " state: #{@state.inspect}, cancel_at_end_of_period: #{@cancel_at_end_of_period.inspect},"\ + " subscriptions: #{@subscriptions.inspect}, payment_collection_method:"\ + " #{@payment_collection_method.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_single_error.rb b/lib/advanced_billing/models/subscription_group_single_error.rb index 08f1b462..b30d3ae8 100644 --- a/lib/advanced_billing/models/subscription_group_single_error.rb +++ b/lib/advanced_billing/models/subscription_group_single_error.rb @@ -68,5 +68,19 @@ def self.validate(value) APIHelper.valid_type?(value['subscription_group'], ->(val) { val.instance_of? String }) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_subscription_error.rb b/lib/advanced_billing/models/subscription_group_subscription_error.rb index 3935ae55..a60979cc 100644 --- a/lib/advanced_billing/models/subscription_group_subscription_error.rb +++ b/lib/advanced_billing/models/subscription_group_subscription_error.rb @@ -143,5 +143,29 @@ def self.from_hash(hash) payment_profile_full_number: payment_profile_full_number, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product: #{@product}, product_price_point_id: #{@product_price_point_id},"\ + " payment_profile: #{@payment_profile}, payment_profile_chargify_token:"\ + " #{@payment_profile_chargify_token}, base: #{@base}, payment_profile_expiration_month:"\ + " #{@payment_profile_expiration_month}, payment_profile_expiration_year:"\ + " #{@payment_profile_expiration_year}, payment_profile_full_number:"\ + " #{@payment_profile_full_number}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product: #{@product.inspect}, product_price_point_id:"\ + " #{@product_price_point_id.inspect}, payment_profile: #{@payment_profile.inspect},"\ + " payment_profile_chargify_token: #{@payment_profile_chargify_token.inspect}, base:"\ + " #{@base.inspect}, payment_profile_expiration_month:"\ + " #{@payment_profile_expiration_month.inspect}, payment_profile_expiration_year:"\ + " #{@payment_profile_expiration_year.inspect}, payment_profile_full_number:"\ + " #{@payment_profile_full_number.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_group_update_error.rb b/lib/advanced_billing/models/subscription_group_update_error.rb index 512c84b1..c909cf26 100644 --- a/lib/advanced_billing/models/subscription_group_update_error.rb +++ b/lib/advanced_billing/models/subscription_group_update_error.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) SubscriptionGroupUpdateError.new(members: members, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} members: #{@members}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} members: #{@members.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_included_coupon.rb b/lib/advanced_billing/models/subscription_included_coupon.rb index a0a4ddf3..a913f745 100644 --- a/lib/advanced_billing/models/subscription_included_coupon.rb +++ b/lib/advanced_billing/models/subscription_included_coupon.rb @@ -116,5 +116,23 @@ def self.from_hash(hash) percentage: percentage, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} code: #{@code}, use_count: #{@use_count}, uses_allowed: #{@uses_allowed},"\ + " expires_at: #{@expires_at}, recurring: #{@recurring}, amount_in_cents:"\ + " #{@amount_in_cents}, percentage: #{@percentage}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} code: #{@code.inspect}, use_count: #{@use_count.inspect}, uses_allowed:"\ + " #{@uses_allowed.inspect}, expires_at: #{@expires_at.inspect}, recurring:"\ + " #{@recurring.inspect}, amount_in_cents: #{@amount_in_cents.inspect}, percentage:"\ + " #{@percentage.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_migration_preview.rb b/lib/advanced_billing/models/subscription_migration_preview.rb index 1832c921..182f211b 100644 --- a/lib/advanced_billing/models/subscription_migration_preview.rb +++ b/lib/advanced_billing/models/subscription_migration_preview.rb @@ -94,5 +94,23 @@ def self.from_hash(hash) credit_applied_in_cents: credit_applied_in_cents, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prorated_adjustment_in_cents: #{@prorated_adjustment_in_cents},"\ + " charge_in_cents: #{@charge_in_cents}, payment_due_in_cents: #{@payment_due_in_cents},"\ + " credit_applied_in_cents: #{@credit_applied_in_cents}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prorated_adjustment_in_cents: #{@prorated_adjustment_in_cents.inspect},"\ + " charge_in_cents: #{@charge_in_cents.inspect}, payment_due_in_cents:"\ + " #{@payment_due_in_cents.inspect}, credit_applied_in_cents:"\ + " #{@credit_applied_in_cents.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_migration_preview_options.rb b/lib/advanced_billing/models/subscription_migration_preview_options.rb index d2193bad..e1e1b1cb 100644 --- a/lib/advanced_billing/models/subscription_migration_preview_options.rb +++ b/lib/advanced_billing/models/subscription_migration_preview_options.rb @@ -172,5 +172,28 @@ def self.from_hash(hash) def to_custom_proration_date DateTimeHelper.to_rfc3339(proration_date) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product_id: #{@product_id}, product_price_point_id:"\ + " #{@product_price_point_id}, include_trial: #{@include_trial}, include_initial_charge:"\ + " #{@include_initial_charge}, include_coupons: #{@include_coupons}, preserve_period:"\ + " #{@preserve_period}, product_handle: #{@product_handle}, product_price_point_handle:"\ + " #{@product_price_point_handle}, proration: #{@proration}, proration_date:"\ + " #{@proration_date}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product_id: #{@product_id.inspect}, product_price_point_id:"\ + " #{@product_price_point_id.inspect}, include_trial: #{@include_trial.inspect},"\ + " include_initial_charge: #{@include_initial_charge.inspect}, include_coupons:"\ + " #{@include_coupons.inspect}, preserve_period: #{@preserve_period.inspect}, product_handle:"\ + " #{@product_handle.inspect}, product_price_point_handle:"\ + " #{@product_price_point_handle.inspect}, proration: #{@proration.inspect}, proration_date:"\ + " #{@proration_date.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_migration_preview_request.rb b/lib/advanced_billing/models/subscription_migration_preview_request.rb index b5fda0be..f8cd6059 100644 --- a/lib/advanced_billing/models/subscription_migration_preview_request.rb +++ b/lib/advanced_billing/models/subscription_migration_preview_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) SubscriptionMigrationPreviewRequest.new(migration: migration, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} migration: #{@migration}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} migration: #{@migration.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_migration_preview_response.rb b/lib/advanced_billing/models/subscription_migration_preview_response.rb index 0c98e4b8..60926e75 100644 --- a/lib/advanced_billing/models/subscription_migration_preview_response.rb +++ b/lib/advanced_billing/models/subscription_migration_preview_response.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) SubscriptionMigrationPreviewResponse.new(migration: migration, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} migration: #{@migration}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} migration: #{@migration.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_mrr.rb b/lib/advanced_billing/models/subscription_mrr.rb index b781f1db..aabe8e14 100644 --- a/lib/advanced_billing/models/subscription_mrr.rb +++ b/lib/advanced_billing/models/subscription_mrr.rb @@ -74,5 +74,21 @@ def self.from_hash(hash) breakouts: breakouts, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_id: #{@subscription_id}, mrr_amount_in_cents:"\ + " #{@mrr_amount_in_cents}, breakouts: #{@breakouts}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_id: #{@subscription_id.inspect}, mrr_amount_in_cents:"\ + " #{@mrr_amount_in_cents.inspect}, breakouts: #{@breakouts.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_mrr_breakout.rb b/lib/advanced_billing/models/subscription_mrr_breakout.rb index 33ac645e..78e70341 100644 --- a/lib/advanced_billing/models/subscription_mrr_breakout.rb +++ b/lib/advanced_billing/models/subscription_mrr_breakout.rb @@ -64,5 +64,20 @@ def self.from_hash(hash) usage_amount_in_cents: usage_amount_in_cents, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} plan_amount_in_cents: #{@plan_amount_in_cents}, usage_amount_in_cents:"\ + " #{@usage_amount_in_cents}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} plan_amount_in_cents: #{@plan_amount_in_cents.inspect},"\ + " usage_amount_in_cents: #{@usage_amount_in_cents.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_mrr_response.rb b/lib/advanced_billing/models/subscription_mrr_response.rb index 4462e310..bef631a3 100644 --- a/lib/advanced_billing/models/subscription_mrr_response.rb +++ b/lib/advanced_billing/models/subscription_mrr_response.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) SubscriptionMRRResponse.new(subscriptions_mrr: subscriptions_mrr, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscriptions_mrr: #{@subscriptions_mrr}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscriptions_mrr: #{@subscriptions_mrr.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_note.rb b/lib/advanced_billing/models/subscription_note.rb index 220da34e..7ac1f4d1 100644 --- a/lib/advanced_billing/models/subscription_note.rb +++ b/lib/advanced_billing/models/subscription_note.rb @@ -120,5 +120,22 @@ def to_custom_created_at def to_custom_updated_at DateTimeHelper.to_rfc3339(updated_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, body: #{@body}, subscription_id: #{@subscription_id},"\ + " created_at: #{@created_at}, updated_at: #{@updated_at}, sticky: #{@sticky},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, body: #{@body.inspect}, subscription_id:"\ + " #{@subscription_id.inspect}, created_at: #{@created_at.inspect}, updated_at:"\ + " #{@updated_at.inspect}, sticky: #{@sticky.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_note_response.rb b/lib/advanced_billing/models/subscription_note_response.rb index f675aed4..3da39ea3 100644 --- a/lib/advanced_billing/models/subscription_note_response.rb +++ b/lib/advanced_billing/models/subscription_note_response.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) SubscriptionNoteResponse.new(note: note, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} note: #{@note}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} note: #{@note.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_preview.rb b/lib/advanced_billing/models/subscription_preview.rb index a481cb89..778ae68c 100644 --- a/lib/advanced_billing/models/subscription_preview.rb +++ b/lib/advanced_billing/models/subscription_preview.rb @@ -67,5 +67,21 @@ def self.from_hash(hash) next_billing_manifest: next_billing_manifest, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} current_billing_manifest: #{@current_billing_manifest},"\ + " next_billing_manifest: #{@next_billing_manifest}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} current_billing_manifest: #{@current_billing_manifest.inspect},"\ + " next_billing_manifest: #{@next_billing_manifest.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_preview_response.rb b/lib/advanced_billing/models/subscription_preview_response.rb index 3247b602..5f013671 100644 --- a/lib/advanced_billing/models/subscription_preview_response.rb +++ b/lib/advanced_billing/models/subscription_preview_response.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) SubscriptionPreviewResponse.new(subscription_preview: subscription_preview, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_preview: #{@subscription_preview}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_preview: #{@subscription_preview.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_product_change.rb b/lib/advanced_billing/models/subscription_product_change.rb index 9072d3c4..20d33a6e 100644 --- a/lib/advanced_billing/models/subscription_product_change.rb +++ b/lib/advanced_billing/models/subscription_product_change.rb @@ -86,5 +86,19 @@ def self.validate(value) ->(val) { val.instance_of? Integer }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} previous_product_id: #{@previous_product_id}, new_product_id:"\ + " #{@new_product_id}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} previous_product_id: #{@previous_product_id.inspect}, new_product_id:"\ + " #{@new_product_id.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_product_migration.rb b/lib/advanced_billing/models/subscription_product_migration.rb index 17898e47..e48a821b 100644 --- a/lib/advanced_billing/models/subscription_product_migration.rb +++ b/lib/advanced_billing/models/subscription_product_migration.rb @@ -153,5 +153,28 @@ def self.from_hash(hash) proration: proration, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} product_id: #{@product_id}, product_price_point_id:"\ + " #{@product_price_point_id}, include_trial: #{@include_trial}, include_initial_charge:"\ + " #{@include_initial_charge}, include_coupons: #{@include_coupons}, preserve_period:"\ + " #{@preserve_period}, product_handle: #{@product_handle}, product_price_point_handle:"\ + " #{@product_price_point_handle}, proration: #{@proration}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} product_id: #{@product_id.inspect}, product_price_point_id:"\ + " #{@product_price_point_id.inspect}, include_trial: #{@include_trial.inspect},"\ + " include_initial_charge: #{@include_initial_charge.inspect}, include_coupons:"\ + " #{@include_coupons.inspect}, preserve_period: #{@preserve_period.inspect}, product_handle:"\ + " #{@product_handle.inspect}, product_price_point_handle:"\ + " #{@product_price_point_handle.inspect}, proration: #{@proration.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_product_migration_request.rb b/lib/advanced_billing/models/subscription_product_migration_request.rb index 8a9c4026..f197fefb 100644 --- a/lib/advanced_billing/models/subscription_product_migration_request.rb +++ b/lib/advanced_billing/models/subscription_product_migration_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) SubscriptionProductMigrationRequest.new(migration: migration, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} migration: #{@migration}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} migration: #{@migration.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_response.rb b/lib/advanced_billing/models/subscription_response.rb index 28b88066..85fe2d03 100644 --- a/lib/advanced_billing/models/subscription_response.rb +++ b/lib/advanced_billing/models/subscription_response.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) SubscriptionResponse.new(subscription: subscription, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/subscription_state_change.rb b/lib/advanced_billing/models/subscription_state_change.rb index 1e861b2f..62efc9fc 100644 --- a/lib/advanced_billing/models/subscription_state_change.rb +++ b/lib/advanced_billing/models/subscription_state_change.rb @@ -86,5 +86,21 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} previous_subscription_state: #{@previous_subscription_state},"\ + " new_subscription_state: #{@new_subscription_state}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} previous_subscription_state: #{@previous_subscription_state.inspect},"\ + " new_subscription_state: #{@new_subscription_state.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/tax_configuration.rb b/lib/advanced_billing/models/tax_configuration.rb index 81fa1569..a7f3fb5a 100644 --- a/lib/advanced_billing/models/tax_configuration.rb +++ b/lib/advanced_billing/models/tax_configuration.rb @@ -78,5 +78,21 @@ def self.from_hash(hash) fully_configured: fully_configured, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} kind: #{@kind}, destination_address: #{@destination_address},"\ + " fully_configured: #{@fully_configured}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} kind: #{@kind.inspect}, destination_address:"\ + " #{@destination_address.inspect}, fully_configured: #{@fully_configured.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/too_many_management_link_requests.rb b/lib/advanced_billing/models/too_many_management_link_requests.rb index a4909728..0fb3dab4 100644 --- a/lib/advanced_billing/models/too_many_management_link_requests.rb +++ b/lib/advanced_billing/models/too_many_management_link_requests.rb @@ -68,5 +68,19 @@ def self.from_hash(hash) def to_custom_new_link_available_at DateTimeHelper.to_rfc3339(new_link_available_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} error: #{@error}, new_link_available_at: #{@new_link_available_at},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} error: #{@error.inspect}, new_link_available_at:"\ + " #{@new_link_available_at.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_allocation_expiration_date.rb b/lib/advanced_billing/models/update_allocation_expiration_date.rb index c605bfce..2040562a 100644 --- a/lib/advanced_billing/models/update_allocation_expiration_date.rb +++ b/lib/advanced_billing/models/update_allocation_expiration_date.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) UpdateAllocationExpirationDate.new(allocation: allocation, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} allocation: #{@allocation}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} allocation: #{@allocation.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_component.rb b/lib/advanced_billing/models/update_component.rb index 614609fd..1ced6436 100644 --- a/lib/advanced_billing/models/update_component.rb +++ b/lib/advanced_billing/models/update_component.rb @@ -146,5 +146,25 @@ def self.from_hash(hash) upgrade_charge: upgrade_charge, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} handle: #{@handle}, name: #{@name}, description: #{@description},"\ + " accounting_code: #{@accounting_code}, taxable: #{@taxable}, tax_code: #{@tax_code},"\ + " item_category: #{@item_category}, display_on_hosted_page: #{@display_on_hosted_page},"\ + " upgrade_charge: #{@upgrade_charge}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} handle: #{@handle.inspect}, name: #{@name.inspect}, description:"\ + " #{@description.inspect}, accounting_code: #{@accounting_code.inspect}, taxable:"\ + " #{@taxable.inspect}, tax_code: #{@tax_code.inspect}, item_category:"\ + " #{@item_category.inspect}, display_on_hosted_page: #{@display_on_hosted_page.inspect},"\ + " upgrade_charge: #{@upgrade_charge.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_component_price_point.rb b/lib/advanced_billing/models/update_component_price_point.rb index 7601508f..7515c848 100644 --- a/lib/advanced_billing/models/update_component_price_point.rb +++ b/lib/advanced_billing/models/update_component_price_point.rb @@ -144,5 +144,24 @@ def self.from_hash(hash) prices: prices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name}, handle: #{@handle}, pricing_scheme: #{@pricing_scheme},"\ + " use_site_exchange_rate: #{@use_site_exchange_rate}, tax_included: #{@tax_included},"\ + " interval: #{@interval}, interval_unit: #{@interval_unit}, prices: #{@prices},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} name: #{@name.inspect}, handle: #{@handle.inspect}, pricing_scheme:"\ + " #{@pricing_scheme.inspect}, use_site_exchange_rate: #{@use_site_exchange_rate.inspect},"\ + " tax_included: #{@tax_included.inspect}, interval: #{@interval.inspect}, interval_unit:"\ + " #{@interval_unit.inspect}, prices: #{@prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_component_price_point_request.rb b/lib/advanced_billing/models/update_component_price_point_request.rb index 58823188..b20a27bb 100644 --- a/lib/advanced_billing/models/update_component_price_point_request.rb +++ b/lib/advanced_billing/models/update_component_price_point_request.rb @@ -56,5 +56,19 @@ def self.from_hash(hash) UpdateComponentPricePointRequest.new(price_point: price_point, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_component_request.rb b/lib/advanced_billing/models/update_component_request.rb index 6af7c202..bbedbe5b 100644 --- a/lib/advanced_billing/models/update_component_request.rb +++ b/lib/advanced_billing/models/update_component_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) UpdateComponentRequest.new(component: component, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component: #{@component}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component: #{@component.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_coupon_currency.rb b/lib/advanced_billing/models/update_coupon_currency.rb index ca8104b8..d56a6c31 100644 --- a/lib/advanced_billing/models/update_coupon_currency.rb +++ b/lib/advanced_billing/models/update_coupon_currency.rb @@ -61,5 +61,19 @@ def self.from_hash(hash) price: price, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currency: #{@currency}, price: #{@price}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currency: #{@currency.inspect}, price: #{@price.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_currency_price.rb b/lib/advanced_billing/models/update_currency_price.rb index 681262be..4c8d14b9 100644 --- a/lib/advanced_billing/models/update_currency_price.rb +++ b/lib/advanced_billing/models/update_currency_price.rb @@ -61,5 +61,19 @@ def self.from_hash(hash) price: price, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, price: #{@price}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, price: #{@price.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_currency_prices_request.rb b/lib/advanced_billing/models/update_currency_prices_request.rb index 6e7a00f3..7c01f988 100644 --- a/lib/advanced_billing/models/update_currency_prices_request.rb +++ b/lib/advanced_billing/models/update_currency_prices_request.rb @@ -62,5 +62,19 @@ def self.from_hash(hash) UpdateCurrencyPricesRequest.new(currency_prices: currency_prices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} currency_prices: #{@currency_prices.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_customer.rb b/lib/advanced_billing/models/update_customer.rb index 4002aa87..1d81aee2 100644 --- a/lib/advanced_billing/models/update_customer.rb +++ b/lib/advanced_billing/models/update_customer.rb @@ -238,5 +238,31 @@ def self.from_hash(hash) salesforce_id: salesforce_id, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name}, last_name: #{@last_name}, email: #{@email},"\ + " cc_emails: #{@cc_emails}, organization: #{@organization}, reference: #{@reference},"\ + " address: #{@address}, address_2: #{@address_2}, city: #{@city}, state: #{@state}, zip:"\ + " #{@zip}, country: #{@country}, phone: #{@phone}, locale: #{@locale}, vat_number:"\ + " #{@vat_number}, tax_exempt: #{@tax_exempt}, tax_exempt_reason: #{@tax_exempt_reason},"\ + " parent_id: #{@parent_id}, verified: #{@verified}, salesforce_id: #{@salesforce_id},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\ + " email: #{@email.inspect}, cc_emails: #{@cc_emails.inspect}, organization:"\ + " #{@organization.inspect}, reference: #{@reference.inspect}, address: #{@address.inspect},"\ + " address_2: #{@address_2.inspect}, city: #{@city.inspect}, state: #{@state.inspect}, zip:"\ + " #{@zip.inspect}, country: #{@country.inspect}, phone: #{@phone.inspect}, locale:"\ + " #{@locale.inspect}, vat_number: #{@vat_number.inspect}, tax_exempt:"\ + " #{@tax_exempt.inspect}, tax_exempt_reason: #{@tax_exempt_reason.inspect}, parent_id:"\ + " #{@parent_id.inspect}, verified: #{@verified.inspect}, salesforce_id:"\ + " #{@salesforce_id.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_customer_request.rb b/lib/advanced_billing/models/update_customer_request.rb index 09b91d26..54c2a4dd 100644 --- a/lib/advanced_billing/models/update_customer_request.rb +++ b/lib/advanced_billing/models/update_customer_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) UpdateCustomerRequest.new(customer: customer, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} customer: #{@customer}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} customer: #{@customer.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_metadata.rb b/lib/advanced_billing/models/update_metadata.rb index 66388c2d..f0c490ae 100644 --- a/lib/advanced_billing/models/update_metadata.rb +++ b/lib/advanced_billing/models/update_metadata.rb @@ -74,5 +74,19 @@ def self.from_hash(hash) value: value, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} current_name: #{@current_name}, name: #{@name}, value: #{@value},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} current_name: #{@current_name.inspect}, name: #{@name.inspect}, value:"\ + " #{@value.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_metadata_request.rb b/lib/advanced_billing/models/update_metadata_request.rb index 46f2a8b6..a0ed24af 100644 --- a/lib/advanced_billing/models/update_metadata_request.rb +++ b/lib/advanced_billing/models/update_metadata_request.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) UpdateMetadataRequest.new(metadata: metadata, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} metadata: #{@metadata}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} metadata: #{@metadata.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_metafield.rb b/lib/advanced_billing/models/update_metafield.rb index 318f295f..45f1c0ef 100644 --- a/lib/advanced_billing/models/update_metafield.rb +++ b/lib/advanced_billing/models/update_metafield.rb @@ -108,5 +108,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} current_name: #{@current_name}, name: #{@name}, scope: #{@scope},"\ + " input_type: #{@input_type}, enum: #{@enum}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} current_name: #{@current_name.inspect}, name: #{@name.inspect}, scope:"\ + " #{@scope.inspect}, input_type: #{@input_type.inspect}, enum: #{@enum.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_metafields_request.rb b/lib/advanced_billing/models/update_metafields_request.rb index 1b446e41..e37582f8 100644 --- a/lib/advanced_billing/models/update_metafields_request.rb +++ b/lib/advanced_billing/models/update_metafields_request.rb @@ -67,5 +67,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} metafields: #{@metafields}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} metafields: #{@metafields.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_payment_profile.rb b/lib/advanced_billing/models/update_payment_profile.rb index 564a871b..74a63e0e 100644 --- a/lib/advanced_billing/models/update_payment_profile.rb +++ b/lib/advanced_billing/models/update_payment_profile.rb @@ -193,5 +193,28 @@ def self.from_hash(hash) billing_address_2: billing_address_2, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name}, last_name: #{@last_name}, full_number:"\ + " #{@full_number}, card_type: #{@card_type}, expiration_month: #{@expiration_month},"\ + " expiration_year: #{@expiration_year}, current_vault: #{@current_vault}, billing_address:"\ + " #{@billing_address}, billing_city: #{@billing_city}, billing_state: #{@billing_state},"\ + " billing_zip: #{@billing_zip}, billing_country: #{@billing_country}, billing_address_2:"\ + " #{@billing_address_2}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} first_name: #{@first_name.inspect}, last_name: #{@last_name.inspect},"\ + " full_number: #{@full_number.inspect}, card_type: #{@card_type.inspect}, expiration_month:"\ + " #{@expiration_month.inspect}, expiration_year: #{@expiration_year.inspect}, current_vault:"\ + " #{@current_vault.inspect}, billing_address: #{@billing_address.inspect}, billing_city:"\ + " #{@billing_city.inspect}, billing_state: #{@billing_state.inspect}, billing_zip:"\ + " #{@billing_zip.inspect}, billing_country: #{@billing_country.inspect}, billing_address_2:"\ + " #{@billing_address_2.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_payment_profile_request.rb b/lib/advanced_billing/models/update_payment_profile_request.rb index 5e696e5a..e11a4f9a 100644 --- a/lib/advanced_billing/models/update_payment_profile_request.rb +++ b/lib/advanced_billing/models/update_payment_profile_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) UpdatePaymentProfileRequest.new(payment_profile: payment_profile, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile: #{@payment_profile}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} payment_profile: #{@payment_profile.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_price.rb b/lib/advanced_billing/models/update_price.rb index 8230bd91..fe895d97 100644 --- a/lib/advanced_billing/models/update_price.rb +++ b/lib/advanced_billing/models/update_price.rb @@ -112,5 +112,21 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, ending_quantity: #{@ending_quantity}, unit_price:"\ + " #{@unit_price}, destroy: #{@destroy}, starting_quantity: #{@starting_quantity},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, ending_quantity: #{@ending_quantity.inspect},"\ + " unit_price: #{@unit_price.inspect}, destroy: #{@destroy.inspect}, starting_quantity:"\ + " #{@starting_quantity.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_product_price_point.rb b/lib/advanced_billing/models/update_product_price_point.rb index 1bf4fe98..5538dcb5 100644 --- a/lib/advanced_billing/models/update_product_price_point.rb +++ b/lib/advanced_billing/models/update_product_price_point.rb @@ -66,5 +66,19 @@ def self.from_hash(hash) price_in_cents: price_in_cents, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} handle: #{@handle}, price_in_cents: #{@price_in_cents},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} handle: #{@handle.inspect}, price_in_cents: #{@price_in_cents.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_product_price_point_request.rb b/lib/advanced_billing/models/update_product_price_point_request.rb index b98ff646..1e20e7ff 100644 --- a/lib/advanced_billing/models/update_product_price_point_request.rb +++ b/lib/advanced_billing/models/update_product_price_point_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) UpdateProductPricePointRequest.new(price_point: price_point, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} price_point: #{@price_point.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_reason_code.rb b/lib/advanced_billing/models/update_reason_code.rb index ceb05cde..23bd75fa 100644 --- a/lib/advanced_billing/models/update_reason_code.rb +++ b/lib/advanced_billing/models/update_reason_code.rb @@ -74,5 +74,19 @@ def self.from_hash(hash) position: position, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} code: #{@code}, description: #{@description}, position: #{@position},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} code: #{@code.inspect}, description: #{@description.inspect}, position:"\ + " #{@position.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_reason_code_request.rb b/lib/advanced_billing/models/update_reason_code_request.rb index a12284f4..5cbdf9f3 100644 --- a/lib/advanced_billing/models/update_reason_code_request.rb +++ b/lib/advanced_billing/models/update_reason_code_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) UpdateReasonCodeRequest.new(reason_code: reason_code, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} reason_code: #{@reason_code}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} reason_code: #{@reason_code.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_segment.rb b/lib/advanced_billing/models/update_segment.rb index ebc426fe..3d43f430 100644 --- a/lib/advanced_billing/models/update_segment.rb +++ b/lib/advanced_billing/models/update_segment.rb @@ -77,5 +77,19 @@ def self.from_hash(hash) prices: prices, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} pricing_scheme: #{@pricing_scheme}, prices: #{@prices},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} pricing_scheme: #{@pricing_scheme.inspect}, prices: #{@prices.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_segment_request.rb b/lib/advanced_billing/models/update_segment_request.rb index 5498a529..1ece30b3 100644 --- a/lib/advanced_billing/models/update_segment_request.rb +++ b/lib/advanced_billing/models/update_segment_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) UpdateSegmentRequest.new(segment: segment, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} segment: #{@segment}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} segment: #{@segment.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_subscription.rb b/lib/advanced_billing/models/update_subscription.rb index 032f0dae..cfa09972 100644 --- a/lib/advanced_billing/models/update_subscription.rb +++ b/lib/advanced_billing/models/update_subscription.rb @@ -308,5 +308,43 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} credit_card_attributes: #{@credit_card_attributes}, product_handle:"\ + " #{@product_handle}, product_id: #{@product_id}, product_change_delayed:"\ + " #{@product_change_delayed}, next_product_id: #{@next_product_id},"\ + " next_product_price_point_id: #{@next_product_price_point_id}, snap_day: #{@snap_day},"\ + " next_billing_at: #{@next_billing_at}, payment_collection_method:"\ + " #{@payment_collection_method}, receives_invoice_emails: #{@receives_invoice_emails},"\ + " net_terms: #{@net_terms}, stored_credential_transaction_id:"\ + " #{@stored_credential_transaction_id}, reference: #{@reference}, custom_price:"\ + " #{@custom_price}, components: #{@components}, dunning_communication_delay_enabled:"\ + " #{@dunning_communication_delay_enabled}, dunning_communication_delay_time_zone:"\ + " #{@dunning_communication_delay_time_zone}, product_price_point_id:"\ + " #{@product_price_point_id}, product_price_point_handle: #{@product_price_point_handle},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} credit_card_attributes: #{@credit_card_attributes.inspect}, product_handle:"\ + " #{@product_handle.inspect}, product_id: #{@product_id.inspect}, product_change_delayed:"\ + " #{@product_change_delayed.inspect}, next_product_id: #{@next_product_id.inspect},"\ + " next_product_price_point_id: #{@next_product_price_point_id.inspect}, snap_day:"\ + " #{@snap_day.inspect}, next_billing_at: #{@next_billing_at.inspect},"\ + " payment_collection_method: #{@payment_collection_method.inspect}, receives_invoice_emails:"\ + " #{@receives_invoice_emails.inspect}, net_terms: #{@net_terms.inspect},"\ + " stored_credential_transaction_id: #{@stored_credential_transaction_id.inspect}, reference:"\ + " #{@reference.inspect}, custom_price: #{@custom_price.inspect}, components:"\ + " #{@components.inspect}, dunning_communication_delay_enabled:"\ + " #{@dunning_communication_delay_enabled.inspect}, dunning_communication_delay_time_zone:"\ + " #{@dunning_communication_delay_time_zone.inspect}, product_price_point_id:"\ + " #{@product_price_point_id.inspect}, product_price_point_handle:"\ + " #{@product_price_point_handle.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_subscription_component.rb b/lib/advanced_billing/models/update_subscription_component.rb index 1d34fa10..4424cad0 100644 --- a/lib/advanced_billing/models/update_subscription_component.rb +++ b/lib/advanced_billing/models/update_subscription_component.rb @@ -76,5 +76,19 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id}, custom_price: #{@custom_price},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} component_id: #{@component_id.inspect}, custom_price:"\ + " #{@custom_price.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_subscription_group.rb b/lib/advanced_billing/models/update_subscription_group.rb index d99d801d..a2f20b03 100644 --- a/lib/advanced_billing/models/update_subscription_group.rb +++ b/lib/advanced_billing/models/update_subscription_group.rb @@ -55,5 +55,19 @@ def self.from_hash(hash) UpdateSubscriptionGroup.new(member_ids: member_ids, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} member_ids: #{@member_ids}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} member_ids: #{@member_ids.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_subscription_group_request.rb b/lib/advanced_billing/models/update_subscription_group_request.rb index 8af5e080..8f934b20 100644 --- a/lib/advanced_billing/models/update_subscription_group_request.rb +++ b/lib/advanced_billing/models/update_subscription_group_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) UpdateSubscriptionGroupRequest.new(subscription_group: subscription_group, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription_group: #{@subscription_group.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_subscription_note.rb b/lib/advanced_billing/models/update_subscription_note.rb index 57cc83cf..5589031f 100644 --- a/lib/advanced_billing/models/update_subscription_note.rb +++ b/lib/advanced_billing/models/update_subscription_note.rb @@ -61,5 +61,19 @@ def self.from_hash(hash) sticky: sticky, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} body: #{@body}, sticky: #{@sticky}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} body: #{@body.inspect}, sticky: #{@sticky.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_subscription_note_request.rb b/lib/advanced_billing/models/update_subscription_note_request.rb index cce0722f..06d528c9 100644 --- a/lib/advanced_billing/models/update_subscription_note_request.rb +++ b/lib/advanced_billing/models/update_subscription_note_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) UpdateSubscriptionNoteRequest.new(note: note, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} note: #{@note}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} note: #{@note.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/update_subscription_request.rb b/lib/advanced_billing/models/update_subscription_request.rb index d9407e86..af84e148 100644 --- a/lib/advanced_billing/models/update_subscription_request.rb +++ b/lib/advanced_billing/models/update_subscription_request.rb @@ -53,5 +53,19 @@ def self.from_hash(hash) UpdateSubscriptionRequest.new(subscription: subscription, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} subscription: #{@subscription.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/upsert_prepaid_configuration.rb b/lib/advanced_billing/models/upsert_prepaid_configuration.rb index 338cc4a0..6a55a07d 100644 --- a/lib/advanced_billing/models/upsert_prepaid_configuration.rb +++ b/lib/advanced_billing/models/upsert_prepaid_configuration.rb @@ -110,5 +110,25 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} initial_funding_amount_in_cents: #{@initial_funding_amount_in_cents},"\ + " replenish_to_amount_in_cents: #{@replenish_to_amount_in_cents}, auto_replenish:"\ + " #{@auto_replenish}, replenish_threshold_amount_in_cents:"\ + " #{@replenish_threshold_amount_in_cents}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} initial_funding_amount_in_cents:"\ + " #{@initial_funding_amount_in_cents.inspect}, replenish_to_amount_in_cents:"\ + " #{@replenish_to_amount_in_cents.inspect}, auto_replenish: #{@auto_replenish.inspect},"\ + " replenish_threshold_amount_in_cents: #{@replenish_threshold_amount_in_cents.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb b/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb index d1eaadc5..5e895ddf 100644 --- a/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +++ b/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb @@ -54,5 +54,19 @@ def self.from_hash(hash) UpsertPrepaidConfigurationRequest.new(prepaid_configuration: prepaid_configuration, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} prepaid_configuration: #{@prepaid_configuration}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} prepaid_configuration: #{@prepaid_configuration.inspect},"\ + " additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/usage.rb b/lib/advanced_billing/models/usage.rb index ec7e9b6d..eca45d1b 100644 --- a/lib/advanced_billing/models/usage.rb +++ b/lib/advanced_billing/models/usage.rb @@ -157,5 +157,24 @@ def self.validate(value) true end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, memo: #{@memo}, created_at: #{@created_at}, price_point_id:"\ + " #{@price_point_id}, quantity: #{@quantity}, overage_quantity: #{@overage_quantity},"\ + " component_id: #{@component_id}, component_handle: #{@component_handle}, subscription_id:"\ + " #{@subscription_id}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, memo: #{@memo.inspect}, created_at:"\ + " #{@created_at.inspect}, price_point_id: #{@price_point_id.inspect}, quantity:"\ + " #{@quantity.inspect}, overage_quantity: #{@overage_quantity.inspect}, component_id:"\ + " #{@component_id.inspect}, component_handle: #{@component_handle.inspect}, subscription_id:"\ + " #{@subscription_id.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/usage_response.rb b/lib/advanced_billing/models/usage_response.rb index 716ac2f7..fd5e7605 100644 --- a/lib/advanced_billing/models/usage_response.rb +++ b/lib/advanced_billing/models/usage_response.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) UsageResponse.new(usage: usage, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} usage: #{@usage}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} usage: #{@usage.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/void_invoice.rb b/lib/advanced_billing/models/void_invoice.rb index d33ca105..5e3793dc 100644 --- a/lib/advanced_billing/models/void_invoice.rb +++ b/lib/advanced_billing/models/void_invoice.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) VoidInvoice.new(reason: reason, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} reason: #{@reason}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} reason: #{@reason.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/void_invoice_event.rb b/lib/advanced_billing/models/void_invoice_event.rb index 3d39e9ad..9e099f33 100644 --- a/lib/advanced_billing/models/void_invoice_event.rb +++ b/lib/advanced_billing/models/void_invoice_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/void_invoice_event_data.rb b/lib/advanced_billing/models/void_invoice_event_data.rb index 2d5c6e5f..97b5a86e 100644 --- a/lib/advanced_billing/models/void_invoice_event_data.rb +++ b/lib/advanced_billing/models/void_invoice_event_data.rb @@ -151,5 +151,23 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} credit_note_attributes: #{@credit_note_attributes}, memo: #{@memo},"\ + " applied_amount: #{@applied_amount}, transaction_time: #{@transaction_time},"\ + " is_advance_invoice: #{@is_advance_invoice}, reason: #{@reason}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} credit_note_attributes: #{@credit_note_attributes.inspect}, memo:"\ + " #{@memo.inspect}, applied_amount: #{@applied_amount.inspect}, transaction_time:"\ + " #{@transaction_time.inspect}, is_advance_invoice: #{@is_advance_invoice.inspect}, reason:"\ + " #{@reason.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/void_invoice_request.rb b/lib/advanced_billing/models/void_invoice_request.rb index ccb45d3e..c746094d 100644 --- a/lib/advanced_billing/models/void_invoice_request.rb +++ b/lib/advanced_billing/models/void_invoice_request.rb @@ -53,5 +53,18 @@ def self.from_hash(hash) VoidInvoiceRequest.new(void: void, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} void: #{@void}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} void: #{@void.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/void_remainder_event.rb b/lib/advanced_billing/models/void_remainder_event.rb index 05c84e7b..b6c3c537 100644 --- a/lib/advanced_billing/models/void_remainder_event.rb +++ b/lib/advanced_billing/models/void_remainder_event.rb @@ -132,5 +132,21 @@ def self.validate(value) is_model_hash: true) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id}, timestamp: #{@timestamp}, invoice: #{@invoice}, event_type:"\ + " #{@event_type}, event_data: #{@event_data}, additional_properties:"\ + " #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} id: #{@id.inspect}, timestamp: #{@timestamp.inspect}, invoice:"\ + " #{@invoice.inspect}, event_type: #{@event_type.inspect}, event_data:"\ + " #{@event_data.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/void_remainder_event_data.rb b/lib/advanced_billing/models/void_remainder_event_data.rb index e7aff17e..e76207f8 100644 --- a/lib/advanced_billing/models/void_remainder_event_data.rb +++ b/lib/advanced_billing/models/void_remainder_event_data.rb @@ -120,5 +120,21 @@ def self.validate(value) ->(val) { val.instance_of? String }) ) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} credit_note_attributes: #{@credit_note_attributes}, memo: #{@memo},"\ + " applied_amount: #{@applied_amount}, transaction_time: #{@transaction_time},"\ + " additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} credit_note_attributes: #{@credit_note_attributes.inspect}, memo:"\ + " #{@memo.inspect}, applied_amount: #{@applied_amount.inspect}, transaction_time:"\ + " #{@transaction_time.inspect}, additional_properties: #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/webhook.rb b/lib/advanced_billing/models/webhook.rb index 5a6406ab..82c687bc 100644 --- a/lib/advanced_billing/models/webhook.rb +++ b/lib/advanced_billing/models/webhook.rb @@ -204,5 +204,27 @@ def to_custom_accepted_at def to_custom_last_sent_at DateTimeHelper.to_rfc3339(last_sent_at) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} event: #{@event}, id: #{@id}, created_at: #{@created_at}, last_error:"\ + " #{@last_error}, last_error_at: #{@last_error_at}, accepted_at: #{@accepted_at},"\ + " last_sent_at: #{@last_sent_at}, last_sent_url: #{@last_sent_url}, successful:"\ + " #{@successful}, body: #{@body}, signature: #{@signature}, signature_hmac_sha_256:"\ + " #{@signature_hmac_sha_256}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} event: #{@event.inspect}, id: #{@id.inspect}, created_at:"\ + " #{@created_at.inspect}, last_error: #{@last_error.inspect}, last_error_at:"\ + " #{@last_error_at.inspect}, accepted_at: #{@accepted_at.inspect}, last_sent_at:"\ + " #{@last_sent_at.inspect}, last_sent_url: #{@last_sent_url.inspect}, successful:"\ + " #{@successful.inspect}, body: #{@body.inspect}, signature: #{@signature.inspect},"\ + " signature_hmac_sha_256: #{@signature_hmac_sha_256.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/models/webhook_response.rb b/lib/advanced_billing/models/webhook_response.rb index 83665be6..47d2a2cc 100644 --- a/lib/advanced_billing/models/webhook_response.rb +++ b/lib/advanced_billing/models/webhook_response.rb @@ -55,5 +55,18 @@ def self.from_hash(hash) WebhookResponse.new(webhook: webhook, additional_properties: additional_properties) end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} webhook: #{@webhook}, additional_properties: #{get_additional_properties}>" + end + + # Provides a debugging-friendly string with detailed object information. + def inspect + class_name = self.class.name.split('::').last + "<#{class_name} webhook: #{@webhook.inspect}, additional_properties:"\ + " #{get_additional_properties}>" + end end end diff --git a/lib/advanced_billing/utilities/file_wrapper.rb b/lib/advanced_billing/utilities/file_wrapper.rb index c6974086..a13b0b05 100644 --- a/lib/advanced_billing/utilities/file_wrapper.rb +++ b/lib/advanced_billing/utilities/file_wrapper.rb @@ -12,5 +12,17 @@ class FileWrapper < CoreLibrary::FileWrapper def initialize(file, content_type: 'application/octet-stream') super end + + # Provides a human-readable string representation of the object. + def to_s + class_name = self.class.name.split('::').last + "<#{class_name} file: #{@file}, content_type: #{@content_type}>" + end + + # Provides a debugging-friendly string with detailed object information. + def to_inspect + class_name = self.class.name.split('::').last + "<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>" + end end end