Class: Stripe::Source::SourceOrder

Inherits:
Stripe::StripeObject show all
Defined in:
lib/stripe/resources/source.rb

Defined Under Namespace

Classes: Item, Shipping

Constant Summary

Constants inherited from Stripe::StripeObject

Stripe::StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from Stripe::StripeObject

#last_response

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

#amountObject (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

#currencyObject (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

#emailObject (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

#itemsObject (readonly)

List of items constituting the order.



510
511
512
# File 'lib/stripe/resources/source.rb', line 510

def items
  @items
end

#shippingObject (readonly)

Attribute for field shipping



512
513
514
# File 'lib/stripe/resources/source.rb', line 512

def shipping
  @shipping
end