Class: Stripe::TestHelpers::Issuing::TransactionCreateUnlinkedRefundParams::PurchaseDetails::Receipt

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, new, #to_h

Constructor Details

#initialize(description: nil, quantity: nil, total: nil, unit_cost: nil) ⇒ Receipt

Returns a new instance of Receipt.



314
315
316
317
318
319
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 314

def initialize(description: nil, quantity: nil, total: nil, unit_cost: nil)
  @description = description
  @quantity = quantity
  @total = total
  @unit_cost = unit_cost
end

Instance Attribute Details

#descriptionObject

Attribute for param field description



306
307
308
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 306

def description
  @description
end

#quantityObject

Attribute for param field quantity



308
309
310
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 308

def quantity
  @quantity
end

#totalObject

Attribute for param field total



310
311
312
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 310

def total
  @total
end

#unit_costObject

Attribute for param field unit_cost



312
313
314
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 312

def unit_cost
  @unit_cost
end

Class Method Details

.field_encodingsObject



321
322
323
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 321

def self.field_encodings
  @field_encodings = { quantity: :decimal_string }
end