Class: Dodopayments::Models::SubscriptionCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::SubscriptionCreateResponse
- Defined in:
- lib/dodopayments/models/subscription_create_response.rb
Overview
Instance Attribute Summary collapse
-
#addons ⇒ Array<Dodopayments::Models::AddonCartResponseItem>
Addons associated with this subscription.
-
#client_secret ⇒ String?
Client secret used to load Dodo checkout SDK NOTE : Dodo checkout SDK will be coming soon.
-
#customer ⇒ Dodopayments::Models::CustomerLimitedDetails
Customer details associated with this subscription.
-
#discount_id ⇒ String?
The discount id if discount is applied.
-
#expires_on ⇒ Time?
Expiry timestamp of the payment link.
-
#metadata ⇒ Hash{Symbol=>String}
Additional metadata associated with the subscription.
-
#payment_id ⇒ String
First payment id for the subscription.
-
#payment_link ⇒ String?
URL to checkout page.
-
#recurring_pre_tax_amount ⇒ Integer
Tax will be added to the amount and charged to the customer on each billing cycle.
-
#subscription_id ⇒ String
Unique identifier for the subscription.
Instance Method Summary collapse
-
#initialize(addons: , customer: , metadata: , payment_id: , recurring_pre_tax_amount: , subscription_id: , client_secret: nil, discount_id: nil, expires_on: nil, payment_link: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see SubscriptionCreateResponse for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(addons: , customer: , metadata: , payment_id: , recurring_pre_tax_amount: , subscription_id: , client_secret: nil, discount_id: nil, expires_on: nil, payment_link: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::SubscriptionCreateResponse for more details.
|
|
# File 'lib/dodopayments/models/subscription_create_response.rb', line 69
|
Instance Attribute Details
#addons ⇒ Array<Dodopayments::Models::AddonCartResponseItem>
Addons associated with this subscription
11 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 11 required :addons, -> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::AddonCartResponseItem] } |
#client_secret ⇒ String?
Client secret used to load Dodo checkout SDK NOTE : Dodo checkout SDK will be coming soon
49 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 49 optional :client_secret, String, nil?: true |
#customer ⇒ Dodopayments::Models::CustomerLimitedDetails
Customer details associated with this subscription
17 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 17 required :customer, -> { Dodopayments::CustomerLimitedDetails } |
#discount_id ⇒ String?
The discount id if discount is applied
55 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 55 optional :discount_id, String, nil?: true |
#expires_on ⇒ Time?
Expiry timestamp of the payment link
61 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 61 optional :expires_on, Time, nil?: true |
#metadata ⇒ Hash{Symbol=>String}
Additional metadata associated with the subscription
23 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 23 required :metadata, Dodopayments::Internal::Type::HashOf[String] |
#payment_id ⇒ String
First payment id for the subscription
29 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 29 required :payment_id, String |
#payment_link ⇒ String?
URL to checkout page
67 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 67 optional :payment_link, String, nil?: true |
#recurring_pre_tax_amount ⇒ Integer
Tax will be added to the amount and charged to the customer on each billing cycle
36 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 36 required :recurring_pre_tax_amount, Integer |
#subscription_id ⇒ String
Unique identifier for the subscription
42 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 42 required :subscription_id, String |