Class: KintsugiSDK::Models::Shared::TransactionItemEstimateResponse
- Inherits:
-
Object
- Object
- KintsugiSDK::Models::Shared::TransactionItemEstimateResponse
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(date:, amount:, external_id: nil, description: nil, external_product_id: nil, product_name: nil, product_description: nil, product_source: nil, product_subcategory: nil, product_category: nil, exempt_reason: nil, tax_items: nil, quantity: '1.0', exempt: false, tax_amount: '0.00', taxable_amount: '0.00', tax_rate: '0.00') ⇒ TransactionItemEstimateResponse
constructor
A new instance of TransactionItemEstimateResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(date:, amount:, external_id: nil, description: nil, external_product_id: nil, product_name: nil, product_description: nil, product_source: nil, product_subcategory: nil, product_category: nil, exempt_reason: nil, tax_items: nil, quantity: '1.0', exempt: false, tax_amount: '0.00', taxable_amount: '0.00', tax_rate: '0.00') ⇒ TransactionItemEstimateResponse
Returns a new instance of TransactionItemEstimateResponse.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb', line 53 def initialize(date:, amount:, external_id: nil, description: nil, external_product_id: nil, product_name: nil, product_description: nil, product_source: nil, product_subcategory: nil, product_category: nil, exempt_reason: nil, tax_items: nil, quantity: '1.0', exempt: false, tax_amount: '0.00', taxable_amount: '0.00', tax_rate: '0.00') @date = date @amount = amount @external_id = external_id @description = description @external_product_id = external_product_id @product_name = product_name @product_description = product_description @product_source = product_source @product_subcategory = product_subcategory @product_category = product_category @exempt_reason = exempt_reason @tax_items = tax_items @quantity = quantity @exempt = exempt @tax_amount = tax_amount @taxable_amount = taxable_amount @tax_rate = tax_rate end |
Instance Method Details
#==(other) ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb', line 74 def ==(other) return false unless other.is_a? self.class return false unless @date == other.date return false unless @amount == other.amount return false unless @external_id == other.external_id return false unless @description == other.description return false unless @external_product_id == other.external_product_id return false unless @product_name == other.product_name return false unless @product_description == other.product_description return false unless @product_source == other.product_source return false unless @product_subcategory == other.product_subcategory return false unless @product_category == other.product_category return false unless @exempt_reason == other.exempt_reason return false unless @tax_items == other.tax_items return false unless @quantity == other.quantity return false unless @exempt == other.exempt return false unless @tax_amount == other.tax_amount return false unless @taxable_amount == other.taxable_amount return false unless @tax_rate == other.tax_rate true end |