Class: Dodopayments::Models::CheckoutSessionPreviewResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::CheckoutSessionPreviewResponse
- Defined in:
- lib/dodopayments/models/checkout_session_preview_response.rb
Overview
Defined Under Namespace
Classes: CurrentBreakup, ProductCart, RecurringBreakup
Instance Attribute Summary collapse
-
#billing_country ⇒ Symbol, Dodopayments::Models::CountryCode
Billing country.
-
#currency ⇒ Symbol, Dodopayments::Models::Currency
Currency in which the calculations were made.
-
#current_breakup ⇒ Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup
Breakup of the current payment.
-
#product_cart ⇒ Array<Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart>
The total product cart.
-
#recurring_breakup ⇒ Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?
Breakup of recurring payments (None for one-time only).
-
#tax_id_err_msg ⇒ String?
Error message if tax ID validation failed.
-
#total_price ⇒ Integer
Total calculate price of the product cart.
-
#total_tax ⇒ Integer?
Total tax.
Instance Method Summary collapse
-
#initialize(addon_id:, currency:, discounted_price:, name:, og_currency:, og_price:, quantity:, tax_category:, tax_inclusive:, tax_rate:, description: nil, discount_amount: nil, tax: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ProductCart::Addon 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(addon_id:, currency:, discounted_price:, name:, og_currency:, og_price:, quantity:, tax_category:, tax_inclusive:, tax_rate:, description: nil, discount_amount: nil, tax: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart::Addon for more details.
|
|
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 58
|
Instance Attribute Details
#billing_country ⇒ Symbol, Dodopayments::Models::CountryCode
Billing country
11 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 11 required :billing_country, enum: -> { Dodopayments::CountryCode } |
#currency ⇒ Symbol, Dodopayments::Models::Currency
Currency in which the calculations were made
17 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 17 required :currency, enum: -> { Dodopayments::Currency } |
#current_breakup ⇒ Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup
Breakup of the current payment
23 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 23 required :current_breakup, -> { Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup } |
#product_cart ⇒ Array<Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart>
The total product cart
29 30 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 29 required :product_cart, -> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::Models::CheckoutSessionPreviewResponse::ProductCart] } |
#recurring_breakup ⇒ Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup?
Breakup of recurring payments (None for one-time only)
42 43 44 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 42 optional :recurring_breakup, -> { Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup }, nil?: true |
#tax_id_err_msg ⇒ String?
Error message if tax ID validation failed
50 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 50 optional :tax_id_err_msg, String, nil?: true |
#total_price ⇒ Integer
Total calculate price of the product cart
36 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 36 required :total_price, Integer |
#total_tax ⇒ Integer?
Total tax
56 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 56 optional :total_tax, Integer, nil?: true |