Class: KintsugiSDK::Models::Shared::TransactionPublicRequest
- Inherits:
-
Object
- Object
- KintsugiSDK::Models::Shared::TransactionPublicRequest
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(organization_id:, external_id:, date:, addresses:, transaction_items:, customer:, type:, 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, 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) ⇒ TransactionPublicRequest
constructor
A new instance of TransactionPublicRequest.
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:, customer:, type:, 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, 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) ⇒ TransactionPublicRequest
Returns a new instance of TransactionPublicRequest.
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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb', line 103 def initialize(organization_id:, external_id:, date:, addresses:, transaction_items:, customer:, type:, 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, 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 @customer = customer @type = type @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 = @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 @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
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 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb', line 147 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 @customer == other.customer return false unless @type == other.type 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. 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 @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 |