mirror of
				https://github.com/stripe/stripe-ruby.git
				synced 2025-11-04 00:01:47 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# File generated from our OpenAPI spec
 | 
						|
# frozen_string_literal: true
 | 
						|
 | 
						|
module Stripe
 | 
						|
  # Products describe the specific goods or services you offer to your customers.
 | 
						|
  # For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product.
 | 
						|
  # They can be used in conjunction with [Prices](https://stripe.com/docs/api#prices) to configure pricing in Payment Links, Checkout, and Subscriptions.
 | 
						|
  #
 | 
						|
  # Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription),
 | 
						|
  # [share a Payment Link](https://stripe.com/docs/payment-links),
 | 
						|
  # [accept payments with Checkout](https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront),
 | 
						|
  # and more about [Products and Prices](https://stripe.com/docs/products-prices/overview)
 | 
						|
  class Product < APIResource
 | 
						|
    extend Stripe::APIOperations::Create
 | 
						|
    include Stripe::APIOperations::Delete
 | 
						|
    extend Stripe::APIOperations::List
 | 
						|
    extend Stripe::APIOperations::Search
 | 
						|
    include Stripe::APIOperations::Save
 | 
						|
 | 
						|
    OBJECT_NAME = "product"
 | 
						|
 | 
						|
    def self.search(params = {}, opts = {})
 | 
						|
      _search("/v1/products/search", params, opts)
 | 
						|
    end
 | 
						|
 | 
						|
    def self.search_auto_paging_each(params = {}, opts = {}, &blk)
 | 
						|
      search(params, opts).auto_paging_each(&blk)
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |