Class: KintsugiSDK::Models::Shared::TransactionEstimatePublicRequest
- Inherits:
-
Object
- Object
- KintsugiSDK::Models::Shared::TransactionEstimatePublicRequest
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb
Overview
Public request model for tax estimation API documentation. This model excludes internal fields like enriched_fields that should not be exposed in API docs.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(date:, external_id:, currency:, transaction_items:, addresses:, description: nil, source: nil, customer: nil, total_amount: 0.0, marketplace: false) ⇒ TransactionEstimatePublicRequest
constructor
A new instance of TransactionEstimatePublicRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(date:, external_id:, currency:, transaction_items:, addresses:, description: nil, source: nil, customer: nil, total_amount: 0.0, marketplace: false) ⇒ TransactionEstimatePublicRequest
Returns a new instance of TransactionEstimatePublicRequest.
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb', line 39 def initialize(date:, external_id:, currency:, transaction_items:, addresses:, description: nil, source: nil, customer: nil, total_amount: 0.0, marketplace: false) @date = date @external_id = external_id @currency = currency @transaction_items = transaction_items @addresses = addresses @description = description @source = source @customer = customer @total_amount = total_amount @marketplace = marketplace end |
Instance Method Details
#==(other) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb', line 53 def ==(other) return false unless other.is_a? self.class return false unless @date == other.date return false unless @external_id == other.external_id return false unless @currency == other.currency return false unless @transaction_items == other.transaction_items return false unless @addresses == other.addresses return false unless @description == other.description return false unless @source == other.source return false unless @customer == other.customer return false unless @total_amount == other.total_amount return false unless @marketplace == other.marketplace true end |