Class: Stripe::Product::Identifiers
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Product::Identifiers
- Defined in:
- lib/stripe/resources/product.rb
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#ean ⇒ Object
readonly
European Article Number (EAN) consisting of 8 or 13 digits and optional dashes.
-
#gtin ⇒ Object
readonly
Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes.
-
#isbn ⇒ Object
readonly
International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional dashes.
-
#jan ⇒ Object
readonly
Japanese Article Number (JAN) consisting of 13 digits and optional dashes.
-
#mpn ⇒ Object
readonly
Manufacturer Part Number (MPN).
-
#nsn ⇒ Object
readonly
National Stock Number (NSN) consisting of 13 digits and optional dashes.
-
#upc ⇒ Object
readonly
Universal Product Code (UPC) consisting of 12 digits and optional dashes.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, field_encodings, #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
#ean ⇒ Object (readonly)
European Article Number (EAN) consisting of 8 or 13 digits and optional dashes. You may optionally provide a leading 0 for a total of 14 digits. The final digit is a validated check digit.
30 31 32 |
# File 'lib/stripe/resources/product.rb', line 30 def ean @ean end |
#gtin ⇒ Object (readonly)
Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes. The final digit is a validated check digit.
32 33 34 |
# File 'lib/stripe/resources/product.rb', line 32 def gtin @gtin end |
#isbn ⇒ Object (readonly)
International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional dashes. The final digit is a validated check digit. For ISBN-10, the final digit may be a ‘X`.
34 35 36 |
# File 'lib/stripe/resources/product.rb', line 34 def isbn @isbn end |
#jan ⇒ Object (readonly)
Japanese Article Number (JAN) consisting of 13 digits and optional dashes. The first two digits must either be ‘45` or `49`. The final digit is a validated check digit.
36 37 38 |
# File 'lib/stripe/resources/product.rb', line 36 def jan @jan end |
#mpn ⇒ Object (readonly)
Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes.
38 39 40 |
# File 'lib/stripe/resources/product.rb', line 38 def mpn @mpn end |
#nsn ⇒ Object (readonly)
National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh character may also be alphanumeric.
40 41 42 |
# File 'lib/stripe/resources/product.rb', line 40 def nsn @nsn end |
#upc ⇒ Object (readonly)
Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit is a validated check digit.
42 43 44 |
# File 'lib/stripe/resources/product.rb', line 42 def upc @upc end |
Class Method Details
.field_remappings ⇒ Object
48 49 50 |
# File 'lib/stripe/resources/product.rb', line 48 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
44 45 46 |
# File 'lib/stripe/resources/product.rb', line 44 def self.inner_class_types @inner_class_types = {} end |