Class: KintsugiSDK::Models::Shared::TransactionCreate

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/kintsugi_sdk/models/shared/transactioncreate.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(organization_id:, external_id:, date:, addresses:, transaction_items:, requires_exemption: nil, shop_date: nil, shop_date_tz: nil, status: nil, description: nil, refund_status: nil, customer_id: nil, exempt: nil, exemptions: nil, related_to: nil, secondary_external_id: nil, secondary_source: nil, external_friendly_id: nil, tax_liability_source: nil, currency: nil, source: nil, connection_id: nil, filing_id: nil, city: nil, county: nil, state: nil, country: nil, postal_code: nil, tax_id: nil, address_status: nil, processing_status: nil, destination_currency: nil, converted_total_amount: nil, converted_total_tax_amount_imported: nil, converted_total_tax_amount_calculated: nil, conversion_rate: nil, converted_taxable_amount: nil, converted_total_discount: nil, converted_subtotal: nil, converted_total_tax_liability_amount: nil, customer: nil, total_amount: 0.00, marketplace: false, total_tax_amount_imported: 0.00, tax_rate_imported: 0.00, total_tax_amount_calculated: 0.00, tax_rate_calculated: 0.00, total_tax_liability_amount: 0.00, taxable_amount: 0.00, locked: false) ⇒ TransactionCreate

Returns a new instance of TransactionCreate.



124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# File 'lib/kintsugi_sdk/models/shared/transactioncreate.rb', line 124

def initialize(organization_id:, external_id:, date:, addresses:, transaction_items:, requires_exemption: nil, shop_date: nil, shop_date_tz: nil, status: nil, description: nil, refund_status: nil, customer_id: nil, exempt: nil, exemptions: nil, related_to: nil, secondary_external_id: nil, secondary_source: nil, external_friendly_id: nil, tax_liability_source: nil, currency: nil, source: nil, connection_id: nil, filing_id: nil, city: nil, county: nil, state: nil, country: nil, postal_code: nil, tax_id: nil, address_status: nil, processing_status: nil, destination_currency: nil, converted_total_amount: nil, converted_total_tax_amount_imported: nil, converted_total_tax_amount_calculated: nil, conversion_rate: nil, converted_taxable_amount: nil, converted_total_discount: nil, converted_subtotal: nil, converted_total_tax_liability_amount: nil, customer: nil, total_amount: 0.00, marketplace: false, total_tax_amount_imported: 0.00, tax_rate_imported: 0.00, total_tax_amount_calculated: 0.00, tax_rate_calculated: 0.00, total_tax_liability_amount: 0.00, taxable_amount: 0.00, locked: false)
  @organization_id = organization_id
  @external_id = external_id
  @date = date
  @addresses = addresses
  @transaction_items = transaction_items
  @requires_exemption = requires_exemption
  @shop_date = shop_date
  @shop_date_tz = shop_date_tz
  @status = status
  @description = description
  @refund_status = refund_status
  @customer_id = customer_id
  @exempt = exempt
  @exemptions = exemptions
  @related_to = related_to
  @secondary_external_id = secondary_external_id
  @secondary_source = secondary_source
  @external_friendly_id = external_friendly_id
  @tax_liability_source = tax_liability_source
  @currency = currency
  @source = source
  @connection_id = connection_id
  @filing_id = filing_id
  @city = city
  @county = county
  @state = state
  @country = country
  @postal_code = postal_code
  @tax_id = tax_id
  @address_status = address_status
  @processing_status = processing_status
  @destination_currency = destination_currency
  @converted_total_amount = converted_total_amount
  @converted_total_tax_amount_imported = converted_total_tax_amount_imported
  @converted_total_tax_amount_calculated = converted_total_tax_amount_calculated
  @conversion_rate = conversion_rate
  @converted_taxable_amount = converted_taxable_amount
  @converted_total_discount = converted_total_discount
  @converted_subtotal = converted_subtotal
  @converted_total_tax_liability_amount = converted_total_tax_liability_amount
  @customer = customer
  @total_amount = total_amount
  @marketplace = marketplace
  @total_tax_amount_imported = total_tax_amount_imported
  @tax_rate_imported = tax_rate_imported
  @total_tax_amount_calculated = total_tax_amount_calculated
  @tax_rate_calculated = tax_rate_calculated
  @total_tax_liability_amount = total_tax_liability_amount
  @taxable_amount = taxable_amount
  @locked = locked
end

Instance Method Details

#==(other) ⇒ Object



178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
# File 'lib/kintsugi_sdk/models/shared/transactioncreate.rb', line 178

def ==(other)
  return false unless other.is_a? self.class
  return false unless @organization_id == other.organization_id
  return false unless @external_id == other.external_id
  return false unless @date == other.date
  return false unless @addresses == other.addresses
  return false unless @transaction_items == other.transaction_items
  return false unless @requires_exemption == other.requires_exemption
  return false unless @shop_date == other.shop_date
  return false unless @shop_date_tz == other.shop_date_tz
  return false unless @status == other.status
  return false unless @description == other.description
  return false unless @refund_status == other.refund_status
  return false unless @customer_id == other.customer_id
  return false unless @exempt == other.exempt
  return false unless @exemptions == other.exemptions
  return false unless @related_to == other.related_to
  return false unless @secondary_external_id == other.secondary_external_id
  return false unless @secondary_source == other.secondary_source
  return false unless @external_friendly_id == other.external_friendly_id
  return false unless @tax_liability_source == other.tax_liability_source
  return false unless @currency == other.currency
  return false unless @source == other.source
  return false unless @connection_id == other.connection_id
  return false unless @filing_id == other.filing_id
  return false unless @city == other.city
  return false unless @county == other.county
  return false unless @state == other.state
  return false unless @country == other.country
  return false unless @postal_code == other.postal_code
  return false unless @tax_id == other.tax_id
  return false unless @address_status == other.address_status
  return false unless @processing_status == other.processing_status
  return false unless @destination_currency == other.destination_currency
  return false unless @converted_total_amount == other.converted_total_amount
  return false unless @converted_total_tax_amount_imported == other.converted_total_tax_amount_imported
  return false unless @converted_total_tax_amount_calculated == other.converted_total_tax_amount_calculated
  return false unless @conversion_rate == other.conversion_rate
  return false unless @converted_taxable_amount == other.converted_taxable_amount
  return false unless @converted_total_discount == other.converted_total_discount
  return false unless @converted_subtotal == other.converted_subtotal
  return false unless @converted_total_tax_liability_amount == other.converted_total_tax_liability_amount
  return false unless @customer == other.customer
  return false unless @total_amount == other.total_amount
  return false unless @marketplace == other.marketplace
  return false unless @total_tax_amount_imported == other.total_tax_amount_imported
  return false unless @tax_rate_imported == other.tax_rate_imported
  return false unless @total_tax_amount_calculated == other.total_tax_amount_calculated
  return false unless @tax_rate_calculated == other.tax_rate_calculated
  return false unless @total_tax_liability_amount == other.total_tax_liability_amount
  return false unless @taxable_amount == other.taxable_amount
  return false unless @locked == other.locked
  true
end