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 and total_amount 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, 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, marketplace: false) ⇒ TransactionEstimatePublicRequest
Returns a new instance of TransactionEstimatePublicRequest.
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb', line 36 def initialize(date:, external_id:, currency:, transaction_items:, addresses:, description: nil, source: nil, customer: nil, marketplace: false) @date = date @external_id = external_id @currency = currency @transaction_items = transaction_items @addresses = addresses @description = description @source = source @customer = customer @marketplace = marketplace end |
Instance Method Details
#==(other) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb', line 49 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 @marketplace == other.marketplace true end |