Class: Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::CheckoutSessionPreviewResponse::RecurringBreakup
- Defined in:
- lib/dodopayments/models/checkout_session_preview_response.rb
Overview
Instance Attribute Summary collapse
-
#discount ⇒ Integer
Total discount amount.
-
#subtotal ⇒ Integer
Subtotal before discount (pre-tax original prices).
-
#tax ⇒ Integer?
Total tax on recurring payments.
-
#total_amount ⇒ Integer
Total recurring amount including tax.
Instance Method Summary collapse
-
#initialize(discount:, subtotal:, total_amount:, tax: nil) ⇒ Object
constructor
Breakup of recurring payments (None for one-time only).
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(discount:, subtotal:, total_amount:, tax: nil) ⇒ Object
Breakup of recurring payments (None for one-time only)
|
|
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 468
|
Instance Attribute Details
#discount ⇒ Integer
Total discount amount
448 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 448 required :discount, Integer |
#subtotal ⇒ Integer
Subtotal before discount (pre-tax original prices)
454 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 454 required :subtotal, Integer |
#tax ⇒ Integer?
Total tax on recurring payments
466 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 466 optional :tax, Integer, nil?: true |
#total_amount ⇒ Integer
Total recurring amount including tax
460 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 460 required :total_amount, Integer |