Class: Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::CheckoutSessionPreviewResponse::CurrentBreakup
- Defined in:
- lib/dodopayments/models/checkout_session_preview_response.rb,
sig/dodopayments/models/checkout_session_preview_response.rbs
Overview
Instance Attribute Summary collapse
-
#discount ⇒ Integer
Total discount amount.
-
#subtotal ⇒ Integer
Subtotal before discount (pre-tax original prices).
-
#tax ⇒ Integer?
Total tax amount.
-
#total_amount ⇒ Integer
Total amount to be charged (final amount after all calculations).
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
86 |
# File 'sig/dodopayments/models/checkout_session_preview_response.rbs', line 86
def initialize: (
|
Instance Attribute Details
#discount ⇒ Integer
Total discount amount
113 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 113 required :discount, Integer |
#subtotal ⇒ Integer
Subtotal before discount (pre-tax original prices)
119 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 119 required :subtotal, Integer |
#tax ⇒ Integer?
Total tax amount
131 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 131 optional :tax, Integer, nil?: true |
#total_amount ⇒ Integer
Total amount to be charged (final amount after all calculations)
125 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 125 required :total_amount, Integer |
Instance Method Details
#to_hash ⇒ {
93 |
# File 'sig/dodopayments/models/checkout_session_preview_response.rbs', line 93
def to_hash: -> {
|