Class: Stripe::Source::SourceOrder
- Inherits:
-
Stripe::StripeObject
- Object
- Stripe::StripeObject
- Stripe::Source::SourceOrder
- Defined in:
- lib/stripe/resources/source.rb
Defined Under Namespace
Constant Summary
Constants inherited from Stripe::StripeObject
Stripe::StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the order.
-
#currency ⇒ Object
readonly
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
-
#email ⇒ Object
readonly
The email address of the customer placing the order.
-
#items ⇒ Object
readonly
List of items constituting the order.
-
#shipping ⇒ Object
readonly
Attribute for field shipping.
Attributes inherited from Stripe::StripeObject
Method Summary
Methods inherited from Stripe::StripeObject
#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#amount ⇒ Object (readonly)
A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the order.
504 505 506 |
# File 'lib/stripe/resources/source.rb', line 504 def amount @amount end |
#currency ⇒ Object (readonly)
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).
506 507 508 |
# File 'lib/stripe/resources/source.rb', line 506 def currency @currency end |
#email ⇒ Object (readonly)
The email address of the customer placing the order.
508 509 510 |
# File 'lib/stripe/resources/source.rb', line 508 def email @email end |
#items ⇒ Object (readonly)
List of items constituting the order.
510 511 512 |
# File 'lib/stripe/resources/source.rb', line 510 def items @items end |
#shipping ⇒ Object (readonly)
Attribute for field shipping
512 513 514 |
# File 'lib/stripe/resources/source.rb', line 512 def shipping @shipping end |