Class: Stripe::ProductUpdateParams

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

Defined Under Namespace

Classes: MarketingFeature, PackageDimensions

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(active: nil, default_price: nil, description: nil, expand: nil, images: nil, marketing_features: nil, metadata: nil, name: nil, package_dimensions: nil, shippable: nil, statement_descriptor: nil, tax_code: nil, unit_label: nil, url: nil) ⇒ ProductUpdateParams

Returns a new instance of ProductUpdateParams.



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/stripe/params/product_update_params.rb', line 64

def initialize(
  active: nil,
  default_price: nil,
  description: nil,
  expand: nil,
  images: nil,
  marketing_features: nil,
  metadata: nil,
  name: nil,
  package_dimensions: nil,
  shippable: nil,
  statement_descriptor: nil,
  tax_code: nil,
  unit_label: nil,
  url: nil
)
  @active = active
  @default_price = default_price
  @description = description
  @expand = expand
  @images = images
  @marketing_features = marketing_features
   = 
  @name = name
  @package_dimensions = package_dimensions
  @shippable = shippable
  @statement_descriptor = statement_descriptor
  @tax_code = tax_code
  @unit_label = unit_label
  @url = url
end

Instance Attribute Details

#activeObject

Whether the product is available for purchase.



33
34
35
# File 'lib/stripe/params/product_update_params.rb', line 33

def active
  @active
end

#default_priceObject

The ID of the [Price](stripe.com/docs/api/prices) object that is the default price for this product.



35
36
37
# File 'lib/stripe/params/product_update_params.rb', line 35

def default_price
  @default_price
end

#descriptionObject

The product’s description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.



37
38
39
# File 'lib/stripe/params/product_update_params.rb', line 37

def description
  @description
end

#expandObject

Specifies which fields in the response should be expanded.



39
40
41
# File 'lib/stripe/params/product_update_params.rb', line 39

def expand
  @expand
end

#imagesObject

A list of up to 8 URLs of images for this product, meant to be displayable to the customer.



41
42
43
# File 'lib/stripe/params/product_update_params.rb', line 41

def images
  @images
end

#marketing_featuresObject

A list of up to 15 marketing features for this product. These are displayed in [pricing tables](stripe.com/docs/payments/checkout/pricing-table).



43
44
45
# File 'lib/stripe/params/product_update_params.rb', line 43

def marketing_features
  @marketing_features
end

#metadataObject

Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.



45
46
47
# File 'lib/stripe/params/product_update_params.rb', line 45

def 
  
end

#nameObject

The product’s name, meant to be displayable to the customer.



47
48
49
# File 'lib/stripe/params/product_update_params.rb', line 47

def name
  @name
end

#package_dimensionsObject

The dimensions of this product for shipping purposes.



49
50
51
# File 'lib/stripe/params/product_update_params.rb', line 49

def package_dimensions
  @package_dimensions
end

#shippableObject

Whether this product is shipped (i.e., physical goods).



51
52
53
# File 'lib/stripe/params/product_update_params.rb', line 51

def shippable
  @shippable
end

#statement_descriptorObject

An arbitrary string to be displayed on your customer’s credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all.

This may be up to 22 characters. The statement description may not include ‘<`, `>`, ``, `“`, `’‘ characters, and will appear on your customer’s statement in capital letters. Non-ASCII characters are automatically stripped.

It must contain at least one letter. May only be set if `type=service`. Only used for subscription payments.


56
57
58
# File 'lib/stripe/params/product_update_params.rb', line 56

def statement_descriptor
  @statement_descriptor
end

#tax_codeObject



58
59
60
# File 'lib/stripe/params/product_update_params.rb', line 58

def tax_code
  @tax_code
end

#unit_labelObject

A label that represents units of this product. When set, this will be included in customers’ receipts, invoices, Checkout, and the customer portal. May only be set if ‘type=service`.



60
61
62
# File 'lib/stripe/params/product_update_params.rb', line 60

def unit_label
  @unit_label
end

#urlObject

A URL of a publicly-accessible webpage for this product.



62
63
64
# File 'lib/stripe/params/product_update_params.rb', line 62

def url
  @url
end