Class: Stripe::TestHelpers::Issuing::AuthorizationCaptureParams::PurchaseDetails::Receipt
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::AuthorizationCaptureParams::PurchaseDetails::Receipt
- Defined in:
- lib/stripe/params/test_helpers/issuing/authorization_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.
263 264 265 266 267 268 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 263 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
255 256 257 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 255 def description @description end |
#quantity ⇒ Object
Attribute for param field quantity
257 258 259 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 257 def quantity @quantity end |
#total ⇒ Object
Attribute for param field total
259 260 261 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 259 def total @total end |
#unit_cost ⇒ Object
Attribute for param field unit_cost
261 262 263 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 261 def unit_cost @unit_cost end |
Class Method Details
.field_encodings ⇒ Object
270 271 272 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 270 def self.field_encodings @field_encodings = { quantity: :decimal_string } end |