Class: Increase::Models::Simulations::CardPurchaseSupplementCreateParams::Invoice

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/simulations/card_purchase_supplement_create_params.rb,
sig/increase/models/simulations/card_purchase_supplement_create_params.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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(transaction_id:, invoice: nil, line_items: nil, request_options: {}) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 44

class Invoice < Increase::Internal::Type::BaseModel
  # @!attribute discount_amount
  #   Discount given to cardholder.
  #
  #   @return [Integer, nil]
  optional :discount_amount, Integer

  # @!attribute duty_tax_amount
  #   Amount of duty taxes.
  #
  #   @return [Integer, nil]
  optional :duty_tax_amount, Integer

  # @!attribute order_date
  #   Date the order was taken.
  #
  #   @return [Date, nil]
  optional :order_date, Date

  # @!attribute shipping_amount
  #   The shipping cost.
  #
  #   @return [Integer, nil]
  optional :shipping_amount, Integer

  # @!attribute shipping_destination_country_code
  #   Country code of the shipping destination.
  #
  #   @return [String, nil]
  optional :shipping_destination_country_code, String

  # @!attribute shipping_destination_postal_code
  #   Postal code of the shipping destination.
  #
  #   @return [String, nil]
  optional :shipping_destination_postal_code, String

  # @!attribute shipping_source_postal_code
  #   Postal code of the location being shipped from.
  #
  #   @return [String, nil]
  optional :shipping_source_postal_code, String

  # @!attribute shipping_tax_amount
  #   Taxes paid for freight and shipping.
  #
  #   @return [Integer, nil]
  optional :shipping_tax_amount, Integer

  # @!attribute shipping_tax_rate
  #   Tax rate for freight and shipping.
  #
  #   @return [String, nil]
  optional :shipping_tax_rate, String

  # @!attribute unique_value_added_tax_invoice_reference
  #   Value added tax invoice reference number.
  #
  #   @return [String, nil]
  optional :unique_value_added_tax_invoice_reference, String

  # @!method initialize(discount_amount: nil, duty_tax_amount: nil, order_date: nil, shipping_amount: nil, shipping_destination_country_code: nil, shipping_destination_postal_code: nil, shipping_source_postal_code: nil, shipping_tax_amount: nil, shipping_tax_rate: nil, unique_value_added_tax_invoice_reference: nil)
  #   Invoice-level information about the payment.
  #
  #   @param discount_amount [Integer] Discount given to cardholder.
  #
  #   @param duty_tax_amount [Integer] Amount of duty taxes.
  #
  #   @param order_date [Date] Date the order was taken.
  #
  #   @param shipping_amount [Integer] The shipping cost.
  #
  #   @param shipping_destination_country_code [String] Country code of the shipping destination.
  #
  #   @param shipping_destination_postal_code [String] Postal code of the shipping destination.
  #
  #   @param shipping_source_postal_code [String] Postal code of the location being shipped from.
  #
  #   @param shipping_tax_amount [Integer] Taxes paid for freight and shipping.
  #
  #   @param shipping_tax_rate [String] Tax rate for freight and shipping.
  #
  #   @param unique_value_added_tax_invoice_reference [String] Value added tax invoice reference number.
end

Instance Attribute Details

#discount_amountInteger?

Discount given to cardholder.



49
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 49

optional :discount_amount, Integer

#duty_tax_amountInteger?

Amount of duty taxes.



55
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 55

optional :duty_tax_amount, Integer

#order_dateDate?

Date the order was taken.



61
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 61

optional :order_date, Date

#shipping_amountInteger?

The shipping cost.



67
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 67

optional :shipping_amount, Integer

#shipping_destination_country_codeString?

Country code of the shipping destination.



73
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 73

optional :shipping_destination_country_code, String

#shipping_destination_postal_codeString?

Postal code of the shipping destination.



79
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 79

optional :shipping_destination_postal_code, String

#shipping_source_postal_codeString?

Postal code of the location being shipped from.



85
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 85

optional :shipping_source_postal_code, String

#shipping_tax_amountInteger?

Taxes paid for freight and shipping.



91
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 91

optional :shipping_tax_amount, Integer

#shipping_tax_rateString?

Tax rate for freight and shipping.



97
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 97

optional :shipping_tax_rate, String

#unique_value_added_tax_invoice_referenceString?

Value added tax invoice reference number.



103
# File 'lib/increase/models/simulations/card_purchase_supplement_create_params.rb', line 103

optional :unique_value_added_tax_invoice_reference, String

Instance Method Details

#to_hash{



112
# File 'sig/increase/models/simulations/card_purchase_supplement_create_params.rbs', line 112

def to_hash: -> {