Class: Recurly::Resources::Item

Inherits:
Recurly::Resource show all
Defined in:
lib/recurly/resources/item.rb

Instance Attribute Summary collapse

Attributes inherited from Recurly::Resource

#attributes

Method Summary

Methods inherited from Recurly::Resource

#==, #get_response, #inspect, #requires_client?, #to_json, #to_s

Methods included from Schema::SchemaFactory

#schema

Methods included from Schema::ResourceCaster

#cast

Methods included from Schema::SchemaValidator

#get_did_you_mean, #validate!, #validate_attribute!

Instance Attribute Details

#accounting_codeString

Returns Accounting code for invoice line items.

Returns:

  • (String)

    Accounting code for invoice line items.



11
# File 'lib/recurly/resources/item.rb', line 11

define_attribute :accounting_code, String

#avalara_service_typeInteger

Returns Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the item is taxed. Refer to [the documentation](help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.

Returns:



15
# File 'lib/recurly/resources/item.rb', line 15

define_attribute :avalara_service_type, Integer

#avalara_transaction_typeInteger

Returns Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the item is taxed. Refer to [the documentation](help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.

Returns:



19
# File 'lib/recurly/resources/item.rb', line 19

define_attribute :avalara_transaction_type, Integer

#codeString

Returns Unique code to identify the item.

Returns:

  • (String)

    Unique code to identify the item.



23
# File 'lib/recurly/resources/item.rb', line 23

define_attribute :code, String

#created_atDateTime

Returns Created at.

Returns:

  • (DateTime)

    Created at



27
# File 'lib/recurly/resources/item.rb', line 27

define_attribute :created_at, DateTime

#currenciesArray[Pricing]

Returns Item Pricing.

Returns:

  • (Array[Pricing])

    Item Pricing



31
# File 'lib/recurly/resources/item.rb', line 31

define_attribute :currencies, Array, { :item_type => :Pricing }

#custom_fieldsArray[CustomField]

Returns The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.

Returns:

  • (Array[CustomField])

    The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.



35
# File 'lib/recurly/resources/item.rb', line 35

define_attribute :custom_fields, Array, { :item_type => :CustomField }

#deleted_atDateTime

Returns Deleted at.

Returns:

  • (DateTime)

    Deleted at



39
# File 'lib/recurly/resources/item.rb', line 39

define_attribute :deleted_at, DateTime

#descriptionString

Returns Optional, description.

Returns:

  • (String)

    Optional, description.



43
# File 'lib/recurly/resources/item.rb', line 43

define_attribute :description, String

#external_skuString

Returns Optional, stock keeping unit to link the item to other inventory systems.

Returns:

  • (String)

    Optional, stock keeping unit to link the item to other inventory systems.



47
# File 'lib/recurly/resources/item.rb', line 47

define_attribute :external_sku, String

#harmonized_system_codeString

Returns The Harmonized System (HS) code is an internationally standardized system of names and numbers to classify traded products. The HS code, sometimes called Commodity Code, is used by customs authorities around the world to identify products when assessing duties and taxes. The HS code may also be referred to as the tariff code or customs code. Values should contain only digits and decimals.

Returns:

  • (String)

    The Harmonized System (HS) code is an internationally standardized system of names and numbers to classify traded products. The HS code, sometimes called Commodity Code, is used by customs authorities around the world to identify products when assessing duties and taxes. The HS code may also be referred to as the tariff code or customs code. Values should contain only digits and decimals.



51
# File 'lib/recurly/resources/item.rb', line 51

define_attribute :harmonized_system_code, String

#idString

Returns Item ID.

Returns:

  • (String)

    Item ID



55
# File 'lib/recurly/resources/item.rb', line 55

define_attribute :id, String

#liability_gl_account_idString

Returns The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

Returns:

  • (String)

    The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.



59
# File 'lib/recurly/resources/item.rb', line 59

define_attribute :liability_gl_account_id, String

#nameString

Returns This name describes your item and will appear on the invoice when it's purchased on a one time basis.

Returns:

  • (String)

    This name describes your item and will appear on the invoice when it's purchased on a one time basis.



63
# File 'lib/recurly/resources/item.rb', line 63

define_attribute :name, String

#objectString

Returns Object type.

Returns:

  • (String)

    Object type



67
# File 'lib/recurly/resources/item.rb', line 67

define_attribute :object, String

#performance_obligation_idString

Returns The ID of a performance obligation. Performance obligations are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

Returns:

  • (String)

    The ID of a performance obligation. Performance obligations are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.



71
# File 'lib/recurly/resources/item.rb', line 71

define_attribute :performance_obligation_id, String

#revenue_gl_account_idString

Returns The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.

Returns:

  • (String)

    The ID of a general ledger account. General ledger accounts are only accessible as a part of the Recurly RevRec Standard and Recurly RevRec Advanced features.



75
# File 'lib/recurly/resources/item.rb', line 75

define_attribute :revenue_gl_account_id, String

#revenue_schedule_typeString

Returns Revenue schedule type.

Returns:

  • (String)

    Revenue schedule type



79
# File 'lib/recurly/resources/item.rb', line 79

define_attribute :revenue_schedule_type, String

#stateString

Returns The current state of the item.

Returns:

  • (String)

    The current state of the item.



83
# File 'lib/recurly/resources/item.rb', line 83

define_attribute :state, String

#tax_codeString

Returns Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes.

Returns:

  • (String)

    Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes.



87
# File 'lib/recurly/resources/item.rb', line 87

define_attribute :tax_code, String

#tax_exemptBoolean

Returns `true` exempts tax on the item, `false` applies tax on the item.

Returns:

  • (Boolean)

    `true` exempts tax on the item, `false` applies tax on the item.



91
# File 'lib/recurly/resources/item.rb', line 91

define_attribute :tax_exempt, :Boolean

#updated_atDateTime

Returns Last updated at.

Returns:

  • (DateTime)

    Last updated at



95
# File 'lib/recurly/resources/item.rb', line 95

define_attribute :updated_at, DateTime