Class: Recurly::Requests::AddOnUpdate

Inherits:
Recurly::Request show all
Defined in:
lib/recurly/requests/add_on_update.rb

Instance Attribute Summary collapse

Attributes inherited from Recurly::Request

#attributes

Method Summary

Methods inherited from Recurly::Request

#==, #to_s

Methods included from Schema::SchemaFactory

#schema

Methods included from Schema::RequestCaster

#cast_request

Methods included from Schema::ResourceCaster

#cast

Methods included from Schema::SchemaValidator

#get_did_you_mean, #validate!, #validate_attribute!

Instance Attribute Details

#accounting_code ⇒ String

Returns Accounting code for invoice line items for this add-on. If no value is provided, it defaults to add-on's code. If an Item is associated to the AddOn then accounting code must be absent.

Returns:

  • (String) —

    Accounting code for invoice line items for this add-on. If no value is provided, it defaults to add-on's code. If an Item is associated to the AddOn then accounting code must be absent.



11
# File 'lib/recurly/requests/add_on_update.rb', line 11

define_attribute :accounting_code, String

#avalara_service_type ⇒ Integer

Returns Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. Refer to the documentation for more available t/s types. If an Item is associated to the AddOn, then the avalara_service_type must be absent.

Returns:

  • (Integer) —

    Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. Refer to the documentation for more available t/s types. If an Item is associated to the AddOn, then the avalara_service_type must be absent.



15
# File 'lib/recurly/requests/add_on_update.rb', line 15

define_attribute :avalara_service_type, Integer

#avalara_transaction_type ⇒ Integer

Returns Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. Refer to the documentation for more available t/s types. If an Item is associated to the AddOn, then the avalara_transaction_type must be absent.

Returns:

  • (Integer) —

    Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. Refer to the documentation for more available t/s types. If an Item is associated to the AddOn, then the avalara_transaction_type must be absent.



19
# File 'lib/recurly/requests/add_on_update.rb', line 19

define_attribute :avalara_transaction_type, Integer

#code ⇒ String

Returns The unique identifier for the add-on within its plan. If an Item is associated to the AddOn then code must be absent.

Returns:

  • (String) —

    The unique identifier for the add-on within its plan. If an Item is associated to the AddOn then code must be absent.



23
# File 'lib/recurly/requests/add_on_update.rb', line 23

define_attribute :code, String

#currencies ⇒ Array[AddOnPricing]

Returns If the add-on's tier_type is tiered, volume or stairstep, then currencies must be absent. Must also be absent if add_on_type is usage and usage_type is percentage.

Returns:

  • (Array[AddOnPricing]) —

    If the add-on's tier_type is tiered, volume or stairstep, then currencies must be absent. Must also be absent if add_on_type is usage and usage_type is percentage.



27
# File 'lib/recurly/requests/add_on_update.rb', line 27

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

#default_quantity ⇒ Integer

Returns Default quantity for the hosted pages.

Returns:

  • (Integer) —

    Default quantity for the hosted pages.



31
# File 'lib/recurly/requests/add_on_update.rb', line 31

define_attribute :default_quantity, Integer

#display_quantity ⇒ Boolean

Returns Determines if the quantity field is displayed on the hosted pages for the add-on.

Returns:

  • (Boolean) —

    Determines if the quantity field is displayed on the hosted pages for the add-on.



35
# File 'lib/recurly/requests/add_on_update.rb', line 35

define_attribute :display_quantity, :Boolean

#id ⇒ String

Returns Add-on ID.

Returns:

  • (String) —

    Add-on ID



39
# File 'lib/recurly/requests/add_on_update.rb', line 39

define_attribute :id, String

#measured_unit_id ⇒ String

Returns System-generated unique identifier for a measured unit to be associated with the add-on. Either measured_unit_id or measured_unit_name are required when add_on_type is usage. If measured_unit_id and measured_unit_name are both present, measured_unit_id will be used.

Returns:

  • (String) —

    System-generated unique identifier for a measured unit to be associated with the add-on. Either measured_unit_id or measured_unit_name are required when add_on_type is usage. If measured_unit_id and measured_unit_name are both present, measured_unit_id will be used.



43
# File 'lib/recurly/requests/add_on_update.rb', line 43

define_attribute :measured_unit_id, String

#measured_unit_name ⇒ String

Returns Name of a measured unit to be associated with the add-on. Either measured_unit_id or measured_unit_name are required when add_on_type is usage. If measured_unit_id and measured_unit_name are both present, measured_unit_id will be used.

Returns:

  • (String) —

    Name of a measured unit to be associated with the add-on. Either measured_unit_id or measured_unit_name are required when add_on_type is usage. If measured_unit_id and measured_unit_name are both present, measured_unit_id will be used.



47
# File 'lib/recurly/requests/add_on_update.rb', line 47

define_attribute :measured_unit_name, String

#name ⇒ String

Returns Describes your add-on and will appear in subscribers' invoices. If an Item is associated to the AddOn then name must be absent.

Returns:

  • (String) —

    Describes your add-on and will appear in subscribers' invoices. If an Item is associated to the AddOn then name must be absent.



51
# File 'lib/recurly/requests/add_on_update.rb', line 51

define_attribute :name, String

#optional ⇒ Boolean

Returns 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.

Returns:

  • (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.



55
# File 'lib/recurly/requests/add_on_update.rb', line 55

define_attribute :optional, :Boolean

#revenue_schedule_type ⇒ String

Returns When this add-on is invoiced, the line item will use this revenue schedule. If an Item is associated to the AddOn then revenue_schedule_type must be absent in the request as the value will be set from the item.

Returns:

  • (String) —

    When this add-on is invoiced, the line item will use this revenue schedule. If an Item is associated to the AddOn then revenue_schedule_type must be absent in the request as the value will be set from the item.



59
# File 'lib/recurly/requests/add_on_update.rb', line 59

define_attribute :revenue_schedule_type, String

#tax_code ⇒ String

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. If an Item is associated to the AddOn then tax_code must be absent.

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. If an Item is associated to the AddOn then tax_code must be absent.



63
# File 'lib/recurly/requests/add_on_update.rb', line 63

define_attribute :tax_code, String

#tiers ⇒ Array[Tier]

Returns If the tier_type is flat, then tiers must be absent. The tiers object must include one to many tiers with ending_quantity and unit_amount for the desired currencies. There must be one tier with an ending_quantity of 999999999 which is the default if not provided.

Returns:

  • (Array[Tier]) —

    If the tier_type is flat, then tiers must be absent. The tiers object must include one to many tiers with ending_quantity and unit_amount for the desired currencies. There must be one tier with an ending_quantity of 999999999 which is the default if not provided.



67
# File 'lib/recurly/requests/add_on_update.rb', line 67

define_attribute :tiers, Array, { :item_type => :Tier }

#usage_percentage ⇒ Float

Returns The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0. Required if add_on_type is usage and usage_type is percentage. Must be omitted otherwise. usage_percentage does not support tiers.

Returns:

  • (Float) —

    The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0. Required if add_on_type is usage and usage_type is percentage. Must be omitted otherwise. usage_percentage does not support tiers.



71
# File 'lib/recurly/requests/add_on_update.rb', line 71

define_attribute :usage_percentage, Float