Class: Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams::PurchaseDetails::Receipt
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams::PurchaseDetails::Receipt
- Defined in:
- lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Attribute for param field description.
-
#quantity ⇒ Object
Attribute for param field quantity.
-
#total ⇒ Object
Attribute for param field total.
-
#unit_cost ⇒ Object
Attribute for param field unit_cost.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, quantity: nil, total: nil, unit_cost: nil) ⇒ Receipt
constructor
A new instance of Receipt.
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.
306 307 308 309 310 311 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 306 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
#description ⇒ Object
Attribute for param field description
298 299 300 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 298 def description @description end |
#quantity ⇒ Object
Attribute for param field quantity
300 301 302 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 300 def quantity @quantity end |
#total ⇒ Object
Attribute for param field total
302 303 304 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 302 def total @total end |
#unit_cost ⇒ Object
Attribute for param field unit_cost
304 305 306 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 304 def unit_cost @unit_cost end |
Class Method Details
.field_encodings ⇒ Object
313 314 315 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 313 def self.field_encodings @field_encodings = { quantity: :decimal_string } end |