Class: Increase::Models::CardPurchaseSupplement::Invoice
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::CardPurchaseSupplement::Invoice
- Defined in:
- lib/increase/models/card_purchase_supplement.rb,
sig/increase/models/card_purchase_supplement.rbs
Overview
Defined Under Namespace
Modules: DiscountTreatmentCode, TaxTreatments
Instance Attribute Summary collapse
-
#discount_amount ⇒ Integer?
Discount given to cardholder.
-
#discount_currency ⇒ String?
The ISO 4217 code for the discount.
-
#discount_treatment_code ⇒ Symbol, ...
Indicates how the merchant applied the discount.
-
#duty_tax_amount ⇒ Integer?
Amount of duty taxes.
-
#duty_tax_currency ⇒ String?
The ISO 4217 code for the duty tax.
-
#order_date ⇒ Date?
Date the order was taken.
-
#shipping_amount ⇒ Integer?
The shipping cost.
-
#shipping_currency ⇒ String?
The ISO 4217 code for the shipping cost.
-
#shipping_destination_country_code ⇒ String?
Country code of the shipping destination.
-
#shipping_destination_postal_code ⇒ String?
Postal code of the shipping destination.
-
#shipping_source_postal_code ⇒ String?
Postal code of the location being shipped from.
-
#shipping_tax_amount ⇒ Integer?
Taxes paid for freight and shipping.
-
#shipping_tax_currency ⇒ String?
The ISO 4217 code for the shipping tax.
-
#shipping_tax_rate ⇒ String?
Tax rate for freight and shipping.
-
#tax_treatments ⇒ Symbol, ...
Indicates how the merchant applied taxes.
-
#unique_value_added_tax_invoice_reference ⇒ String?
Value added tax invoice reference number.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(discount_amount:, discount_currency:, discount_treatment_code:, duty_tax_amount:, duty_tax_currency:, order_date:, shipping_amount:, shipping_currency:, shipping_destination_country_code:, shipping_destination_postal_code:, shipping_source_postal_code:, shipping_tax_amount:, shipping_tax_currency:, shipping_tax_rate:, tax_treatments:, unique_value_added_tax_invoice_reference:) ⇒ Object
constructor
Invoice-level information about the payment.
- #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(discount_amount:, discount_currency:, discount_treatment_code:, duty_tax_amount:, duty_tax_currency:, order_date:, shipping_amount:, shipping_currency:, shipping_destination_country_code:, shipping_destination_postal_code:, shipping_source_postal_code:, shipping_tax_amount:, shipping_tax_currency:, shipping_tax_rate:, tax_treatments:, unique_value_added_tax_invoice_reference:) ⇒ Object
Invoice-level information about the payment.
|
|
# File 'lib/increase/models/card_purchase_supplement.rb', line 187
|
Instance Attribute Details
#discount_amount ⇒ Integer?
Discount given to cardholder.
89 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 89 required :discount_amount, Integer, nil?: true |
#discount_currency ⇒ String?
The ISO 4217 code for the discount.
95 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 95 required :discount_currency, String, nil?: true |
#discount_treatment_code ⇒ Symbol, ...
Indicates how the merchant applied the discount.
101 102 103 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 101 required :discount_treatment_code, enum: -> { Increase::CardPurchaseSupplement::Invoice::DiscountTreatmentCode }, nil?: true |
#duty_tax_amount ⇒ Integer?
Amount of duty taxes.
109 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 109 required :duty_tax_amount, Integer, nil?: true |
#duty_tax_currency ⇒ String?
The ISO 4217 code for the duty tax.
115 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 115 required :duty_tax_currency, String, nil?: true |
#order_date ⇒ Date?
Date the order was taken.
121 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 121 required :order_date, Date, nil?: true |
#shipping_amount ⇒ Integer?
The shipping cost.
127 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 127 required :shipping_amount, Integer, nil?: true |
#shipping_currency ⇒ String?
The ISO 4217 code for the shipping cost.
134 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 134 required :shipping_currency, String, nil?: true |
#shipping_destination_country_code ⇒ String?
Country code of the shipping destination.
140 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 140 required :shipping_destination_country_code, String, nil?: true |
#shipping_destination_postal_code ⇒ String?
Postal code of the shipping destination.
146 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 146 required :shipping_destination_postal_code, String, nil?: true |
#shipping_source_postal_code ⇒ String?
Postal code of the location being shipped from.
152 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 152 required :shipping_source_postal_code, String, nil?: true |
#shipping_tax_amount ⇒ Integer?
Taxes paid for freight and shipping.
158 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 158 required :shipping_tax_amount, Integer, nil?: true |
#shipping_tax_currency ⇒ String?
The ISO 4217 code for the shipping tax.
165 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 165 required :shipping_tax_currency, String, nil?: true |
#shipping_tax_rate ⇒ String?
Tax rate for freight and shipping.
171 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 171 required :shipping_tax_rate, String, nil?: true |
#tax_treatments ⇒ Symbol, ...
Indicates how the merchant applied taxes.
177 178 179 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 177 required :tax_treatments, enum: -> { Increase::CardPurchaseSupplement::Invoice::TaxTreatments }, nil?: true |
#unique_value_added_tax_invoice_reference ⇒ String?
Value added tax invoice reference number.
185 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 185 required :unique_value_added_tax_invoice_reference, String, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/increase/models/card_purchase_supplement.rb', line 245
|
Instance Method Details
#to_hash ⇒ {
126 |
# File 'sig/increase/models/card_purchase_supplement.rbs', line 126
def to_hash: -> {
|