Sha256: 77607ae882d5f8bfb12760be4b65d35db44fcb18c6254e5672606570fc9edfb7

Contents?: true

Size: 1.86 KB

Versions: 12

Compression:

Stored size: 1.86 KB

Contents

# WARNING: This code is auto-generated from the BaseCRM API Discovery JSON Schema

module BaseCRM
  class Product < Model
    # @!attribute [r] id
    #   @return [Integer] Unique identifier of the product.
    # attr_reader :id
    # @!attribute [r] created_at
    #   @return [DateTime] Date and time that the product was created in UTC (ISO8601 format).
    # attr_reader :created_at
    # @!attribute [r] updated_at
    #   @return [DateTime] Date and time of the last update on the product in UTC (ISO8601 format).
    # attr_reader :updated_at

    # @!attribute [rw] name
    #   @return [String] Name of the product.
    # attr_accessor :name
    # @!attribute [rw] description
    #   @return [String] Description of the product.
    # attr_accessor :description
    # @!attribute [rw] sku
    #   @return [String] Stock Keeping Unit identification code.
    # attr_accessor :sku
    # @!attribute [rw] active
    #   @return [Boolean] Indicator of whether the product is active. Line items cannot be created from inactive products.
    # attr_accessor :active
    # @!attribute [rw] max_discount
    #   @return [Integer] Maximum discount that can be applied to the product in percents.
    # attr_accessor :max_discount
    # @!attribute [rw] max_markup
    #   @return [Integer] Maximum markup that can be applied to the product in percents.
    # attr_accessor :max_markup
    # @!attribute [rw] cost
    #   @return [Integer] Cost of the product. Visible only to account administrators.
    # attr_accessor :cost
    # @!attribute [rw] cost_currency
    #   @return [String] Currency of the product cost, specified in 3-character currency code (ISO4217) format. Visible only to account administrators.
    # attr_accessor :cost_currency
    # @!attribute [rw] prices
    #   @return [Array<Price>] Array specifying products prices in different currencies.
    # attr_accessor :prices
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
basecrm-2.0.0 lib/basecrm/models/product.rb
basecrm-1.3.10 lib/basecrm/models/product.rb
basecrm-1.3.9 lib/basecrm/models/product.rb
basecrm-1.3.8 lib/basecrm/models/product.rb
basecrm-1.3.7 lib/basecrm/models/product.rb
basecrm-1.3.6 lib/basecrm/models/product.rb
basecrm-1.3.5 lib/basecrm/models/product.rb
basecrm-1.3.4 lib/basecrm/models/product.rb
basecrm-1.3.3 lib/basecrm/models/product.rb
basecrm-1.3.2 lib/basecrm/models/product.rb
basecrm-1.3.1 lib/basecrm/models/product.rb
basecrm-1.3.0 lib/basecrm/models/product.rb