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

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Receipt.



251
252
253
254
255
256
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 251

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



243
244
245
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 243

def description
  @description
end

#quantityObject

Attribute for param field quantity



245
246
247
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 245

def quantity
  @quantity
end

#totalObject

Attribute for param field total



247
248
249
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 247

def total
  @total
end

#unit_costObject

Attribute for param field unit_cost



249
250
251
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb', line 249

def unit_cost
  @unit_cost
end