Class: Stripe::ProductCreateParams::Identifiers

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/product_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



209
210
211
212
213
214
215
216
217
# File 'lib/stripe/params/product_create_params.rb', line 209

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

#eanObject

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.



195
196
197
# File 'lib/stripe/params/product_create_params.rb', line 195

def ean
  @ean
end

#gtinObject

Global Trade Item Number (GTIN) consisting of 8, 12, 13, or 14 digits and optional dashes. The final digit is a validated check digit.



197
198
199
# File 'lib/stripe/params/product_create_params.rb', line 197

def gtin
  @gtin
end

#isbnObject

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.



199
200
201
# File 'lib/stripe/params/product_create_params.rb', line 199

def isbn
  @isbn
end

#janObject

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.



201
202
203
# File 'lib/stripe/params/product_create_params.rb', line 201

def jan
  @jan
end

#mpnObject

Manufacturer Part Number (MPN). May include up to 70 alphanumeric characters and dashes.



203
204
205
# File 'lib/stripe/params/product_create_params.rb', line 203

def mpn
  @mpn
end

#nsnObject

National Stock Number (NSN) consisting of 13 digits and optional dashes. The seventh character may also be alphanumeric.



205
206
207
# File 'lib/stripe/params/product_create_params.rb', line 205

def nsn
  @nsn
end

#upcObject

Universal Product Code (UPC) consisting of 12 digits and optional dashes. The final digit is a validated check digit.



207
208
209
# File 'lib/stripe/params/product_create_params.rb', line 207

def upc
  @upc
end