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
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).
Method Summary
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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
This class inherits a constructor from Dodopayments::Internal::Type::BaseModel
Instance Attribute Details
#discount ⇒ Integer
Total discount amount
83 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 83 required :discount, Integer |
#subtotal ⇒ Integer
Subtotal before discount (pre-tax original prices)
89 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 89 required :subtotal, Integer |
#tax ⇒ Integer?
Total tax amount
101 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 101 optional :tax, Integer, nil?: true |
#total_amount ⇒ Integer
Total amount to be charged (final amount after all calculations)
95 |
# File 'lib/dodopayments/models/checkout_session_preview_response.rb', line 95 required :total_amount, Integer |