Class: Stripe::ProductCreateParams::Identifiers
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ProductCreateParams::Identifiers
- Defined in:
- lib/stripe/params/product_create_params.rb
Instance Attribute Summary collapse
-
#ean ⇒ Object
European Article Number (EAN) consisting of 8 or 13 digits and optional dashes.
-
#gtin ⇒ Object
Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes.
-
#isbn ⇒ Object
International Standard Book Number (ISBN) consisting of 10 or 13 digits and optional dashes.
-
#jan ⇒ Object
Japanese Article Number (JAN) consisting of 13 digits and optional dashes.
-
#mpn ⇒ Object
Manufacturer Part Number (MPN).
-
#nsn ⇒ Object
National Stock Number (NSN) consisting of 13 digits and optional dashes.
-
#upc ⇒ Object
Universal Product Code (UPC) consisting of 12 digits and optional dashes.
Instance Method Summary collapse
-
#initialize(ean: nil, gtin: nil, isbn: nil, jan: nil, mpn: nil, nsn: nil, upc: nil) ⇒ Identifiers
constructor
A new instance of Identifiers.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(ean: nil, gtin: nil, isbn: nil, jan: nil, mpn: nil, nsn: nil, upc: nil) ⇒ Identifiers
Returns a new instance of Identifiers.
188 189 190 191 192 193 194 195 196 |
# File 'lib/stripe/params/product_create_params.rb', line 188 def initialize(ean: nil, gtin: nil, isbn: nil, jan: nil, mpn: nil, nsn: nil, upc: nil) @ean = ean @gtin = gtin @isbn = isbn @jan = jan @mpn = mpn @nsn = nsn @upc = upc end |
Instance Attribute Details
#ean ⇒ Object
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.
174 175 176 |
# File 'lib/stripe/params/product_create_params.rb', line 174 def ean @ean end |
#gtin ⇒ Object
Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes. The final digit is a validated check digit.
176 177 178 |
# File 'lib/stripe/params/product_create_params.rb', line 176 def gtin @gtin end |
#isbn ⇒ Object
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`.
178 179 180 |
# File 'lib/stripe/params/product_create_params.rb', line 178 def isbn @isbn end |
#jan ⇒ Object
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.
180 181 182 |
# File 'lib/stripe/params/product_create_params.rb', line 180 def jan @jan end |
#mpn ⇒ Object
Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes.
182 183 184 |
# File 'lib/stripe/params/product_create_params.rb', line 182 def mpn @mpn end |
#nsn ⇒ Object
National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh character may also be alphanumeric.
184 185 186 |
# File 'lib/stripe/params/product_create_params.rb', line 184 def nsn @nsn end |
#upc ⇒ Object
Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit is a validated check digit.
186 187 188 |
# File 'lib/stripe/params/product_create_params.rb', line 186 def upc @upc end |