# This file is automatically created by Recurly's OpenAPI generation process # and thus any edits you make by hand will be lost. If you wish to make a # change to this file, please create a Github issue explaining the changes you # need and we will usher them to the appropriate places. module Recurly module Resources class AddOn < Resource # @!attribute accounting_code # @return [String] Accounting code for invoice line items for this add-on. If no value is provided, it defaults to add-on's code. define_attribute :accounting_code, String # @!attribute code # @return [String] The unique identifier for the add-on within its plan. define_attribute :code, String # @!attribute created_at # @return [DateTime] Created at define_attribute :created_at, DateTime # @!attribute currencies # @return [Array[AddOnPricing]] Add-on pricing define_attribute :currencies, Array, { :item_type => :AddOnPricing } # @!attribute default_quantity # @return [Integer] Default quantity for the hosted pages. define_attribute :default_quantity, Integer # @!attribute deleted_at # @return [DateTime] Deleted at define_attribute :deleted_at, DateTime # @!attribute display_quantity # @return [Boolean] Determines if the quantity field is displayed on the hosted pages for the add-on. define_attribute :display_quantity, :Boolean # @!attribute external_sku # @return [String] Optional, stock keeping unit to link the item to other inventory systems. define_attribute :external_sku, String # @!attribute id # @return [String] Add-on ID define_attribute :id, String # @!attribute item # @return [ItemMini] Just the important parts. define_attribute :item, :ItemMini # @!attribute name # @return [String] Describes your add-on and will appear in subscribers' invoices. define_attribute :name, String # @!attribute object # @return [String] Object type define_attribute :object, String # @!attribute optional # @return [Boolean] Whether the add-on is optional for the customer to include in their purchase on the hosted payment page. If false, the add-on will be included when a subscription is created through the Recurly UI. However, the add-on will not be included when a subscription is created through the API. define_attribute :optional, :Boolean # @!attribute plan_id # @return [String] Plan ID define_attribute :plan_id, String # @!attribute state # @return [String] Add-ons can be either active or inactive. define_attribute :state, String # @!attribute tax_code # @return [String] Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`. define_attribute :tax_code, String # @!attribute updated_at # @return [DateTime] Last updated at define_attribute :updated_at, DateTime end end end