diff --git a/Recurly.html b/Recurly.html new file mode 100644 index 000000000..c310ea478 --- /dev/null +++ b/Recurly.html @@ -0,0 +1,151 @@ + + + + + + + Module: Recurly + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Module: Recurly + + + +

+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/tier.rb,
+ lib/recurly.rb,
lib/recurly/http.rb,
lib/recurly/pager.rb,
lib/recurly/client.rb,
lib/recurly/errors.rb,
lib/recurly/schema.rb,
lib/recurly/request.rb,
lib/recurly/version.rb,
lib/recurly/requests.rb,
lib/recurly/resource.rb,
lib/recurly/webhooks.rb,
lib/recurly/resources.rb,
lib/recurly/resources/item.rb,
lib/recurly/resources/plan.rb,
lib/recurly/resources/site.rb,
lib/recurly/resources/tier.rb,
lib/recurly/resources/user.rb,
lib/recurly/connection_pool.rb,
lib/recurly/resources/error.rb,
lib/recurly/resources/usage.rb,
lib/recurly/requests/address.rb,
lib/recurly/requests/pricing.rb,
lib/recurly/resources/add_on.rb,
lib/recurly/resources/coupon.rb,
lib/recurly/client/operations.rb,
lib/recurly/errors/api_errors.rb,
lib/recurly/resources/account.rb,
lib/recurly/resources/address.rb,
lib/recurly/resources/invoice.rb,
lib/recurly/resources/pricing.rb,
lib/recurly/resources/settings.rb,
lib/recurly/resources/tax_info.rb,
lib/recurly/schema/file_parser.rb,
lib/recurly/schema/json_parser.rb,
lib/recurly/resources/gift_card.rb,
lib/recurly/resources/item_mini.rb,
lib/recurly/resources/line_item.rb,
lib/recurly/resources/plan_mini.rb,
lib/recurly/requests/item_create.rb,
lib/recurly/requests/item_update.rb,
lib/recurly/requests/plan_create.rb,
lib/recurly/requests/plan_update.rb,
lib/recurly/resources/fraud_info.rb,
lib/recurly/resources/granted_by.rb,
lib/recurly/resources/tax_detail.rb,
lib/recurly/errors/network_errors.rb,
lib/recurly/requests/custom_field.rb,
lib/recurly/requests/plan_pricing.rb,
lib/recurly/requests/tier_pricing.rb,
lib/recurly/requests/usage_create.rb,
lib/recurly/resources/add_on_mini.rb,
lib/recurly/resources/binary_file.rb,
lib/recurly/resources/coupon_mini.rb,
lib/recurly/resources/entitlement.rb,
lib/recurly/resources/export_file.rb,
lib/recurly/resources/transaction.rb,
lib/recurly/schema/request_caster.rb,
lib/recurly/schema/schema_factory.rb,
lib/recurly/errors/webhooks_errors.rb,
lib/recurly/requests/add_on_create.rb,
lib/recurly/requests/add_on_update.rb,
lib/recurly/requests/coupon_create.rb,
lib/recurly/requests/coupon_update.rb,
lib/recurly/resources/account_mini.rb,
lib/recurly/resources/account_note.rb,
lib/recurly/resources/billing_info.rb,
lib/recurly/resources/custom_field.rb,
lib/recurly/resources/entitlements.rb,
lib/recurly/resources/export_dates.rb,
lib/recurly/resources/export_files.rb,
lib/recurly/resources/invoice_mini.rb,
lib/recurly/resources/plan_pricing.rb,
lib/recurly/resources/subscription.rb,
lib/recurly/resources/tier_pricing.rb,
lib/recurly/schema/resource_caster.rb,
lib/recurly/requests/account_create.rb,
lib/recurly/requests/account_update.rb,
lib/recurly/requests/add_on_pricing.rb,
lib/recurly/requests/coupon_pricing.rb,
lib/recurly/requests/invoice_create.rb,
lib/recurly/requests/invoice_refund.rb,
lib/recurly/requests/invoice_update.rb,
lib/recurly/resources/dunning_cycle.rb,
lib/recurly/resources/measured_unit.rb,
lib/recurly/schema/schema_validator.rb,
lib/recurly/requests/external_refund.rb,
lib/recurly/requests/invoice_address.rb,
lib/recurly/requests/invoice_collect.rb,
lib/recurly/requests/percentage_tier.rb,
lib/recurly/requests/purchase_create.rb,
lib/recurly/resources/add_on_pricing.rb,
lib/recurly/resources/credit_payment.rb,
lib/recurly/resources/payment_method.rb,
lib/recurly/requests/account_purchase.rb,
lib/recurly/requests/gift_card_create.rb,
lib/recurly/requests/gift_card_redeem.rb,
lib/recurly/requests/line_item_create.rb,
lib/recurly/requests/line_item_refund.rb,
lib/recurly/resources/account_balance.rb,
lib/recurly/resources/coupon_discount.rb,
lib/recurly/resources/external_charge.rb,
lib/recurly/resources/invoice_address.rb,
lib/recurly/resources/percentage_tier.rb,
lib/recurly/resources/shipping_method.rb,
lib/recurly/requests/account_reference.rb,
lib/recurly/requests/plan_hosted_pages.rb,
lib/recurly/requests/plan_ramp_pricing.rb,
lib/recurly/requests/shipping_purchase.rb,
lib/recurly/resources/dunning_campaign.rb,
lib/recurly/resources/dunning_interval.rb,
lib/recurly/resources/external_account.rb,
lib/recurly/resources/external_invoice.rb,
lib/recurly/resources/external_product.rb,
lib/recurly/resources/invoice_template.rb,
lib/recurly/resources/shipping_address.rb,
lib/recurly/requests/coupon_bulk_create.rb,
lib/recurly/requests/plan_ramp_interval.rb,
lib/recurly/requests/subscription_pause.rb,
lib/recurly/resources/address_with_name.rb,
lib/recurly/resources/coupon_redemption.rb,
lib/recurly/resources/plan_hosted_pages.rb,
lib/recurly/resources/plan_ramp_pricing.rb,
lib/recurly/resources/transaction_error.rb,
lib/recurly/requests/billing_info_create.rb,
lib/recurly/requests/billing_info_verify.rb,
lib/recurly/requests/shipping_fee_create.rb,
lib/recurly/requests/subscription_cancel.rb,
lib/recurly/requests/subscription_create.rb,
lib/recurly/requests/subscription_update.rb,
lib/recurly/resources/gift_card_delivery.rb,
lib/recurly/resources/invoice_collection.rb,
lib/recurly/resources/plan_ramp_interval.rb,
lib/recurly/resources/unique_coupon_code.rb,
lib/recurly/requests/external_transaction.rb,
lib/recurly/requests/measured_unit_create.rb,
lib/recurly/requests/measured_unit_update.rb,
lib/recurly/resources/account_acquisition.rb,
lib/recurly/resources/customer_permission.rb,
lib/recurly/resources/subscription_add_on.rb,
lib/recurly/resources/subscription_change.rb,
lib/recurly/requests/subscription_purchase.rb,
lib/recurly/resources/shipping_method_mini.rb,
lib/recurly/requests/shipping_method_create.rb,
lib/recurly/requests/shipping_method_update.rb,
lib/recurly/resources/coupon_discount_trial.rb,
lib/recurly/resources/external_subscription.rb,
lib/recurly/resources/subscription_shipping.rb,
lib/recurly/requests/billing_info_verify_cvv.rb,
lib/recurly/requests/external_account_create.rb,
lib/recurly/requests/external_account_update.rb,
lib/recurly/requests/shipping_address_create.rb,
lib/recurly/requests/shipping_address_update.rb,
lib/recurly/resources/account_balance_amount.rb,
lib/recurly/resources/coupon_redemption_mini.rb,
lib/recurly/requests/account_acquisition_cost.rb,
lib/recurly/requests/coupon_redemption_create.rb,
lib/recurly/requests/subscription_add_on_tier.rb,
lib/recurly/resources/billing_info_updated_by.rb,
lib/recurly/resources/coupon_discount_pricing.rb,
lib/recurly/resources/custom_field_definition.rb,
lib/recurly/requests/gift_card_delivery_create.rb,
lib/recurly/resources/account_acquisition_cost.rb,
lib/recurly/resources/subscription_add_on_tier.rb,
lib/recurly/requests/account_acquisition_update.rb,
lib/recurly/requests/subscription_add_on_create.rb,
lib/recurly/requests/subscription_add_on_update.rb,
lib/recurly/requests/subscription_change_create.rb,
lib/recurly/requests/subscription_ramp_interval.rb,
lib/recurly/resources/unique_coupon_code_params.rb,
lib/recurly/resources/error_may_have_transaction.rb,
lib/recurly/requests/percentage_tiers_by_currency.rb,
lib/recurly/requests/subscription_shipping_create.rb,
lib/recurly/requests/subscription_shipping_update.rb,
lib/recurly/resources/transaction_payment_gateway.rb,
lib/recurly/requests/dunning_campaigns_bulk_update.rb,
lib/recurly/resources/percentage_tiers_by_currency.rb,
lib/recurly/requests/subscription_shipping_purchase.rb,
lib/recurly/resources/external_product_reference_mini.rb,
lib/recurly/resources/subscription_change_billing_info.rb,
lib/recurly/requests/subscription_add_on_percentage_tier.rb,
lib/recurly/requests/subscription_change_shipping_create.rb,
lib/recurly/resources/subscription_add_on_percentage_tier.rb,
lib/recurly/resources/subscription_ramp_interval_response.rb,
lib/recurly/requests/subscription_change_billing_info_create.rb,
lib/recurly/resources/dunning_campaigns_bulk_update_response.rb
+
+
+ +
+ +

Overview

+
+ +

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.

+ + +
+
+
+ + +

Defined Under Namespace

+

+ + + Modules: Errors, HTTP, Requests, Resources, Webhooks + + + + Classes: Client, ConnectionPool, FileParser, JSONParser, Pager, Request, Resource, Schema + + +

+ + +

+ Constant Summary + collapse +

+ +
+ +
STRICT_MODE = + +
+
ENV["RECURLY_STRICT_MODE"] && ENV["RECURLY_STRICT_MODE"].downcase == "true"
+ +
VERSION = + +
+
"4.34.0"
+ +
+ + + + + + + + + + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Client.html b/Recurly/Client.html new file mode 100644 index 000000000..f4fc3429b --- /dev/null +++ b/Recurly/Client.html @@ -0,0 +1,23555 @@ + + + + + + + Class: Recurly::Client + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Client + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/client.rb,
+ lib/recurly/client/operations.rb
+
+
+ +
+ + + +

+ Constant Summary + collapse +

+ +
+ +
API_HOSTS = + +
+
{
+  us: "https://v3.recurly.com",
+  eu: "https://v3.eu.recurly.com",
+}
+ +
REGION = + +
+
:us
+ +
CA_FILE = + +
+
File.join(File.dirname(__FILE__), "../data/ca-certificates.crt")
+ +
BINARY_TYPES = + +
+
[
+  "application/pdf",
+].freeze
+ +
JSON_CONTENT_TYPE = + +
+
"application/json"
+ +
MAX_RETRIES = + +
+
3
+ +
LOG_LEVELS = + +
+
%i(debug info warn error fatal).freeze
+ +
BASE36_ALPHABET = + +
+
(("0".."9").to_a + ("a".."z").to_a).freeze
+ +
ALLOWED_OPTIONS = + +
+
[
+  :site_id,
+  :open_timeout,
+  :read_timeout,
+  :body,
+  :params,
+  :headers,
+].freeze
+ +
+ + + + + +

Class Attribute Summary collapse

+ + + + + + +

+ Instance Method Summary + collapse +

+ + + + +
+

Constructor Details

+ +
+

+ + #initialize(region: REGION, base_url: , ca_file: CA_FILE, api_key:, logger: nil) {|_self| ... } ⇒ Client + + + + + +

+
+ +

Initialize a client. It requires an API key.

+ + +
+
+
+ +
+

Examples:

+ + +
API_KEY = '83749879bbde395b5fe0cc1a5abf8e5'
+client = Recurly::Client.new(api_key: API_KEY)
+sub = client.get_subscription(subscription_id: 'abcd123456')
+ + +
# You can also pass the initializer a block. This will give you
+# a client scoped for just that block
+Recurly::Client.new(api_key: API_KEY) do |client|
+  sub = client.get_subscription(subscription_id: 'abcd123456')
+end
+ + +
# If you only plan on using the client for more than one site,
+# you should initialize a new client for each site.
+
+client = Recurly::Client.new(api_key: API_KEY1)
+sub = client.get_subscription(subscription_id: 'uuid-abcd123456')
+
+# you should create a new client to connect to another site
+client = Recurly::Client.new(api_key: API_KEY2)
+sub = client.get_subscription(subscription_id: 'uuid-abcd7890')
+ +
+

Parameters:

+
    + +
  • + + region + + + (String) + + + (defaults to: REGION) + + + — +
    +

    The DataCenter that is called by the API. Default to “us”

    +
    + +
  • + +
  • + + base_url + + + (String) + + + (defaults to: ) + + + — +
    +

    The base URL for the API. Defaults to “v3.recurly.com

    +
    + +
  • + +
  • + + ca_file + + + (String) + + + (defaults to: CA_FILE) + + + — +
    +

    The CA bundle to use when connecting to the API. Defaults to “data/ca-certificates.crt”

    +
    + +
  • + +
  • + + api_key + + + (String) + + + + — +
    +

    The private API key

    +
    + +
  • + +
  • + + logger + + + (Logger) + + + (defaults to: nil) + + + — +
    +

    A logger to use. Defaults to creating a new STDOUT logger with level WARN.

    +
    + +
  • + +
+ +

Yields:

+
    + +
  • + + + (_self) + + + +
  • + +
+

Yield Parameters:

+
    + +
  • + + _self + + + (Recurly::Client) + + + + — +
    +

    the object that the method was called on

    +
    + +
  • + +
+

Raises:

+
    + +
  • + + + (ArgumentError) + + + +
  • + +
+ +
+ + + + +
+
+
+
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+
+
# File 'lib/recurly/client.rb', line 64
+
+def initialize(region: REGION, base_url: API_HOSTS[:us], ca_file: CA_FILE, api_key:, logger: nil)
+  raise ArgumentError, "'api_key' must be set to a non-nil value" if api_key.nil?
+
+  raise ArgumentError, "Invalid region type. Expected one of: #{API_HOSTS.keys.join(", ")}" if !API_HOSTS.key?(region)
+
+  base_url = API_HOSTS[region] if base_url == API_HOSTS[:us] && API_HOSTS.key?(region)
+
+  set_api_key(api_key)
+  set_connection_options(base_url, ca_file)
+
+  if logger.nil?
+    @logger = Logger.new(STDOUT).tap do |l|
+      l.level = Logger::WARN
+    end
+  else
+    unless LOG_LEVELS.all? { |lev| logger.respond_to?(lev) }
+      raise ArgumentError, "You must pass in a logger implementation that responds to the following messages: #{LOG_LEVELS}"
+    end
+    @logger = logger
+  end
+
+  if @logger.level < Logger::INFO
+    msg = <<-MSG
+    The Recurly logger should not be initialized
+    beyond the level INFO. It is currently configured to emit
+    headers and request / response bodies. This has the potential to leak
+    PII and other sensitive information and should never be used in production.
+    MSG
+    log_warn("SECURITY_WARNING", message: msg)
+  end
+
+  # execute block with this client if given
+  yield(self) if block_given?
+end
+
+
+ +
+ +
+

Class Attribute Details

+ + + +
+

+ + .connection_poolRecurly::ConnectionPool + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+171
+172
+173
+
+
# File 'lib/recurly/client.rb', line 171
+
+def connection_pool
+  @connection_pool
+end
+
+
+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #api_versionObject + + + + + +

+ + + + +
+
+
+
+7
+8
+9
+
+
# File 'lib/recurly/client/operations.rb', line 7
+
+def api_version
+  "v2021-02-25"
+end
+
+
+ +
+

+ + #apply_credit_balance(invoice_id:, **options) ⇒ Resources::Invoice + + + + + +

+
+ +

Apply available credit to a pending or past due charge invoice

+ +

apply_credit_balance api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice = @client.apply_credit_balance(invoice_id: invoice_id)
+  puts "Applied credit balance to invoice #{invoice}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :site_id [String] Site ID or subdomain. For ID no prefix is used e.g. e28zov4fw0v2. For subdomain use prefix subdomain-, e.g. subdomain-recurly.

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2374
+2375
+2376
+2377
+
+
# File 'lib/recurly/client/operations.rb', line 2374
+
+def apply_credit_balance(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/apply_credit_balance", invoice_id: invoice_id)
+  put(path, **options)
+end
+
+
+ +
+

+ + #cancel_subscription(subscription_id:, **options) ⇒ Resources::Subscription + + + + + +

+
+ +

Cancel a subscription

+ +

cancel_subscription api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  subscription = @client.cancel_subscription(
+    subscription_id: subscription_id
+  )
+  puts "Canceled Subscription #{subscription}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :body [Requests::SubscriptionCancel] The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::SubscriptionCancel

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3464
+3465
+3466
+3467
+
+
# File 'lib/recurly/client/operations.rb', line 3464
+
+def cancel_subscription(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/cancel", subscription_id: subscription_id)
+  put(path, options[:body], Requests::SubscriptionCancel, **options)
+end
+
+
+ +
+

+ + #collect_invoice(invoice_id:, **options) ⇒ Resources::Invoice + + + + + +

+
+ +

Collect a pending or past due, automatic invoice

+ +

collect_invoice api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice = @client.collect_invoice(invoice_id: invoice_id)
+  puts "Collected invoice #{invoice}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :body [Requests::InvoiceCollect] The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::InvoiceCollect

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2398
+2399
+2400
+2401
+
+
# File 'lib/recurly/client/operations.rb', line 2398
+
+def collect_invoice(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/collect", invoice_id: invoice_id)
+  put(path, options[:body], Requests::InvoiceCollect, **options)
+end
+
+
+ +
+

+ + #convert_trial(subscription_id:, **options) ⇒ Resources::Subscription + + + + + +

+
+ +

Convert trial subscription

+ +

convert_trial api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3558
+3559
+3560
+3561
+
+
# File 'lib/recurly/client/operations.rb', line 3558
+
+def convert_trial(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/convert_trial", subscription_id: subscription_id)
+  put(path, **options)
+end
+
+
+ +
+

+ + #create_account(body:, **options) ⇒ Resources::Account + + + + + +

+
+ +

Create an account

+ +

create_account api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+   = {
+    code: ,
+    first_name: "Benjamin",
+    last_name: "Du Monde",
+    preferred_time_zone: "America/Chicago",
+    acquisition: {
+      campaign: "podcast-marketing",
+      channel: "social_media",
+      subchannel: "twitter",
+      cost: {
+        currency: "USD",
+        amount: 0.50
+      }
+    },
+    shipping_addresses: [
+      {
+        nickname: "Home",
+        street1: "1 Tchoupitoulas St",
+        city: "New Orleans",
+        region: "LA",
+        country: "US",
+        postal_code: "70115",
+        first_name: "Benjamin",
+        last_name: "Du Monde"
+      }
+    ]
+  }
+   = @client.(body: )
+  puts "Created Account #{}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + body + + + (Requests::AccountCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::AccountCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+169
+170
+171
+172
+
+
# File 'lib/recurly/client/operations.rb', line 169
+
+def (body:, **options)
+  path = "/accounts"
+  post(path, body, Requests::AccountCreate, **options)
+end
+
+
+ +
+

+ + #create_account_external_account(account_id:, body:, **options) ⇒ Resources::ExternalAccount + + + + + +

+
+ +

Create an external account

+ +

create_account_external_account api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::ExternalAccountCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::ExternalAccountCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+777
+778
+779
+780
+
+
# File 'lib/recurly/client/operations.rb', line 777
+
+def (account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/external_accounts", account_id: )
+  post(path, body, Requests::ExternalAccountCreate, **options)
+end
+
+
+ +
+

+ + #create_billing_info(account_id:, body:, **options) ⇒ Resources::BillingInfo + + + + + +

+
+ +

Add new billing information on an account

+ +

create_billing_info api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::BillingInfoCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::BillingInfoCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+541
+542
+543
+544
+
+
# File 'lib/recurly/client/operations.rb', line 541
+
+def create_billing_info(account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/billing_infos", account_id: )
+  post(path, body, Requests::BillingInfoCreate, **options)
+end
+
+
+ +
+

+ + #create_coupon(body:, **options) ⇒ Resources::Coupon + + + + + +

+
+ +

Create a new coupon

+ +

create_coupon api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  coupon_create = {
+    name: "Promotional Coupon",
+    code: coupon_code,
+    discount_type: 'fixed',
+    currencies: [
+      {
+        currency: 'USD',
+        discount: 10_000
+      }
+    ]
+  }
+  coupon = @client.create_coupon(
+    body: coupon_create
+  )
+  puts "Created Coupon #{coupon}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + body + + + (Requests::CouponCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::CouponCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1562
+1563
+1564
+1565
+
+
# File 'lib/recurly/client/operations.rb', line 1562
+
+def create_coupon(body:, **options)
+  path = "/coupons"
+  post(path, body, Requests::CouponCreate, **options)
+end
+
+
+ +
+

+ + #create_coupon_redemption(account_id:, body:, **options) ⇒ Resources::CouponRedemption + + + + + +

+
+ +

Generate an active coupon redemption on an account or subscription

+ +

create_coupon_redemption api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  redemption_create = {
+    currency: 'USD',
+    coupon_id: coupon_id
+  }
+  redemption = @client.create_coupon_redemption(
+    account_id: ,
+    body: redemption_create
+  )
+  puts "Created CouponRedemption #{redemption}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::CouponRedemptionCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::CouponRedemptionCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+688
+689
+690
+691
+
+
# File 'lib/recurly/client/operations.rb', line 688
+
+def create_coupon_redemption(account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/coupon_redemptions/active", account_id: )
+  post(path, body, Requests::CouponRedemptionCreate, **options)
+end
+
+
+ +
+

+ + #create_gift_card(body:, **options) ⇒ Resources::GiftCard + + + + + +

+
+ +

Create gift card

+ +

create_gift_card api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + body + + + (Requests::GiftCardCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::GiftCardCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4389
+4390
+4391
+4392
+
+
# File 'lib/recurly/client/operations.rb', line 4389
+
+def create_gift_card(body:, **options)
+  path = "/gift_cards"
+  post(path, body, Requests::GiftCardCreate, **options)
+end
+
+
+ +
+

+ + #create_invoice(account_id:, body:, **options) ⇒ Resources::InvoiceCollection + + + + + +

+
+ +

Create an invoice for pending line items

+ +

create_invoice api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice_create = {
+    currency: 'USD',
+    collection_method: 'automatic'
+  }
+  collection = @client.create_invoice(
+    account_id: ,
+    body: invoice_create
+  )
+  puts "Created InvoiceCollection #{collection}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::InvoiceCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::InvoiceCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+929
+930
+931
+932
+
+
# File 'lib/recurly/client/operations.rb', line 929
+
+def create_invoice(account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/invoices", account_id: )
+  post(path, body, Requests::InvoiceCreate, **options)
+end
+
+
+ +
+

+ + #create_item(body:, **options) ⇒ Resources::Item + + + + + +

+
+ +

Create a new item

+ +

create_item api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  item_create = {
+    code: item_code,
+    name: "Item Name",
+    description: "Item Description",
+    external_sku: "a35JE-44",
+    accounting_code: "item-code-127",
+    revenue_schedule_type: "at_range_end",
+    custom_fields: [{
+      name: "custom-field-1",
+      value: "Custom Field 1 value"
+    }]
+  }
+  item = @client.create_item(body: item_create)
+  puts "Created Item #{item}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + body + + + (Requests::ItemCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::ItemCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1945
+1946
+1947
+1948
+
+
# File 'lib/recurly/client/operations.rb', line 1945
+
+def create_item(body:, **options)
+  path = "/items"
+  post(path, body, Requests::ItemCreate, **options)
+end
+
+
+ +
+

+ + #create_line_item(account_id:, body:, **options) ⇒ Resources::LineItem + + + + + +

+
+ +

Create a new line item for the account

+ +

create_line_item api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  line_item_create = {
+    currency: 'USD',
+    unit_amount: 1_000,
+    type: :charge
+  }
+  line_item = @client.create_line_item(
+    account_id: ,
+    body: line_item_create
+  )
+  puts "Created LineItem #{line_item}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::LineItemCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::LineItemCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1044
+1045
+1046
+1047
+
+
# File 'lib/recurly/client/operations.rb', line 1044
+
+def create_line_item(account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/line_items", account_id: )
+  post(path, body, Requests::LineItemCreate, **options)
+end
+
+
+ +
+

+ + #create_measured_unit(body:, **options) ⇒ Resources::MeasuredUnit + + + + + +

+
+ +

Create a new measured unit

+ +

create_measured_unit api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + body + + + (Requests::MeasuredUnitCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::MeasuredUnitCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2097
+2098
+2099
+2100
+
+
# File 'lib/recurly/client/operations.rb', line 2097
+
+def create_measured_unit(body:, **options)
+  path = "/measured_units"
+  post(path, body, Requests::MeasuredUnitCreate, **options)
+end
+
+
+ +
+

+ + #create_pending_purchase(body:, **options) ⇒ Resources::InvoiceCollection + + + + + +

+
+ +

Create a pending purchase

+ +

create_pending_purchase api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  purchase = {
+    currency: 'EUR',
+    account: {
+      code: ,
+      email: 'benjamin@example.com',
+      billing_info: {
+        first_name: 'Benjamin',
+        last_name: 'Du Monde',
+        online_banking_payment_type: 'ideal'
+      },
+    },
+    line_items: [
+      {
+        currency: 'EUR',
+        unit_amount: 1000,
+        type: 'charge'
+      }
+    ]
+  }
+  invoice_collection = @client.create_pending_purchase(body: purchase)
+  puts "Created ChargeInvoice with UUID: #{invoice_collection.charge_invoice.uuid}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + body + + + (Requests::PurchaseCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::PurchaseCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4166
+4167
+4168
+4169
+
+
# File 'lib/recurly/client/operations.rb', line 4166
+
+def create_pending_purchase(body:, **options)
+  path = "/purchases/pending"
+  post(path, body, Requests::PurchaseCreate, **options)
+end
+
+
+ +
+

+ + #create_plan(body:, **options) ⇒ Resources::Plan + + + + + +

+
+ +

Create a plan

+ +

create_plan api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  plan_create = {
+    code: plan_code,
+    name: plan_name,
+    currencies: [
+      currency: "USD",
+      setup_fee: 1_000
+    ],
+    add_ons: [
+      {
+        name: 'Extra User',
+        code: 'extra_user',
+        currencies: [
+          { currency: 'USD', unit_amount: 10_000 }
+        ]
+      }
+    ]
+  }
+  plan = @client.create_plan(body: plan_create)
+  puts "Created Plan #{plan}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + body + + + (Requests::PlanCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::PlanCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2844
+2845
+2846
+2847
+
+
# File 'lib/recurly/client/operations.rb', line 2844
+
+def create_plan(body:, **options)
+  path = "/plans"
+  post(path, body, Requests::PlanCreate, **options)
+end
+
+
+ +
+

+ + #create_plan_add_on(plan_id:, body:, **options) ⇒ Resources::AddOn + + + + + +

+
+ +

Create an add-on

+ +

create_plan_add_on api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  new_add_on = {
+    code: 'coffee_grinder',
+    name: 'A quality grinder for your beans',
+    default_quantity: 1,
+    currencies: [
+      {
+        currency: 'USD',
+        unit_amount: 10_000
+      }
+    ]
+  }
+  add_on = @client.create_plan_add_on(plan_id: plan_id, body: new_add_on)
+  puts "Created plan add-on #{add_on}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + plan_id + + + (String) + + + + — +
    +

    Plan ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + body + + + (Requests::AddOnCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::AddOnCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3002
+3003
+3004
+3005
+
+
# File 'lib/recurly/client/operations.rb', line 3002
+
+def create_plan_add_on(plan_id:, body:, **options)
+  path = interpolate_path("/plans/{plan_id}/add_ons", plan_id: plan_id)
+  post(path, body, Requests::AddOnCreate, **options)
+end
+
+
+ +
+

+ + #create_purchase(body:, **options) ⇒ Resources::InvoiceCollection + + + + + +

+
+ +

Create a new purchase

+ +

create_purchase api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  purchase = {
+    currency: "USD",
+    account: {
+      code: ,
+      first_name: "Benjamin",
+      last_name: "Du Monde",
+      billing_info: {
+        token_id: rjs_token_id
+      },
+    },
+    subscriptions: [
+      { plan_code: plan_code }
+    ]
+  }
+  invoice_collection = @client.create_purchase(
+    body: purchase
+  )
+  puts "Created Charge Invoice #{invoice_collection.charge_invoice}"
+  puts "Created Credit Invoices #{invoice_collection.credit_invoices}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + body + + + (Requests::PurchaseCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::PurchaseCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4084
+4085
+4086
+4087
+
+
# File 'lib/recurly/client/operations.rb', line 4084
+
+def create_purchase(body:, **options)
+  path = "/purchases"
+  post(path, body, Requests::PurchaseCreate, **options)
+end
+
+
+ +
+

+ + #create_shipping_address(account_id:, body:, **options) ⇒ Resources::ShippingAddress + + + + + +

+
+ +

Create a new shipping address for the account

+ +

create_shipping_address api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  shipping_address_create = {
+    nickname: 'Work',
+    street1: '900 Camp St',
+    city: 'New Orleans',
+    region: 'LA',
+    country: 'US',
+    postal_code: '70115',
+    first_name: 'Joanna',
+    last_name: 'Du Monde'
+  }
+  shipping_address = @client.create_shipping_address(account_id: , body: shipping_address_create)
+  puts "Created Shipping Address #{shipping_address}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::ShippingAddressCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::ShippingAddressCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1188
+1189
+1190
+1191
+
+
# File 'lib/recurly/client/operations.rb', line 1188
+
+def create_shipping_address(account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/shipping_addresses", account_id: )
+  post(path, body, Requests::ShippingAddressCreate, **options)
+end
+
+
+ +
+

+ + #create_shipping_method(body:, **options) ⇒ Resources::ShippingMethod + + + + + +

+
+ +

Create a new shipping method

+ +

create_shipping_method api documentation

+ + +
+
+
+

Parameters:

+ + +

Returns:

+ + +
+ + + + +
+
+
+
+3219
+3220
+3221
+3222
+
+
# File 'lib/recurly/client/operations.rb', line 3219
+
+def create_shipping_method(body:, **options)
+  path = "/shipping_methods"
+  post(path, body, Requests::ShippingMethodCreate, **options)
+end
+
+
+ +
+

+ + #create_subscription(body:, **options) ⇒ Resources::Subscription + + + + + +

+
+ +

Create a new subscription

+ +

create_subscription api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  subscription_create = {
+    plan_code: plan_code,
+    currency: "USD",
+    # This can be an existing account or a new account
+    account: {
+      code: ,
+    }
+  }
+  subscription = @client.create_subscription(
+    body: subscription_create
+  )
+  puts "Created Subscription #{subscription}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + body + + + (Requests::SubscriptionCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::SubscriptionCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3346
+3347
+3348
+3349
+
+
# File 'lib/recurly/client/operations.rb', line 3346
+
+def create_subscription(body:, **options)
+  path = "/subscriptions"
+  post(path, body, Requests::SubscriptionCreate, **options)
+end
+
+
+ +
+

+ + #create_subscription_change(subscription_id:, body:, **options) ⇒ Resources::SubscriptionChange + + + + + +

+
+ +

Create a new subscription change

+ +

create_subscription_change api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  change_create = {
+    timeframe: "now",
+    plan_code: new_plan_code
+  }
+  change = @client.create_subscription_change(
+    subscription_id: subscription_id,
+    body: change_create
+  )
+  puts "Created SubscriptionChange #{change}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + body + + + (Requests::SubscriptionChangeCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::SubscriptionChangeCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3639
+3640
+3641
+3642
+
+
# File 'lib/recurly/client/operations.rb', line 3639
+
+def create_subscription_change(subscription_id:, body:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/change", subscription_id: subscription_id)
+  post(path, body, Requests::SubscriptionChangeCreate, **options)
+end
+
+
+ +
+

+ + #create_usage(subscription_id:, add_on_id:, body:, **options) ⇒ Resources::Usage + + + + + +

+
+ +

Log a usage record on this subscription add-on

+ +

create_usage api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + add_on_id + + + (String) + + + + — +
    +

    Add-on ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + body + + + (Requests::UsageCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::UsageCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Resources::Usage) + + + + — +
    +

    The created usage record.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+3889
+3890
+3891
+3892
+
+
# File 'lib/recurly/client/operations.rb', line 3889
+
+def create_usage(subscription_id:, add_on_id:, body:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/add_ons/{add_on_id}/usage", subscription_id: subscription_id, add_on_id: add_on_id)
+  post(path, body, Requests::UsageCreate, **options)
+end
+
+
+ +
+

+ + #deactivate_account(account_id:, **options) ⇒ Resources::Account + + + + + +

+
+ +

Deactivate an account

+ +

deactivate_account api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+   = @client.(account_id: )
+  puts "Deactivated Account #{}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+246
+247
+248
+249
+
+
# File 'lib/recurly/client/operations.rb', line 246
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}", account_id: )
+  delete(path, **options)
+end
+
+
+ +
+

+ + #deactivate_coupon(coupon_id:, **options) ⇒ Resources::Coupon + + + + + +

+
+ +

Expire a coupon

+ +

deactivate_coupon api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  coupon = @client.deactivate_coupon(coupon_id: coupon_id)
+  puts "Deactivated Coupon #{coupon}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + coupon_id + + + (String) + + + + — +
    +

    Coupon ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-10off.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1635
+1636
+1637
+1638
+
+
# File 'lib/recurly/client/operations.rb', line 1635
+
+def deactivate_coupon(coupon_id:, **options)
+  path = interpolate_path("/coupons/{coupon_id}", coupon_id: coupon_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #deactivate_item(item_id:, **options) ⇒ Resources::Item + + + + + +

+
+ +

Deactivate an item

+ +

deactivate_item api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  item = @client.deactivate_item(item_id: item_id)
+  puts "Deactivated Item #{item}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + item_id + + + (String) + + + + — +
    +

    Item ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-red.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2022
+2023
+2024
+2025
+
+
# File 'lib/recurly/client/operations.rb', line 2022
+
+def deactivate_item(item_id:, **options)
+  path = interpolate_path("/items/{item_id}", item_id: item_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #deactivate_shipping_method(shipping_method_id:, **options) ⇒ Resources::ShippingMethod + + + + + +

+
+ +

Deactivate a shipping method

+ +

deactivate_shipping_method api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + shipping_method_id + + + (String) + + + + — +
    +

    Shipping Method ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-usps_2-day.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3262
+3263
+3264
+3265
+
+
# File 'lib/recurly/client/operations.rb', line 3262
+
+def deactivate_shipping_method(shipping_method_id:, **options)
+  path = interpolate_path("/shipping_methods/{shipping_method_id}", shipping_method_id: shipping_method_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #deactivate_unique_coupon_code(unique_coupon_code_id:, **options) ⇒ Resources::UniqueCouponCode + + + + + +

+
+ +

Deactivate a unique coupon code

+ +

deactivate_unique_coupon_code api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + unique_coupon_code_id + + + (String) + + + + — +
    +

    Unique Coupon Code ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-abc-8dh2-def.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4030
+4031
+4032
+4033
+
+
# File 'lib/recurly/client/operations.rb', line 4030
+
+def deactivate_unique_coupon_code(unique_coupon_code_id:, **options)
+  path = interpolate_path("/unique_coupon_codes/{unique_coupon_code_id}", unique_coupon_code_id: unique_coupon_code_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #delete_account_external_account(account_id:, external_account_id:, **options) ⇒ Resources::ExternalAccount + + + + + +

+
+ +

Delete an external account for an account

+ +

delete_account_external_account api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + external_account_id + + + (String) + + + + — +
    +

    External account ID, e.g. s28zov4fw0cb.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+823
+824
+825
+826
+
+
# File 'lib/recurly/client/operations.rb', line 823
+
+def (account_id:, external_account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/external_accounts/{external_account_id}", account_id: , external_account_id: )
+  delete(path, **options)
+end
+
+
+ +
+

+ + #generate_unique_coupon_codes(coupon_id:, body:, **options) ⇒ Resources::UniqueCouponCodeParams + + + + + +

+
+ +

Generate unique coupon codes

+ +

generate_unique_coupon_codes api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + coupon_id + + + (String) + + + + — +
    +

    Coupon ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-10off.

    +
    + +
  • + +
  • + + body + + + (Requests::CouponBulkCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::CouponBulkCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Resources::UniqueCouponCodeParams) + + + + — +
    +

    A set of parameters that can be passed to the `list_unique_coupon_codes` endpoint to obtain only the newly generated `UniqueCouponCodes`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+1650
+1651
+1652
+1653
+
+
# File 'lib/recurly/client/operations.rb', line 1650
+
+def generate_unique_coupon_codes(coupon_id:, body:, **options)
+  path = interpolate_path("/coupons/{coupon_id}/generate", coupon_id: coupon_id)
+  post(path, body, Requests::CouponBulkCreate, **options)
+end
+
+
+ +
+

+ + #get_a_billing_info(account_id:, billing_info_id:, **options) ⇒ Resources::BillingInfo + + + + + +

+
+ +

Fetch a billing info

+ +

get_a_billing_info api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + billing_info_id + + + (String) + + + + — +
    +

    Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+556
+557
+558
+559
+
+
# File 'lib/recurly/client/operations.rb', line 556
+
+def get_a_billing_info(account_id:, billing_info_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/billing_infos/{billing_info_id}", account_id: , billing_info_id: billing_info_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_account(account_id:, **options) ⇒ Resources::Account + + + + + +

+
+ +

Fetch an account

+ +

get_account api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+   = @client.(account_id: )
+  puts "Got Account #{}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+192
+193
+194
+195
+
+
# File 'lib/recurly/client/operations.rb', line 192
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}", account_id: )
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_account_acquisition(account_id:, **options) ⇒ Resources::AccountAcquisition + + + + + +

+
+ +

Fetch an account's acquisition data

+ +

get_account_acquisition api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  @client.(account_id: )
+  puts "Got AccountAcquisition"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+269
+270
+271
+272
+
+
# File 'lib/recurly/client/operations.rb', line 269
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/acquisition", account_id: )
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_account_balance(account_id:, **options) ⇒ Resources::AccountBalance + + + + + +

+
+ +

Fetch an account's balance and past due status

+ +

get_account_balance api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  balance = @client.(account_id: )
+  puts "Got AccountBalance #{balance}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+374
+375
+376
+377
+
+
# File 'lib/recurly/client/operations.rb', line 374
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/balance", account_id: )
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_account_external_account(account_id:, external_account_id:, **options) ⇒ Resources::ExternalAccount + + + + + +

+
+ +

Get an external account for an account

+ +

get_account_external_account api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + external_account_id + + + (String) + + + + — +
    +

    External account ID, e.g. s28zov4fw0cb.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+792
+793
+794
+795
+
+
# File 'lib/recurly/client/operations.rb', line 792
+
+def (account_id:, external_account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/external_accounts/{external_account_id}", account_id: , external_account_id: )
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_account_note(account_id:, account_note_id:, **options) ⇒ Resources::AccountNote + + + + + +

+
+ +

Fetch an account note

+ +

get_account_note api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  note = @client.(
+    account_id: ,
+    account_note_id: note_id
+  )
+  puts "Got AccountNote #{note}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + account_note_id + + + (String) + + + + — +
    +

    Account Note ID.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1105
+1106
+1107
+1108
+
+
# File 'lib/recurly/client/operations.rb', line 1105
+
+def (account_id:, account_note_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/notes/{account_note_id}", account_id: , account_note_id: )
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_add_on(add_on_id:, **options) ⇒ Resources::AddOn + + + + + +

+
+ +

Fetch an add-on

+ +

get_add_on api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  add_on = @client.get_add_on(add_on_id: add_on_id)
+  puts "Got add-on #{add_on}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + add_on_id + + + (String) + + + + — +
    +

    Add-on ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3158
+3159
+3160
+3161
+
+
# File 'lib/recurly/client/operations.rb', line 3158
+
+def get_add_on(add_on_id:, **options)
+  path = interpolate_path("/add_ons/{add_on_id}", add_on_id: add_on_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_billing_info(account_id:, **options) ⇒ Resources::BillingInfo + + + + + +

+
+ +

Fetch an account's billing information

+ +

get_billing_info api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  billing = @client.get_billing_info(account_id: )
+  puts "Got BillingInfo #{billing}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+397
+398
+399
+400
+
+
# File 'lib/recurly/client/operations.rb', line 397
+
+def get_billing_info(account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/billing_info", account_id: )
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_coupon(coupon_id:, **options) ⇒ Resources::Coupon + + + + + +

+
+ +

Fetch a coupon

+ +

get_coupon api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  coupon = @client.get_coupon(coupon_id: coupon_id)
+  puts "Got Coupon #{coupon}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + coupon_id + + + (String) + + + + — +
    +

    Coupon ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-10off.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1585
+1586
+1587
+1588
+
+
# File 'lib/recurly/client/operations.rb', line 1585
+
+def get_coupon(coupon_id:, **options)
+  path = interpolate_path("/coupons/{coupon_id}", coupon_id: coupon_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_credit_payment(credit_payment_id:, **options) ⇒ Resources::CreditPayment + + + + + +

+
+ +

Fetch a credit payment

+ +

get_credit_payment api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + credit_payment_id + + + (String) + + + + — +
    +

    Credit Payment ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1750
+1751
+1752
+1753
+
+
# File 'lib/recurly/client/operations.rb', line 1750
+
+def get_credit_payment(credit_payment_id:, **options)
+  path = interpolate_path("/credit_payments/{credit_payment_id}", credit_payment_id: credit_payment_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_custom_field_definition(custom_field_definition_id:, **options) ⇒ Resources::CustomFieldDefinition + + + + + +

+
+ +

Fetch an custom field definition

+ +

get_custom_field_definition api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  custom_field_definition = @client.get_custom_field_definition(
+    custom_field_definition_id: custom_field_definition_id
+  )
+  puts "Got Custom Field Definition #{custom_field_definition}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + custom_field_definition_id + + + (String) + + + + — +
    +

    Custom Field Definition ID

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1821
+1822
+1823
+1824
+
+
# File 'lib/recurly/client/operations.rb', line 1821
+
+def get_custom_field_definition(custom_field_definition_id:, **options)
+  path = interpolate_path("/custom_field_definitions/{custom_field_definition_id}", custom_field_definition_id: custom_field_definition_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_dunning_campaign(dunning_campaign_id:, **options) ⇒ Resources::DunningCampaign + + + + + +

+
+ +

Fetch a dunning campaign

+ +

get_dunning_campaign api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + dunning_campaign_id + + + (String) + + + + — +
    +

    Dunning Campaign ID, e.g. e28zov4fw0v2.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4246
+4247
+4248
+4249
+
+
# File 'lib/recurly/client/operations.rb', line 4246
+
+def get_dunning_campaign(dunning_campaign_id:, **options)
+  path = interpolate_path("/dunning_campaigns/{dunning_campaign_id}", dunning_campaign_id: dunning_campaign_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_export_dates(**options) ⇒ Resources::ExportDates + + + + + +

+
+ +

List the dates that have an available export to download.

+ +

get_export_dates api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  export_dates = @client.get_export_dates()
+  export_dates.dates.each do |date|
+    puts "Exports are available for: #{date}"
+  end
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4190
+4191
+4192
+4193
+
+
# File 'lib/recurly/client/operations.rb', line 4190
+
+def get_export_dates(**options)
+  path = "/export_dates"
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_export_files(export_date:, **options) ⇒ Resources::ExportFiles + + + + + +

+
+ +

List of the export files that are available to download.

+ +

get_export_files api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  export_files = @client.get_export_files(export_date: export_date)
+  export_files.files.each do |file|
+    puts "Export file download URL: #{file.href}"
+  end
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + export_date + + + (String) + + + + — +
    +

    Date for which to get a list of available automated export files. Date must be in YYYY-MM-DD format.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4215
+4216
+4217
+4218
+
+
# File 'lib/recurly/client/operations.rb', line 4215
+
+def get_export_files(export_date:, **options)
+  path = interpolate_path("/export_dates/{export_date}/export_files", export_date: export_date)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_external_product(external_product_id:, **options) ⇒ Resources::ExternalProduct + + + + + +

+
+ +

Fetch an external product

+ +

get_external_product api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + external_product_id + + + (String) + + + + — +
    +

    External product id

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2171
+2172
+2173
+2174
+
+
# File 'lib/recurly/client/operations.rb', line 2171
+
+def get_external_product(external_product_id:, **options)
+  path = interpolate_path("/external_products/{external_product_id}", external_product_id: external_product_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_external_subscription(external_subscription_id:, **options) ⇒ Resources::ExternalSubscription + + + + + +

+
+ +

Fetch an external subscription

+ +

get_external_subscription api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + external_subscription_id + + + (String) + + + + — +
    +

    External subscription id

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2202
+2203
+2204
+2205
+
+
# File 'lib/recurly/client/operations.rb', line 2202
+
+def get_external_subscription(external_subscription_id:, **options)
+  path = interpolate_path("/external_subscriptions/{external_subscription_id}", external_subscription_id: external_subscription_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_gift_card(gift_card_id:, **options) ⇒ Resources::GiftCard + + + + + +

+
+ +

Fetch a gift card

+ +

get_gift_card api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + gift_card_id + + + (String) + + + + — +
    +

    Gift Card ID, e.g. e28zov4fw0v2.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4403
+4404
+4405
+4406
+
+
# File 'lib/recurly/client/operations.rb', line 4403
+
+def get_gift_card(gift_card_id:, **options)
+  path = interpolate_path("/gift_cards/{gift_card_id}", gift_card_id: gift_card_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_invoice(invoice_id:, **options) ⇒ Resources::Invoice + + + + + +

+
+ +

Fetch an invoice

+ +

get_invoice api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice = @client.get_invoice(invoice_id: invoice_id)
+  puts "Got invoice #{invoice}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2296
+2297
+2298
+2299
+
+
# File 'lib/recurly/client/operations.rb', line 2296
+
+def get_invoice(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}", invoice_id: invoice_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_invoice_pdf(invoice_id:, **options) ⇒ Resources::BinaryFile + + + + + +

+
+ +

Fetch an invoice as a PDF

+ +

get_invoice_pdf api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice = @client.get_invoice_pdf(invoice_id: invoice_id)
+  puts "Got invoice #{invoice}"
+  filename = "#{download_directory}/rubyinvoice-#{invoice_id}.pdf"
+  IO.write(filename, invoice.data)
+  puts "Saved Invoice PDF to #{filename}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2350
+2351
+2352
+2353
+
+
# File 'lib/recurly/client/operations.rb', line 2350
+
+def get_invoice_pdf(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}.pdf", invoice_id: invoice_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_invoice_template(invoice_template_id:, **options) ⇒ Resources::InvoiceTemplate + + + + + +

+
+ +

Fetch an invoice template

+ +

get_invoice_template api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + invoice_template_id + + + (String) + + + + — +
    +

    Invoice template ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4292
+4293
+4294
+4295
+
+
# File 'lib/recurly/client/operations.rb', line 4292
+
+def get_invoice_template(invoice_template_id:, **options)
+  path = interpolate_path("/invoice_templates/{invoice_template_id}", invoice_template_id: invoice_template_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_item(item_id:, **options) ⇒ Resources::Item + + + + + +

+
+ +

Fetch an item

+ +

get_item api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  item = @client.get_item(item_id: item_id)
+  puts "Got Item #{item}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + item_id + + + (String) + + + + — +
    +

    Item ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-red.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1968
+1969
+1970
+1971
+
+
# File 'lib/recurly/client/operations.rb', line 1968
+
+def get_item(item_id:, **options)
+  path = interpolate_path("/items/{item_id}", item_id: item_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_line_item(line_item_id:, **options) ⇒ Resources::LineItem + + + + + +

+
+ +

Fetch a line item

+ +

get_line_item api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  line_item = @client.get_line_item(line_item_id: line_item_id)
+  puts "Got LineItem #{line_item}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + line_item_id + + + (String) + + + + — +
    +

    Line Item ID.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2733
+2734
+2735
+2736
+
+
# File 'lib/recurly/client/operations.rb', line 2733
+
+def get_line_item(line_item_id:, **options)
+  path = interpolate_path("/line_items/{line_item_id}", line_item_id: line_item_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_measured_unit(measured_unit_id:, **options) ⇒ Resources::MeasuredUnit + + + + + +

+
+ +

Fetch a measured unit

+ +

get_measured_unit api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + measured_unit_id + + + (String) + + + + — +
    +

    Measured unit ID or name. For ID no prefix is used e.g. e28zov4fw0v2. For name use prefix name-, e.g. name-Storage.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2111
+2112
+2113
+2114
+
+
# File 'lib/recurly/client/operations.rb', line 2111
+
+def get_measured_unit(measured_unit_id:, **options)
+  path = interpolate_path("/measured_units/{measured_unit_id}", measured_unit_id: measured_unit_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_plan(plan_id:, **options) ⇒ Resources::Plan + + + + + +

+
+ +

Fetch a plan

+ +

get_plan api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  plan = @client.get_plan(plan_id: plan_id)
+  puts "Got plan #{plan}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + plan_id + + + (String) + + + + — +
    +

    Plan ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2867
+2868
+2869
+2870
+
+
# File 'lib/recurly/client/operations.rb', line 2867
+
+def get_plan(plan_id:, **options)
+  path = interpolate_path("/plans/{plan_id}", plan_id: plan_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_plan_add_on(plan_id:, add_on_id:, **options) ⇒ Resources::AddOn + + + + + +

+
+ +

Fetch a plan's add-on

+ +

get_plan_add_on api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  add_on = @client.get_plan_add_on(
+    plan_id: plan_id, add_on_id: add_on_id
+  )
+  puts "Got plan add-on #{add_on}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + plan_id + + + (String) + + + + — +
    +

    Plan ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + add_on_id + + + (String) + + + + — +
    +

    Add-on ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3028
+3029
+3030
+3031
+
+
# File 'lib/recurly/client/operations.rb', line 3028
+
+def get_plan_add_on(plan_id:, add_on_id:, **options)
+  path = interpolate_path("/plans/{plan_id}/add_ons/{add_on_id}", plan_id: plan_id, add_on_id: add_on_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_preview_renewal(subscription_id:, **options) ⇒ Resources::InvoiceCollection + + + + + +

+
+ +

Fetch a preview of a subscription's renewal invoice(s)

+ +

get_preview_renewal api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice_collection = @client.get_preview_renewal(
+    subscription_id: subscription_id
+  )
+  puts "Fetched Renewal Preview with total: #{invoice_collection.charge_invoice.total}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3583
+3584
+3585
+3586
+
+
# File 'lib/recurly/client/operations.rb', line 3583
+
+def get_preview_renewal(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/preview_renewal", subscription_id: subscription_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_shipping_address(account_id:, shipping_address_id:, **options) ⇒ Resources::ShippingAddress + + + + + +

+
+ +

Fetch an account's shipping address

+ +

get_shipping_address api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  address = @client.get_shipping_address(
+    account_id: ,
+    shipping_address_id: shipping_address_id
+  )
+  puts "Got ShippingAddress #{address}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + shipping_address_id + + + (String) + + + + — +
    +

    Shipping Address ID.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1215
+1216
+1217
+1218
+
+
# File 'lib/recurly/client/operations.rb', line 1215
+
+def get_shipping_address(account_id:, shipping_address_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/shipping_addresses/{shipping_address_id}", account_id: , shipping_address_id: shipping_address_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_shipping_method(shipping_method_id:, **options) ⇒ Resources::ShippingMethod + + + + + +

+
+ +

Fetch a shipping method

+ +

get_shipping_method api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + shipping_method_id + + + (String) + + + + — +
    +

    Shipping Method ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-usps_2-day.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3233
+3234
+3235
+3236
+
+
# File 'lib/recurly/client/operations.rb', line 3233
+
+def get_shipping_method(shipping_method_id:, **options)
+  path = interpolate_path("/shipping_methods/{shipping_method_id}", shipping_method_id: shipping_method_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_site(site_id:, **options) ⇒ Resources::Site + + + + + +

+
+ +

Fetch a site

+ +

get_site api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  site = @client.get_site(site_id: site_id)
+  puts "Got Site #{site}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + site_id + + + (String) + + + + — +
    +

    Site ID or subdomain. For ID no prefix is used e.g. e28zov4fw0v2. For subdomain use prefix subdomain-, e.g. subdomain-recurly.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+69
+70
+71
+72
+
+
# File 'lib/recurly/client/operations.rb', line 69
+
+def get_site(site_id:, **options)
+  path = interpolate_path("/sites/{site_id}", site_id: site_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_subscription(subscription_id:, **options) ⇒ Resources::Subscription + + + + + +

+
+ +

Fetch a subscription

+ +

get_subscription api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  subscription = @client.get_subscription(
+    subscription_id: subscription_id
+  )
+  puts "Got Subscription #{subscription}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3371
+3372
+3373
+3374
+
+
# File 'lib/recurly/client/operations.rb', line 3371
+
+def get_subscription(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}", subscription_id: subscription_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_subscription_change(subscription_id:, **options) ⇒ Resources::SubscriptionChange + + + + + +

+
+ +

Fetch a subscription's pending change

+ +

get_subscription_change api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  change = @client.get_subscription_change(
+    subscription_id: subscription_id
+  )
+  puts "Got SubscriptionChange #{change}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3608
+3609
+3610
+3611
+
+
# File 'lib/recurly/client/operations.rb', line 3608
+
+def get_subscription_change(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/change", subscription_id: subscription_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_transaction(transaction_id:, **options) ⇒ Resources::Transaction + + + + + +

+
+ +

Fetch a transaction

+ +

get_transaction api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  transaction = @client.get_transaction(transaction_id: transaction_id)
+  puts "Got Transaction #{transaction}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + transaction_id + + + (String) + + + + — +
    +

    Transaction ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4002
+4003
+4004
+4005
+
+
# File 'lib/recurly/client/operations.rb', line 4002
+
+def get_transaction(transaction_id:, **options)
+  path = interpolate_path("/transactions/{transaction_id}", transaction_id: transaction_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_unique_coupon_code(unique_coupon_code_id:, **options) ⇒ Resources::UniqueCouponCode + + + + + +

+
+ +

Fetch a unique coupon code

+ +

get_unique_coupon_code api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + unique_coupon_code_id + + + (String) + + + + — +
    +

    Unique Coupon Code ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-abc-8dh2-def.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4016
+4017
+4018
+4019
+
+
# File 'lib/recurly/client/operations.rb', line 4016
+
+def get_unique_coupon_code(unique_coupon_code_id:, **options)
+  path = interpolate_path("/unique_coupon_codes/{unique_coupon_code_id}", unique_coupon_code_id: unique_coupon_code_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #get_usage(usage_id:, **options) ⇒ Resources::Usage + + + + + +

+
+ +

Get a usage record

+ +

get_usage api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + usage_id + + + (String) + + + + — +
    +

    Usage Record ID.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3903
+3904
+3905
+3906
+
+
# File 'lib/recurly/client/operations.rb', line 3903
+
+def get_usage(usage_id:, **options)
+  path = interpolate_path("/usage/{usage_id}", usage_id: usage_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #list_account_acquisition(**options) ⇒ Pager<Resources::AccountAcquisition> + + + + + +

+
+ +

List a site's account acquisition data

+ +

list_account_acquisition api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+acquisitions = @client.(params: params)
+acquisitions.each do |acquisition|
+  puts "AccountAcquisition: #{acquisition.cost}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1481
+1482
+1483
+1484
+
+
# File 'lib/recurly/client/operations.rb', line 1481
+
+def (**options)
+  path = "/acquisitions"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_account_coupon_redemptions(account_id:, **options) ⇒ Pager<Resources::CouponRedemption> + + + + + +

+
+ +

List the coupon redemptions for an account

+ +

list_account_coupon_redemptions api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :state [String] Filter by state.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+redemptions = @client.(
+  account_id: ,
+  params: params
+)
+redemptions.each do |redemption|
+  puts "CouponRedemption: #{redemption.id}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+635
+636
+637
+638
+
+
# File 'lib/recurly/client/operations.rb', line 635
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/coupon_redemptions", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_account_credit_payments(account_id:, **options) ⇒ Pager<Resources::CreditPayment> + + + + + +

+
+ +

List an account's credit payments

+ +

list_account_credit_payments api documentation

+ +
order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+payments = @client.(
+  account_id: ,
+  params: params
+)
+payments.each do |payment|
+  puts "CreditPayment: #{payment.id}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :limit [Integer] Limit number of records 1-200. :order [String] Sort order. :sort [String] Sort field. You really only want to sort by updated_at in ascending

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+748
+749
+750
+751
+
+
# File 'lib/recurly/client/operations.rb', line 748
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/credit_payments", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_account_external_account(account_id:, **options) ⇒ Pager<Resources::ExternalAccount> + + + + + +

+
+ +

List external accounts for an account

+ +

list_account_external_account api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+762
+763
+764
+765
+
+
# File 'lib/recurly/client/operations.rb', line 762
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/external_accounts", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_account_external_invoices(account_id:, **options) ⇒ Pager<Resources::ExternalInvoice> + + + + + +

+
+ +

List the external invoices on an account

+ +

list_account_external_invoices api documentation

+ +
order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :sort [String] Sort field. You really only want to sort by updated_at in ascending

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+843
+844
+845
+846
+
+
# File 'lib/recurly/client/operations.rb', line 843
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/external_invoices", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_account_external_subscriptions(account_id:, **options) ⇒ Pager<Resources::ExternalSubscription> + + + + + +

+
+ +

List an account's external subscriptions

+ +

list_account_external_subscriptions api documentation

+ +
order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :sort [String] Sort field. You really only want to sort by updated_at in ascending

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4362
+4363
+4364
+4365
+
+
# File 'lib/recurly/client/operations.rb', line 4362
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/external_subscriptions", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_account_invoices(account_id:, **options) ⇒ Pager<Resources::Invoice> + + + + + +

+
+ +

List an account's invoices

+ +

list_account_invoices api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :type [String] Filter by type when:
+- +type=charge+, only charge invoices will be returned.
+- +type=credit+, only credit invoices will be returned.
+- +type=non-legacy+, only charge and credit invoices will be returned.
+- +type=legacy+, only legacy invoices will be returned.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+invoices = @client.(
+  account_id: ,
+  params: params
+)
+invoices.each do |invoice|
+  puts "Invoice: #{invoice.number}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+898
+899
+900
+901
+
+
# File 'lib/recurly/client/operations.rb', line 898
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/invoices", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_account_line_items(account_id:, **options) ⇒ Pager<Resources::LineItem> + + + + + +

+
+ +

List an account's line items

+ +

list_account_line_items api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :original [String] Filter by original field.
+     :state [String] Filter by state field.
+     :type [String] Filter by type field.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+line_items = @client.(
+  account_id: ,
+  params: params
+)
+line_items.each do |line_item|
+  puts "LineItem: #{line_item.id}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1012
+1013
+1014
+1015
+
+
# File 'lib/recurly/client/operations.rb', line 1012
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/line_items", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_account_notes(account_id:, **options) ⇒ Pager<Resources::AccountNote> + + + + + +

+
+ +

List an account's notes

+ +

list_account_notes api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+ = @client.(account_id: , params: params)
+.each do |note|
+  puts "AccountNote: #{note.message}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1078
+1079
+1080
+1081
+
+
# File 'lib/recurly/client/operations.rb', line 1078
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/notes", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_account_subscriptions(account_id:, **options) ⇒ Pager<Resources::Subscription> + + + + + +

+
+ +

List an account's subscriptions

+ +

list_account_subscriptions api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :state [String] Filter by state.
+
+- When +state=active+, +state=canceled+, +state=expired+, or +state=future+, subscriptions with states that match the query and only those subscriptions will be returned.
+- When +state=in_trial+, only subscriptions that have a trial_started_at date earlier than now and a trial_ends_at date later than now will be returned.
+- When +state=live+, only subscriptions that are in an active, canceled, or future state or are in trial will be returned.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+subscriptions = @client.(
+  account_id: ,
+  params: params
+)
+subscriptions.each do |subscription|
+  puts "Subscription: #{subscription.uuid}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1331
+1332
+1333
+1334
+
+
# File 'lib/recurly/client/operations.rb', line 1331
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/subscriptions", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_account_transactions(account_id:, **options) ⇒ Pager<Resources::Transaction> + + + + + +

+
+ +

List an account's transactions

+ +

list_account_transactions api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :type [String] Filter by type field. The value +payment+ will return both +purchase+ and +capture+ transactions.
+     :success [String] Filter by success field.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+transactions = @client.(
+  account_id: ,
+  params: params
+)
+transactions.each do |transaction|
+  puts "Transaction: #{transaction.uuid}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1382
+1383
+1384
+1385
+
+
# File 'lib/recurly/client/operations.rb', line 1382
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/transactions", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_accounts(**options) ⇒ Pager<Resources::Account> + + + + + +

+
+ +

List a site's accounts

+ +

list_accounts api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :email [String] Filter for accounts with this exact email address. A blank value will return accounts with both +null+ and +""+ email addresses. Note that multiple accounts can share one email address.
+     :subscriber [Boolean] Filter for accounts with or without a subscription in the +active+,
++canceled+, or +future+ state.
+
+     :past_due [String] Filter for accounts with an invoice in the +past_due+ state.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+accounts = @client.list_accounts(params: params)
+accounts.each do ||
+  puts "Account: #{.code}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+119
+120
+121
+122
+
+
# File 'lib/recurly/client/operations.rb', line 119
+
+def list_accounts(**options)
+  path = "/accounts"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_active_coupon_redemptions(account_id:, **options) ⇒ Pager<Resources::CouponRedemption> + + + + + +

+
+ +

List the coupon redemptions that are active on an account

+ +

list_active_coupon_redemptions api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+redemptions = @client.list_active_coupon_redemptions(account_id: , params: params)
+redemptions.each do |redemption|
+  puts "Redemption: #{redemption.id}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+657
+658
+659
+660
+
+
# File 'lib/recurly/client/operations.rb', line 657
+
+def list_active_coupon_redemptions(account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/coupon_redemptions/active", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_add_ons(**options) ⇒ Pager<Resources::AddOn> + + + + + +

+
+ +

List a site's add-ons

+ +

list_add_ons api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :state [String] Filter by state.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+add_ons = @client.list_add_ons(
+  params: params
+)
+add_ons.each do |add_on|
+  puts "AddOn: #{add_on.code}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3135
+3136
+3137
+3138
+
+
# File 'lib/recurly/client/operations.rb', line 3135
+
+def list_add_ons(**options)
+  path = "/add_ons"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_billing_infos(account_id:, **options) ⇒ Pager<Resources::BillingInfo> + + + + + +

+
+ +

Get the list of billing information associated with an account

+ +

list_billing_infos api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+526
+527
+528
+529
+
+
# File 'lib/recurly/client/operations.rb', line 526
+
+def list_billing_infos(account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/billing_infos", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_child_accounts(account_id:, **options) ⇒ Pager<Resources::Account> + + + + + +

+
+ +

List an account's child accounts

+ +

list_child_accounts api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :email [String] Filter for accounts with this exact email address. A blank value will return accounts with both +null+ and +""+ email addresses. Note that multiple accounts can share one email address.
+     :subscriber [Boolean] Filter for accounts with or without a subscription in the +active+,
++canceled+, or +future+ state.
+
+     :past_due [String] Filter for accounts with an invoice in the +past_due+ state.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+child_accounts = @client.list_child_accounts(
+  account_id: ,
+  params: params
+)
+child_accounts.each do |child|
+  puts "Account: #{child.code}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1436
+1437
+1438
+1439
+
+
# File 'lib/recurly/client/operations.rb', line 1436
+
+def list_child_accounts(account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/accounts", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_coupons(**options) ⇒ Pager<Resources::Coupon> + + + + + +

+
+ +

List a site's coupons

+ +

list_coupons api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+coupons = @client.list_coupons(params: params)
+coupons.each do |coupon|
+  puts "coupon: #{coupon.code}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1526
+1527
+1528
+1529
+
+
# File 'lib/recurly/client/operations.rb', line 1526
+
+def list_coupons(**options)
+  path = "/coupons"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_credit_payments(**options) ⇒ Pager<Resources::CreditPayment> + + + + + +

+
+ +

List a site's credit payments

+ +

list_credit_payments api documentation

+ +
order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+payments = @client.list_credit_payments(params: params)
+payments.each do |payment|
+  puts "CreditPayment: #{payment.id}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :limit [Integer] Limit number of records 1-200. :order [String] Sort order. :sort [String] Sort field. You really only want to sort by updated_at in ascending

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1736
+1737
+1738
+1739
+
+
# File 'lib/recurly/client/operations.rb', line 1736
+
+def list_credit_payments(**options)
+  path = "/credit_payments"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_custom_field_definitions(**options) ⇒ Pager<Resources::CustomFieldDefinition> + + + + + +

+
+ +

List a site's custom field definitions

+ +

list_custom_field_definitions api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :related_type [String] Filter by related type.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+custom_fields = @client.list_custom_field_definitions(params: params)
+custom_fields.each do |field|
+  puts "CustomFieldDefinition: #{field.name}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1796
+1797
+1798
+1799
+
+
# File 'lib/recurly/client/operations.rb', line 1796
+
+def list_custom_field_definitions(**options)
+  path = "/custom_field_definitions"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_dunning_campaigns(**options) ⇒ Pager<Resources::DunningCampaign> + + + + + +

+
+ +

List the dunning campaigns for a site

+ +

list_dunning_campaigns api documentation

+ +
order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :sort [String] Sort field. You really only want to sort by updated_at in ascending

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4232
+4233
+4234
+4235
+
+
# File 'lib/recurly/client/operations.rb', line 4232
+
+def list_dunning_campaigns(**options)
+  path = "/dunning_campaigns"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_entitlements(account_id:, **options) ⇒ Pager<Resources::Entitlements> + + + + + +

+
+ +

List entitlements granted to an account

+ +

list_entitlements api documentation

+ +
- When +state=active+, +state=canceled+, +state=expired+, or +state=future+, subscriptions with states that match the query and only those subscriptions will be returned.
+- When no state is provided, subscriptions with active or canceled states will be returned.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :state [String] Filter the entitlements based on the state of the applicable subscription.

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4344
+4345
+4346
+4347
+
+
# File 'lib/recurly/client/operations.rb', line 4344
+
+def list_entitlements(account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/entitlements", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_external_invoices(**options) ⇒ Pager<Resources::ExternalInvoice> + + + + + +

+
+ +

List the external invoices on a site

+ +

list_external_invoices api documentation

+ +
order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :sort [String] Sort field. You really only want to sort by updated_at in ascending

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4311
+4312
+4313
+4314
+
+
# File 'lib/recurly/client/operations.rb', line 4311
+
+def list_external_invoices(**options)
+  path = "/external_invoices"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_external_products(**options) ⇒ Pager<Resources::ExternalProduct> + + + + + +

+
+ +

List a site's external products

+ +

list_external_products api documentation

+ +
order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :sort [String] Sort field. You really only want to sort by updated_at in ascending

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2157
+2158
+2159
+2160
+
+
# File 'lib/recurly/client/operations.rb', line 2157
+
+def list_external_products(**options)
+  path = "/external_products"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_external_subscription_external_invoices(external_subscription_id:, **options) ⇒ Pager<Resources::ExternalInvoice> + + + + + +

+
+ +

List the external invoices on an external subscription

+ +

list_external_subscription_external_invoices api documentation

+ +
order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + external_subscription_id + + + (String) + + + + — +
    +

    External subscription id

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :sort [String] Sort field. You really only want to sort by updated_at in ascending

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2222
+2223
+2224
+2225
+
+
# File 'lib/recurly/client/operations.rb', line 2222
+
+def list_external_subscription_external_invoices(external_subscription_id:, **options)
+  path = interpolate_path("/external_subscriptions/{external_subscription_id}/external_invoices", external_subscription_id: external_subscription_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_external_subscriptions(**options) ⇒ Pager<Resources::ExternalSubscription> + + + + + +

+
+ +

List a site's external subscriptions

+ +

list_external_subscriptions api documentation

+ +
order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :sort [String] Sort field. You really only want to sort by updated_at in ascending

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2188
+2189
+2190
+2191
+
+
# File 'lib/recurly/client/operations.rb', line 2188
+
+def list_external_subscriptions(**options)
+  path = "/external_subscriptions"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_gift_cards(**options) ⇒ Pager<Resources::GiftCard> + + + + + +

+
+ +

List gift cards

+ +

list_gift_cards api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4375
+4376
+4377
+4378
+
+
# File 'lib/recurly/client/operations.rb', line 4375
+
+def list_gift_cards(**options)
+  path = "/gift_cards"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_invoice_coupon_redemptions(invoice_id:, **options) ⇒ Pager<Resources::CouponRedemption> + + + + + +

+
+ +

List the coupon redemptions applied to an invoice

+ +

list_invoice_coupon_redemptions api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+coupon_redemptions = @client.list_invoice_coupon_redemptions(
+  invoice_id: invoice_id,
+  params: params
+)
+coupon_redemptions.each do |redemption|
+  puts "CouponRedemption: #{redemption.id}"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2604
+2605
+2606
+2607
+
+
# File 'lib/recurly/client/operations.rb', line 2604
+
+def list_invoice_coupon_redemptions(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/coupon_redemptions", invoice_id: invoice_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_invoice_line_items(invoice_id:, **options) ⇒ Pager<Resources::LineItem> + + + + + +

+
+ +

List an invoice's line items

+ +

list_invoice_line_items api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :original [String] Filter by original field.
+     :state [String] Filter by state field.
+     :type [String] Filter by type field.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+line_items = @client.list_invoice_line_items(
+  invoice_id: invoice_id,
+  params: params
+)
+line_items.each do |line_item|
+  puts "Line Item: #{line_item.id}"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2557
+2558
+2559
+2560
+
+
# File 'lib/recurly/client/operations.rb', line 2557
+
+def list_invoice_line_items(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/line_items", invoice_id: invoice_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_invoice_template_accounts(invoice_template_id:, **options) ⇒ Pager<Resources::Account> + + + + + +

+
+ +

List an invoice template's associated accounts

+ +

list_invoice_template_accounts api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :email [String] Filter for accounts with this exact email address. A blank value will return accounts with both +null+ and +""+ email addresses. Note that multiple accounts can share one email address.
+     :subscriber [Boolean] Filter for accounts with or without a subscription in the +active+,
++canceled+, or +future+ state.
+
+     :past_due [String] Filter for accounts with an invoice in the +past_due+ state.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + invoice_template_id + + + (String) + + + + — +
    +

    Invoice template ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Pager<Resources::Account>) + + + + — +
    +

    A list of an invoice template's associated accounts.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+1864
+1865
+1866
+1867
+
+
# File 'lib/recurly/client/operations.rb', line 1864
+
+def list_invoice_template_accounts(invoice_template_id:, **options)
+  path = interpolate_path("/invoice_templates/{invoice_template_id}/accounts", invoice_template_id: invoice_template_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_invoice_templates(**options) ⇒ Pager<Resources::InvoiceTemplate> + + + + + +

+
+ +

Show the invoice templates for a site

+ +

list_invoice_templates api documentation

+ +
order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :sort [String] Sort field. You really only want to sort by updated_at in ascending

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4278
+4279
+4280
+4281
+
+
# File 'lib/recurly/client/operations.rb', line 4278
+
+def list_invoice_templates(**options)
+  path = "/invoice_templates"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_invoices(**options) ⇒ Pager<Resources::Invoice> + + + + + +

+
+ +

List a site's invoices

+ +

list_invoices api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :type [String] Filter by type when:
+- +type=charge+, only charge invoices will be returned.
+- +type=credit+, only credit invoices will be returned.
+- +type=non-legacy+, only charge and credit invoices will be returned.
+- +type=legacy+, only legacy invoices will be returned.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+invoices = @client.list_invoices(params: params)
+invoices.each do |invoice|
+  puts "Invoice: #{invoice.number}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2273
+2274
+2275
+2276
+
+
# File 'lib/recurly/client/operations.rb', line 2273
+
+def list_invoices(**options)
+  path = "/invoices"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_items(**options) ⇒ Pager<Resources::Item> + + + + + +

+
+ +

List a site's items

+ +

list_items api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :state [String] Filter by state.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+items = @client.list_items(params: params)
+items.each do |item|
+  puts "Item: #{item.code}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1910
+1911
+1912
+1913
+
+
# File 'lib/recurly/client/operations.rb', line 1910
+
+def list_items(**options)
+  path = "/items"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_line_items(**options) ⇒ Pager<Resources::LineItem> + + + + + +

+
+ +

List a site's line items

+ +

list_line_items api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :original [String] Filter by original field.
+     :state [String] Filter by state field.
+     :type [String] Filter by type field.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+line_items = @client.list_line_items(
+  params: params
+)
+line_items.each do |line_item|
+  puts "LineItem: #{line_item.id}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2710
+2711
+2712
+2713
+
+
# File 'lib/recurly/client/operations.rb', line 2710
+
+def list_line_items(**options)
+  path = "/line_items"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_measured_unit(**options) ⇒ Pager<Resources::MeasuredUnit> + + + + + +

+
+ +

List a site's measured units

+ +

list_measured_unit api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :state [String] Filter by state.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2083
+2084
+2085
+2086
+
+
# File 'lib/recurly/client/operations.rb', line 2083
+
+def list_measured_unit(**options)
+  path = "/measured_units"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_plan_add_ons(plan_id:, **options) ⇒ Pager<Resources::AddOn> + + + + + +

+
+ +

List a plan's add-ons

+ +

list_plan_add_ons api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :state [String] Filter by state.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+add_ons = @client.list_plan_add_ons(
+  plan_id: plan_id,
+  params: params
+)
+add_ons.each do |add_on|
+  puts "AddOn: #{add_on.code}"
+end
+ +
+

Parameters:

+
    + +
  • + + plan_id + + + (String) + + + + — +
    +

    Plan ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2967
+2968
+2969
+2970
+
+
# File 'lib/recurly/client/operations.rb', line 2967
+
+def list_plan_add_ons(plan_id:, **options)
+  path = interpolate_path("/plans/{plan_id}/add_ons", plan_id: plan_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_plans(**options) ⇒ Pager<Resources::Plan> + + + + + +

+
+ +

List a site's plans

+ +

list_plans api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :state [String] Filter by state.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+plans = @client.list_plans(params: params)
+plans.each do |plan|
+  puts "Plan: #{plan.code}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2804
+2805
+2806
+2807
+
+
# File 'lib/recurly/client/operations.rb', line 2804
+
+def list_plans(**options)
+  path = "/plans"
+  pager(path, **options)
+end
+
+
+ +
+
+
+ +

List an invoice's related credit or charge invoices

+ +

list_related_invoices api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+invoices = @client.list_related_invoices(
+  invoice_id: invoice_id,
+  params: params
+)
+invoices.each do |invoice|
+  puts "Invoice: #{invoice.number}"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Pager<Resources::Invoice>) + + + + — +
    +

    A list of the credit or charge invoices associated with the invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+2629
+2630
+2631
+2632
+
+
# File 'lib/recurly/client/operations.rb', line 2629
+
+def list_related_invoices(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/related_invoices", invoice_id: invoice_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_shipping_addresses(account_id:, **options) ⇒ Pager<Resources::ShippingAddress> + + + + + +

+
+ +

Fetch a list of an account's shipping addresses

+ +

list_shipping_addresses api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+shipping_addresses = @client.list_shipping_addresses(
+  account_id: ,
+  params: params
+)
+shipping_addresses.each do |addr|
+  puts "ShippingAddress: #{addr.nickname} - #{addr.street1}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1154
+1155
+1156
+1157
+
+
# File 'lib/recurly/client/operations.rb', line 1154
+
+def list_shipping_addresses(account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/shipping_addresses", account_id: )
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_shipping_methods(**options) ⇒ Pager<Resources::ShippingMethod> + + + + + +

+
+ +

List a site's shipping methods

+ +

list_shipping_methods api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+shipping_methods = @client.list_shipping_methods(
+  params: params
+)
+shipping_methods.each do |shipping_method|
+  puts "Shipping Method: #{shipping_method.code}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3205
+3206
+3207
+3208
+
+
# File 'lib/recurly/client/operations.rb', line 3205
+
+def list_shipping_methods(**options)
+  path = "/shipping_methods"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_sites(**options) ⇒ Pager<Resources::Site> + + + + + +

+
+ +

List sites

+ +

list_sites api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :state [String] Filter by state.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+sites = @client.list_sites(params: params)
+sites.each do |site|
+  puts "Site: #{site.subdomain}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+46
+47
+48
+49
+
+
# File 'lib/recurly/client/operations.rb', line 46
+
+def list_sites(**options)
+  path = "/sites"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_subscription_coupon_redemptions(subscription_id:, **options) ⇒ Pager<Resources::CouponRedemption> + + + + + +

+
+ +

List the coupon redemptions for a subscription

+ +

list_subscription_coupon_redemptions api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+coupon_redemptions = @client.list_subscription_coupon_redemptions(
+  subscription_id: subscription_id,
+  params: params
+)
+coupon_redemptions.each do |redemption|
+  puts "CouponRedemption: #{redemption.id}"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3833
+3834
+3835
+3836
+
+
# File 'lib/recurly/client/operations.rb', line 3833
+
+def list_subscription_coupon_redemptions(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/coupon_redemptions", subscription_id: subscription_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_subscription_invoices(subscription_id:, **options) ⇒ Pager<Resources::Invoice> + + + + + +

+
+ +

List a subscription's invoices

+ +

list_subscription_invoices api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :type [String] Filter by type when:
+- +type=charge+, only charge invoices will be returned.
+- +type=credit+, only credit invoices will be returned.
+- +type=non-legacy+, only charge and credit invoices will be returned.
+- +type=legacy+, only legacy invoices will be returned.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+invoices = @client.list_subscription_invoices(
+  subscription_id: subscription_id,
+  params: params
+)
+invoices.each do |invoice|
+  puts "Invoice: #{invoice.number}"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3734
+3735
+3736
+3737
+
+
# File 'lib/recurly/client/operations.rb', line 3734
+
+def list_subscription_invoices(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/invoices", subscription_id: subscription_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_subscription_line_items(subscription_id:, **options) ⇒ Pager<Resources::LineItem> + + + + + +

+
+ +

List a subscription's line items

+ +

list_subscription_line_items api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :original [String] Filter by original field.
+     :state [String] Filter by state field.
+     :type [String] Filter by type field.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+line_items = @client.list_subscription_line_items(
+  subscription_id: subscription_id,
+  params: params
+)
+line_items.each do |line_item|
+  puts "LineItem: #{line_item.id}"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3786
+3787
+3788
+3789
+
+
# File 'lib/recurly/client/operations.rb', line 3786
+
+def list_subscription_line_items(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/line_items", subscription_id: subscription_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_subscriptions(**options) ⇒ Pager<Resources::Subscription> + + + + + +

+
+ +

List a site's subscriptions

+ +

list_subscriptions api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :state [String] Filter by state.
+
+- When +state=active+, +state=canceled+, +state=expired+, or +state=future+, subscriptions with states that match the query and only those subscriptions will be returned.
+- When +state=in_trial+, only subscriptions that have a trial_started_at date earlier than now and a trial_ends_at date later than now will be returned.
+- When +state=live+, only subscriptions that are in an active, canceled, or future state or are in trial will be returned.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+subscriptions = @client.list_subscriptions(params: params)
+subscriptions.each do |subscription|
+  puts "Subscription: #{subscription.uuid}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3313
+3314
+3315
+3316
+
+
# File 'lib/recurly/client/operations.rb', line 3313
+
+def list_subscriptions(**options)
+  path = "/subscriptions"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_transactions(**options) ⇒ Pager<Resources::Transaction> + + + + + +

+
+ +

List a site's transactions

+ +

list_transactions api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :type [String] Filter by type field. The value +payment+ will return both +purchase+ and +capture+ transactions.
+     :success [String] Filter by success field.
+
+ + +
+
+
+ +
+

Examples:

+ + +
params = {
+  limit: 200
+}
+transactions = @client.list_transactions(params: params)
+transactions.each do |transaction|
+  puts "Transaction: #{transaction.uuid}"
+end
+ +
+

Parameters:

+
    + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3979
+3980
+3981
+3982
+
+
# File 'lib/recurly/client/operations.rb', line 3979
+
+def list_transactions(**options)
+  path = "/transactions"
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_unique_coupon_codes(coupon_id:, **options) ⇒ Pager<Resources::UniqueCouponCode> + + + + + +

+
+ +

List unique coupon codes associated with a bulk coupon

+ +

list_unique_coupon_codes api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=created_at+ or +sort=updated_at+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + coupon_id + + + (String) + + + + — +
    +

    Coupon ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-10off.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1703
+1704
+1705
+1706
+
+
# File 'lib/recurly/client/operations.rb', line 1703
+
+def list_unique_coupon_codes(coupon_id:, **options)
+  path = interpolate_path("/coupons/{coupon_id}/unique_coupon_codes", coupon_id: coupon_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #list_usage(subscription_id:, add_on_id:, **options) ⇒ Pager<Resources::Usage> + + + + + +

+
+ +

List a subscription add-on's usage records

+ +

list_usage api documentation

+ +
commas as separators, e.g. +ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6+.
+
+*Important notes:*
+
+* The +ids+ parameter cannot be used with any other ordering or filtering
+  parameters (+limit+, +order+, +sort+, +begin_time+, +end_time+, etc)
+* Invalid or unknown IDs will be ignored, so you should check that the
+  results correspond to your request.
+* Records are returned in an arbitrary order. Since results are all
+  returned at once you can sort the records yourself.
+
+     :limit [Integer] Limit number of records 1-200.
+     :order [String] Sort order.
+     :sort [String] Sort field. You *really* only want to sort by +usage_timestamp+ in ascending
+order. In descending order updated records will move behind the cursor and could
+prevent some records from being returned.
+
+     :begin_time [DateTime] Inclusively filter by begin_time when +sort=usage_timestamp+ or +sort=recorded_timestamp+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :end_time [DateTime] Inclusively filter by end_time when +sort=usage_timestamp+ or +sort=recorded_timestamp+.
+*Note:* this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.
+
+     :billing_status [String] Filter by usage record's billing status
+
+ + +
+
+
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + add_on_id + + + (String) + + + + — +
    +

    Add-on ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :ids [String] Filter results by their IDs. Up to 200 IDs can be passed at once using

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Pager<Resources::Usage>) + + + + — +
    +

    A list of the subscription add-on's usage records.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+3873
+3874
+3875
+3876
+
+
# File 'lib/recurly/client/operations.rb', line 3873
+
+def list_usage(subscription_id:, add_on_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/add_ons/{add_on_id}/usage", subscription_id: subscription_id, add_on_id: add_on_id)
+  pager(path, **options)
+end
+
+
+ +
+

+ + #mark_invoice_failed(invoice_id:, **options) ⇒ Resources::Invoice + + + + + +

+
+ +

Mark an open invoice as failed

+ +

mark_invoice_failed api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice = @client.mark_invoice_failed(invoice_id: invoice_id)
+  puts "Failed invoice #{invoice}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2421
+2422
+2423
+2424
+
+
# File 'lib/recurly/client/operations.rb', line 2421
+
+def mark_invoice_failed(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/mark_failed", invoice_id: invoice_id)
+  put(path, **options)
+end
+
+
+ +
+

+ + #mark_invoice_successful(invoice_id:, **options) ⇒ Resources::Invoice + + + + + +

+
+ +

Mark an open invoice as successful

+ +

mark_invoice_successful api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice = @client.mark_invoice_successful(invoice_id: invoice_id)
+  puts "Marked invoice sucessful #{invoice}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2444
+2445
+2446
+2447
+
+
# File 'lib/recurly/client/operations.rb', line 2444
+
+def mark_invoice_successful(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/mark_successful", invoice_id: invoice_id)
+  put(path, **options)
+end
+
+
+ +
+

+ + #pause_subscription(subscription_id:, body:, **options) ⇒ Resources::Subscription + + + + + +

+
+ +

Pause subscription

+ +

pause_subscription api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  subscription_pause = {
+    remaining_pause_cycles: 10
+  }
+  subscription = @client.pause_subscription(
+    subscription_id: subscription_id,
+    body: subscription_pause
+  )
+  puts "Paused Subscription #{subscription}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + body + + + (Requests::SubscriptionPause) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::SubscriptionPause

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3519
+3520
+3521
+3522
+
+
# File 'lib/recurly/client/operations.rb', line 3519
+
+def pause_subscription(subscription_id:, body:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/pause", subscription_id: subscription_id)
+  put(path, body, Requests::SubscriptionPause, **options)
+end
+
+
+ +
+

+ + #preview_gift_card(body:, **options) ⇒ Resources::GiftCard + + + + + +

+
+ +

Preview gift card

+ +

preview_gift_card api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + body + + + (Requests::GiftCardCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::GiftCardCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4417
+4418
+4419
+4420
+
+
# File 'lib/recurly/client/operations.rb', line 4417
+
+def preview_gift_card(body:, **options)
+  path = "/gift_cards/preview"
+  post(path, body, Requests::GiftCardCreate, **options)
+end
+
+
+ +
+

+ + #preview_invoice(account_id:, body:, **options) ⇒ Resources::InvoiceCollection + + + + + +

+
+ +

Preview new invoice for pending line items

+ +

preview_invoice api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice_preview = {
+    currency: "USD",
+    collection_method: "automatic"
+  }
+  collection = @client.create_invoice(
+    account_id: ,
+    body: invoice_preview
+  )
+  puts "Created InvoiceCollection #{collection}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::InvoiceCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::InvoiceCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+960
+961
+962
+963
+
+
# File 'lib/recurly/client/operations.rb', line 960
+
+def preview_invoice(account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/invoices/preview", account_id: )
+  post(path, body, Requests::InvoiceCreate, **options)
+end
+
+
+ +
+

+ + #preview_purchase(body:, **options) ⇒ Resources::InvoiceCollection + + + + + +

+
+ +

Preview a new purchase

+ +

preview_purchase api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  purchase = {
+    currency: "USD",
+    account: {
+      code: ,
+      first_name: "Benjamin",
+      last_name: "Du Monde",
+      billing_info: {
+        token_id: rjs_token_id
+      },
+    },
+    subscriptions: [
+      { plan_code: plan_code }
+    ]
+  }
+  invoice_collection = @client.preview_purchase(
+    body: purchase
+  )
+  puts "Preview Charge Invoice #{invoice_collection.charge_invoice}"
+  puts "Preview Credit Invoices #{invoice_collection.credit_invoices}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + body + + + (Requests::PurchaseCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::PurchaseCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4124
+4125
+4126
+4127
+
+
# File 'lib/recurly/client/operations.rb', line 4124
+
+def preview_purchase(body:, **options)
+  path = "/purchases/preview"
+  post(path, body, Requests::PurchaseCreate, **options)
+end
+
+
+ +
+

+ + #preview_subscription_change(subscription_id:, body:, **options) ⇒ Resources::SubscriptionChange + + + + + +

+
+ +

Preview a new subscription change

+ +

preview_subscription_change api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + body + + + (Requests::SubscriptionChangeCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::SubscriptionChangeCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3679
+3680
+3681
+3682
+
+
# File 'lib/recurly/client/operations.rb', line 3679
+
+def preview_subscription_change(subscription_id:, body:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/change/preview", subscription_id: subscription_id)
+  post(path, body, Requests::SubscriptionChangeCreate, **options)
+end
+
+
+ +
+

+ + #put_dunning_campaign_bulk_update(dunning_campaign_id:, body:, **options) ⇒ Resources::DunningCampaignsBulkUpdateResponse + + + + + +

+
+ +

Assign a dunning campaign to multiple plans

+ +

put_dunning_campaign_bulk_update api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + dunning_campaign_id + + + (String) + + + + — +
    +

    Dunning Campaign ID, e.g. e28zov4fw0v2.

    +
    + +
  • + +
  • + + body + + + (Requests::DunningCampaignsBulkUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::DunningCampaignsBulkUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4261
+4262
+4263
+4264
+
+
# File 'lib/recurly/client/operations.rb', line 4261
+
+def put_dunning_campaign_bulk_update(dunning_campaign_id:, body:, **options)
+  path = interpolate_path("/dunning_campaigns/{dunning_campaign_id}/bulk_update", dunning_campaign_id: dunning_campaign_id)
+  put(path, body, Requests::DunningCampaignsBulkUpdate, **options)
+end
+
+
+ +
+

+ + #reactivate_account(account_id:, **options) ⇒ Resources::Account + + + + + +

+
+ +

Reactivate an inactive account

+ +

reactivate_account api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+   = @client.(account_id: )
+  puts "Reactivated account #{}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+351
+352
+353
+354
+
+
# File 'lib/recurly/client/operations.rb', line 351
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/reactivate", account_id: )
+  put(path, **options)
+end
+
+
+ +
+

+ + #reactivate_item(item_id:, **options) ⇒ Resources::Item + + + + + +

+
+ +

Reactivate an inactive item

+ +

reactivate_item api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  item = @client.reactivate_item(item_id: item_id)
+  puts "Reactivated Item #{item}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + item_id + + + (String) + + + + — +
    +

    Item ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-red.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2045
+2046
+2047
+2048
+
+
# File 'lib/recurly/client/operations.rb', line 2045
+
+def reactivate_item(item_id:, **options)
+  path = interpolate_path("/items/{item_id}/reactivate", item_id: item_id)
+  put(path, **options)
+end
+
+
+ +
+

+ + #reactivate_subscription(subscription_id:, **options) ⇒ Resources::Subscription + + + + + +

+
+ +

Reactivate a canceled subscription

+ +

reactivate_subscription api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  subscription = @client.reactivate_subscription(
+    subscription_id: subscription_id
+  )
+  puts "Reactivated Canceled Subscription #{subscription}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3489
+3490
+3491
+3492
+
+
# File 'lib/recurly/client/operations.rb', line 3489
+
+def reactivate_subscription(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/reactivate", subscription_id: subscription_id)
+  put(path, **options)
+end
+
+
+ +
+

+ + #reactivate_unique_coupon_code(unique_coupon_code_id:, **options) ⇒ Resources::UniqueCouponCode + + + + + +

+
+ +

Restore a unique coupon code

+ +

reactivate_unique_coupon_code api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + unique_coupon_code_id + + + (String) + + + + — +
    +

    Unique Coupon Code ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-abc-8dh2-def.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4044
+4045
+4046
+4047
+
+
# File 'lib/recurly/client/operations.rb', line 4044
+
+def reactivate_unique_coupon_code(unique_coupon_code_id:, **options)
+  path = interpolate_path("/unique_coupon_codes/{unique_coupon_code_id}/restore", unique_coupon_code_id: unique_coupon_code_id)
+  put(path, **options)
+end
+
+
+ +
+

+ + #record_external_transaction(invoice_id:, body:, **options) ⇒ Resources::Transaction + + + + + +

+
+ +

Record an external payment for a manual invoices.

+ +

record_external_transaction api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + body + + + (Requests::ExternalTransaction) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::ExternalTransaction

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2505
+2506
+2507
+2508
+
+
# File 'lib/recurly/client/operations.rb', line 2505
+
+def record_external_transaction(invoice_id:, body:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/transactions", invoice_id: invoice_id)
+  post(path, body, Requests::ExternalTransaction, **options)
+end
+
+
+ +
+

+ + #redeem_gift_card(redemption_code:, body:, **options) ⇒ Resources::GiftCard + + + + + +

+
+ +

Redeem gift card

+ +

redeem_gift_card api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + redemption_code + + + (String) + + + + — +
    +

    Gift Card redemption code, e.g., N1A2T8IRXSCMO40V.

    +
    + +
  • + +
  • + + body + + + (Requests::GiftCardRedeem) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::GiftCardRedeem

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4432
+4433
+4434
+4435
+
+
# File 'lib/recurly/client/operations.rb', line 4432
+
+def redeem_gift_card(redemption_code:, body:, **options)
+  path = interpolate_path("/gift_cards/{redemption_code}/redeem", redemption_code: redemption_code)
+  post(path, body, Requests::GiftCardRedeem, **options)
+end
+
+
+ +
+

+ + #refund_invoice(invoice_id:, body:, **options) ⇒ Resources::Invoice + + + + + +

+
+ +

Refund an invoice

+ +

refund_invoice api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice_refund = {
+    type: "amount",
+    amount: 100,
+  }
+  invoice = @client.refund_invoice(
+    invoice_id: invoice_id,
+    body: invoice_refund
+  )
+  puts "Refunded invoice #{invoice}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + body + + + (Requests::InvoiceRefund) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::InvoiceRefund

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2660
+2661
+2662
+2663
+
+
# File 'lib/recurly/client/operations.rb', line 2660
+
+def refund_invoice(invoice_id:, body:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/refund", invoice_id: invoice_id)
+  post(path, body, Requests::InvoiceRefund, **options)
+end
+
+
+ +
+

+ + #remove_a_billing_info(account_id:, billing_info_id:, **options) ⇒ Resources::Empty + + + + + +

+
+ +

Remove an account's billing information

+ +

remove_a_billing_info api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + billing_info_id + + + (String) + + + + — +
    +

    Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Resources::Empty) + + + + — +
    +

    Billing information deleted

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+587
+588
+589
+590
+
+
# File 'lib/recurly/client/operations.rb', line 587
+
+def remove_a_billing_info(account_id:, billing_info_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/billing_infos/{billing_info_id}", account_id: , billing_info_id: billing_info_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #remove_account_acquisition(account_id:, **options) ⇒ Resources::Empty + + + + + +

+
+ +

Remove an account's acquisition data

+ +

remove_account_acquisition api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  acquisition = @client.(account_id: )
+  puts "Removed AccountAcqusition #{acquisition}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Resources::Empty) + + + + — +
    +

    Acquisition data was succesfully deleted.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+328
+329
+330
+331
+
+
# File 'lib/recurly/client/operations.rb', line 328
+
+def (account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/acquisition", account_id: )
+  delete(path, **options)
+end
+
+
+ +
+

+ + #remove_billing_info(account_id:, **options) ⇒ Resources::Empty + + + + + +

+
+ +

Remove an account's billing information

+ +

remove_billing_info api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  @client.remove_billing_info(account_id: )
+  puts "Removed BillingInfo #{}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Resources::Empty) + + + + — +
    +

    Billing information deleted

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+451
+452
+453
+454
+
+
# File 'lib/recurly/client/operations.rb', line 451
+
+def remove_billing_info(account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/billing_info", account_id: )
+  delete(path, **options)
+end
+
+
+ +
+

+ + #remove_coupon_redemption(account_id:, **options) ⇒ Resources::CouponRedemption + + + + + +

+
+ +

Delete the active coupon redemption from an account

+ +

remove_coupon_redemption api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  @client.remove_coupon_redemption(account_id: )
+  puts "Removed CouponRedemption #{}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+711
+712
+713
+714
+
+
# File 'lib/recurly/client/operations.rb', line 711
+
+def remove_coupon_redemption(account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/coupon_redemptions/active", account_id: )
+  delete(path, **options)
+end
+
+
+ +
+

+ + #remove_line_item(line_item_id:, **options) ⇒ Resources::Empty + + + + + +

+
+ +

Delete an uninvoiced line item

+ +

remove_line_item api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  @client.remove_line_item(
+    line_item_id: line_item_id
+  )
+  puts "Removed LineItem #{line_item_id}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + line_item_id + + + (String) + + + + — +
    +

    Line Item ID.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2758
+2759
+2760
+2761
+
+
# File 'lib/recurly/client/operations.rb', line 2758
+
+def remove_line_item(line_item_id:, **options)
+  path = interpolate_path("/line_items/{line_item_id}", line_item_id: line_item_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #remove_measured_unit(measured_unit_id:, **options) ⇒ Resources::MeasuredUnit + + + + + +

+
+ +

Remove a measured unit

+ +

remove_measured_unit api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + measured_unit_id + + + (String) + + + + — +
    +

    Measured unit ID or name. For ID no prefix is used e.g. e28zov4fw0v2. For name use prefix name-, e.g. name-Storage.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2140
+2141
+2142
+2143
+
+
# File 'lib/recurly/client/operations.rb', line 2140
+
+def remove_measured_unit(measured_unit_id:, **options)
+  path = interpolate_path("/measured_units/{measured_unit_id}", measured_unit_id: measured_unit_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #remove_plan(plan_id:, **options) ⇒ Resources::Plan + + + + + +

+
+ +

Remove a plan

+ +

remove_plan api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  plan = @client.remove_plan(plan_id: plan_id)
+  puts "Removed plan #{plan}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + plan_id + + + (String) + + + + — +
    +

    Plan ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2917
+2918
+2919
+2920
+
+
# File 'lib/recurly/client/operations.rb', line 2917
+
+def remove_plan(plan_id:, **options)
+  path = interpolate_path("/plans/{plan_id}", plan_id: plan_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #remove_plan_add_on(plan_id:, add_on_id:, **options) ⇒ Resources::AddOn + + + + + +

+
+ +

Remove an add-on

+ +

remove_plan_add_on api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  add_on = @client.remove_plan_add_on(
+    plan_id: plan_id,
+    add_on_id: add_on_id
+  )
+  puts "Removed add-on #{add_on}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + plan_id + + + (String) + + + + — +
    +

    Plan ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + add_on_id + + + (String) + + + + — +
    +

    Add-on ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3087
+3088
+3089
+3090
+
+
# File 'lib/recurly/client/operations.rb', line 3087
+
+def remove_plan_add_on(plan_id:, add_on_id:, **options)
+  path = interpolate_path("/plans/{plan_id}/add_ons/{add_on_id}", plan_id: plan_id, add_on_id: add_on_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #remove_shipping_address(account_id:, shipping_address_id:, **options) ⇒ Resources::Empty + + + + + +

+
+ +

Remove an account's shipping address

+ +

remove_shipping_address api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  @client.remove_shipping_address(
+    account_id: ,
+    shipping_address_id: shipping_address_id
+  )
+  puts "Removed ShippingAddress #{shipping_address_id}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + shipping_address_id + + + (String) + + + + — +
    +

    Shipping Address ID.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Resources::Empty) + + + + — +
    +

    Shipping address deleted.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+1276
+1277
+1278
+1279
+
+
# File 'lib/recurly/client/operations.rb', line 1276
+
+def remove_shipping_address(account_id:, shipping_address_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/shipping_addresses/{shipping_address_id}", account_id: , shipping_address_id: shipping_address_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #remove_subscription_change(subscription_id:, **options) ⇒ Resources::Empty + + + + + +

+
+ +

Delete the pending subscription change

+ +

remove_subscription_change api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  @client.remove_subscription_change(
+    subscription_id: subscription_id
+  )
+  puts "Removed SubscriptionChange #{subscription_id}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Resources::Empty) + + + + — +
    +

    Subscription change was deleted.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+3664
+3665
+3666
+3667
+
+
# File 'lib/recurly/client/operations.rb', line 3664
+
+def remove_subscription_change(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/change", subscription_id: subscription_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #remove_usage(usage_id:, **options) ⇒ Resources::Empty + + + + + +

+
+ +

Delete a usage record.

+ +

remove_usage api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + usage_id + + + (String) + + + + — +
    +

    Usage Record ID.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Resources::Empty) + + + + — +
    +

    Usage was successfully deleted.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+3932
+3933
+3934
+3935
+
+
# File 'lib/recurly/client/operations.rb', line 3932
+
+def remove_usage(usage_id:, **options)
+  path = interpolate_path("/usage/{usage_id}", usage_id: usage_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #reopen_invoice(invoice_id:, **options) ⇒ Resources::Invoice + + + + + +

+
+ +

Reopen a closed, manual invoice

+ +

reopen_invoice api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice = @client.reopen_invoice(invoice_id: invoice_id)
+  puts "Reopened invoice #{invoice}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2467
+2468
+2469
+2470
+
+
# File 'lib/recurly/client/operations.rb', line 2467
+
+def reopen_invoice(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/reopen", invoice_id: invoice_id)
+  put(path, **options)
+end
+
+
+ +
+

+ + #restore_coupon(coupon_id:, body:, **options) ⇒ Resources::Coupon + + + + + +

+
+ +

Restore an inactive coupon

+ +

restore_coupon api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + coupon_id + + + (String) + + + + — +
    +

    Coupon ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-10off.

    +
    + +
  • + +
  • + + body + + + (Requests::CouponUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::CouponUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1665
+1666
+1667
+1668
+
+
# File 'lib/recurly/client/operations.rb', line 1665
+
+def restore_coupon(coupon_id:, body:, **options)
+  path = interpolate_path("/coupons/{coupon_id}/restore", coupon_id: coupon_id)
+  put(path, body, Requests::CouponUpdate, **options)
+end
+
+
+ +
+

+ + #resume_subscription(subscription_id:, **options) ⇒ Resources::Subscription + + + + + +

+
+ +

Resume subscription

+ +

resume_subscription api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  subscription = @client.resume_subscription(
+    subscription_id: subscription_id
+  )
+  puts "Resumed Subscription #{subscription}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3544
+3545
+3546
+3547
+
+
# File 'lib/recurly/client/operations.rb', line 3544
+
+def resume_subscription(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}/resume", subscription_id: subscription_id)
+  put(path, **options)
+end
+
+
+ +
+

+ + #show_external_invoice(external_invoice_id:, **options) ⇒ Resources::ExternalInvoice + + + + + +

+
+ +

Fetch an external invoice

+ +

show_external_invoice api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + external_invoice_id + + + (String) + + + + — +
    +

    External invoice ID, e.g. e28zov4fw0v2.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+4325
+4326
+4327
+4328
+
+
# File 'lib/recurly/client/operations.rb', line 4325
+
+def show_external_invoice(external_invoice_id:, **options)
+  path = interpolate_path("/external_invoices/{external_invoice_id}", external_invoice_id: external_invoice_id)
+  get(path, **options)
+end
+
+
+ +
+

+ + #terminate_subscription(subscription_id:, **options) ⇒ Resources::Subscription + + + + + +

+
+ +

Terminate a subscription

+ +

terminate_subscription api documentation

+ +
* +full+ - Performs a full refund of the last invoice for the current subscription term.
+* +partial+ - Prorates a refund based on the amount of time remaining in the current bill cycle.
+* +none+ - Terminates the subscription without a refund.
+
+In the event that the most recent invoice is a $0 invoice paid entirely by credit, Recurly will apply the credit back to the customer’s account.
+
+You may also terminate a subscription with no refund and then manually refund specific invoices.
+
+     :charge [Boolean] Applicable only if the subscription has usage based add-ons and unbilled usage logged for the current billing cycle. If true, current billing cycle unbilled usage is billed on the final invoice. If false, Recurly will create a negative usage record for current billing cycle usage that will zero out the final invoice line items.
+
+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  subscription = @client.terminate_subscription(
+    subscription_id: subscription_id,
+  )
+  puts "Terminated Subscription #{subscription}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :refund [String] The type of refund to perform:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3438
+3439
+3440
+3441
+
+
# File 'lib/recurly/client/operations.rb', line 3438
+
+def terminate_subscription(subscription_id:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}", subscription_id: subscription_id)
+  delete(path, **options)
+end
+
+
+ +
+

+ + #update_a_billing_info(account_id:, billing_info_id:, body:, **options) ⇒ Resources::BillingInfo + + + + + +

+
+ +

Update an account's billing information

+ +

update_a_billing_info api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + billing_info_id + + + (String) + + + + — +
    +

    Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature.

    +
    + +
  • + +
  • + + body + + + (Requests::BillingInfoCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::BillingInfoCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+572
+573
+574
+575
+
+
# File 'lib/recurly/client/operations.rb', line 572
+
+def update_a_billing_info(account_id:, billing_info_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/billing_infos/{billing_info_id}", account_id: , billing_info_id: billing_info_id)
+  put(path, body, Requests::BillingInfoCreate, **options)
+end
+
+
+ +
+

+ + #update_account(account_id:, body:, **options) ⇒ Resources::Account + + + + + +

+
+ +

Update an account

+ +

update_account api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+   = {
+    first_name: "Aaron",
+    last_name: "Du Monde",
+  }
+   = @client.(
+    account_id: ,
+    body: 
+  )
+  puts "Updated Account #{}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::AccountUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::AccountUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+223
+224
+225
+226
+
+
# File 'lib/recurly/client/operations.rb', line 223
+
+def (account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}", account_id: )
+  put(path, body, Requests::AccountUpdate, **options)
+end
+
+
+ +
+

+ + #update_account_acquisition(account_id:, body:, **options) ⇒ Resources::AccountAcquisition + + + + + +

+
+ +

Update an account's acquisition data

+ +

update_account_acquisition api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  acquisition_update = {
+    campaign: "podcast-marketing",
+    channel: "social_media",
+    subchannel: "twitter",
+    cost: {
+      currency: "USD",
+      amount: 0.50
+    }
+  }
+  acquisition = @client.(
+    account_id: ,
+    body: acquisition_update
+  )
+  puts "Updated AccountAcqusition #{acquisition}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::AccountAcquisitionUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::AccountAcquisitionUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+305
+306
+307
+308
+
+
# File 'lib/recurly/client/operations.rb', line 305
+
+def (account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/acquisition", account_id: )
+  put(path, body, Requests::AccountAcquisitionUpdate, **options)
+end
+
+
+ +
+

+ + #update_account_external_account(account_id:, external_account_id:, body:, **options) ⇒ Resources::ExternalAccount + + + + + +

+
+ +

Update an external account

+ +

update_account_external_account api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + external_account_id + + + (String) + + + + — +
    +

    External account ID, e.g. s28zov4fw0cb.

    +
    + +
  • + +
  • + + body + + + (Requests::ExternalAccountUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::ExternalAccountUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+808
+809
+810
+811
+
+
# File 'lib/recurly/client/operations.rb', line 808
+
+def (account_id:, external_account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/external_accounts/{external_account_id}", account_id: , external_account_id: )
+  put(path, body, Requests::ExternalAccountUpdate, **options)
+end
+
+
+ +
+

+ + #update_billing_info(account_id:, body:, **options) ⇒ Resources::BillingInfo + + + + + +

+
+ +

Set an account's billing information

+ +

update_billing_info api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  billing_update = {
+    first_name: "Aaron",
+    last_name: "Du Monde",
+  }
+  billing = @client.update_billing_info(
+    account_id: ,
+    body: billing_update
+  )
+  puts "Updated BillingInfo #{billing}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::BillingInfoCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::BillingInfoCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+428
+429
+430
+431
+
+
# File 'lib/recurly/client/operations.rb', line 428
+
+def update_billing_info(account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/billing_info", account_id: )
+  put(path, body, Requests::BillingInfoCreate, **options)
+end
+
+
+ +
+

+ + #update_coupon(coupon_id:, body:, **options) ⇒ Resources::Coupon + + + + + +

+
+ +

Update an active coupon

+ +

update_coupon api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  coupon_update = {
+    name: "New Coupon Name"
+  }
+  coupon = @client.update_coupon(coupon_id: coupon_id, body: coupon_update)
+  puts "Updated Coupon #{coupon}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + coupon_id + + + (String) + + + + — +
    +

    Coupon ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-10off.

    +
    + +
  • + +
  • + + body + + + (Requests::CouponUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::CouponUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1612
+1613
+1614
+1615
+
+
# File 'lib/recurly/client/operations.rb', line 1612
+
+def update_coupon(coupon_id:, body:, **options)
+  path = interpolate_path("/coupons/{coupon_id}", coupon_id: coupon_id)
+  put(path, body, Requests::CouponUpdate, **options)
+end
+
+
+ +
+

+ + #update_invoice(invoice_id:, body:, **options) ⇒ Resources::Invoice + + + + + +

+
+ +

Update an invoice

+ +

update_invoice api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice_update = {
+    customer_notes: "New Notes",
+    terms_and_conditions: "New Terms and Conditions"
+  }
+  invoice = @client.update_invoice(invoice_id: invoice_id, body: invoice_update)
+  puts "Updated invoice #{invoice}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + body + + + (Requests::InvoiceUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::InvoiceUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2324
+2325
+2326
+2327
+
+
# File 'lib/recurly/client/operations.rb', line 2324
+
+def update_invoice(invoice_id:, body:, **options)
+  path = interpolate_path("/invoices/{invoice_id}", invoice_id: invoice_id)
+  put(path, body, Requests::InvoiceUpdate, **options)
+end
+
+
+ +
+

+ + #update_item(item_id:, body:, **options) ⇒ Resources::Item + + + + + +

+
+ +

Update an active item

+ +

update_item api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  item_update = {
+    name: "New Item Name",
+    description: "New Item Description"
+  }
+  item = @client.update_item(
+    item_id: item_id,
+    body: item_update
+  )
+  puts "Updated Item #{item}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + item_id + + + (String) + + + + — +
    +

    Item ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-red.

    +
    + +
  • + +
  • + + body + + + (Requests::ItemUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::ItemUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1999
+2000
+2001
+2002
+
+
# File 'lib/recurly/client/operations.rb', line 1999
+
+def update_item(item_id:, body:, **options)
+  path = interpolate_path("/items/{item_id}", item_id: item_id)
+  put(path, body, Requests::ItemUpdate, **options)
+end
+
+
+ +
+

+ + #update_measured_unit(measured_unit_id:, body:, **options) ⇒ Resources::MeasuredUnit + + + + + +

+
+ +

Update a measured unit

+ +

update_measured_unit api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + measured_unit_id + + + (String) + + + + — +
    +

    Measured unit ID or name. For ID no prefix is used e.g. e28zov4fw0v2. For name use prefix name-, e.g. name-Storage.

    +
    + +
  • + +
  • + + body + + + (Requests::MeasuredUnitUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::MeasuredUnitUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2126
+2127
+2128
+2129
+
+
# File 'lib/recurly/client/operations.rb', line 2126
+
+def update_measured_unit(measured_unit_id:, body:, **options)
+  path = interpolate_path("/measured_units/{measured_unit_id}", measured_unit_id: measured_unit_id)
+  put(path, body, Requests::MeasuredUnitUpdate, **options)
+end
+
+
+ +
+

+ + #update_plan(plan_id:, body:, **options) ⇒ Resources::Plan + + + + + +

+
+ +

Update a plan

+ +

update_plan api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  plan_update = {
+    name: "Monthly Kombucha Subscription"
+  }
+  plan = @client.update_plan(plan_id: plan_id, body: plan_update)
+  puts "Updated plan #{plan}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + plan_id + + + (String) + + + + — +
    +

    Plan ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + body + + + (Requests::PlanUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::PlanUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2894
+2895
+2896
+2897
+
+
# File 'lib/recurly/client/operations.rb', line 2894
+
+def update_plan(plan_id:, body:, **options)
+  path = interpolate_path("/plans/{plan_id}", plan_id: plan_id)
+  put(path, body, Requests::PlanUpdate, **options)
+end
+
+
+ +
+

+ + #update_plan_add_on(plan_id:, add_on_id:, body:, **options) ⇒ Resources::AddOn + + + + + +

+
+ +

Update an add-on

+ +

update_plan_add_on api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  add_on_update = {
+    name: "A quality grinder for your finest beans"
+  }
+  add_on = @client.update_plan_add_on(
+    plan_id: plan_id,
+    add_on_id: add_on_id,
+    body: add_on_update
+  )
+  puts "Updated add-on #{add_on}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + plan_id + + + (String) + + + + — +
    +

    Plan ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + add_on_id + + + (String) + + + + — +
    +

    Add-on ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-gold.

    +
    + +
  • + +
  • + + body + + + (Requests::AddOnUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::AddOnUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3060
+3061
+3062
+3063
+
+
# File 'lib/recurly/client/operations.rb', line 3060
+
+def update_plan_add_on(plan_id:, add_on_id:, body:, **options)
+  path = interpolate_path("/plans/{plan_id}/add_ons/{add_on_id}", plan_id: plan_id, add_on_id: add_on_id)
+  put(path, body, Requests::AddOnUpdate, **options)
+end
+
+
+ +
+

+ + #update_shipping_address(account_id:, shipping_address_id:, body:, **options) ⇒ Resources::ShippingAddress + + + + + +

+
+ +

Update an account's shipping address

+ +

update_shipping_address api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  address_update = {
+    first_name: "Aaron",
+    last_name: "Du Monde",
+    postal_code: "70130"
+  }
+  address = @client.update_shipping_address(
+    account_id: ,
+    shipping_address_id: shipping_address_id,
+    body: address_update
+  )
+  puts "Updated ShippingAddress #{address}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + shipping_address_id + + + (String) + + + + — +
    +

    Shipping Address ID.

    +
    + +
  • + +
  • + + body + + + (Requests::ShippingAddressUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::ShippingAddressUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+1249
+1250
+1251
+1252
+
+
# File 'lib/recurly/client/operations.rb', line 1249
+
+def update_shipping_address(account_id:, shipping_address_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/shipping_addresses/{shipping_address_id}", account_id: , shipping_address_id: shipping_address_id)
+  put(path, body, Requests::ShippingAddressUpdate, **options)
+end
+
+
+ +
+

+ + #update_shipping_method(shipping_method_id:, body:, **options) ⇒ Resources::ShippingMethod + + + + + +

+
+ +

Update an active Shipping Method

+ +

update_shipping_method api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + shipping_method_id + + + (String) + + + + — +
    +

    Shipping Method ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-usps_2-day.

    +
    + +
  • + +
  • + + body + + + (Requests::ShippingMethodUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::ShippingMethodUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3248
+3249
+3250
+3251
+
+
# File 'lib/recurly/client/operations.rb', line 3248
+
+def update_shipping_method(shipping_method_id:, body:, **options)
+  path = interpolate_path("/shipping_methods/{shipping_method_id}", shipping_method_id: shipping_method_id)
+  put(path, body, Requests::ShippingMethodUpdate, **options)
+end
+
+
+ +
+

+ + #update_subscription(subscription_id:, body:, **options) ⇒ Resources::Subscription + + + + + +

+
+ +

Update a subscription

+ +

update_subscription api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  subscription_update = {
+    customer_notes: "New Notes",
+    terms_and_conditions: "New ToC"
+  }
+  subscription = @client.update_subscription(
+    subscription_id: subscription_id,
+    body: subscription_update
+  )
+  puts "Modified Subscription #{subscription}"
+rescue Recurly::Errors::ValidationError => e
+  # If the request was invalid, you may want to tell your user
+  # why. You can find the invalid params and reasons in e.recurly_error.params
+  puts "ValidationError: #{e.recurly_error.params}"
+end
+ +
+

Parameters:

+
    + +
  • + + subscription_id + + + (String) + + + + — +
    +

    Subscription ID or UUID. For ID no prefix is used e.g. e28zov4fw0v2. For UUID use prefix uuid-, e.g. uuid-123457890.

    +
    + +
  • + +
  • + + body + + + (Requests::SubscriptionUpdate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::SubscriptionUpdate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+3402
+3403
+3404
+3405
+
+
# File 'lib/recurly/client/operations.rb', line 3402
+
+def update_subscription(subscription_id:, body:, **options)
+  path = interpolate_path("/subscriptions/{subscription_id}", subscription_id: subscription_id)
+  put(path, body, Requests::SubscriptionUpdate, **options)
+end
+
+
+ +
+

+ + #update_usage(usage_id:, body:, **options) ⇒ Resources::Usage + + + + + +

+
+ +

Update a usage record

+ +

update_usage api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + usage_id + + + (String) + + + + — +
    +

    Usage Record ID.

    +
    + +
  • + +
  • + + body + + + (Requests::UsageCreate) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::UsageCreate

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Resources::Usage) + + + + — +
    +

    The updated usage record.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+3918
+3919
+3920
+3921
+
+
# File 'lib/recurly/client/operations.rb', line 3918
+
+def update_usage(usage_id:, body:, **options)
+  path = interpolate_path("/usage/{usage_id}", usage_id: usage_id)
+  put(path, body, Requests::UsageCreate, **options)
+end
+
+
+ +
+

+ + #verify_billing_info(account_id:, **options) ⇒ Resources::Transaction + + + + + +

+
+ +

Verify an account's credit card billing information

+ +

verify_billing_info api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  transaction = @client.verify_billing_info(account_id: )
+  puts "Got Transaction #{transaction}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters: :body [Requests::BillingInfoVerify] The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::BillingInfoVerify

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+475
+476
+477
+478
+
+
# File 'lib/recurly/client/operations.rb', line 475
+
+def verify_billing_info(account_id:, **options)
+  path = interpolate_path("/accounts/{account_id}/billing_info/verify", account_id: )
+  post(path, options[:body], Requests::BillingInfoVerify, **options)
+end
+
+
+ +
+

+ + #verify_billing_info_cvv(account_id:, body:, **options) ⇒ Resources::Transaction + + + + + +

+
+ +

Verify an account's credit card billing cvv

+ +

verify_billing_info_cvv api documentation

+ + +
+
+
+

Parameters:

+
    + +
  • + + account_id + + + (String) + + + + — +
    +

    Account ID or code. For ID no prefix is used e.g. e28zov4fw0v2. For code use prefix code-, e.g. code-bob.

    +
    + +
  • + +
  • + + body + + + (Requests::BillingInfoVerifyCVV) + + + + — +
    +

    The Hash representing the JSON request to send to the server. It should conform to the schema of Requests::BillingInfoVerifyCVV

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+490
+491
+492
+493
+
+
# File 'lib/recurly/client/operations.rb', line 490
+
+def verify_billing_info_cvv(account_id:, body:, **options)
+  path = interpolate_path("/accounts/{account_id}/billing_info/verify_cvv", account_id: )
+  post(path, body, Requests::BillingInfoVerifyCVV, **options)
+end
+
+
+ +
+

+ + #void_invoice(invoice_id:, **options) ⇒ Resources::Invoice + + + + + +

+
+ +

Void a credit invoice.

+ +

void_invoice api documentation

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  invoice = @client.void_invoice(invoice_id: invoice_id)
+  puts "Voided invoice #{invoice}"
+rescue Recurly::Errors::NotFoundError
+  # If the resource was not found, you may want to alert the user or
+  # just return nil
+  puts "Resource Not Found"
+end
+ +
+

Parameters:

+
    + +
  • + + invoice_id + + + (String) + + + + — +
    +

    Invoice ID or number. For ID no prefix is used e.g. e28zov4fw0v2. For number use prefix number-, e.g. number-1000.

    +
    + +
  • + +
  • + + params + + + (Hash) + + + + — +
    +

    Optional query string parameters:

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+2490
+2491
+2492
+2493
+
+
# File 'lib/recurly/client/operations.rb', line 2490
+
+def void_invoice(invoice_id:, **options)
+  path = interpolate_path("/invoices/{invoice_id}/void", invoice_id: invoice_id)
+  put(path, **options)
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/ConnectionPool.html b/Recurly/ConnectionPool.html new file mode 100644 index 000000000..761c69660 --- /dev/null +++ b/Recurly/ConnectionPool.html @@ -0,0 +1,359 @@ + + + + + + + Class: Recurly::ConnectionPool + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::ConnectionPool + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/connection_pool.rb
+
+ +
+ + + + + + + + + +

+ Instance Method Summary + collapse +

+ + + + +
+

Constructor Details

+ +
+

+ + #initializeConnectionPool + + + + + +

+
+ +

Returns a new instance of ConnectionPool.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+7
+8
+9
+10
+
+
# File 'lib/recurly/connection_pool.rb', line 7
+
+def initialize
+  @mutex = Mutex.new
+  @pool = Hash.new { |h, k| h[k] = [] }
+end
+
+
+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #init_http_connection(uri, ca_file) ⇒ Object + + + + + +

+ + + + +
+
+
+
+32
+33
+34
+35
+36
+37
+38
+39
+40
+
+
# File 'lib/recurly/connection_pool.rb', line 32
+
+def init_http_connection(uri, ca_file)
+  http = Net::HTTP.new(uri.host, uri.port)
+  http.use_ssl = uri.scheme == "https"
+  http.ca_file = ca_file
+  http.verify_mode = OpenSSL::SSL::VERIFY_PEER
+  http.keep_alive_timeout = 600
+
+  http
+end
+
+
+ +
+

+ + #with_connection(uri:, ca_file: nil) ⇒ Object + + + + + +

+ + + + +
+
+
+
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+
+
# File 'lib/recurly/connection_pool.rb', line 12
+
+def with_connection(uri:, ca_file: nil)
+  http = nil
+  @mutex.synchronize do
+    http = @pool[[uri.host, uri.port]].pop
+  end
+
+  # create connection if the pool was empty
+  http ||= init_http_connection(uri, ca_file)
+
+  response = yield http
+
+  if http.started?
+    @mutex.synchronize do
+      @pool[[uri.host, uri.port]].push(http)
+    end
+  end
+
+  response
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors.html b/Recurly/Errors.html new file mode 100644 index 000000000..7aa0676f3 --- /dev/null +++ b/Recurly/Errors.html @@ -0,0 +1,148 @@ + + + + + + + Module: Recurly::Errors + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Module: Recurly::Errors + + + +

+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors.rb,
+ lib/recurly/errors/api_errors.rb,
lib/recurly/errors/network_errors.rb,
lib/recurly/errors/webhooks_errors.rb
+
+
+ +
+ +

Defined Under Namespace

+

+ + + + + Classes: APIError, BadGatewayError, BadRequestError, ClientError, ConnectionFailedError, ForbiddenError, ImmutableSubscriptionError, InternalServerError, InvalidApiKeyError, InvalidApiVersionError, InvalidContentTypeError, InvalidPermissionsError, InvalidTokenError, MissingFeatureError, NetworkError, NotAcceptableError, NotFoundError, NotModifiedError, PaymentRequiredError, PreconditionFailedError, RateLimitedError, RedirectionError, ResponseError, SSLError, ServerError, ServiceNotAvailableError, ServiceUnavailableError, SignatureVerificationError, SimultaneousRequestError, TaxServiceError, TimeoutError, TooManyRequestsError, TransactionError, UnauthorizedError, UnavailableInApiVersionError, UnknownApiVersionError, UnprocessableEntityError, ValidationError + + +

+ + +

+ Constant Summary + collapse +

+ +
+ +
ERROR_MAP = + +
+
{
+  "500" => "InternalServerError",
+  "502" => "BadGatewayError",
+  "503" => "ServiceUnavailableError",
+  "504" => "TimeoutError",
+  "304" => "NotModifiedError",
+  "400" => "BadRequestError",
+  "401" => "UnauthorizedError",
+  "402" => "PaymentRequiredError",
+  "403" => "ForbiddenError",
+  "404" => "NotFoundError",
+  "406" => "NotAcceptableError",
+  "412" => "PreconditionFailedError",
+  "422" => "UnprocessableEntityError",
+  "429" => "TooManyRequestsError",
+}
+ +
+ + + + + + + + + + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/APIError.html b/Recurly/Errors/APIError.html new file mode 100644 index 000000000..7513d6ae7 --- /dev/null +++ b/Recurly/Errors/APIError.html @@ -0,0 +1,626 @@ + + + + + + + Exception: Recurly::Errors::APIError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::APIError + + + +

+
+ +
+
Inherits:
+
+ StandardError + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors.rb
+
+ +
+ +
+

Direct Known Subclasses

+

ClientError, NetworkError, ResponseError

+
+ + + + +

Instance Attribute Summary collapse

+ + + + + + +

+ Class Method Summary + collapse +

+ + + +

+ Instance Method Summary + collapse +

+ + + + + +
+

Constructor Details

+ +
+

+ + #initialize(message, response = nil, error = nil) ⇒ APIError + + + + + +

+
+ +

Returns a new instance of APIError.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+33
+34
+35
+36
+37
+
+
# File 'lib/recurly/errors.rb', line 33
+
+def initialize(message, response = nil, error = nil)
+  super(message)
+  @response = response
+  @recurly_error = error
+end
+
+
+ +
+ +
+

Instance Attribute Details

+ + + +
+

+ + #recurly_errorObject + + + + + +

+
+ +

Returns the value of attribute recurly_error.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+6
+7
+8
+
+
# File 'lib/recurly/errors.rb', line 6
+
+def recurly_error
+  @recurly_error
+end
+
+
+ +
+ + +
+

Class Method Details

+ + +
+

+ + .error_class(error_key) ⇒ Errors::APIError, Errors::NetworkError + + + + + +

+
+ +

Looks up an Error class by name

+ + +
+
+
+ +
+

Examples:

+ + +
Errors.error_class('BadRequestError')
+#=> Errors::BadRequestError
+ +
+

Parameters:

+
    + +
  • + + error_key + + + (String) + + + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+14
+15
+16
+17
+18
+
+
# File 'lib/recurly/errors.rb', line 14
+
+def self.error_class(error_key)
+  class_name = error_key.split("_").map(&:capitalize).join
+  class_name += "Error" unless class_name.end_with?("Error")
+  Errors.const_get(class_name)
+end
+
+
+ +
+

+ + .from_response(response) ⇒ Errors::APIError + + + + + +

+
+ +

When the response does not have a JSON body, this determines the appropriate Error class based on the response code. This may occur when a load balancer returns an error before it reaches Recurly's API.

+ + +
+
+
+

Parameters:

+
    + +
  • + + response + + + (Net::Response) + + + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+25
+26
+27
+28
+29
+30
+31
+
+
# File 'lib/recurly/errors.rb', line 25
+
+def self.from_response(response)
+  if Recurly::Errors::ERROR_MAP.has_key?(response.code)
+    Recurly::Errors.const_get(Recurly::Errors::ERROR_MAP[response.code])
+  else
+    Recurly::Errors::APIError
+  end
+end
+
+
+ +
+ +
+

Instance Method Details

+ + +
+

+ + #get_responseObject + + + + + +

+ + + + +
+
+
+
+43
+44
+45
+
+
# File 'lib/recurly/errors.rb', line 43
+
+def get_response
+  @response
+end
+
+
+ +
+

+ + #status_codeObject + + + + + +

+ + + + +
+
+
+
+39
+40
+41
+
+
# File 'lib/recurly/errors.rb', line 39
+
+def status_code
+  @response.status
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/BadGatewayError.html b/Recurly/Errors/BadGatewayError.html new file mode 100644 index 000000000..28382603f --- /dev/null +++ b/Recurly/Errors/BadGatewayError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::BadGatewayError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::BadGatewayError + + + +

+
+ +
+
Inherits:
+
+ ServerError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/BadRequestError.html b/Recurly/Errors/BadRequestError.html new file mode 100644 index 000000000..aa67d5221 --- /dev/null +++ b/Recurly/Errors/BadRequestError.html @@ -0,0 +1,160 @@ + + + + + + + Exception: Recurly::Errors::BadRequestError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::BadRequestError + + + +

+
+ +
+
Inherits:
+
+ ClientError + +
    +
  • Object
  • + + + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ +
+

Direct Known Subclasses

+

InvalidContentTypeError

+
+ + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/ClientError.html b/Recurly/Errors/ClientError.html new file mode 100644 index 000000000..154b4dc9b --- /dev/null +++ b/Recurly/Errors/ClientError.html @@ -0,0 +1,152 @@ + + + + + + + Exception: Recurly::Errors::ClientError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::ClientError + + + +

+
+ +
+
Inherits:
+
+ APIError + +
    +
  • Object
  • + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/ConnectionFailedError.html b/Recurly/Errors/ConnectionFailedError.html new file mode 100644 index 000000000..bf8324f98 --- /dev/null +++ b/Recurly/Errors/ConnectionFailedError.html @@ -0,0 +1,156 @@ + + + + + + + Exception: Recurly::Errors::ConnectionFailedError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::ConnectionFailedError + + + +

+
+ +
+
Inherits:
+
+ NetworkError + +
    +
  • Object
  • + + + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/network_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/ForbiddenError.html b/Recurly/Errors/ForbiddenError.html new file mode 100644 index 000000000..513bb3a99 --- /dev/null +++ b/Recurly/Errors/ForbiddenError.html @@ -0,0 +1,160 @@ + + + + + + + Exception: Recurly::Errors::ForbiddenError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::ForbiddenError + + + +

+
+ +
+
Inherits:
+
+ ClientError + +
    +
  • Object
  • + + + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ +
+

Direct Known Subclasses

+

InvalidApiKeyError, InvalidPermissionsError

+
+ + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/ImmutableSubscriptionError.html b/Recurly/Errors/ImmutableSubscriptionError.html new file mode 100644 index 000000000..f8ded63a1 --- /dev/null +++ b/Recurly/Errors/ImmutableSubscriptionError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::ImmutableSubscriptionError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::ImmutableSubscriptionError + + + +

+
+ +
+
Inherits:
+
+ UnprocessableEntityError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/InternalServerError.html b/Recurly/Errors/InternalServerError.html new file mode 100644 index 000000000..b3f61e7cf --- /dev/null +++ b/Recurly/Errors/InternalServerError.html @@ -0,0 +1,168 @@ + + + + + + + Exception: Recurly::Errors::InternalServerError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::InternalServerError + + + +

+
+ +
+
Inherits:
+
+ ServerError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ +
+

Direct Known Subclasses

+

ServiceNotAvailableError, TaxServiceError

+
+ + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/InvalidApiKeyError.html b/Recurly/Errors/InvalidApiKeyError.html new file mode 100644 index 000000000..c75917dd3 --- /dev/null +++ b/Recurly/Errors/InvalidApiKeyError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::InvalidApiKeyError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::InvalidApiKeyError + + + +

+
+ +
+
Inherits:
+
+ ForbiddenError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/InvalidApiVersionError.html b/Recurly/Errors/InvalidApiVersionError.html new file mode 100644 index 000000000..c747e1b37 --- /dev/null +++ b/Recurly/Errors/InvalidApiVersionError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::InvalidApiVersionError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::InvalidApiVersionError + + + +

+
+ +
+
Inherits:
+
+ NotAcceptableError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/InvalidContentTypeError.html b/Recurly/Errors/InvalidContentTypeError.html new file mode 100644 index 000000000..45cce9531 --- /dev/null +++ b/Recurly/Errors/InvalidContentTypeError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::InvalidContentTypeError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::InvalidContentTypeError + + + +

+
+ +
+
Inherits:
+
+ BadRequestError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/InvalidPermissionsError.html b/Recurly/Errors/InvalidPermissionsError.html new file mode 100644 index 000000000..c029b984b --- /dev/null +++ b/Recurly/Errors/InvalidPermissionsError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::InvalidPermissionsError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::InvalidPermissionsError + + + +

+
+ +
+
Inherits:
+
+ ForbiddenError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/InvalidTokenError.html b/Recurly/Errors/InvalidTokenError.html new file mode 100644 index 000000000..757d739ec --- /dev/null +++ b/Recurly/Errors/InvalidTokenError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::InvalidTokenError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::InvalidTokenError + + + +

+
+ +
+
Inherits:
+
+ UnprocessableEntityError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/MissingFeatureError.html b/Recurly/Errors/MissingFeatureError.html new file mode 100644 index 000000000..1bb71f9d5 --- /dev/null +++ b/Recurly/Errors/MissingFeatureError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::MissingFeatureError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::MissingFeatureError + + + +

+
+ +
+
Inherits:
+
+ UnprocessableEntityError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/NetworkError.html b/Recurly/Errors/NetworkError.html new file mode 100644 index 000000000..321147bb5 --- /dev/null +++ b/Recurly/Errors/NetworkError.html @@ -0,0 +1,152 @@ + + + + + + + Exception: Recurly::Errors::NetworkError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::NetworkError + + + +

+
+ +
+
Inherits:
+
+ APIError + +
    +
  • Object
  • + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/network_errors.rb
+
+ +
+ +
+

Direct Known Subclasses

+

ConnectionFailedError, SSLError

+
+ + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/NotAcceptableError.html b/Recurly/Errors/NotAcceptableError.html new file mode 100644 index 000000000..c015f8bc5 --- /dev/null +++ b/Recurly/Errors/NotAcceptableError.html @@ -0,0 +1,160 @@ + + + + + + + Exception: Recurly::Errors::NotAcceptableError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::NotAcceptableError + + + +

+
+ +
+
Inherits:
+
+ ClientError + +
    +
  • Object
  • + + + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/NotFoundError.html b/Recurly/Errors/NotFoundError.html new file mode 100644 index 000000000..b525a8791 --- /dev/null +++ b/Recurly/Errors/NotFoundError.html @@ -0,0 +1,156 @@ + + + + + + + Exception: Recurly::Errors::NotFoundError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::NotFoundError + + + +

+
+ +
+
Inherits:
+
+ ClientError + +
    +
  • Object
  • + + + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/NotModifiedError.html b/Recurly/Errors/NotModifiedError.html new file mode 100644 index 000000000..619c569e7 --- /dev/null +++ b/Recurly/Errors/NotModifiedError.html @@ -0,0 +1,156 @@ + + + + + + + Exception: Recurly::Errors::NotModifiedError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::NotModifiedError + + + +

+
+ +
+
Inherits:
+
+ ResponseError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/PaymentRequiredError.html b/Recurly/Errors/PaymentRequiredError.html new file mode 100644 index 000000000..b4bf42303 --- /dev/null +++ b/Recurly/Errors/PaymentRequiredError.html @@ -0,0 +1,156 @@ + + + + + + + Exception: Recurly::Errors::PaymentRequiredError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::PaymentRequiredError + + + +

+
+ +
+
Inherits:
+
+ ClientError + +
    +
  • Object
  • + + + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/PreconditionFailedError.html b/Recurly/Errors/PreconditionFailedError.html new file mode 100644 index 000000000..07c2355ab --- /dev/null +++ b/Recurly/Errors/PreconditionFailedError.html @@ -0,0 +1,156 @@ + + + + + + + Exception: Recurly::Errors::PreconditionFailedError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::PreconditionFailedError + + + +

+
+ +
+
Inherits:
+
+ ClientError + +
    +
  • Object
  • + + + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/RateLimitedError.html b/Recurly/Errors/RateLimitedError.html new file mode 100644 index 000000000..a79583ed6 --- /dev/null +++ b/Recurly/Errors/RateLimitedError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::RateLimitedError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::RateLimitedError + + + +

+
+ +
+
Inherits:
+
+ TooManyRequestsError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/RedirectionError.html b/Recurly/Errors/RedirectionError.html new file mode 100644 index 000000000..2c4c99fbc --- /dev/null +++ b/Recurly/Errors/RedirectionError.html @@ -0,0 +1,156 @@ + + + + + + + Exception: Recurly::Errors::RedirectionError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::RedirectionError + + + +

+
+ +
+
Inherits:
+
+ ResponseError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/ResponseError.html b/Recurly/Errors/ResponseError.html new file mode 100644 index 000000000..86f1e0a5b --- /dev/null +++ b/Recurly/Errors/ResponseError.html @@ -0,0 +1,152 @@ + + + + + + + Exception: Recurly::Errors::ResponseError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::ResponseError + + + +

+
+ +
+
Inherits:
+
+ APIError + +
    +
  • Object
  • + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ +
+

Direct Known Subclasses

+

NotModifiedError, RedirectionError, ServerError

+
+ + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/SSLError.html b/Recurly/Errors/SSLError.html new file mode 100644 index 000000000..b46d59eee --- /dev/null +++ b/Recurly/Errors/SSLError.html @@ -0,0 +1,156 @@ + + + + + + + Exception: Recurly::Errors::SSLError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::SSLError + + + +

+
+ +
+
Inherits:
+
+ NetworkError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/network_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/ServerError.html b/Recurly/Errors/ServerError.html new file mode 100644 index 000000000..32c34f5af --- /dev/null +++ b/Recurly/Errors/ServerError.html @@ -0,0 +1,160 @@ + + + + + + + Exception: Recurly::Errors::ServerError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::ServerError + + + +

+
+ +
+
Inherits:
+
+ ResponseError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/ServiceNotAvailableError.html b/Recurly/Errors/ServiceNotAvailableError.html new file mode 100644 index 000000000..54e1d33c7 --- /dev/null +++ b/Recurly/Errors/ServiceNotAvailableError.html @@ -0,0 +1,172 @@ + + + + + + + Exception: Recurly::Errors::ServiceNotAvailableError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::ServiceNotAvailableError + + + +

+
+ +
+
Inherits:
+
+ InternalServerError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/ServiceUnavailableError.html b/Recurly/Errors/ServiceUnavailableError.html new file mode 100644 index 000000000..3af972e5d --- /dev/null +++ b/Recurly/Errors/ServiceUnavailableError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::ServiceUnavailableError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::ServiceUnavailableError + + + +

+
+ +
+
Inherits:
+
+ ServerError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/SignatureVerificationError.html b/Recurly/Errors/SignatureVerificationError.html new file mode 100644 index 000000000..55dceff2a --- /dev/null +++ b/Recurly/Errors/SignatureVerificationError.html @@ -0,0 +1,124 @@ + + + + + + + Exception: Recurly::Errors::SignatureVerificationError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::SignatureVerificationError + + + +

+
+ +
+
Inherits:
+
+ StandardError + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/webhooks_errors.rb
+
+ +
+ + + + + + + + + + + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/SimultaneousRequestError.html b/Recurly/Errors/SimultaneousRequestError.html new file mode 100644 index 000000000..60dd9e7c8 --- /dev/null +++ b/Recurly/Errors/SimultaneousRequestError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::SimultaneousRequestError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::SimultaneousRequestError + + + +

+
+ +
+
Inherits:
+
+ UnprocessableEntityError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/TaxServiceError.html b/Recurly/Errors/TaxServiceError.html new file mode 100644 index 000000000..3d7d7b752 --- /dev/null +++ b/Recurly/Errors/TaxServiceError.html @@ -0,0 +1,172 @@ + + + + + + + Exception: Recurly::Errors::TaxServiceError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::TaxServiceError + + + +

+
+ +
+
Inherits:
+
+ InternalServerError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/TimeoutError.html b/Recurly/Errors/TimeoutError.html new file mode 100644 index 000000000..2adb2bc17 --- /dev/null +++ b/Recurly/Errors/TimeoutError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::TimeoutError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::TimeoutError + + + +

+
+ +
+
Inherits:
+
+ ServerError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/TooManyRequestsError.html b/Recurly/Errors/TooManyRequestsError.html new file mode 100644 index 000000000..8920b1314 --- /dev/null +++ b/Recurly/Errors/TooManyRequestsError.html @@ -0,0 +1,160 @@ + + + + + + + Exception: Recurly::Errors::TooManyRequestsError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::TooManyRequestsError + + + +

+
+ +
+
Inherits:
+
+ ClientError + +
    +
  • Object
  • + + + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ +
+

Direct Known Subclasses

+

RateLimitedError

+
+ + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/TransactionError.html b/Recurly/Errors/TransactionError.html new file mode 100644 index 000000000..ba1df4bd2 --- /dev/null +++ b/Recurly/Errors/TransactionError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::TransactionError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::TransactionError + + + +

+
+ +
+
Inherits:
+
+ UnprocessableEntityError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/UnauthorizedError.html b/Recurly/Errors/UnauthorizedError.html new file mode 100644 index 000000000..c5fe54f6c --- /dev/null +++ b/Recurly/Errors/UnauthorizedError.html @@ -0,0 +1,156 @@ + + + + + + + Exception: Recurly::Errors::UnauthorizedError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::UnauthorizedError + + + +

+
+ +
+
Inherits:
+
+ ClientError + +
    +
  • Object
  • + + + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/UnavailableInApiVersionError.html b/Recurly/Errors/UnavailableInApiVersionError.html new file mode 100644 index 000000000..3fc477f13 --- /dev/null +++ b/Recurly/Errors/UnavailableInApiVersionError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::UnavailableInApiVersionError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::UnavailableInApiVersionError + + + +

+
+ +
+
Inherits:
+
+ NotAcceptableError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/UnknownApiVersionError.html b/Recurly/Errors/UnknownApiVersionError.html new file mode 100644 index 000000000..d16a05810 --- /dev/null +++ b/Recurly/Errors/UnknownApiVersionError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::UnknownApiVersionError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::UnknownApiVersionError + + + +

+
+ +
+
Inherits:
+
+ NotAcceptableError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/UnprocessableEntityError.html b/Recurly/Errors/UnprocessableEntityError.html new file mode 100644 index 000000000..5aac01ebb --- /dev/null +++ b/Recurly/Errors/UnprocessableEntityError.html @@ -0,0 +1,160 @@ + + + + + + + Exception: Recurly::Errors::UnprocessableEntityError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::UnprocessableEntityError + + + +

+
+ +
+
Inherits:
+
+ ClientError + +
    +
  • Object
  • + + + + + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Errors/ValidationError.html b/Recurly/Errors/ValidationError.html new file mode 100644 index 000000000..4e243bc68 --- /dev/null +++ b/Recurly/Errors/ValidationError.html @@ -0,0 +1,164 @@ + + + + + + + Exception: Recurly::Errors::ValidationError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Exception: Recurly::Errors::ValidationError + + + +

+
+ +
+
Inherits:
+
+ UnprocessableEntityError + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/errors/api_errors.rb
+
+ +
+ + + + + + + +

Instance Attribute Summary

+ +

Attributes inherited from APIError

+

#recurly_error

+ + + + + + + + + + + + + + + + + + + + + +

Method Summary

+ +

Methods inherited from APIError

+

error_class, from_response, #get_response, #initialize, #status_code

+ +
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Errors::APIError

+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/FileParser.html b/Recurly/FileParser.html new file mode 100644 index 000000000..a6957bbcc --- /dev/null +++ b/Recurly/FileParser.html @@ -0,0 +1,247 @@ + + + + + + + Class: Recurly::FileParser + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::FileParser + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/schema/file_parser.rb
+
+ +
+ +

Overview

+
+ +

This is a wrapper class to help parse http response into Recurly objects.

+ + +
+
+
+ + +
+ + + + + + + +

+ Class Method Summary + collapse +

+ + + + + + +
+

Class Method Details

+ + +
+

+ + .parse(body) ⇒ Resource + + + + + +

+
+ +

Parses the json body into a recurly object.

+ + +
+
+
+

Parameters:

+
    + +
  • + + body + + + (String) + + + + — +
    +

    The data string to cast.

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+9
+10
+11
+
+
# File 'lib/recurly/schema/file_parser.rb', line 9
+
+def self.parse(body)
+  Recurly::Resources::BinaryFile.cast(data: body)
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/HTTP.html b/Recurly/HTTP.html new file mode 100644 index 000000000..efcd7fb52 --- /dev/null +++ b/Recurly/HTTP.html @@ -0,0 +1,115 @@ + + + + + + + Module: Recurly::HTTP + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Module: Recurly::HTTP + + + +

+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/http.rb
+
+ +
+ +

Defined Under Namespace

+

+ + + + + Classes: Request, Response + + +

+ + + + + + + + + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/HTTP/Request.html b/Recurly/HTTP/Request.html new file mode 100644 index 000000000..1dae2ee36 --- /dev/null +++ b/Recurly/HTTP/Request.html @@ -0,0 +1,497 @@ + + + + + + + Class: Recurly::HTTP::Request + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::HTTP::Request + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/http.rb
+
+ +
+ + + + + +

Instance Attribute Summary collapse

+ + + + + + +

+ Instance Method Summary + collapse +

+ + + + +
+

Constructor Details

+ +
+

+ + #initialize(method, path, body = nil) ⇒ Request + + + + + +

+
+ +

Returns a new instance of Request.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+33
+34
+35
+36
+37
+38
+39
+40
+41
+
+
# File 'lib/recurly/http.rb', line 33
+
+def initialize(method, path, body = nil)
+  @method = method
+  @path = path
+  if body && !body.empty?
+    @body = body
+  else
+    @body = nil
+  end
+end
+
+
+ +
+ +
+

Instance Attribute Details

+ + + +
+

+ + #bodyObject + + + + + +

+
+ +

Returns the value of attribute body.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+31
+32
+33
+
+
# File 'lib/recurly/http.rb', line 31
+
+def body
+  @body
+end
+
+
+ + + +
+

+ + #methodObject + + + + + +

+
+ +

Returns the value of attribute method.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+31
+32
+33
+
+
# File 'lib/recurly/http.rb', line 31
+
+def method
+  @method
+end
+
+
+ + + +
+

+ + #pathObject + + + + + +

+
+ +

Returns the value of attribute path.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+31
+32
+33
+
+
# File 'lib/recurly/http.rb', line 31
+
+def path
+  @path
+end
+
+
+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #==(other) ⇒ Object + + + + + +

+ + + + +
+
+
+
+43
+44
+45
+46
+47
+
+
# File 'lib/recurly/http.rb', line 43
+
+def ==(other)
+  method == other.method \
+    && path == other.path \
+    && body == other.body
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/HTTP/Response.html b/Recurly/HTTP/Response.html new file mode 100644 index 000000000..0e3f95cf6 --- /dev/null +++ b/Recurly/HTTP/Response.html @@ -0,0 +1,1015 @@ + + + + + + + Class: Recurly::HTTP::Response + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::HTTP::Response + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/http.rb
+
+ +
+ + + + + +

Instance Attribute Summary collapse

+ + + + + + +

+ Instance Method Summary + collapse +

+ + + + +
+

Constructor Details

+ +
+

+ + #initialize(resp, request) ⇒ Response + + + + + +

+
+ +

Returns a new instance of Response.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+
+
# File 'lib/recurly/http.rb', line 9
+
+def initialize(resp, request)
+  @request = Request.new(request.method, request.path, request.body)
+  @status = resp.code.to_i
+  @request_id = resp["x-request-id"]
+  @rate_limit = resp["x-ratelimit-limit"].to_i
+  @rate_limit_remaining = resp["x-ratelimit-remaining"].to_i
+  @rate_limit_reset = Time.at(resp["x-ratelimit-reset"].to_i).to_datetime
+  @total_records = resp["recurly-total-records"]&.to_i
+  if resp["content-type"]
+    @content_type = resp["content-type"].split(";").first
+  else
+    @content_type = resp.content_type
+  end
+  if resp.body && !resp.body.empty?
+    @body = resp.body
+  else
+    @body = nil
+  end
+end
+
+
+ +
+ +
+

Instance Attribute Details

+ + + +
+

+ + #bodyObject + + + + + +

+
+ +

Returns the value of attribute body.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def body
+  @body
+end
+
+
+ + + +
+

+ + #content_typeObject + + + + + +

+
+ +

Returns the value of attribute content_type.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def content_type
+  @content_type
+end
+
+
+ + + +
+

+ + #dateObject + + + + + +

+
+ +

Returns the value of attribute date.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def date
+  @date
+end
+
+
+ + + +
+

+ + #proxy_metadataObject + + + + + +

+
+ +

Returns the value of attribute proxy_metadata.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def 
+  @proxy_metadata
+end
+
+
+ + + +
+

+ + #rate_limitObject + + + + + +

+
+ +

Returns the value of attribute rate_limit.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def rate_limit
+  @rate_limit
+end
+
+
+ + + +
+

+ + #rate_limit_remainingObject + + + + + +

+
+ +

Returns the value of attribute rate_limit_remaining.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def rate_limit_remaining
+  @rate_limit_remaining
+end
+
+
+ + + +
+

+ + #rate_limit_resetObject + + + + + +

+
+ +

Returns the value of attribute rate_limit_reset.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def rate_limit_reset
+  @rate_limit_reset
+end
+
+
+ + + +
+

+ + #requestObject + + + + + +

+
+ +

Returns the value of attribute request.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def request
+  @request
+end
+
+
+ + + +
+

+ + #request_idObject + + + + + +

+
+ +

Returns the value of attribute request_id.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def request_id
+  @request_id
+end
+
+
+ + + +
+

+ + #statusObject + + + + + +

+
+ +

Returns the value of attribute status.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def status
+  @status
+end
+
+
+ + + +
+

+ + #total_recordsObject + + + + + +

+
+ +

Returns the value of attribute total_records.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/http.rb', line 4
+
+def total_records
+  @total_records
+end
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/JSONParser.html b/Recurly/JSONParser.html new file mode 100644 index 000000000..19263ec56 --- /dev/null +++ b/Recurly/JSONParser.html @@ -0,0 +1,530 @@ + + + + + + + Class: Recurly::JSONParser + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::JSONParser + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/schema/json_parser.rb
+
+ +
+ +

Overview

+
+ +

This is a wrapper class to help parse http response into Recurly objects.

+ + +
+
+
+ + +
+ + + + + + + +

+ Class Method Summary + collapse +

+ + + + + + +
+

Class Method Details

+ + +
+

+ + .from_json(data) ⇒ Error, Resource + + + + + +

+
+ +

Converts the parsed JSON into a Recurly object.

+ +

TODO: Instead of inferring this type from the `object` attribute. We should instead “register” the response type in the client/operations code. The `get`, `post`, etc methods could explicitly state their response types.

+ + +
+
+
+

Parameters:

+
    + +
  • + + data + + + (Hash) + + + + — +
    +

    The parsed JSON data

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Error, Resource) + + + +
  • + +
+ +
+ + + + +
+
+
+
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+
+
# File 'lib/recurly/schema/json_parser.rb', line 28
+
+def self.from_json(data)
+  type = if data.has_key?("error")
+      "error_may_have_transaction"
+    else
+      data["object"]
+    end
+  klazz = self.recurly_class(type)
+
+  unless klazz
+    raise ArgumentError, "Unknown resource for json type #{type}"
+  end
+
+  data = data["error"] if klazz == Resources::ErrorMayHaveTransaction
+
+  klazz.cast(data)
+end
+
+
+ +
+

+ + .parse(client, body) ⇒ Resource + + + + + +

+
+ +

Parses the json body into a recurly object.

+ + +
+
+
+

Parameters:

+
    + +
  • + + client + + + (Client) + + + + — +
    +

    The Recurly client which made the request.

    +
    + +
  • + +
  • + + body + + + (String) + + + + — +
    +

    The JSON string to parse.

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+12
+13
+14
+15
+16
+17
+
+
# File 'lib/recurly/schema/json_parser.rb', line 12
+
+def self.parse(client, body)
+  data = JSON.parse(body)
+  from_json(data).tap do |object|
+    object.client = client if object.requires_client?
+  end
+end
+
+
+ +
+

+ + .recurly_class(type) ⇒ Resource, ... + + + + + +

+
+ +

Returns the Recurly ruby class responsible for the Recurly json key.

+ + +
+
+
+ +
+

Examples:

+ + +
JSONParser.recurly_class('list')
+#=> Recurly::Page
+ + +
JSONParser.recurly_class('shipping_address')
+#=> Recurly::Resources::ShippingAddress
+ +
+

Parameters:

+
    + +
  • + + type + + + (String) + + + + — +
    +

    The JSON key.

    +
    + +
  • + +
+ +

Returns:

+ + +
+ + + + +
+
+
+
+56
+57
+58
+59
+60
+61
+62
+63
+64
+65
+66
+67
+68
+69
+70
+
+
# File 'lib/recurly/schema/json_parser.rb', line 56
+
+def self.recurly_class(type)
+  case type
+  when nil
+    nil
+  when "list"
+    Resources::Page
+  else
+    type_camelized = type.split("_").map(&:capitalize).join
+    if Resources.const_defined?(type_camelized, false)
+      Resources.const_get(type_camelized, false)
+    elsif Recurly::STRICT_MODE
+      raise ArgumentError, "Could not find Recurly Resource responsible for key #{type}"
+    end
+  end
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Pager.html b/Recurly/Pager.html new file mode 100644 index 000000000..4f9cd4a3d --- /dev/null +++ b/Recurly/Pager.html @@ -0,0 +1,916 @@ + + + + + + + Class: Recurly::Pager + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Pager + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/pager.rb
+
+ +
+ + + + + +

Instance Attribute Summary collapse

+ + + + + + +

+ Instance Method Summary + collapse +

+ + + + +
+

Constructor Details

+ +
+

+ + #initialize(client:, path:, options: {}) ⇒ Pager + + + + + +

+
+ +

Returns a new instance of Pager.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+6
+7
+8
+9
+10
+11
+
+
# File 'lib/recurly/pager.rb', line 6
+
+def initialize(client:, path:, options: {})
+  @client = client
+  @path = path
+  @options = options
+  rewind!
+end
+
+
+ +
+ +
+

Instance Attribute Details

+ + + +
+

+ + #clientObject + + + + + +

+
+ +

Returns the value of attribute client.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+3
+4
+5
+
+
# File 'lib/recurly/pager.rb', line 3
+
+def client
+  @client
+end
+
+
+ + + +
+

+ + #dataObject (readonly) + + + + + +

+
+ +

Returns the value of attribute data.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/pager.rb', line 4
+
+def data
+  @data
+end
+
+
+ + + +
+

+ + #nextObject (readonly) + + + + + +

+
+ +

Returns the value of attribute next.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+4
+5
+6
+
+
# File 'lib/recurly/pager.rb', line 4
+
+def next
+  @next
+end
+
+
+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #countObject + + + + + +

+
+ +

Makes a HEAD request to the API to determine how many total records exist.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+26
+27
+28
+29
+
+
# File 'lib/recurly/pager.rb', line 26
+
+def count
+  resource = @client.send(:head, self.next, **@options)
+  resource.get_response.total_records
+end
+
+
+ +
+

+ + #each(&block) ⇒ Object + + + + + +

+
+ +

Enumerates each item on the server. Each item is yielded to the block presenting the effect of a continuous stream of items. In reality, the pager is fetching blocks of data (pages) under the hood. This method yields a given block with the next item to process.

+ + +
+
+
+ +
+

Examples:

+ + +
plans = client.list_plans()
+plans.each do |plan|
+  puts "Plan: #{plan.id}"
+end
+ + +
plans = client.list_plans()
+plans.each.each_with_index do |plan, idx|
+  puts "Plan #{idx}: #{plan.id}"
+end
+ +
+ + +
+ + + + +
+
+
+
+74
+75
+76
+77
+78
+79
+80
+
+
# File 'lib/recurly/pager.rb', line 74
+
+def each(&block)
+  if block_given?
+    item_enumerator.each(&block)
+  else
+    item_enumerator
+  end
+end
+
+
+ +
+

+ + #each_page(&block) ⇒ Object + + + + + +

+
+ +

Enumerates each “page” from the server. This method yields a given block with the array of items in the page `data` and the page number the pagination is on `page_num` which is 0-indexed.

+ + +
+
+
+ +
+

Examples:

+ + +
plans = client.list_plans()
+plans.each_page do |data|
+  data.each do |plan|
+    puts "Plan: #{plan.id}"
+  end
+end
+ + +
plans = client.list_plans()
+plans.each_page.each_with_index do |data, page_num|
+  puts "Page Number: #{page_num}"
+  data.each do |plan|
+    puts "Plan: #{plan.id}"
+  end
+end
+ +
+ + +
+ + + + +
+
+
+
+51
+52
+53
+54
+55
+56
+57
+
+
# File 'lib/recurly/pager.rb', line 51
+
+def each_page(&block)
+  if block_given?
+    page_enumerator.each(&block)
+  else
+    page_enumerator
+  end
+end
+
+
+ +
+

+ + #firstObject + + + + + +

+
+ +

Performs a request with the pager `limit` set to 1 and only returns the first result in the response.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+15
+16
+17
+18
+19
+20
+21
+22
+23
+
+
# File 'lib/recurly/pager.rb', line 15
+
+def first
+  # Modify the @next url to set the :limit to 1
+  original_next = @next
+  @next = @path
+  fetch_next!(@options.merge(params: @options.fetch(:params, {}).merge({ limit: 1 })))
+  # Restore the @next url to the original
+  @next = original_next
+  @data.first
+end
+
+
+ +
+

+ + #has_more?Boolean + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + +
  • + +
+ +
+ + + + +
+
+
+
+82
+83
+84
+
+
# File 'lib/recurly/pager.rb', line 82
+
+def has_more?
+  !!@has_more
+end
+
+
+ +
+

+ + #requires_client?Boolean + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + +
  • + +
+ +
+ + + + +
+
+
+
+86
+87
+88
+
+
# File 'lib/recurly/pager.rb', line 86
+
+def requires_client?
+  true
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Request.html b/Recurly/Request.html new file mode 100644 index 000000000..bbe6594ac --- /dev/null +++ b/Recurly/Request.html @@ -0,0 +1,388 @@ + + + + + + + Class: Recurly::Request + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Request + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + +
+
Extended by:
+
Schema::RequestCaster, Schema::ResourceCaster, Schema::SchemaFactory
+
+ + + +
+
Includes:
+
Schema::SchemaValidator
+
+ + + + + + +
+
Defined in:
+
lib/recurly/request.rb
+
+ +
+ +

Overview

+
+ +

This class represents a request to Recurly. It's used to validate requests data as well as cast and serialize the request data to JSON.

+ + +
+
+
+ + +
+

Direct Known Subclasses

+

Recurly::Requests::AccountAcquisitionCost, Recurly::Requests::AccountAcquisitionUpdate, Recurly::Requests::AccountCreate, Recurly::Requests::AccountPurchase, Recurly::Requests::AccountReference, Recurly::Requests::AccountUpdate, Recurly::Requests::AddOnCreate, Recurly::Requests::AddOnPricing, Recurly::Requests::AddOnUpdate, Recurly::Requests::Address, Recurly::Requests::BillingInfoCreate, Recurly::Requests::BillingInfoVerify, Recurly::Requests::BillingInfoVerifyCVV, Recurly::Requests::CouponBulkCreate, Recurly::Requests::CouponCreate, Recurly::Requests::CouponPricing, Recurly::Requests::CouponRedemptionCreate, Recurly::Requests::CouponUpdate, Recurly::Requests::CustomField, Recurly::Requests::DunningCampaignsBulkUpdate, Recurly::Requests::ExternalAccountCreate, Recurly::Requests::ExternalAccountUpdate, Recurly::Requests::ExternalRefund, Recurly::Requests::ExternalTransaction, Recurly::Requests::GiftCardCreate, Recurly::Requests::GiftCardDeliveryCreate, Recurly::Requests::GiftCardRedeem, Recurly::Requests::InvoiceAddress, Recurly::Requests::InvoiceCollect, Recurly::Requests::InvoiceCreate, Recurly::Requests::InvoiceRefund, Recurly::Requests::InvoiceUpdate, Recurly::Requests::ItemCreate, Recurly::Requests::ItemUpdate, Recurly::Requests::LineItemCreate, Recurly::Requests::LineItemRefund, Recurly::Requests::MeasuredUnitCreate, Recurly::Requests::MeasuredUnitUpdate, Recurly::Requests::PercentageTier, Recurly::Requests::PercentageTiersByCurrency, Recurly::Requests::PlanCreate, Recurly::Requests::PlanHostedPages, Recurly::Requests::PlanPricing, Recurly::Requests::PlanRampInterval, Recurly::Requests::PlanRampPricing, Recurly::Requests::PlanUpdate, Recurly::Requests::Pricing, Recurly::Requests::PurchaseCreate, Recurly::Requests::ShippingAddressCreate, Recurly::Requests::ShippingAddressUpdate, Recurly::Requests::ShippingFeeCreate, Recurly::Requests::ShippingMethodCreate, Recurly::Requests::ShippingMethodUpdate, Recurly::Requests::ShippingPurchase, Recurly::Requests::SubscriptionAddOnCreate, Recurly::Requests::SubscriptionAddOnPercentageTier, Recurly::Requests::SubscriptionAddOnTier, Recurly::Requests::SubscriptionAddOnUpdate, Recurly::Requests::SubscriptionCancel, Recurly::Requests::SubscriptionChangeBillingInfoCreate, Recurly::Requests::SubscriptionChangeCreate, Recurly::Requests::SubscriptionChangeShippingCreate, Recurly::Requests::SubscriptionCreate, Recurly::Requests::SubscriptionPause, Recurly::Requests::SubscriptionPurchase, Recurly::Requests::SubscriptionRampInterval, Recurly::Requests::SubscriptionShippingCreate, Recurly::Requests::SubscriptionShippingPurchase, Recurly::Requests::SubscriptionShippingUpdate, Recurly::Requests::SubscriptionUpdate, Recurly::Requests::Tier, Recurly::Requests::TierPricing, Recurly::Requests::UsageCreate

+
+ + + + +

Instance Attribute Summary collapse

+ + + + + + +

+ Instance Method Summary + collapse +

+ + + + + + + + + + + + + + + + + + + +

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

+ + + +
+

+ + #attributesObject (readonly) + + + + + +

+
+ +

Returns the value of attribute attributes.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+11
+12
+13
+
+
# File 'lib/recurly/request.rb', line 11
+
+def attributes
+  @attributes
+end
+
+
+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #==(other_resource) ⇒ Object + + + + + +

+ + + + +
+
+
+
+13
+14
+15
+
+
# File 'lib/recurly/request.rb', line 13
+
+def ==(other_resource)
+  self.attributes == other_resource.attributes
+end
+
+
+ +
+

+ + #to_sObject + + + + + +

+ + + + +
+
+
+
+17
+18
+19
+
+
# File 'lib/recurly/request.rb', line 17
+
+def to_s
+  self.inspect
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests.html b/Recurly/Requests.html new file mode 100644 index 000000000..62dc2c348 --- /dev/null +++ b/Recurly/Requests.html @@ -0,0 +1,117 @@ + + + + + + + Module: Recurly::Requests + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Module: Recurly::Requests + + + +

+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests.rb,
+ lib/recurly/requests/tier.rb,
lib/recurly/requests/address.rb,
lib/recurly/requests/pricing.rb,
lib/recurly/requests/item_create.rb,
lib/recurly/requests/item_update.rb,
lib/recurly/requests/plan_create.rb,
lib/recurly/requests/plan_update.rb,
lib/recurly/requests/custom_field.rb,
lib/recurly/requests/plan_pricing.rb,
lib/recurly/requests/tier_pricing.rb,
lib/recurly/requests/usage_create.rb,
lib/recurly/requests/add_on_create.rb,
lib/recurly/requests/add_on_update.rb,
lib/recurly/requests/coupon_create.rb,
lib/recurly/requests/coupon_update.rb,
lib/recurly/requests/account_create.rb,
lib/recurly/requests/account_update.rb,
lib/recurly/requests/add_on_pricing.rb,
lib/recurly/requests/coupon_pricing.rb,
lib/recurly/requests/invoice_create.rb,
lib/recurly/requests/invoice_refund.rb,
lib/recurly/requests/invoice_update.rb,
lib/recurly/requests/external_refund.rb,
lib/recurly/requests/invoice_address.rb,
lib/recurly/requests/invoice_collect.rb,
lib/recurly/requests/percentage_tier.rb,
lib/recurly/requests/purchase_create.rb,
lib/recurly/requests/account_purchase.rb,
lib/recurly/requests/gift_card_create.rb,
lib/recurly/requests/gift_card_redeem.rb,
lib/recurly/requests/line_item_create.rb,
lib/recurly/requests/line_item_refund.rb,
lib/recurly/requests/account_reference.rb,
lib/recurly/requests/plan_hosted_pages.rb,
lib/recurly/requests/plan_ramp_pricing.rb,
lib/recurly/requests/shipping_purchase.rb,
lib/recurly/requests/coupon_bulk_create.rb,
lib/recurly/requests/plan_ramp_interval.rb,
lib/recurly/requests/subscription_pause.rb,
lib/recurly/requests/billing_info_create.rb,
lib/recurly/requests/billing_info_verify.rb,
lib/recurly/requests/shipping_fee_create.rb,
lib/recurly/requests/subscription_cancel.rb,
lib/recurly/requests/subscription_create.rb,
lib/recurly/requests/subscription_update.rb,
lib/recurly/requests/external_transaction.rb,
lib/recurly/requests/measured_unit_create.rb,
lib/recurly/requests/measured_unit_update.rb,
lib/recurly/requests/subscription_purchase.rb,
lib/recurly/requests/shipping_method_create.rb,
lib/recurly/requests/shipping_method_update.rb,
lib/recurly/requests/billing_info_verify_cvv.rb,
lib/recurly/requests/external_account_create.rb,
lib/recurly/requests/external_account_update.rb,
lib/recurly/requests/shipping_address_create.rb,
lib/recurly/requests/shipping_address_update.rb,
lib/recurly/requests/account_acquisition_cost.rb,
lib/recurly/requests/coupon_redemption_create.rb,
lib/recurly/requests/subscription_add_on_tier.rb,
lib/recurly/requests/gift_card_delivery_create.rb,
lib/recurly/requests/account_acquisition_update.rb,
lib/recurly/requests/subscription_add_on_create.rb,
lib/recurly/requests/subscription_add_on_update.rb,
lib/recurly/requests/subscription_change_create.rb,
lib/recurly/requests/subscription_ramp_interval.rb,
lib/recurly/requests/percentage_tiers_by_currency.rb,
lib/recurly/requests/subscription_shipping_create.rb,
lib/recurly/requests/subscription_shipping_update.rb,
lib/recurly/requests/dunning_campaigns_bulk_update.rb,
lib/recurly/requests/subscription_shipping_purchase.rb,
lib/recurly/requests/subscription_add_on_percentage_tier.rb,
lib/recurly/requests/subscription_change_shipping_create.rb,
lib/recurly/requests/subscription_change_billing_info_create.rb
+
+
+ +
+ +

Defined Under Namespace

+

+ + + + + Classes: AccountAcquisitionCost, AccountAcquisitionUpdate, AccountCreate, AccountPurchase, AccountReference, AccountUpdate, AddOnCreate, AddOnPricing, AddOnUpdate, Address, BillingInfoCreate, BillingInfoVerify, BillingInfoVerifyCVV, CouponBulkCreate, CouponCreate, CouponPricing, CouponRedemptionCreate, CouponUpdate, CustomField, DunningCampaignsBulkUpdate, ExternalAccountCreate, ExternalAccountUpdate, ExternalRefund, ExternalTransaction, GiftCardCreate, GiftCardDeliveryCreate, GiftCardRedeem, InvoiceAddress, InvoiceCollect, InvoiceCreate, InvoiceRefund, InvoiceUpdate, ItemCreate, ItemUpdate, LineItemCreate, LineItemRefund, MeasuredUnitCreate, MeasuredUnitUpdate, PercentageTier, PercentageTiersByCurrency, PlanCreate, PlanHostedPages, PlanPricing, PlanRampInterval, PlanRampPricing, PlanUpdate, Pricing, PurchaseCreate, ShippingAddressCreate, ShippingAddressUpdate, ShippingFeeCreate, ShippingMethodCreate, ShippingMethodUpdate, ShippingPurchase, SubscriptionAddOnCreate, SubscriptionAddOnPercentageTier, SubscriptionAddOnTier, SubscriptionAddOnUpdate, SubscriptionCancel, SubscriptionChangeBillingInfoCreate, SubscriptionChangeCreate, SubscriptionChangeShippingCreate, SubscriptionCreate, SubscriptionPause, SubscriptionPurchase, SubscriptionRampInterval, SubscriptionShippingCreate, SubscriptionShippingPurchase, SubscriptionShippingUpdate, SubscriptionUpdate, Tier, TierPricing, UsageCreate + + +

+ + + + + + + + + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/AccountAcquisitionCost.html b/Recurly/Requests/AccountAcquisitionCost.html new file mode 100644 index 000000000..f08017e8e --- /dev/null +++ b/Recurly/Requests/AccountAcquisitionCost.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::AccountAcquisitionCost + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::AccountAcquisitionCost + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/account_acquisition_cost.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

+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns The amount of the corresponding currency used to acquire the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The amount of the corresponding currency used to acquire the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/account_acquisition_cost.rb', line 11
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/account_acquisition_cost.rb', line 15
+
+define_attribute :currency, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/AccountAcquisitionUpdate.html b/Recurly/Requests/AccountAcquisitionUpdate.html new file mode 100644 index 000000000..ada14e830 --- /dev/null +++ b/Recurly/Requests/AccountAcquisitionUpdate.html @@ -0,0 +1,529 @@ + + + + + + + Class: Recurly::Requests::AccountAcquisitionUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::AccountAcquisitionUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/account_acquisition_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

+ + + +
+

+ + #campaignString + + + + + +

+
+ +

Returns An arbitrary identifier for the marketing campaign that led to the acquisition of this account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An arbitrary identifier for the marketing campaign that led to the acquisition of this account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/account_acquisition_update.rb', line 11
+
+define_attribute :campaign, String
+
+
+ + + +
+

+ + #channelString + + + + + +

+
+ +

Returns The channel through which the account was acquired.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The channel through which the account was acquired.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/account_acquisition_update.rb', line 15
+
+define_attribute :channel, String
+
+
+ + + +
+

+ + #costAccountAcquisitionCost + + + + + +

+
+ +

Returns Account balance.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/account_acquisition_update.rb', line 19
+
+define_attribute :cost, :AccountAcquisitionCost
+
+
+ + + +
+

+ + #subchannelString + + + + + +

+
+ +

Returns An arbitrary subchannel string representing a distinction/subcategory within a broader channel.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An arbitrary subchannel string representing a distinction/subcategory within a broader channel.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/account_acquisition_update.rb', line 23
+
+define_attribute :subchannel, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/AccountCreate.html b/Recurly/Requests/AccountCreate.html new file mode 100644 index 000000000..834889868 --- /dev/null +++ b/Recurly/Requests/AccountCreate.html @@ -0,0 +1,2146 @@ + + + + + + + Class: Recurly::Requests::AccountCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::AccountCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/account_create.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

+ + + +
+

+ + #acquisitionAccountAcquisitionUpdate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/account_create.rb', line 11
+
+define_attribute :acquisition, :AccountAcquisitionUpdate
+
+
+ + + +
+

+ + #addressAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/account_create.rb', line 15
+
+define_attribute :address, :Address
+
+
+ + + +
+

+ + #bill_toString + + + + + +

+
+ +

Returns An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/account_create.rb', line 19
+
+define_attribute :bill_to, String
+
+
+ + + +
+

+ + #billing_infoBillingInfoCreate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/account_create.rb', line 23
+
+define_attribute :billing_info, :BillingInfoCreate
+
+
+ + + +
+

+ + #cc_emailsString + + + + + +

+
+ +

Returns Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/account_create.rb', line 27
+
+define_attribute :cc_emails, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The unique identifier of the account. This cannot be changed once the account is created.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The unique identifier of the account. This cannot be changed once the account is created.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/account_create.rb', line 31
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/account_create.rb', line 35
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/account_create.rb', line 39
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #dunning_campaign_idString + + + + + +

+
+ +

Returns Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/account_create.rb', line 43
+
+define_attribute :dunning_campaign_id, String
+
+
+ + + +
+

+ + #emailString + + + + + +

+
+ +

Returns The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/account_create.rb', line 47
+
+define_attribute :email, String
+
+
+ + + +
+

+ + #exemption_certificateString + + + + + +

+
+ +

Returns The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/account_create.rb', line 51
+
+define_attribute :exemption_certificate, String
+
+
+ + + +
+

+ + #external_accountsArray[ExternalAccountCreate] + + + + + +

+
+ +

Returns External Accounts.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/account_create.rb', line 55
+
+define_attribute :external_accounts, Array, { :item_type => :ExternalAccountCreate }
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/account_create.rb', line 59
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #invoice_template_idString + + + + + +

+
+ +

Returns Unique ID to identify an invoice template. Available when the site is on a Pro or Enterprise plan. Used to specify which invoice template, if any, should be used to generate invoices for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify an invoice template. Available when the site is on a Pro or Enterprise plan. Used to specify which invoice template, if any, should be used to generate invoices for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/account_create.rb', line 63
+
+define_attribute :invoice_template_id, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/account_create.rb', line 67
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #parent_account_codeString + + + + + +

+
+ +

Returns The account code of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The account code of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/account_create.rb', line 71
+
+define_attribute :parent_account_code, String
+
+
+ + + +
+

+ + #parent_account_idString + + + + + +

+
+ +

Returns The UUID of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The UUID of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/account_create.rb', line 75
+
+define_attribute :parent_account_id, String
+
+
+ + + +
+

+ + #preferred_localeString + + + + + +

+
+ +

Returns Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/account_create.rb', line 79
+
+define_attribute :preferred_locale, String
+
+
+ + + +
+

+ + #preferred_time_zoneString + + + + + +

+
+ +

Returns Used to determine the time zone of emails sent on behalf of the merchant to the customer. Must be a [supported IANA time zone name](docs.recurly.com/docs/email-time-zones-and-time-stamps#supported-api-iana-time-zone-names).

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/requests/account_create.rb', line 83
+
+define_attribute :preferred_time_zone, String
+
+
+ + + +
+

+ + #shipping_addressesArray[ShippingAddressCreate] + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/requests/account_create.rb', line 87
+
+define_attribute :shipping_addresses, Array, { :item_type => :ShippingAddressCreate }
+
+
+ + + +
+

+ + #tax_exemptBoolean + + + + + +

+
+ +

Returns The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/requests/account_create.rb', line 91
+
+define_attribute :tax_exempt, :Boolean
+
+
+ + + +
+

+ + #transaction_typeString + + + + + +

+
+ +

Returns An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/requests/account_create.rb', line 95
+
+define_attribute :transaction_type, String
+
+
+ + + +
+

+ + #usernameString + + + + + +

+
+ +

Returns A secondary value for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A secondary value for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/requests/account_create.rb', line 99
+
+define_attribute :username, String
+
+
+ + + +
+

+ + #vat_numberString + + + + + +

+
+ +

Returns The VAT number of the account (to avoid having the VAT applied). This is only used for manually collected invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The VAT number of the account (to avoid having the VAT applied). This is only used for manually collected invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/requests/account_create.rb', line 103
+
+define_attribute :vat_number, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/AccountPurchase.html b/Recurly/Requests/AccountPurchase.html new file mode 100644 index 000000000..62c7f615d --- /dev/null +++ b/Recurly/Requests/AccountPurchase.html @@ -0,0 +1,2071 @@ + + + + + + + Class: Recurly::Requests::AccountPurchase + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::AccountPurchase + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/account_purchase.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

+ + + +
+

+ + #acquisitionAccountAcquisitionUpdate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 11
+
+define_attribute :acquisition, :AccountAcquisitionUpdate
+
+
+ + + +
+

+ + #addressAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 15
+
+define_attribute :address, :Address
+
+
+ + + +
+

+ + #bill_toString + + + + + +

+
+ +

Returns An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 19
+
+define_attribute :bill_to, String
+
+
+ + + +
+

+ + #billing_infoBillingInfoCreate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 23
+
+define_attribute :billing_info, :BillingInfoCreate
+
+
+ + + +
+

+ + #cc_emailsString + + + + + +

+
+ +

Returns Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 27
+
+define_attribute :cc_emails, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The unique identifier of the account. This cannot be changed once the account is created.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The unique identifier of the account. This cannot be changed once the account is created.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 31
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 35
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 39
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #dunning_campaign_idString + + + + + +

+
+ +

Returns Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 43
+
+define_attribute :dunning_campaign_id, String
+
+
+ + + +
+

+ + #emailString + + + + + +

+
+ +

Returns The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 47
+
+define_attribute :email, String
+
+
+ + + +
+

+ + #exemption_certificateString + + + + + +

+
+ +

Returns The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 51
+
+define_attribute :exemption_certificate, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 55
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Optional, but if present allows an existing account to be used and updated as part of the purchase.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional, but if present allows an existing account to be used and updated as part of the purchase.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 59
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #invoice_template_idString + + + + + +

+
+ +

Returns Unique ID to identify an invoice template. Available when the site is on a Pro or Enterprise plan. Used to specify which invoice template, if any, should be used to generate invoices for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify an invoice template. Available when the site is on a Pro or Enterprise plan. Used to specify which invoice template, if any, should be used to generate invoices for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 63
+
+define_attribute :invoice_template_id, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 67
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #parent_account_codeString + + + + + +

+
+ +

Returns The account code of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The account code of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 71
+
+define_attribute :parent_account_code, String
+
+
+ + + +
+

+ + #parent_account_idString + + + + + +

+
+ +

Returns The UUID of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The UUID of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 75
+
+define_attribute :parent_account_id, String
+
+
+ + + +
+

+ + #preferred_localeString + + + + + +

+
+ +

Returns Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 79
+
+define_attribute :preferred_locale, String
+
+
+ + + +
+

+ + #preferred_time_zoneString + + + + + +

+
+ +

Returns Used to determine the time zone of emails sent on behalf of the merchant to the customer. Must be a [supported IANA time zone name](docs.recurly.com/docs/email-time-zones-and-time-stamps#supported-api-iana-time-zone-names).

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 83
+
+define_attribute :preferred_time_zone, String
+
+
+ + + +
+

+ + #tax_exemptBoolean + + + + + +

+
+ +

Returns The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 87
+
+define_attribute :tax_exempt, :Boolean
+
+
+ + + +
+

+ + #transaction_typeString + + + + + +

+
+ +

Returns An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 91
+
+define_attribute :transaction_type, String
+
+
+ + + +
+

+ + #usernameString + + + + + +

+
+ +

Returns A secondary value for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A secondary value for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 95
+
+define_attribute :username, String
+
+
+ + + +
+

+ + #vat_numberString + + + + + +

+
+ +

Returns The VAT number of the account (to avoid having the VAT applied). This is only used for manually collected invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The VAT number of the account (to avoid having the VAT applied). This is only used for manually collected invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/requests/account_purchase.rb', line 99
+
+define_attribute :vat_number, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/AccountReference.html b/Recurly/Requests/AccountReference.html new file mode 100644 index 000000000..e179c497b --- /dev/null +++ b/Recurly/Requests/AccountReference.html @@ -0,0 +1,343 @@ + + + + + + + Class: Recurly::Requests::AccountReference + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::AccountReference + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/account_reference.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

+ + + +
+

+ + #codeString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/account_reference.rb', line 11
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/account_reference.rb', line 15
+
+define_attribute :id, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/AccountUpdate.html b/Recurly/Requests/AccountUpdate.html new file mode 100644 index 000000000..54bc2c836 --- /dev/null +++ b/Recurly/Requests/AccountUpdate.html @@ -0,0 +1,1828 @@ + + + + + + + Class: Recurly::Requests::AccountUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::AccountUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/account_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

+ + + +
+

+ + #addressAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/account_update.rb', line 11
+
+define_attribute :address, :Address
+
+
+ + + +
+

+ + #bill_toString + + + + + +

+
+ +

Returns An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/account_update.rb', line 15
+
+define_attribute :bill_to, String
+
+
+ + + +
+

+ + #billing_infoBillingInfoCreate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/account_update.rb', line 19
+
+define_attribute :billing_info, :BillingInfoCreate
+
+
+ + + +
+

+ + #cc_emailsString + + + + + +

+
+ +

Returns Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/account_update.rb', line 23
+
+define_attribute :cc_emails, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/account_update.rb', line 27
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/account_update.rb', line 31
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #dunning_campaign_idString + + + + + +

+
+ +

Returns Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/account_update.rb', line 35
+
+define_attribute :dunning_campaign_id, String
+
+
+ + + +
+

+ + #emailString + + + + + +

+
+ +

Returns The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/account_update.rb', line 39
+
+define_attribute :email, String
+
+
+ + + +
+

+ + #exemption_certificateString + + + + + +

+
+ +

Returns The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/account_update.rb', line 43
+
+define_attribute :exemption_certificate, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/account_update.rb', line 47
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #invoice_template_idString + + + + + +

+
+ +

Returns Unique ID to identify an invoice template. Available when the site is on a Pro or Enterprise plan. Used to specify which invoice template, if any, should be used to generate invoices for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify an invoice template. Available when the site is on a Pro or Enterprise plan. Used to specify which invoice template, if any, should be used to generate invoices for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/account_update.rb', line 51
+
+define_attribute :invoice_template_id, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/account_update.rb', line 55
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #parent_account_codeString + + + + + +

+
+ +

Returns The account code of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The account code of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/account_update.rb', line 59
+
+define_attribute :parent_account_code, String
+
+
+ + + +
+

+ + #parent_account_idString + + + + + +

+
+ +

Returns The UUID of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The UUID of the parent account to be associated with this account. Passing an empty value removes any existing parent association from this account. If both `parent_account_code` and `parent_account_id` are passed, the non-blank value in `parent_account_id` will be used. Only one level of parent child relationship is allowed. You cannot assign a parent account that itself has a parent account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/account_update.rb', line 63
+
+define_attribute :parent_account_id, String
+
+
+ + + +
+

+ + #preferred_localeString + + + + + +

+
+ +

Returns Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used to determine the language and locale of emails sent on behalf of the merchant to the customer. The list of locales is restricted to those the merchant has enabled on the site.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/account_update.rb', line 67
+
+define_attribute :preferred_locale, String
+
+
+ + + +
+

+ + #preferred_time_zoneString + + + + + +

+
+ +

Returns Used to determine the time zone of emails sent on behalf of the merchant to the customer. Must be a [supported IANA time zone name](docs.recurly.com/docs/email-time-zones-and-time-stamps#supported-api-iana-time-zone-names).

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/account_update.rb', line 71
+
+define_attribute :preferred_time_zone, String
+
+
+ + + +
+

+ + #tax_exemptBoolean + + + + + +

+
+ +

Returns The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/account_update.rb', line 75
+
+define_attribute :tax_exempt, :Boolean
+
+
+ + + +
+

+ + #transaction_typeString + + + + + +

+
+ +

Returns An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/account_update.rb', line 79
+
+define_attribute :transaction_type, String
+
+
+ + + +
+

+ + #usernameString + + + + + +

+
+ +

Returns A secondary value for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A secondary value for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/requests/account_update.rb', line 83
+
+define_attribute :username, String
+
+
+ + + +
+

+ + #vat_numberString + + + + + +

+
+ +

Returns The VAT number of the account (to avoid having the VAT applied). This is only used for manually collected invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The VAT number of the account (to avoid having the VAT applied). This is only used for manually collected invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/requests/account_update.rb', line 87
+
+define_attribute :vat_number, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/AddOnCreate.html b/Recurly/Requests/AddOnCreate.html new file mode 100644 index 000000000..013112103 --- /dev/null +++ b/Recurly/Requests/AddOnCreate.html @@ -0,0 +1,2211 @@ + + + + + + + Class: Recurly::Requests::AddOnCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::AddOnCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/add_on_create.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_codeString + + + + + +

+
+ +

Returns Accounting code for invoice line items for this add-on. If no value is provided, it defaults to add-on's code. If `item_code`/`item_id` is part of the request 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 `item_code`/`item_id` is part of the request then `accounting_code` must be absent.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 11
+
+define_attribute :accounting_code, String
+
+
+ + + +
+

+ + #add_on_typeString + + + + + +

+
+ +

Returns Whether the add-on type is fixed, or usage-based.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Whether the add-on type is fixed, or usage-based.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 15
+
+define_attribute :add_on_type, String
+
+
+ + + +
+

+ + #avalara_service_typeInteger + + + + + +

+
+ +

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](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. If an `Item` is associated to the `AddOn`, then the `avalara_service_type` must be absent.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 19
+
+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 add-on 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. If an `Item` is associated to the `AddOn`, then the `avalara_transaction_type` must be absent.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 23
+
+define_attribute :avalara_transaction_type, Integer
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The unique identifier for the add-on within its plan. If `item_code`/`item_id` is part of the request then `code` must be absent. If `item_code`/`item_id` is not present `code` is required.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The unique identifier for the add-on within its plan. If `item_code`/`item_id` is part of the request then `code` must be absent. If `item_code`/`item_id` is not present `code` is required.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 27
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #currenciesArray[AddOnPricing] + + + + + +

+
+ +

Returns * If `item_code`/`item_id` is part of the request and the item has a default currency then `currencies` is optional. If the item does not have a default currency, then `currencies` is required. If `item_code`/`item_id` is not present `currencies` is required. * If the add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `currencies` must be absent. * Must be absent if `add_on_type` is `usage` and `usage_type` is `percentage`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[AddOnPricing]) + + + + — +
    • +

      If `item_code`/`item_id` is part of the request and the item has a default currency then `currencies` is optional. If the item does not have a default currency, then `currencies` is required. If `item_code`/`item_id` is not present `currencies` is required. * If the add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `currencies` must be absent. * Must be absent if `add_on_type` is `usage` and `usage_type` is `percentage`.

      +
    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 31
+
+define_attribute :currencies, Array, { :item_type => :AddOnPricing }
+
+
+ + + +
+

+ + #default_quantityInteger + + + + + +

+
+ +

Returns Default quantity for the hosted pages.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Default quantity for the hosted pages.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 35
+
+define_attribute :default_quantity, Integer
+
+
+ + + +
+

+ + #display_quantityBoolean + + + + + +

+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 39
+
+define_attribute :display_quantity, :Boolean
+
+
+ + + +
+

+ + #item_codeString + + + + + +

+
+ +

Returns Unique code to identify an item. Available when the `Credit Invoices` feature are enabled. If `item_id` and `item_code` are both present, `item_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique code to identify an item. Available when the `Credit Invoices` feature are enabled. If `item_id` and `item_code` are both present, `item_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 43
+
+define_attribute :item_code, String
+
+
+ + + +
+

+ + #item_idString + + + + + +

+
+ +

Returns System-generated unique identifier for an item. Available when the `Credit Invoices` feature is enabled. If `item_id` and `item_code` are both present, `item_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    System-generated unique identifier for an item. Available when the `Credit Invoices` feature is enabled. If `item_id` and `item_code` are both present, `item_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 47
+
+define_attribute :item_id, String
+
+
+ + + +
+

+ + #measured_unit_idString + + + + + +

+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 51
+
+define_attribute :measured_unit_id, String
+
+
+ + + +
+

+ + #measured_unit_nameString + + + + + +

+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 55
+
+define_attribute :measured_unit_name, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Describes your add-on and will appear in subscribers' invoices. If `item_code`/`item_id` is part of the request then `name` must be absent. If `item_code`/`item_id` is not present `name` is required.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Describes your add-on and will appear in subscribers' invoices. If `item_code`/`item_id` is part of the request then `name` must be absent. If `item_code`/`item_id` is not present `name` is required.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 59
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #optionalBoolean + + + + + +

+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 63
+
+define_attribute :optional, :Boolean
+
+
+ + + +
+

+ + #percentage_tiersArray[PercentageTiersByCurrency] + + + + + +

+
+ +

Returns Array of objects which must have at least one set of tiers per currency and the currency code. The tier_type must be `volume` or `tiered`, if not, it must be absent. There must be one tier without an `ending_amount` value which represents the final tier. This feature is currently in development and requires approval and enablement, please contact support.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[PercentageTiersByCurrency]) + + + + — +
    +

    Array of objects which must have at least one set of tiers per currency and the currency code. The tier_type must be `volume` or `tiered`, if not, it must be absent. There must be one tier without an `ending_amount` value which represents the final tier. This feature is currently in development and requires approval and enablement, please contact support.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 67
+
+define_attribute :percentage_tiers, Array, { :item_type => :PercentageTiersByCurrency }
+
+
+ + + +
+

+ + #plan_idString + + + + + +

+
+ +

Returns Plan ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Plan ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 71
+
+define_attribute :plan_id, String
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns When this add-on is invoiced, the line item will use this revenue schedule. If `item_code`/`item_id` is part of the request 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 `item_code`/`item_id` is part of the request then `revenue_schedule_type` must be absent in the request as the value will be set from the item.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 75
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

Returns Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`. If `item_code`/`item_id` is part of the request then `tax_code` must be absent.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`. If `item_code`/`item_id` is part of the request then `tax_code` must be absent.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 79
+
+define_attribute :tax_code, String
+
+
+ + + +
+

+ + #tier_typeString + + + + + +

+
+ +

Returns The pricing model for the add-on. For more information, [click here](docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 83
+
+define_attribute :tier_type, String
+
+
+ + + +
+

+ + #tiersArray[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 without an `ending_quantity` value which represents the final tier.

+ + +
+
+
+ +

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 without an `ending_quantity` value which represents the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 87
+
+define_attribute :tiers, Array, { :item_type => :Tier }
+
+
+ + + +
+

+ + #usage_calculation_typeString + + + + + +

+
+ +

Returns The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 91
+
+define_attribute :usage_calculation_type, String
+
+
+ + + +
+

+ + #usage_percentageFloat + + + + + +

+
+ +

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, `tier_type` is `flat` and `usage_type` is percentage. Must be omitted otherwise.

+ + +
+
+
+ +

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, `tier_type` is `flat` and `usage_type` is percentage. Must be omitted otherwise.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 95
+
+define_attribute :usage_percentage, Float
+
+
+ + + +
+

+ + #usage_timeframeString + + + + + +

+
+ +

Returns The time at which usage totals are reset for billing purposes. Allows for `tiered` add-ons to accumulate usage over the course of multiple billing periods.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The time at which usage totals are reset for billing purposes. Allows for `tiered` add-ons to accumulate usage over the course of multiple billing periods.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 99
+
+define_attribute :usage_timeframe, String
+
+
+ + + +
+

+ + #usage_typeString + + + + + +

+
+ +

Returns Type of usage, required if `add_on_type` is `usage`. See our [Guide](recurly.com/developers/guides/usage-based-billing-guide.html) for an overview of how to configure usage add-ons.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/requests/add_on_create.rb', line 103
+
+define_attribute :usage_type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/AddOnPricing.html b/Recurly/Requests/AddOnPricing.html new file mode 100644 index 000000000..78ef3aa04 --- /dev/null +++ b/Recurly/Requests/AddOnPricing.html @@ -0,0 +1,529 @@ + + + + + + + Class: Recurly::Requests::AddOnPricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::AddOnPricing + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/add_on_pricing.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/add_on_pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns This field is deprecated. Please do not use it.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    This field is deprecated. Please do not use it.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/add_on_pricing.rb', line 15
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/add_on_pricing.rb', line 19
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/add_on_pricing.rb', line 23
+
+define_attribute :unit_amount_decimal, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/AddOnUpdate.html b/Recurly/Requests/AddOnUpdate.html new file mode 100644 index 000000000..784d01394 --- /dev/null +++ b/Recurly/Requests/AddOnUpdate.html @@ -0,0 +1,1705 @@ + + + + + + + Class: Recurly::Requests::AddOnUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

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_codeString + + + + + +

+
+ +

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_typeInteger + + + + + +

+
+ +

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](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. If an `Item` is associated to the `AddOn`, then the `avalara_service_type` must be absent.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/add_on_update.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 add-on 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. If an `Item` is associated to the `AddOn`, then the `avalara_transaction_type` must be absent.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/add_on_update.rb', line 19
+
+define_attribute :avalara_transaction_type, Integer
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

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
+
+
+ + + +
+

+ + #currenciesArray[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_quantityInteger + + + + + +

+
+ +

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_quantityBoolean + + + + + +

+
+ +

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
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

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_idString + + + + + +

+
+ +

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_nameString + + + + + +

+
+ +

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
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

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
+
+
+ + + +
+

+ + #optionalBoolean + + + + + +

+
+ +

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
+
+
+ + + +
+

+ + #percentage_tiersArray[PercentageTiersByCurrency] + + + + + +

+
+ +

Returns `percentage_tiers` is an array of objects, which must have the set of tiers per currency and the currency code. The tier_type must be `volume` or `tiered`, if not, it must be absent. There must be one tier without an `ending_amount` value which represents the final tier. This feature is currently in development and requires approval and enablement, please contact support.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[PercentageTiersByCurrency]) + + + + — +
    +

    `percentage_tiers` is an array of objects, which must have the set of tiers per currency and the currency code. The tier_type must be `volume` or `tiered`, if not, it must be absent. There must be one tier without an `ending_amount` value which represents the final tier. This feature is currently in development and requires approval and enablement, please contact support.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/add_on_update.rb', line 59
+
+define_attribute :percentage_tiers, Array, { :item_type => :PercentageTiersByCurrency }
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns When this add-on is invoiced, the line item will use this revenue schedule. If `item_code`/`item_id` is part of the request 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 `item_code`/`item_id` is part of the request then `revenue_schedule_type` must be absent in the request as the value will be set from the item.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/add_on_update.rb', line 63
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

Returns Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`. 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 EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`. If an `Item` is associated to the `AddOn` then `tax code` must be absent.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/add_on_update.rb', line 67
+
+define_attribute :tax_code, String
+
+
+ + + +
+

+ + #tiersArray[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 without an `ending_quantity` value which represents the final tier.

+ + +
+
+
+ +

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 without an `ending_quantity` value which represents the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/add_on_update.rb', line 71
+
+define_attribute :tiers, Array, { :item_type => :Tier }
+
+
+ + + +
+

+ + #usage_calculation_typeString + + + + + +

+
+ +

Returns The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/add_on_update.rb', line 75
+
+define_attribute :usage_calculation_type, String
+
+
+ + + +
+

+ + #usage_percentageFloat + + + + + +

+
+ +

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, `tier_type` is `flat` and `usage_type` is percentage. Must be omitted otherwise.

+ + +
+
+
+ +

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, `tier_type` is `flat` and `usage_type` is percentage. Must be omitted otherwise.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/add_on_update.rb', line 79
+
+define_attribute :usage_percentage, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/Address.html b/Recurly/Requests/Address.html new file mode 100644 index 000000000..24f3e77e9 --- /dev/null +++ b/Recurly/Requests/Address.html @@ -0,0 +1,781 @@ + + + + + + + Class: Recurly::Requests::Address + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::Address + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/address.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

+ + + +
+

+ + #cityString + + + + + +

+
+ +

Returns City.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    City

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/address.rb', line 11
+
+define_attribute :city, String
+
+
+ + + +
+

+ + #countryString + + + + + +

+
+ +

Returns Country, 2-letter ISO 3166-1 alpha-2 code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Country, 2-letter ISO 3166-1 alpha-2 code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/address.rb', line 15
+
+define_attribute :country, String
+
+
+ + + +
+

+ + #phoneString + + + + + +

+
+ +

Returns Phone number.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Phone number

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/address.rb', line 19
+
+define_attribute :phone, String
+
+
+ + + +
+

+ + #postal_codeString + + + + + +

+
+ +

Returns Zip or postal code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Zip or postal code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/address.rb', line 23
+
+define_attribute :postal_code, String
+
+
+ + + +
+

+ + #regionString + + + + + +

+
+ +

Returns State or province.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    State or province.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/address.rb', line 27
+
+define_attribute :region, String
+
+
+ + + +
+

+ + #street1String + + + + + +

+
+ +

Returns Street 1.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Street 1

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/address.rb', line 31
+
+define_attribute :street1, String
+
+
+ + + +
+

+ + #street2String + + + + + +

+
+ +

Returns Street 2.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Street 2

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/address.rb', line 35
+
+define_attribute :street2, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/BillingInfoCreate.html b/Recurly/Requests/BillingInfoCreate.html new file mode 100644 index 000000000..14242801e --- /dev/null +++ b/Recurly/Requests/BillingInfoCreate.html @@ -0,0 +1,2947 @@ + + + + + + + Class: Recurly::Requests::BillingInfoCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::BillingInfoCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/billing_info_create.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

+ + + +
+

+ + #account_numberString + + + + + +

+
+ +

Returns The bank account number. (ACH, Bacs only).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The bank account number. (ACH, Bacs only)

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 11
+
+define_attribute :account_number, String
+
+
+ + + +
+

+ + #account_typeString + + + + + +

+
+ +

Returns The bank account type. (ACH only).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The bank account type. (ACH only)

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 15
+
+define_attribute :account_type, String
+
+
+ + + +
+

+ + #addressAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 19
+
+define_attribute :address, :Address
+
+
+ + + +
+

+ + #amazon_billing_agreement_idString + + + + + +

+
+ +

Returns Amazon billing agreement ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Amazon billing agreement ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 23
+
+define_attribute :amazon_billing_agreement_id, String
+
+
+ + + +
+

+ + #backup_payment_methodBoolean + + + + + +

+
+ +

Returns The `backup_payment_method` field is used to designate a billing info as a backup on the account that will be tried if the initial billing info used for an invoice is declined. All payment methods, including the billing info marked `primary_payment_method` can be set as a backup. An account can have a maximum of 1 backup, if a user sets a different payment method as a backup, the existing backup will no longer be marked as such.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The `backup_payment_method` field is used to designate a billing info as a backup on the account that will be tried if the initial billing info used for an invoice is declined. All payment methods, including the billing info marked `primary_payment_method` can be set as a backup. An account can have a maximum of 1 backup, if a user sets a different payment method as a backup, the existing backup will no longer be marked as such.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 27
+
+define_attribute :backup_payment_method, :Boolean
+
+
+ + + +
+

+ + #card_typeString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 31
+
+define_attribute :card_type, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ +

Returns Company name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Company name

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 35
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 39
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #cvvString + + + + + +

+
+ +

Returns *STRONGLY RECOMMENDED*.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    *STRONGLY RECOMMENDED*

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 43
+
+define_attribute :cvv, String
+
+
+ + + +
+

+ + #external_hpp_typeString + + + + + +

+
+ +

Returns Use for Adyen HPP billing info. This should only be used as part of a pending purchase request, when the billing info is nested inside an account object.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Use for Adyen HPP billing info. This should only be used as part of a pending purchase request, when the billing info is nested inside an account object.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 47
+
+define_attribute :external_hpp_type, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ +

Returns First name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    First name

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 51
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #fraud_session_idString + + + + + +

+
+ +

Returns Fraud Session ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Fraud Session ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 55
+
+define_attribute :fraud_session_id, String
+
+
+ + + +
+

+ + #gateway_codeString + + + + + +

+
+ +

Returns An identifier for a specific payment gateway. Must be used in conjunction with `gateway_token`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An identifier for a specific payment gateway. Must be used in conjunction with `gateway_token`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 59
+
+define_attribute :gateway_code, String
+
+
+ + + +
+

+ + #gateway_tokenString + + + + + +

+
+ +

Returns A token used in place of a credit card in order to perform transactions. Must be used in conjunction with `gateway_code`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A token used in place of a credit card in order to perform transactions. Must be used in conjunction with `gateway_code`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 63
+
+define_attribute :gateway_token, String
+
+
+ + + +
+

+ + #ibanString + + + + + +

+
+ +

Returns The International Bank Account Number, up to 34 alphanumeric characters comprising a country code; two check digits; and a number that includes the domestic bank account number, branch identifier, and potential routing information.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The International Bank Account Number, up to 34 alphanumeric characters comprising a country code; two check digits; and a number that includes the domestic bank account number, branch identifier, and potential routing information

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 67
+
+define_attribute :iban, String
+
+
+ + + +
+

+ + #ip_addressString + + + + + +

+
+ +

Returns *STRONGLY RECOMMENDED* Customer's IP address when updating their billing information.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    *STRONGLY RECOMMENDED* Customer's IP address when updating their billing information.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 71
+
+define_attribute :ip_address, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ +

Returns Last name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Last name

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 75
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #monthString + + + + + +

+
+ +

Returns Expiration month.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Expiration month

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 79
+
+define_attribute :month, String
+
+
+ + + +
+

+ + #name_on_accountString + + + + + +

+
+ +

Returns The name associated with the bank account (ACH, SEPA, Bacs only).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The name associated with the bank account (ACH, SEPA, Bacs only)

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 83
+
+define_attribute :name_on_account, String
+
+
+ + + +
+

+ + #numberString + + + + + +

+
+ +

Returns Credit card number, spaces and dashes are accepted.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Credit card number, spaces and dashes are accepted.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 87
+
+define_attribute :number, String
+
+
+ + + +
+

+ + #online_banking_payment_typeString + + + + + +

+
+ +

Returns Use for Online Banking billing info. This should only be used as part of a pending purchase request, when the billing info is nested inside an account object.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Use for Online Banking billing info. This should only be used as part of a pending purchase request, when the billing info is nested inside an account object.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 91
+
+define_attribute :online_banking_payment_type, String
+
+
+ + + +
+

+ + #paypal_billing_agreement_idString + + + + + +

+
+ +

Returns PayPal billing agreement ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    PayPal billing agreement ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 95
+
+define_attribute :paypal_billing_agreement_id, String
+
+
+ + + +
+

+ + #primary_payment_methodBoolean + + + + + +

+
+ +

Returns The `primary_payment_method` field is used to designate the primary billing info on the account. The first billing info created on an account will always become primary. Adding additional billing infos provides the flexibility to mark another billing info as primary, or adding additional non-primary billing infos. This can be accomplished by passing the `primary_payment_method` with a value of `true`. When adding billing infos via the billing_info and /accounts endpoints, this value is not permitted, and will return an error if provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The `primary_payment_method` field is used to designate the primary billing info on the account. The first billing info created on an account will always become primary. Adding additional billing infos provides the flexibility to mark another billing info as primary, or adding additional non-primary billing infos. This can be accomplished by passing the `primary_payment_method` with a value of `true`. When adding billing infos via the billing_info and /accounts endpoints, this value is not permitted, and will return an error if provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 99
+
+define_attribute :primary_payment_method, :Boolean
+
+
+ + + +
+

+ + #routing_numberString + + + + + +

+
+ +

Returns The bank's rounting number. (ACH only).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The bank's rounting number. (ACH only)

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 103
+
+define_attribute :routing_number, String
+
+
+ + + +
+

+ + #sort_codeString + + + + + +

+
+ +

Returns Bank identifier code for UK based banks. Required for Bacs based billing infos. (Bacs only).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Bank identifier code for UK based banks. Required for Bacs based billing infos. (Bacs only)

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+107
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 107
+
+define_attribute :sort_code, String
+
+
+ + + +
+

+ + #tax_identifierString + + + + + +

+
+ +

Returns Tax identifier is required if adding a billing info that is a consumer card in Brazil or in Argentina. This would be the customer's CPF/CNPJ (Brazil) and CUIT (Argentina). CPF, CNPJ and CUIT are tax identifiers for all residents who pay taxes in Brazil and Argentina respectively.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Tax identifier is required if adding a billing info that is a consumer card in Brazil or in Argentina. This would be the customer's CPF/CNPJ (Brazil) and CUIT (Argentina). CPF, CNPJ and CUIT are tax identifiers for all residents who pay taxes in Brazil and Argentina respectively.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+111
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 111
+
+define_attribute :tax_identifier, String
+
+
+ + + +
+

+ + #tax_identifier_typeString + + + + + +

+
+ +

Returns This field and a value of `cpf`, `cnpj` or `cuit` are required if adding a billing info that is an elo or hipercard type in Brazil or in Argentina.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This field and a value of `cpf`, `cnpj` or `cuit` are required if adding a billing info that is an elo or hipercard type in Brazil or in Argentina.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+115
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 115
+
+define_attribute :tax_identifier_type, String
+
+
+ + + +
+

+ + #three_d_secure_action_result_token_idString + + + + + +

+
+ +

Returns A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+119
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 119
+
+define_attribute :three_d_secure_action_result_token_id, String
+
+
+ + + +
+

+ + #token_idString + + + + + +

+
+ +

Returns A token [generated by Recurly.js](recurly.com/developers/reference/recurly-js/#getting-a-token).

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+123
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 123
+
+define_attribute :token_id, String
+
+
+ + + +
+

+ + #transaction_typeString + + + + + +

+
+ +

Returns An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+127
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 127
+
+define_attribute :transaction_type, String
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns The payment method type for a non-credit card based billing info. `bacs` and `becs` are the only accepted values.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The payment method type for a non-credit card based billing info. `bacs` and `becs` are the only accepted values.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+131
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 131
+
+define_attribute :type, String
+
+
+ + + +
+

+ + #vat_numberString + + + + + +

+
+ +

Returns VAT number.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    VAT number

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+135
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 135
+
+define_attribute :vat_number, String
+
+
+ + + +
+

+ + #yearString + + + + + +

+
+ +

Returns Expiration year.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Expiration year

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+139
+
+
# File 'lib/recurly/requests/billing_info_create.rb', line 139
+
+define_attribute :year, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/BillingInfoVerify.html b/Recurly/Requests/BillingInfoVerify.html new file mode 100644 index 000000000..79e589e54 --- /dev/null +++ b/Recurly/Requests/BillingInfoVerify.html @@ -0,0 +1,277 @@ + + + + + + + Class: Recurly::Requests::BillingInfoVerify + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::BillingInfoVerify + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/billing_info_verify.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

+ + + +
+

+ + #gateway_codeString + + + + + +

+
+ +

Returns An identifier for a specific payment gateway.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An identifier for a specific payment gateway.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/billing_info_verify.rb', line 11
+
+define_attribute :gateway_code, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/BillingInfoVerifyCVV.html b/Recurly/Requests/BillingInfoVerifyCVV.html new file mode 100644 index 000000000..7717d7f6a --- /dev/null +++ b/Recurly/Requests/BillingInfoVerifyCVV.html @@ -0,0 +1,277 @@ + + + + + + + Class: Recurly::Requests::BillingInfoVerifyCVV + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::BillingInfoVerifyCVV + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/billing_info_verify_cvv.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

+ + + +
+

+ + #verification_valueString + + + + + +

+
+ +

Returns Unique security code for a credit card.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique security code for a credit card.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/billing_info_verify_cvv.rb', line 11
+
+define_attribute :verification_value, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/CouponBulkCreate.html b/Recurly/Requests/CouponBulkCreate.html new file mode 100644 index 000000000..4c604fb39 --- /dev/null +++ b/Recurly/Requests/CouponBulkCreate.html @@ -0,0 +1,277 @@ + + + + + + + Class: Recurly::Requests::CouponBulkCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::CouponBulkCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/coupon_bulk_create.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

+ + + +
+

+ + #number_of_unique_codesInteger + + + + + +

+
+ +

Returns The quantity of unique coupon codes to generate.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The quantity of unique coupon codes to generate

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/coupon_bulk_create.rb', line 11
+
+define_attribute :number_of_unique_codes, Integer
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/CouponCreate.html b/Recurly/Requests/CouponCreate.html new file mode 100644 index 000000000..2731d71e8 --- /dev/null +++ b/Recurly/Requests/CouponCreate.html @@ -0,0 +1,2125 @@ + + + + + + + Class: Recurly::Requests::CouponCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::CouponCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/coupon_create.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

+ + + +
+

+ + #applies_to_all_itemsBoolean + + + + + +

+
+ +

Returns To apply coupon to Items in your Catalog, include a list of `item_codes` in the request that the coupon will apply to. Or set value to true to apply to all Items in your Catalog. The following values are not permitted when `applies_to_all_items` is included: `free_trial_amount` and `free_trial_unit`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    To apply coupon to Items in your Catalog, include a list of `item_codes` in the request that the coupon will apply to. Or set value to true to apply to all Items in your Catalog. The following values are not permitted when `applies_to_all_items` is included: `free_trial_amount` and `free_trial_unit`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 11
+
+define_attribute :applies_to_all_items, :Boolean
+
+
+ + + +
+

+ + #applies_to_all_plansBoolean + + + + + +

+
+ +

Returns The coupon is valid for all plans if true. If false then `plans` will list the applicable plans.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The coupon is valid for all plans if true. If false then `plans` will list the applicable plans.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 15
+
+define_attribute :applies_to_all_plans, :Boolean
+
+
+ + + +
+

+ + #applies_to_non_plan_chargesBoolean + + + + + +

+
+ +

Returns The coupon is valid for one-time, non-plan charges if true.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The coupon is valid for one-time, non-plan charges if true.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 19
+
+define_attribute :applies_to_non_plan_charges, :Boolean
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The code the customer enters to redeem the coupon.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The code the customer enters to redeem the coupon.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 23
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #coupon_typeString + + + + + +

+
+ +

Returns Whether the coupon is “single_code” or “bulk”. Bulk coupons will require a `unique_code_template` and will generate unique codes through the `/generate` endpoint.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Whether the coupon is “single_code” or “bulk”. Bulk coupons will require a `unique_code_template` and will generate unique codes through the `/generate` endpoint.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 27
+
+define_attribute :coupon_type, String
+
+
+ + + +
+

+ + #currenciesArray[CouponPricing] + + + + + +

+
+ +

Returns Fixed discount currencies by currency. Required if the coupon type is `fixed`. This parameter should contain the coupon discount values.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[CouponPricing]) + + + + — +
    +

    Fixed discount currencies by currency. Required if the coupon type is `fixed`. This parameter should contain the coupon discount values

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 31
+
+define_attribute :currencies, Array, { :item_type => :CouponPricing }
+
+
+ + + +
+

+ + #discount_percentInteger + + + + + +

+
+ +

Returns The percent of the price discounted by the coupon. Required if `discount_type` is `percent`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The percent of the price discounted by the coupon. Required if `discount_type` is `percent`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 35
+
+define_attribute :discount_percent, Integer
+
+
+ + + +
+

+ + #discount_typeString + + + + + +

+
+ +

Returns The type of discount provided by the coupon (how the amount discounted is calculated).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The type of discount provided by the coupon (how the amount discounted is calculated)

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 39
+
+define_attribute :discount_type, String
+
+
+ + + +
+

+ + #durationString + + + + + +

+
+ +

Returns This field does not apply when the discount_type is `free_trial`. - “single_use” coupons applies to the first invoice only. - “temporal” coupons will apply to invoices for the duration determined by the `temporal_unit` and `temporal_amount` attributes. - “forever” coupons will apply to invoices forever.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This field does not apply when the discount_type is `free_trial`. - “single_use” coupons applies to the first invoice only. - “temporal” coupons will apply to invoices for the duration determined by the `temporal_unit` and `temporal_amount` attributes. - “forever” coupons will apply to invoices forever.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 43
+
+define_attribute :duration, String
+
+
+ + + +
+

+ + #free_trial_amountInteger + + + + + +

+
+ +

Returns Sets the duration of time the `free_trial_unit` is for. Required if `discount_type` is `free_trial`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Sets the duration of time the `free_trial_unit` is for. Required if `discount_type` is `free_trial`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 47
+
+define_attribute :free_trial_amount, Integer
+
+
+ + + +
+

+ + #free_trial_unitString + + + + + +

+
+ +

Returns Description of the unit of time the coupon is for. Used with `free_trial_amount` to determine the duration of time the coupon is for. Required if `discount_type` is `free_trial`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Description of the unit of time the coupon is for. Used with `free_trial_amount` to determine the duration of time the coupon is for. Required if `discount_type` is `free_trial`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 51
+
+define_attribute :free_trial_unit, String
+
+
+ + + +
+

+ + #hosted_descriptionString + + + + + +

+
+ +

Returns This description will show up when a customer redeems a coupon on your Hosted Payment Pages, or if you choose to show the description on your own checkout page.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This description will show up when a customer redeems a coupon on your Hosted Payment Pages, or if you choose to show the description on your own checkout page.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 55
+
+define_attribute :hosted_description, String
+
+
+ + + +
+

+ + #invoice_descriptionString + + + + + +

+
+ +

Returns Description of the coupon on the invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Description of the coupon on the invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 59
+
+define_attribute :invoice_description, String
+
+
+ + + +
+

+ + #item_codesArray[String] + + + + + +

+
+ +

Returns List of item codes to which this coupon applies. Sending `item_codes` is only permitted when `applies_to_all_items` is set to false. The following values are not permitted when `item_codes` is included: `free_trial_amount` and `free_trial_unit`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    List of item codes to which this coupon applies. Sending `item_codes` is only permitted when `applies_to_all_items` is set to false. The following values are not permitted when `item_codes` is included: `free_trial_amount` and `free_trial_unit`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 63
+
+define_attribute :item_codes, Array, { :item_type => String }
+
+
+ + + +
+

+ + #max_redemptionsInteger + + + + + +

+
+ +

Returns A maximum number of redemptions for the coupon. The coupon will expire when it hits its maximum redemptions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    A maximum number of redemptions for the coupon. The coupon will expire when it hits its maximum redemptions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 67
+
+define_attribute :max_redemptions, Integer
+
+
+ + + +
+

+ + #max_redemptions_per_accountInteger + + + + + +

+
+ +

Returns Redemptions per account is the number of times a specific account can redeem the coupon. Set redemptions per account to `1` if you want to keep customers from gaming the system and getting more than one discount from the coupon campaign.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Redemptions per account is the number of times a specific account can redeem the coupon. Set redemptions per account to `1` if you want to keep customers from gaming the system and getting more than one discount from the coupon campaign.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 71
+
+define_attribute :max_redemptions_per_account, Integer
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns The internal name for the coupon.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The internal name for the coupon.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 75
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #plan_codesArray[String] + + + + + +

+
+ +

Returns List of plan codes to which this coupon applies. Required if `applies_to_all_plans` is false. Overrides `applies_to_all_plans` when `applies_to_all_plans` is true.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    List of plan codes to which this coupon applies. Required if `applies_to_all_plans` is false. Overrides `applies_to_all_plans` when `applies_to_all_plans` is true.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 79
+
+define_attribute :plan_codes, Array, { :item_type => String }
+
+
+ + + +
+

+ + #redeem_by_dateString + + + + + +

+
+ +

Returns The date and time the coupon will expire and can no longer be redeemed. Time is always 11:59:59, the end-of-day Pacific time.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The date and time the coupon will expire and can no longer be redeemed. Time is always 11:59:59, the end-of-day Pacific time.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 83
+
+define_attribute :redeem_by_date, String
+
+
+ + + +
+

+ + #redemption_resourceString + + + + + +

+
+ +

Returns Whether the discount is for all eligible charges on the account, or only a specific subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Whether the discount is for all eligible charges on the account, or only a specific subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 87
+
+define_attribute :redemption_resource, String
+
+
+ + + +
+

+ + #temporal_amountInteger + + + + + +

+
+ +

Returns If `duration` is “temporal” than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    If `duration` is “temporal” than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 91
+
+define_attribute :temporal_amount, Integer
+
+
+ + + +
+

+ + #temporal_unitString + + + + + +

+
+ +

Returns If `duration` is “temporal” than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If `duration` is “temporal” than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 95
+
+define_attribute :temporal_unit, String
+
+
+ + + +
+

+ + #unique_code_templateString + + + + + +

+
+ +

Returns On a bulk coupon, the template from which unique coupon codes are generated. - You must start the template with your coupon_code wrapped in single quotes. - Outside of single quotes, use a 9 for a character that you want to be a random number. - Outside of single quotes, use an “x” for a character that you want to be a random letter. - Outside of single quotes, use an * for a character that you want to be a random number or letter. - Use single quotes ' ' for characters that you want to remain static. These strings can be alphanumeric and may contain a - _ or +. For example: “'abc-'****'-def'”.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    On a bulk coupon, the template from which unique coupon codes are generated. - You must start the template with your coupon_code wrapped in single quotes. - Outside of single quotes, use a 9 for a character that you want to be a random number. - Outside of single quotes, use an “x” for a character that you want to be a random letter. - Outside of single quotes, use an * for a character that you want to be a random number or letter. - Use single quotes ' ' for characters that you want to remain static. These strings can be alphanumeric and may contain a - _ or +. For example: “'abc-'****'-def'”

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/requests/coupon_create.rb', line 99
+
+define_attribute :unique_code_template, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/CouponPricing.html b/Recurly/Requests/CouponPricing.html new file mode 100644 index 000000000..192ebcec8 --- /dev/null +++ b/Recurly/Requests/CouponPricing.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::CouponPricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::CouponPricing + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/coupon_pricing.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/coupon_pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #discountFloat + + + + + +

+
+ +

Returns The fixed discount (in dollars) for the corresponding currency.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The fixed discount (in dollars) for the corresponding currency.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/coupon_pricing.rb', line 15
+
+define_attribute :discount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/CouponRedemptionCreate.html b/Recurly/Requests/CouponRedemptionCreate.html new file mode 100644 index 000000000..16cc3f778 --- /dev/null +++ b/Recurly/Requests/CouponRedemptionCreate.html @@ -0,0 +1,445 @@ + + + + + + + Class: Recurly::Requests::CouponRedemptionCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::CouponRedemptionCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/coupon_redemption_create.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

+ + + +
+

+ + #coupon_idString + + + + + +

+
+ +

Returns Coupon ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Coupon ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/coupon_redemption_create.rb', line 11
+
+define_attribute :coupon_id, String
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/coupon_redemption_create.rb', line 15
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #subscription_idString + + + + + +

+
+ +

Returns Subscription ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Subscription ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/coupon_redemption_create.rb', line 19
+
+define_attribute :subscription_id, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/CouponUpdate.html b/Recurly/Requests/CouponUpdate.html new file mode 100644 index 000000000..59ca4f1bf --- /dev/null +++ b/Recurly/Requests/CouponUpdate.html @@ -0,0 +1,697 @@ + + + + + + + Class: Recurly::Requests::CouponUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::CouponUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/coupon_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

+ + + +
+

+ + #hosted_descriptionString + + + + + +

+
+ +

Returns This description will show up when a customer redeems a coupon on your Hosted Payment Pages, or if you choose to show the description on your own checkout page.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This description will show up when a customer redeems a coupon on your Hosted Payment Pages, or if you choose to show the description on your own checkout page.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/coupon_update.rb', line 11
+
+define_attribute :hosted_description, String
+
+
+ + + +
+

+ + #invoice_descriptionString + + + + + +

+
+ +

Returns Description of the coupon on the invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Description of the coupon on the invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/coupon_update.rb', line 15
+
+define_attribute :invoice_description, String
+
+
+ + + +
+

+ + #max_redemptionsInteger + + + + + +

+
+ +

Returns A maximum number of redemptions for the coupon. The coupon will expire when it hits its maximum redemptions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    A maximum number of redemptions for the coupon. The coupon will expire when it hits its maximum redemptions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/coupon_update.rb', line 19
+
+define_attribute :max_redemptions, Integer
+
+
+ + + +
+

+ + #max_redemptions_per_accountInteger + + + + + +

+
+ +

Returns Redemptions per account is the number of times a specific account can redeem the coupon. Set redemptions per account to `1` if you want to keep customers from gaming the system and getting more than one discount from the coupon campaign.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Redemptions per account is the number of times a specific account can redeem the coupon. Set redemptions per account to `1` if you want to keep customers from gaming the system and getting more than one discount from the coupon campaign.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/coupon_update.rb', line 23
+
+define_attribute :max_redemptions_per_account, Integer
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns The internal name for the coupon.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The internal name for the coupon.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/coupon_update.rb', line 27
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #redeem_by_dateString + + + + + +

+
+ +

Returns The date and time the coupon will expire and can no longer be redeemed. Time is always 11:59:59, the end-of-day Pacific time.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The date and time the coupon will expire and can no longer be redeemed. Time is always 11:59:59, the end-of-day Pacific time.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/coupon_update.rb', line 31
+
+define_attribute :redeem_by_date, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/CustomField.html b/Recurly/Requests/CustomField.html new file mode 100644 index 000000000..ee2f67e8b --- /dev/null +++ b/Recurly/Requests/CustomField.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::CustomField + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::CustomField + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/custom_field.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

+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Fields must be created in the UI before values can be assigned to them.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Fields must be created in the UI before values can be assigned to them.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/custom_field.rb', line 11
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #valueString + + + + + +

+
+ +

Returns Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/custom_field.rb', line 15
+
+define_attribute :value, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/DunningCampaignsBulkUpdate.html b/Recurly/Requests/DunningCampaignsBulkUpdate.html new file mode 100644 index 000000000..50f835884 --- /dev/null +++ b/Recurly/Requests/DunningCampaignsBulkUpdate.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::DunningCampaignsBulkUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::DunningCampaignsBulkUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/dunning_campaigns_bulk_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

+ + + +
+

+ + #plan_codesArray[String] + + + + + +

+
+ +

Returns List of `plan_codes` associated with the Plans for which the dunning campaign should be updated. Required unless `plan_ids` is present.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    List of `plan_codes` associated with the Plans for which the dunning campaign should be updated. Required unless `plan_ids` is present.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/dunning_campaigns_bulk_update.rb', line 11
+
+define_attribute :plan_codes, Array, { :item_type => String }
+
+
+ + + +
+

+ + #plan_idsArray[String] + + + + + +

+
+ +

Returns List of `plan_ids` associated with the Plans for which the dunning campaign should be updated. Required unless `plan_codes` is present.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    List of `plan_ids` associated with the Plans for which the dunning campaign should be updated. Required unless `plan_codes` is present.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/dunning_campaigns_bulk_update.rb', line 15
+
+define_attribute :plan_ids, Array, { :item_type => String }
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ExternalAccountCreate.html b/Recurly/Requests/ExternalAccountCreate.html new file mode 100644 index 000000000..fa7f75e2f --- /dev/null +++ b/Recurly/Requests/ExternalAccountCreate.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::ExternalAccountCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ExternalAccountCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/external_account_create.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

+ + + +
+

+ + #external_account_codeString + + + + + +

+
+ +

Returns Represents the account code for the external account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Represents the account code for the external account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/external_account_create.rb', line 11
+
+define_attribute :external_account_code, String
+
+
+ + + +
+

+ + #external_connection_typeString + + + + + +

+
+ +

Returns Represents the connection type. `AppleAppStore` or `GooglePlayStore`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Represents the connection type. `AppleAppStore` or `GooglePlayStore`

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/external_account_create.rb', line 15
+
+define_attribute :external_connection_type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ExternalAccountUpdate.html b/Recurly/Requests/ExternalAccountUpdate.html new file mode 100644 index 000000000..8cd250e43 --- /dev/null +++ b/Recurly/Requests/ExternalAccountUpdate.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::ExternalAccountUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ExternalAccountUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/external_account_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

+ + + +
+

+ + #external_account_codeString + + + + + +

+
+ +

Returns Represents the account code for the external account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Represents the account code for the external account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/external_account_update.rb', line 11
+
+define_attribute :external_account_code, String
+
+
+ + + +
+

+ + #external_connection_typeString + + + + + +

+
+ +

Returns Represents the connection type. `AppleAppStore` or `GooglePlayStore`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Represents the connection type. `AppleAppStore` or `GooglePlayStore`

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/external_account_update.rb', line 15
+
+define_attribute :external_connection_type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ExternalRefund.html b/Recurly/Requests/ExternalRefund.html new file mode 100644 index 000000000..e798e0969 --- /dev/null +++ b/Recurly/Requests/ExternalRefund.html @@ -0,0 +1,445 @@ + + + + + + + Class: Recurly::Requests::ExternalRefund + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ExternalRefund + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/external_refund.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

+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Used as the refund transactions' description.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used as the refund transactions' description.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/external_refund.rb', line 11
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #payment_methodString + + + + + +

+
+ +

Returns Payment method used for external refund transaction.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Payment method used for external refund transaction.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/external_refund.rb', line 15
+
+define_attribute :payment_method, String
+
+
+ + + +
+

+ + #refunded_atDateTime + + + + + +

+
+ +

Returns Date the external refund payment was made. Defaults to the current date-time.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Date the external refund payment was made. Defaults to the current date-time.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/external_refund.rb', line 19
+
+define_attribute :refunded_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ExternalTransaction.html b/Recurly/Requests/ExternalTransaction.html new file mode 100644 index 000000000..3324ab069 --- /dev/null +++ b/Recurly/Requests/ExternalTransaction.html @@ -0,0 +1,529 @@ + + + + + + + Class: Recurly::Requests::ExternalTransaction + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ExternalTransaction + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/external_transaction.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

+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns The total amount of the transcaction. Cannot excceed the invoice total.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The total amount of the transcaction. Cannot excceed the invoice total.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/external_transaction.rb', line 11
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #collected_atDateTime + + + + + +

+
+ +

Returns Datetime that the external payment was collected. Defaults to current datetime.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Datetime that the external payment was collected. Defaults to current datetime.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/external_transaction.rb', line 15
+
+define_attribute :collected_at, DateTime
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Used as the transaction's description.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used as the transaction's description.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/external_transaction.rb', line 19
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #payment_methodString + + + + + +

+
+ +

Returns Payment method used for external transaction.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Payment method used for external transaction.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/external_transaction.rb', line 23
+
+define_attribute :payment_method, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/GiftCardCreate.html b/Recurly/Requests/GiftCardCreate.html new file mode 100644 index 000000000..717c79b53 --- /dev/null +++ b/Recurly/Requests/GiftCardCreate.html @@ -0,0 +1,613 @@ + + + + + + + Class: Recurly::Requests::GiftCardCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::GiftCardCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/gift_card_create.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/gift_card_create.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #deliveryGiftCardDeliveryCreate + + + + + +

+
+ +

Returns The delivery details for the gift card.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/gift_card_create.rb', line 15
+
+define_attribute :delivery, :GiftCardDeliveryCreate
+
+
+ + + +
+

+ + #gifter_accountAccountPurchase + + + + + +

+
+ +

Returns Block of account details for the gifter. This references an existing account_code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountPurchase) + + + + — +
    +

    Block of account details for the gifter. This references an existing account_code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/gift_card_create.rb', line 19
+
+define_attribute :gifter_account, :AccountPurchase
+
+
+ + + +
+

+ + #product_codeString + + + + + +

+
+ +

Returns The product code or SKU of the gift card product.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The product code or SKU of the gift card product.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/gift_card_create.rb', line 23
+
+define_attribute :product_code, String
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns The amount of the gift card, which is the amount of the charge to the gifter account and the amount of credit that is applied to the recipient account upon successful redemption.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The amount of the gift card, which is the amount of the charge to the gifter account and the amount of credit that is applied to the recipient account upon successful redemption.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/gift_card_create.rb', line 27
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/GiftCardDeliveryCreate.html b/Recurly/Requests/GiftCardDeliveryCreate.html new file mode 100644 index 000000000..10b2d7944 --- /dev/null +++ b/Recurly/Requests/GiftCardDeliveryCreate.html @@ -0,0 +1,865 @@ + + + + + + + Class: Recurly::Requests::GiftCardDeliveryCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::GiftCardDeliveryCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/gift_card_delivery_create.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

+ + + +
+

+ + #deliver_atDateTime + + + + + +

+
+ +

Returns When the gift card should be delivered to the recipient. If null, the gift card will be delivered immediately. If a datetime is provided, the delivery will be in an hourly window, rounding down. For example, 6:23 pm will be in the 6:00 pm hourly batch.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the gift card should be delivered to the recipient. If null, the gift card will be delivered immediately. If a datetime is provided, the delivery will be in an hourly window, rounding down. For example, 6:23 pm will be in the 6:00 pm hourly batch.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 11
+
+define_attribute :deliver_at, DateTime
+
+
+ + + +
+

+ + #email_addressString + + + + + +

+
+ +

Returns The email address of the recipient. Required if `method` is `email`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The email address of the recipient. Required if `method` is `email`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 15
+
+define_attribute :email_address, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ +

Returns The first name of the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The first name of the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 19
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #gifter_nameString + + + + + +

+
+ +

Returns The name of the gifter for the purpose of a message displayed to the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The name of the gifter for the purpose of a message displayed to the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 23
+
+define_attribute :gifter_name, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ +

Returns The last name of the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The last name of the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 27
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #methodString + + + + + +

+
+ +

Returns Whether the delivery method is email or postal service.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Whether the delivery method is email or postal service.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 31
+
+define_attribute :method, String
+
+
+ + + +
+

+ + #personal_messageString + + + + + +

+
+ +

Returns The personal message from the gifter to the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The personal message from the gifter to the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 35
+
+define_attribute :personal_message, String
+
+
+ + + +
+

+ + #recipient_addressAddress + + + + + +

+
+ +

Returns Address information for the recipient. Required if `method` is `post`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Address) + + + + — +
    +

    Address information for the recipient. Required if `method` is `post`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/gift_card_delivery_create.rb', line 39
+
+define_attribute :recipient_address, :Address
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/GiftCardRedeem.html b/Recurly/Requests/GiftCardRedeem.html new file mode 100644 index 000000000..fd1ecf87d --- /dev/null +++ b/Recurly/Requests/GiftCardRedeem.html @@ -0,0 +1,277 @@ + + + + + + + Class: Recurly::Requests::GiftCardRedeem + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::GiftCardRedeem + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/gift_card_redeem.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

+ + + +
+

+ + #recipient_accountAccountReference + + + + + +

+
+ +

Returns The account for the recipient of the gift card.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountReference) + + + + — +
    +

    The account for the recipient of the gift card.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/gift_card_redeem.rb', line 11
+
+define_attribute :recipient_account, :AccountReference
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/InvoiceAddress.html b/Recurly/Requests/InvoiceAddress.html new file mode 100644 index 000000000..79fd5c562 --- /dev/null +++ b/Recurly/Requests/InvoiceAddress.html @@ -0,0 +1,1117 @@ + + + + + + + Class: Recurly::Requests::InvoiceAddress + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::InvoiceAddress + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/invoice_address.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

+ + + +
+

+ + #cityString + + + + + +

+
+ +

Returns City.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    City

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 11
+
+define_attribute :city, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ +

Returns Company.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Company

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 15
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #countryString + + + + + +

+
+ +

Returns Country, 2-letter ISO 3166-1 alpha-2 code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Country, 2-letter ISO 3166-1 alpha-2 code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 19
+
+define_attribute :country, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ +

Returns First name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    First name

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 23
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ +

Returns Last name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Last name

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 27
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #name_on_accountString + + + + + +

+
+ +

Returns Name on account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Name on account

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 31
+
+define_attribute :name_on_account, String
+
+
+ + + +
+

+ + #phoneString + + + + + +

+
+ +

Returns Phone number.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Phone number

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 35
+
+define_attribute :phone, String
+
+
+ + + +
+

+ + #postal_codeString + + + + + +

+
+ +

Returns Zip or postal code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Zip or postal code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 39
+
+define_attribute :postal_code, String
+
+
+ + + +
+

+ + #regionString + + + + + +

+
+ +

Returns State or province.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    State or province.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 43
+
+define_attribute :region, String
+
+
+ + + +
+

+ + #street1String + + + + + +

+
+ +

Returns Street 1.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Street 1

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 47
+
+define_attribute :street1, String
+
+
+ + + +
+

+ + #street2String + + + + + +

+
+ +

Returns Street 2.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Street 2

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/invoice_address.rb', line 51
+
+define_attribute :street2, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/InvoiceCollect.html b/Recurly/Requests/InvoiceCollect.html new file mode 100644 index 000000000..b853793db --- /dev/null +++ b/Recurly/Requests/InvoiceCollect.html @@ -0,0 +1,445 @@ + + + + + + + Class: Recurly::Requests::InvoiceCollect + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::InvoiceCollect + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/invoice_collect.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

+ + + +
+

+ + #billing_info_idString + + + + + +

+
+ +

Returns The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/invoice_collect.rb', line 11
+
+define_attribute :billing_info_id, String
+
+
+ + + +
+

+ + #three_d_secure_action_result_token_idString + + + + + +

+
+ +

Returns A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/invoice_collect.rb', line 15
+
+define_attribute :three_d_secure_action_result_token_id, String
+
+
+ + + +
+

+ + #transaction_typeString + + + + + +

+
+ +

Returns An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/invoice_collect.rb', line 19
+
+define_attribute :transaction_type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/InvoiceCreate.html b/Recurly/Requests/InvoiceCreate.html new file mode 100644 index 000000000..7cfe0e512 --- /dev/null +++ b/Recurly/Requests/InvoiceCreate.html @@ -0,0 +1,865 @@ + + + + + + + Class: Recurly::Requests::InvoiceCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::InvoiceCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/invoice_create.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

+ + + +
+

+ + #charge_customer_notesString + + + + + +

+
+ +

Returns This will default to the Customer Notes text specified on the Invoice Settings for charge invoices. Specify custom notes to add or override Customer Notes on charge invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This will default to the Customer Notes text specified on the Invoice Settings for charge invoices. Specify custom notes to add or override Customer Notes on charge invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/invoice_create.rb', line 11
+
+define_attribute :charge_customer_notes, String
+
+
+ + + +
+

+ + #collection_methodString + + + + + +

+
+ +

Returns An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created. Manual invoices are created without a corresponding transaction. The merchant must enter a manual payment transaction or have the customer pay the invoice with an automatic method, like credit card, PayPal, Amazon, or ACH bank payment.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created. Manual invoices are created without a corresponding transaction. The merchant must enter a manual payment transaction or have the customer pay the invoice with an automatic method, like credit card, PayPal, Amazon, or ACH bank payment.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/invoice_create.rb', line 15
+
+define_attribute :collection_method, String
+
+
+ + + +
+

+ + #credit_customer_notesString + + + + + +

+
+ +

Returns This will default to the Customer Notes text specified on the Invoice Settings for credit invoices. Specify customer notes to add or override Customer Notes on credit invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This will default to the Customer Notes text specified on the Invoice Settings for credit invoices. Specify customer notes to add or override Customer Notes on credit invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/invoice_create.rb', line 19
+
+define_attribute :credit_customer_notes, String
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/invoice_create.rb', line 23
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #net_termsInteger + + + + + +

+
+ +

Returns Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/invoice_create.rb', line 27
+
+define_attribute :net_terms, Integer
+
+
+ + + +
+

+ + #po_numberString + + + + + +

+
+ +

Returns For manual invoicing, this identifies the PO number associated with the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For manual invoicing, this identifies the PO number associated with the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/invoice_create.rb', line 31
+
+define_attribute :po_number, String
+
+
+ + + +
+

+ + #terms_and_conditionsString + + + + + +

+
+ +

Returns This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Specify custom notes to add or override Terms and Conditions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Specify custom notes to add or override Terms and Conditions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/invoice_create.rb', line 35
+
+define_attribute :terms_and_conditions, String
+
+
+ + + +
+

+ + #vat_reverse_charge_notesString + + + + + +

+
+ +

Returns VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/invoice_create.rb', line 39
+
+define_attribute :vat_reverse_charge_notes, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/InvoiceRefund.html b/Recurly/Requests/InvoiceRefund.html new file mode 100644 index 000000000..f1bce62a4 --- /dev/null +++ b/Recurly/Requests/InvoiceRefund.html @@ -0,0 +1,697 @@ + + + + + + + Class: Recurly::Requests::InvoiceRefund + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::InvoiceRefund + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/invoice_refund.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

+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns The amount to be refunded. The amount will be split between the line items. If no amount is specified, it will default to refunding the total refundable amount on the invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The amount to be refunded. The amount will be split between the line items. If no amount is specified, it will default to refunding the total refundable amount on the invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/invoice_refund.rb', line 11
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #credit_customer_notesString + + + + + +

+
+ +

Returns Used as the Customer Notes on the credit invoice. This field can only be include when the Credit Invoices feature is enabled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used as the Customer Notes on the credit invoice. This field can only be include when the Credit Invoices feature is enabled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/invoice_refund.rb', line 15
+
+define_attribute :credit_customer_notes, String
+
+
+ + + +
+

+ + #external_refundExternalRefund + + + + + +

+
+ +

Returns Indicates that the refund was settled outside of Recurly, and a manual transaction should be created to track it in Recurly. Required when: - refunding a manually collected charge invoice, and `refund_method` is not `all_credit` - refunding a credit invoice that refunded manually collecting invoices - refunding a credit invoice for a partial amount This field can only be included when the Credit Invoices feature is enabled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (ExternalRefund) + + + + — +
    +

    Indicates that the refund was settled outside of Recurly, and a manual transaction should be created to track it in Recurly. Required when: - refunding a manually collected charge invoice, and `refund_method` is not `all_credit` - refunding a credit invoice that refunded manually collecting invoices - refunding a credit invoice for a partial amount This field can only be included when the Credit Invoices feature is enabled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/invoice_refund.rb', line 19
+
+define_attribute :external_refund, :ExternalRefund
+
+
+ + + +
+

+ + #line_itemsArray[LineItemRefund] + + + + + +

+
+ +

Returns The line items to be refunded. This is required when `type=line_items`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[LineItemRefund]) + + + + — +
    +

    The line items to be refunded. This is required when `type=line_items`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/invoice_refund.rb', line 23
+
+define_attribute :line_items, Array, { :item_type => :LineItemRefund }
+
+
+ + + +
+

+ + #refund_methodString + + + + + +

+
+ +

Returns Indicates how the invoice should be refunded when both a credit and transaction are present on the invoice: - `transaction_first` – Refunds the transaction first, then any amount is issued as credit back to the account. Default value when Credit Invoices feature is enabled. - `credit_first` – Issues credit back to the account first, then refunds any remaining amount back to the transaction. Default value when Credit Invoices feature is not enabled. - `all_credit` – Issues credit to the account for the entire amount of the refund. Only available when the Credit Invoices feature is enabled. - `all_transaction` – Refunds the entire amount back to transactions, using transactions from previous invoices if necessary. Only available when the Credit Invoices feature is enabled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Indicates how the invoice should be refunded when both a credit and transaction are present on the invoice: - `transaction_first` – Refunds the transaction first, then any amount is issued as credit back to the account. Default value when Credit Invoices feature is enabled. - `credit_first` – Issues credit back to the account first, then refunds any remaining amount back to the transaction. Default value when Credit Invoices feature is not enabled. - `all_credit` – Issues credit to the account for the entire amount of the refund. Only available when the Credit Invoices feature is enabled. - `all_transaction` – Refunds the entire amount back to transactions, using transactions from previous invoices if necessary. Only available when the Credit Invoices feature is enabled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/invoice_refund.rb', line 27
+
+define_attribute :refund_method, String
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns The type of refund. Amount and line items cannot both be specified in the request.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The type of refund. Amount and line items cannot both be specified in the request.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/invoice_refund.rb', line 31
+
+define_attribute :type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/InvoiceUpdate.html b/Recurly/Requests/InvoiceUpdate.html new file mode 100644 index 000000000..7119e4b6e --- /dev/null +++ b/Recurly/Requests/InvoiceUpdate.html @@ -0,0 +1,688 @@ + + + + + + + Class: Recurly::Requests::InvoiceUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::InvoiceUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/invoice_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

+ + + +
+

+ + #addressInvoiceAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/invoice_update.rb', line 11
+
+define_attribute :address, :InvoiceAddress
+
+
+ + + +
+

+ + #customer_notesString + + + + + +

+
+ +

Returns Customer notes are an optional note field.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Customer notes are an optional note field.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/invoice_update.rb', line 15
+
+define_attribute :customer_notes, String
+
+
+ + + +
+

+ + #net_termsInteger + + + + + +

+
+ +

Returns Integer representing the number of days after an invoice's creation that the invoice will become past due. Changing Net terms changes due_on, and the invoice could move between past due and pending.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Integer representing the number of days after an invoice's creation that the invoice will become past due. Changing Net terms changes due_on, and the invoice could move between past due and pending.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/invoice_update.rb', line 19
+
+define_attribute :net_terms, Integer
+
+
+ + + +
+

+ + #po_numberString + + + + + +

+
+ +

Returns This identifies the PO number associated with the invoice. Not editable for credit invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This identifies the PO number associated with the invoice. Not editable for credit invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/invoice_update.rb', line 23
+
+define_attribute :po_number, String
+
+
+ + + +
+

+ + #terms_and_conditionsString + + + + + +

+
+ +

Returns Terms and conditions are an optional note field. Not editable for credit invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Terms and conditions are an optional note field. Not editable for credit invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/invoice_update.rb', line 27
+
+define_attribute :terms_and_conditions, String
+
+
+ + + +
+

+ + #vat_reverse_charge_notesString + + + + + +

+
+ +

Returns VAT Reverse Charge Notes are editable only if there was a VAT reverse charge applied to the invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    VAT Reverse Charge Notes are editable only if there was a VAT reverse charge applied to the invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/invoice_update.rb', line 31
+
+define_attribute :vat_reverse_charge_notes, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ItemCreate.html b/Recurly/Requests/ItemCreate.html new file mode 100644 index 000000000..7c5fa952d --- /dev/null +++ b/Recurly/Requests/ItemCreate.html @@ -0,0 +1,1201 @@ + + + + + + + Class: Recurly::Requests::ItemCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ItemCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/item_create.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_codeString + + + + + +

+
+ +

Returns Accounting code for invoice line items.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for invoice line items.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/item_create.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/requests/item_create.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/requests/item_create.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/requests/item_create.rb', line 23
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #currenciesArray[Pricing] + + + + + +

+
+ +

Returns Item Pricing.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[Pricing]) + + + + — +
    +

    Item Pricing

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/item_create.rb', line 27
+
+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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/item_create.rb', line 31
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Optional, description.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional, description.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/item_create.rb', line 35
+
+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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/item_create.rb', line 39
+
+define_attribute :external_sku, 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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/item_create.rb', line 43
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/item_create.rb', line 47
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/item_create.rb', line 51
+
+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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/item_create.rb', line 55
+
+define_attribute :tax_exempt, :Boolean
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ItemUpdate.html b/Recurly/Requests/ItemUpdate.html new file mode 100644 index 000000000..5858fddac --- /dev/null +++ b/Recurly/Requests/ItemUpdate.html @@ -0,0 +1,1201 @@ + + + + + + + Class: Recurly::Requests::ItemUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ItemUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/item_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_codeString + + + + + +

+
+ +

Returns Accounting code for invoice line items.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for invoice line items.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/item_update.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/requests/item_update.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/requests/item_update.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/requests/item_update.rb', line 23
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #currenciesArray[Pricing] + + + + + +

+
+ +

Returns Item Pricing.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[Pricing]) + + + + — +
    +

    Item Pricing

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/item_update.rb', line 27
+
+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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/item_update.rb', line 31
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Optional, description.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional, description.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/item_update.rb', line 35
+
+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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/item_update.rb', line 39
+
+define_attribute :external_sku, 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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/item_update.rb', line 43
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/item_update.rb', line 47
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/item_update.rb', line 51
+
+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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/item_update.rb', line 55
+
+define_attribute :tax_exempt, :Boolean
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/LineItemCreate.html b/Recurly/Requests/LineItemCreate.html new file mode 100644 index 000000000..19d4db98f --- /dev/null +++ b/Recurly/Requests/LineItemCreate.html @@ -0,0 +1,1873 @@ + + + + + + + Class: Recurly::Requests::LineItemCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::LineItemCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/line_item_create.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_codeString + + + + + +

+
+ +

Returns Accounting Code for the `LineItem`. If `item_code`/`item_id` is part of the request then `accounting_code` must be absent.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting Code for the `LineItem`. If `item_code`/`item_id` is part of the request then `accounting_code` must be absent.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/line_item_create.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 line 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. If an `Item` is associated to the `LineItem`, then the `avalara_service_type` must be absent.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/line_item_create.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 line 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. If an `Item` is associated to the `LineItem`, then the `avalara_transaction_type` must be absent.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 19
+
+define_attribute :avalara_transaction_type, Integer
+
+
+ + + +
+

+ + #credit_reason_codeString + + + + + +

+
+ +

Returns The reason the credit was given when line item is `type=credit`. When the Credit Invoices feature is enabled, the value can be set and will default to `general`. When the Credit Invoices feature is not enabled, the value will always be `null`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The reason the credit was given when line item is `type=credit`. When the Credit Invoices feature is enabled, the value can be set and will default to `general`. When the Credit Invoices feature is not enabled, the value will always be `null`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 23
+
+define_attribute :credit_reason_code, String
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code. If `item_code`/`item_id` is part of the request then `currency` is optional, if the site has a single default currency. `currency` is required if `item_code`/`item_id` is present, and there are multiple currencies defined on the site. If `item_code`/`item_id` is not present `currency` is required.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code. If `item_code`/`item_id` is part of the request then `currency` is optional, if the site has a single default currency. `currency` is required if `item_code`/`item_id` is present, and there are multiple currencies defined on the site. If `item_code`/`item_id` is not present `currency` is required.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 27
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 31
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Description that appears on the invoice. If `item_code`/`item_id` is part of the request then `description` must be absent.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Description that appears on the invoice. If `item_code`/`item_id` is part of the request then `description` must be absent.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 35
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #end_dateDateTime + + + + + +

+
+ +

Returns If this date is provided, it indicates the end of a time range.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If this date is provided, it indicates the end of a time range.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 39
+
+define_attribute :end_date, DateTime
+
+
+ + + +
+

+ + #item_codeString + + + + + +

+
+ +

Returns Unique code to identify an item. Available when the Credit Invoices feature is enabled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique code to identify an item. Available when the Credit Invoices feature is enabled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 43
+
+define_attribute :item_code, String
+
+
+ + + +
+

+ + #item_idString + + + + + +

+
+ +

Returns System-generated unique identifier for an item. Available when the Credit Invoices feature is enabled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    System-generated unique identifier for an item. Available when the Credit Invoices feature is enabled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 47
+
+define_attribute :item_id, String
+
+
+ + + +
+

+ + #originString + + + + + +

+
+ +

Returns Origin `external_gift_card` is allowed if the Gift Cards feature is enabled on your site and `type` is `credit`. Set this value in order to track gift card credits from external gift cards (like InComm). It also skips billing information requirements. Origin `prepayment` is only allowed if `type` is `charge` and `tax_exempt` is left blank or set to true. This origin creates a charge and opposite credit on the account to be used for future invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Origin `external_gift_card` is allowed if the Gift Cards feature is enabled on your site and `type` is `credit`. Set this value in order to track gift card credits from external gift cards (like InComm). It also skips billing information requirements. Origin `prepayment` is only allowed if `type` is `charge` and `tax_exempt` is left blank or set to true. This origin creates a charge and opposite credit on the account to be used for future invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 51
+
+define_attribute :origin, String
+
+
+ + + +
+

+ + #product_codeString + + + + + +

+
+ +

Returns Optional field to track a product code or SKU for the line item. This can be used to later reporting on product purchases. For Vertex tax calculations, this field will be used as the Vertex `product` field. If `item_code`/`item_id` is part of the request then `product_code` must be absent.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional field to track a product code or SKU for the line item. This can be used to later reporting on product purchases. For Vertex tax calculations, this field will be used as the Vertex `product` field. If `item_code`/`item_id` is part of the request then `product_code` must be absent.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 55
+
+define_attribute :product_code, String
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns This number will be multiplied by the unit amount to compute the subtotal before any discounts or taxes.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    This number will be multiplied by the unit amount to compute the subtotal before any discounts or taxes.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 59
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 63
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #start_dateDateTime + + + + + +

+
+ +

Returns If an end date is present, this is value indicates the beginning of a billing time range. If no end date is present it indicates billing for a specific date. Defaults to the current date-time.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If an end date is present, this is value indicates the beginning of a billing time range. If no end date is present it indicates billing for a specific date. Defaults to the current date-time.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 67
+
+define_attribute :start_date, DateTime
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

Returns Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 71
+
+define_attribute :tax_code, String
+
+
+ + + +
+

+ + #tax_exemptBoolean + + + + + +

+
+ +

Returns `true` exempts tax on charges, `false` applies tax on charges. If not defined, then defaults to the Plan and Site settings. This attribute does not work for credits (negative line items). Credits are always applied post-tax. Pre-tax discounts should use the Coupons feature.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    `true` exempts tax on charges, `false` applies tax on charges. If not defined, then defaults to the Plan and Site settings. This attribute does not work for credits (negative line items). Credits are always applied post-tax. Pre-tax discounts should use the Coupons feature.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 75
+
+define_attribute :tax_exempt, :Boolean
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 79
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns Line item type. If `item_code`/`item_id` is present then `type` should not be present. If `item_code`/`item_id` is not present then `type` is required.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Line item type. If `item_code`/`item_id` is present then `type` should not be present. If `item_code`/`item_id` is not present then `type` is required.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 83
+
+define_attribute :type, String
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns A positive or negative amount with `type=charge` will result in a positive `unit_amount`. A positive or negative amount with `type=credit` will result in a negative `unit_amount`. If `item_code`/`item_id` is present, `unit_amount` can be passed in, to override the `Item`'s `unit_amount`. If `item_code`/`item_id` is not present then `unit_amount` is required.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    A positive or negative amount with `type=charge` will result in a positive `unit_amount`. A positive or negative amount with `type=credit` will result in a negative `unit_amount`. If `item_code`/`item_id` is present, `unit_amount` can be passed in, to override the `Item`'s `unit_amount`. If `item_code`/`item_id` is not present then `unit_amount` is required.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/requests/line_item_create.rb', line 87
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/LineItemRefund.html b/Recurly/Requests/LineItemRefund.html new file mode 100644 index 000000000..6a44bb30b --- /dev/null +++ b/Recurly/Requests/LineItemRefund.html @@ -0,0 +1,529 @@ + + + + + + + Class: Recurly::Requests::LineItemRefund + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::LineItemRefund + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/line_item_refund.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

+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Line item ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Line item ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/line_item_refund.rb', line 11
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #prorateBoolean + + + + + +

+
+ +

Returns Set to `true` if the line item should be prorated; set to `false` if not. This can only be used on line items that have a start and end date.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Set to `true` if the line item should be prorated; set to `false` if not. This can only be used on line items that have a start and end date.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/line_item_refund.rb', line 15
+
+define_attribute :prorate, :Boolean
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns Line item quantity to be refunded.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Line item quantity to be refunded.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/line_item_refund.rb', line 19
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #quantity_decimalString + + + + + +

+
+ +

Returns A floating-point alternative to Quantity. If this value is present, it will be used in place of Quantity for calculations, and Quantity will be the rounded integer value of this number. This field supports up to 9 decimal places. The Decimal Quantity feature must be enabled to utilize this field.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A floating-point alternative to Quantity. If this value is present, it will be used in place of Quantity for calculations, and Quantity will be the rounded integer value of this number. This field supports up to 9 decimal places. The Decimal Quantity feature must be enabled to utilize this field.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/line_item_refund.rb', line 23
+
+define_attribute :quantity_decimal, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/MeasuredUnitCreate.html b/Recurly/Requests/MeasuredUnitCreate.html new file mode 100644 index 000000000..886069e60 --- /dev/null +++ b/Recurly/Requests/MeasuredUnitCreate.html @@ -0,0 +1,445 @@ + + + + + + + Class: Recurly::Requests::MeasuredUnitCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::MeasuredUnitCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/measured_unit_create.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

+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Optional internal description.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional internal description.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/measured_unit_create.rb', line 11
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #display_nameString + + + + + +

+
+ +

Returns Display name for the measured unit.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Display name for the measured unit.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/measured_unit_create.rb', line 15
+
+define_attribute :display_name, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Unique internal name of the measured unit on your site.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique internal name of the measured unit on your site.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/measured_unit_create.rb', line 19
+
+define_attribute :name, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/MeasuredUnitUpdate.html b/Recurly/Requests/MeasuredUnitUpdate.html new file mode 100644 index 000000000..39e67bafd --- /dev/null +++ b/Recurly/Requests/MeasuredUnitUpdate.html @@ -0,0 +1,445 @@ + + + + + + + Class: Recurly::Requests::MeasuredUnitUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::MeasuredUnitUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/measured_unit_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

+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Optional internal description.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional internal description.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/measured_unit_update.rb', line 11
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #display_nameString + + + + + +

+
+ +

Returns Display name for the measured unit.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Display name for the measured unit.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/measured_unit_update.rb', line 15
+
+define_attribute :display_name, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Unique internal name of the measured unit on your site.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique internal name of the measured unit on your site.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/measured_unit_update.rb', line 19
+
+define_attribute :name, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/PercentageTier.html b/Recurly/Requests/PercentageTier.html new file mode 100644 index 000000000..49e5dbf4c --- /dev/null +++ b/Recurly/Requests/PercentageTier.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::PercentageTier + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::PercentageTier + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/percentage_tier.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

+ + + +
+

+ + #ending_amountFloat + + + + + +

+
+ +

Returns Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/percentage_tier.rb', line 11
+
+define_attribute :ending_amount, Float
+
+
+ + + +
+

+ + #usage_percentageString + + + + + +

+
+ +

Returns The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places represented as a string.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places represented as a string.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/percentage_tier.rb', line 15
+
+define_attribute :usage_percentage, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/PercentageTiersByCurrency.html b/Recurly/Requests/PercentageTiersByCurrency.html new file mode 100644 index 000000000..dc8df8dbc --- /dev/null +++ b/Recurly/Requests/PercentageTiersByCurrency.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::PercentageTiersByCurrency + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::PercentageTiersByCurrency + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/percentage_tiers_by_currency.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/percentage_tiers_by_currency.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #tiersArray[PercentageTier] + + + + + +

+
+ +

Returns Tiers.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/percentage_tiers_by_currency.rb', line 15
+
+define_attribute :tiers, Array, { :item_type => :PercentageTier }
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/PlanCreate.html b/Recurly/Requests/PlanCreate.html new file mode 100644 index 000000000..ff3c3fbbe --- /dev/null +++ b/Recurly/Requests/PlanCreate.html @@ -0,0 +1,2377 @@ + + + + + + + Class: Recurly::Requests::PlanCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::PlanCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/plan_create.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_codeString + + + + + +

+
+ +

Returns Accounting code for invoice line items for the plan. If no value is provided, it defaults to plan's code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for invoice line items for the plan. If no value is provided, it defaults to plan's code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/plan_create.rb', line 11
+
+define_attribute :accounting_code, String
+
+
+ + + +
+

+ + #add_onsArray[AddOnCreate] + + + + + +

+
+ +

Returns Add Ons.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[AddOnCreate]) + + + + — +
    +

    Add Ons

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/plan_create.rb', line 15
+
+define_attribute :add_ons, Array, { :item_type => :AddOnCreate }
+
+
+ + + +
+

+ + #allow_any_item_on_subscriptionsBoolean + + + + + +

+
+ +

Returns Used to determine whether items can be assigned as add-ons to individual subscriptions. If `true`, items can be assigned as add-ons to individual subscription add-ons. If `false`, only plan add-ons can be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Used to determine whether items can be assigned as add-ons to individual subscriptions. If `true`, items can be assigned as add-ons to individual subscription add-ons. If `false`, only plan add-ons can be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/plan_create.rb', line 19
+
+define_attribute :allow_any_item_on_subscriptions, :Boolean
+
+
+ + + +
+

+ + #auto_renewBoolean + + + + + +

+
+ +

Returns Subscriptions will automatically inherit this value once they are active. If `auto_renew` is `true`, then a subscription will automatically renew its term at renewal. If `auto_renew` is `false`, then a subscription will expire at the end of its term. `auto_renew` can be overridden on the subscription record itself.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Subscriptions will automatically inherit this value once they are active. If `auto_renew` is `true`, then a subscription will automatically renew its term at renewal. If `auto_renew` is `false`, then a subscription will expire at the end of its term. `auto_renew` can be overridden on the subscription record itself.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/plan_create.rb', line 23
+
+define_attribute :auto_renew, :Boolean
+
+
+ + + +
+

+ + #avalara_service_typeInteger + + + + + +

+
+ +

Returns Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the plan 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:

+ + +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/plan_create.rb', line 27
+
+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 plan 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:

+ + +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/plan_create.rb', line 31
+
+define_attribute :avalara_transaction_type, Integer
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/plan_create.rb', line 35
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #currenciesArray[PlanPricing] + + + + + +

+
+ +

Returns Pricing.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[PlanPricing]) + + + + — +
    +

    Pricing

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/plan_create.rb', line 39
+
+define_attribute :currencies, Array, { :item_type => :PlanPricing }
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/plan_create.rb', line 43
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Optional description, not displayed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional description, not displayed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/plan_create.rb', line 47
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #dunning_campaign_idString + + + + + +

+
+ +

Returns Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this plan. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this plan. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/plan_create.rb', line 51
+
+define_attribute :dunning_campaign_id, String
+
+
+ + + +
+

+ + #hosted_pagesPlanHostedPages + + + + + +

+
+ +

Returns Hosted pages settings.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (PlanHostedPages) + + + + — +
    +

    Hosted pages settings

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/plan_create.rb', line 55
+
+define_attribute :hosted_pages, :PlanHostedPages
+
+
+ + + +
+

+ + #interval_lengthInteger + + + + + +

+
+ +

Returns Length of the plan's billing interval in `interval_unit`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Length of the plan's billing interval in `interval_unit`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/plan_create.rb', line 59
+
+define_attribute :interval_length, Integer
+
+
+ + + +
+

+ + #interval_unitString + + + + + +

+
+ +

Returns Unit for the plan's billing interval.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unit for the plan's billing interval.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/plan_create.rb', line 63
+
+define_attribute :interval_unit, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/plan_create.rb', line 67
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #pricing_modelString + + + + + +

+
+ +

Returns A fixed pricing model has the same price for each billing period. A ramp pricing model defines a set of Ramp Intervals, where a subscription changes price on a specified cadence of billing periods. The price change could be an increase or decrease.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A fixed pricing model has the same price for each billing period. A ramp pricing model defines a set of Ramp Intervals, where a subscription changes price on a specified cadence of billing periods. The price change could be an increase or decrease.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/plan_create.rb', line 71
+
+define_attribute :pricing_model, String
+
+
+ + + +
+

+ + #ramp_intervalsArray[PlanRampInterval] + + + + + +

+
+ +

Returns Ramp Intervals.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/plan_create.rb', line 75
+
+define_attribute :ramp_intervals, Array, { :item_type => :PlanRampInterval }
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/plan_create.rb', line 79
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #setup_fee_accounting_codeString + + + + + +

+
+ +

Returns Accounting code for invoice line items for the plan's setup fee. If no value is provided, it defaults to plan's accounting code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for invoice line items for the plan's setup fee. If no value is provided, it defaults to plan's accounting code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/requests/plan_create.rb', line 83
+
+define_attribute :setup_fee_accounting_code, String
+
+
+ + + +
+

+ + #setup_fee_revenue_schedule_typeString + + + + + +

+
+ +

Returns Setup fee revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Setup fee revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/requests/plan_create.rb', line 87
+
+define_attribute :setup_fee_revenue_schedule_type, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

Returns Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/requests/plan_create.rb', line 91
+
+define_attribute :tax_code, String
+
+
+ + + +
+

+ + #tax_exemptBoolean + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/requests/plan_create.rb', line 95
+
+define_attribute :tax_exempt, :Boolean
+
+
+ + + +
+

+ + #total_billing_cyclesInteger + + + + + +

+
+ +

Returns Automatically terminate plans after a defined number of billing cycles.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Automatically terminate plans after a defined number of billing cycles.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/requests/plan_create.rb', line 99
+
+define_attribute :total_billing_cycles, Integer
+
+
+ + + +
+

+ + #trial_lengthInteger + + + + + +

+
+ +

Returns Length of plan's trial period in `trial_units`. `0` means `no trial`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Length of plan's trial period in `trial_units`. `0` means `no trial`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/requests/plan_create.rb', line 103
+
+define_attribute :trial_length, Integer
+
+
+ + + +
+

+ + #trial_requires_billing_infoBoolean + + + + + +

+
+ +

Returns Allow free trial subscriptions to be created without billing info. Should not be used if billing info is needed for initial invoice due to existing uninvoiced charges or setup fee.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Allow free trial subscriptions to be created without billing info. Should not be used if billing info is needed for initial invoice due to existing uninvoiced charges or setup fee.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+107
+
+
# File 'lib/recurly/requests/plan_create.rb', line 107
+
+define_attribute :trial_requires_billing_info, :Boolean
+
+
+ + + +
+

+ + #trial_unitString + + + + + +

+
+ +

Returns Units for the plan's trial period.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Units for the plan's trial period.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+111
+
+
# File 'lib/recurly/requests/plan_create.rb', line 111
+
+define_attribute :trial_unit, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/PlanHostedPages.html b/Recurly/Requests/PlanHostedPages.html new file mode 100644 index 000000000..f0f4fa329 --- /dev/null +++ b/Recurly/Requests/PlanHostedPages.html @@ -0,0 +1,529 @@ + + + + + + + Class: Recurly::Requests::PlanHostedPages + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::PlanHostedPages + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/plan_hosted_pages.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

+ + + +
+

+ + #bypass_confirmationBoolean + + + + + +

+
+ +

Returns If `true`, the customer will be sent directly to your `success_url` after a successful signup, bypassing Recurly's hosted confirmation page.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    If `true`, the customer will be sent directly to your `success_url` after a successful signup, bypassing Recurly's hosted confirmation page.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/plan_hosted_pages.rb', line 11
+
+define_attribute :bypass_confirmation, :Boolean
+
+
+ + + +
+

+ + #cancel_urlString + + + + + +

+
+ +

Returns URL to redirect to on canceled signup on the hosted payment pages.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    URL to redirect to on canceled signup on the hosted payment pages.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/plan_hosted_pages.rb', line 15
+
+define_attribute :cancel_url, String
+
+
+ + + +
+

+ + #display_quantityBoolean + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/plan_hosted_pages.rb', line 19
+
+define_attribute :display_quantity, :Boolean
+
+
+ + + +
+

+ + #success_urlString + + + + + +

+
+ +

Returns URL to redirect to after signup on the hosted payment pages.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    URL to redirect to after signup on the hosted payment pages.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/plan_hosted_pages.rb', line 23
+
+define_attribute :success_url, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/PlanPricing.html b/Recurly/Requests/PlanPricing.html new file mode 100644 index 000000000..769bc3a53 --- /dev/null +++ b/Recurly/Requests/PlanPricing.html @@ -0,0 +1,529 @@ + + + + + + + Class: Recurly::Requests::PlanPricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::PlanPricing + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/plan_pricing.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/plan_pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #setup_feeFloat + + + + + +

+
+ +

Returns Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/plan_pricing.rb', line 15
+
+define_attribute :setup_fee, Float
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns This field is deprecated. Please do not use it.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    This field is deprecated. Please do not use it.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/plan_pricing.rb', line 19
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns This field should not be sent when the pricing model is 'ramp'.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    This field should not be sent when the pricing model is 'ramp'.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/plan_pricing.rb', line 23
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/PlanRampInterval.html b/Recurly/Requests/PlanRampInterval.html new file mode 100644 index 000000000..d9eda84a9 --- /dev/null +++ b/Recurly/Requests/PlanRampInterval.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::PlanRampInterval + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::PlanRampInterval + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/plan_ramp_interval.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

+ + + +
+

+ + #currenciesArray[PlanRampPricing] + + + + + +

+
+ +

Returns Represents the price for the ramp interval.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[PlanRampPricing]) + + + + — +
    +

    Represents the price for the ramp interval.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/plan_ramp_interval.rb', line 11
+
+define_attribute :currencies, Array, { :item_type => :PlanRampPricing }
+
+
+ + + +
+

+ + #starting_billing_cycleInteger + + + + + +

+
+ +

Returns Represents the billing cycle where a ramp interval starts.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Represents the billing cycle where a ramp interval starts.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/plan_ramp_interval.rb', line 15
+
+define_attribute :starting_billing_cycle, Integer
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/PlanRampPricing.html b/Recurly/Requests/PlanRampPricing.html new file mode 100644 index 000000000..3b0d5fa3a --- /dev/null +++ b/Recurly/Requests/PlanRampPricing.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::PlanRampPricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::PlanRampPricing + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/plan_ramp_pricing.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/plan_ramp_pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Represents the price for the Ramp Interval.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Represents the price for the Ramp Interval.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/plan_ramp_pricing.rb', line 15
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/PlanUpdate.html b/Recurly/Requests/PlanUpdate.html new file mode 100644 index 000000000..3e16db14b --- /dev/null +++ b/Recurly/Requests/PlanUpdate.html @@ -0,0 +1,2125 @@ + + + + + + + Class: Recurly::Requests::PlanUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::PlanUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/plan_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_codeString + + + + + +

+
+ +

Returns Accounting code for invoice line items for the plan. If no value is provided, it defaults to plan's code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for invoice line items for the plan. If no value is provided, it defaults to plan's code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/plan_update.rb', line 11
+
+define_attribute :accounting_code, String
+
+
+ + + +
+

+ + #allow_any_item_on_subscriptionsBoolean + + + + + +

+
+ +

Returns Used to determine whether items can be assigned as add-ons to individual subscriptions. If `true`, items can be assigned as add-ons to individual subscription add-ons. If `false`, only plan add-ons can be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Used to determine whether items can be assigned as add-ons to individual subscriptions. If `true`, items can be assigned as add-ons to individual subscription add-ons. If `false`, only plan add-ons can be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/plan_update.rb', line 15
+
+define_attribute :allow_any_item_on_subscriptions, :Boolean
+
+
+ + + +
+

+ + #auto_renewBoolean + + + + + +

+
+ +

Returns Subscriptions will automatically inherit this value once they are active. If `auto_renew` is `true`, then a subscription will automatically renew its term at renewal. If `auto_renew` is `false`, then a subscription will expire at the end of its term. `auto_renew` can be overridden on the subscription record itself.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Subscriptions will automatically inherit this value once they are active. If `auto_renew` is `true`, then a subscription will automatically renew its term at renewal. If `auto_renew` is `false`, then a subscription will expire at the end of its term. `auto_renew` can be overridden on the subscription record itself.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/plan_update.rb', line 19
+
+define_attribute :auto_renew, :Boolean
+
+
+ + + +
+

+ + #avalara_service_typeInteger + + + + + +

+
+ +

Returns Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the plan 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:

+ + +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/plan_update.rb', line 23
+
+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 plan 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:

+ + +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/plan_update.rb', line 27
+
+define_attribute :avalara_transaction_type, Integer
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/plan_update.rb', line 31
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #currenciesArray[PlanPricing] + + + + + +

+
+ +

Returns Optional when the pricing model is 'ramp'.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[PlanPricing]) + + + + — +
    +

    Optional when the pricing model is 'ramp'.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/plan_update.rb', line 35
+
+define_attribute :currencies, Array, { :item_type => :PlanPricing }
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/plan_update.rb', line 39
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Optional description, not displayed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional description, not displayed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/plan_update.rb', line 43
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #dunning_campaign_idString + + + + + +

+
+ +

Returns Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this plan. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this plan. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/plan_update.rb', line 47
+
+define_attribute :dunning_campaign_id, String
+
+
+ + + +
+

+ + #hosted_pagesPlanHostedPages + + + + + +

+
+ +

Returns Hosted pages settings.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (PlanHostedPages) + + + + — +
    +

    Hosted pages settings

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/plan_update.rb', line 51
+
+define_attribute :hosted_pages, :PlanHostedPages
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Plan ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Plan ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/plan_update.rb', line 55
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/plan_update.rb', line 59
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #ramp_intervalsArray[PlanRampInterval] + + + + + +

+
+ +

Returns Ramp Intervals.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/plan_update.rb', line 63
+
+define_attribute :ramp_intervals, Array, { :item_type => :PlanRampInterval }
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/plan_update.rb', line 67
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #setup_fee_accounting_codeString + + + + + +

+
+ +

Returns Accounting code for invoice line items for the plan's setup fee. If no value is provided, it defaults to plan's accounting code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for invoice line items for the plan's setup fee. If no value is provided, it defaults to plan's accounting code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/plan_update.rb', line 71
+
+define_attribute :setup_fee_accounting_code, String
+
+
+ + + +
+

+ + #setup_fee_revenue_schedule_typeString + + + + + +

+
+ +

Returns Setup fee revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Setup fee revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/plan_update.rb', line 75
+
+define_attribute :setup_fee_revenue_schedule_type, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

Returns Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`, `physical`, or `digital`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/plan_update.rb', line 79
+
+define_attribute :tax_code, String
+
+
+ + + +
+

+ + #tax_exemptBoolean + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/requests/plan_update.rb', line 83
+
+define_attribute :tax_exempt, :Boolean
+
+
+ + + +
+

+ + #total_billing_cyclesInteger + + + + + +

+
+ +

Returns Automatically terminate plans after a defined number of billing cycles.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Automatically terminate plans after a defined number of billing cycles.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/requests/plan_update.rb', line 87
+
+define_attribute :total_billing_cycles, Integer
+
+
+ + + +
+

+ + #trial_lengthInteger + + + + + +

+
+ +

Returns Length of plan's trial period in `trial_units`. `0` means `no trial`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Length of plan's trial period in `trial_units`. `0` means `no trial`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/requests/plan_update.rb', line 91
+
+define_attribute :trial_length, Integer
+
+
+ + + +
+

+ + #trial_requires_billing_infoBoolean + + + + + +

+
+ +

Returns Allow free trial subscriptions to be created without billing info. Should not be used if billing info is needed for initial invoice due to existing uninvoiced charges or setup fee.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Allow free trial subscriptions to be created without billing info. Should not be used if billing info is needed for initial invoice due to existing uninvoiced charges or setup fee.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/requests/plan_update.rb', line 95
+
+define_attribute :trial_requires_billing_info, :Boolean
+
+
+ + + +
+

+ + #trial_unitString + + + + + +

+
+ +

Returns Units for the plan's trial period.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Units for the plan's trial period.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/requests/plan_update.rb', line 99
+
+define_attribute :trial_unit, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/Pricing.html b/Recurly/Requests/Pricing.html new file mode 100644 index 000000000..534b4e5e5 --- /dev/null +++ b/Recurly/Requests/Pricing.html @@ -0,0 +1,445 @@ + + + + + + + Class: Recurly::Requests::Pricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::Pricing + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/pricing.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns This field is deprecated. Please do not use it.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    This field is deprecated. Please do not use it.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/pricing.rb', line 15
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Unit price.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Unit price

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/pricing.rb', line 19
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/PurchaseCreate.html b/Recurly/Requests/PurchaseCreate.html new file mode 100644 index 000000000..cbdf6e7f4 --- /dev/null +++ b/Recurly/Requests/PurchaseCreate.html @@ -0,0 +1,1603 @@ + + + + + + + Class: Recurly::Requests::PurchaseCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::PurchaseCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/purchase_create.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

+ + + +
+

+ + #accountAccountPurchase + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 11
+
+define_attribute :account, :AccountPurchase
+
+
+ + + +
+

+ + #billing_info_idString + + + + + +

+
+ +

Returns The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 15
+
+define_attribute :billing_info_id, String
+
+
+ + + +
+

+ + #collection_methodString + + + + + +

+
+ +

Returns Must be set to manual in order to preview a purchase for an Account that does not have payment information associated with the Billing Info.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Must be set to manual in order to preview a purchase for an Account that does not have payment information associated with the Billing Info.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 19
+
+define_attribute :collection_method, String
+
+
+ + + +
+

+ + #coupon_codesArray[String] + + + + + +

+
+ +

Returns A list of coupon_codes to be redeemed on the subscription or account during the purchase.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    A list of coupon_codes to be redeemed on the subscription or account during the purchase.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 23
+
+define_attribute :coupon_codes, Array, { :item_type => String }
+
+
+ + + +
+

+ + #credit_customer_notesString + + + + + +

+
+ +

Returns Notes to be put on the credit invoice resulting from credits in the purchase, if any.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Notes to be put on the credit invoice resulting from credits in the purchase, if any.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 27
+
+define_attribute :credit_customer_notes, String
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 31
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #customer_notesString + + + + + +

+
+ +

Returns Customer notes.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Customer notes

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 35
+
+define_attribute :customer_notes, String
+
+
+ + + +
+

+ + #gateway_codeString + + + + + +

+
+ +

Returns The default payment gateway identifier to be used for the purchase transaction. This will also be applied as the default for any subscriptions included in the purchase request.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The default payment gateway identifier to be used for the purchase transaction. This will also be applied as the default for any subscriptions included in the purchase request.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 39
+
+define_attribute :gateway_code, String
+
+
+ + + +
+

+ + #gift_card_redemption_codeString + + + + + +

+
+ +

Returns A gift card redemption code to be redeemed on the purchase invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A gift card redemption code to be redeemed on the purchase invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 43
+
+define_attribute :gift_card_redemption_code, String
+
+
+ + + +
+

+ + #line_itemsArray[LineItemCreate] + + + + + +

+
+ +

Returns A list of one time charges or credits to be created with the purchase.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[LineItemCreate]) + + + + — +
    +

    A list of one time charges or credits to be created with the purchase.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 47
+
+define_attribute :line_items, Array, { :item_type => :LineItemCreate }
+
+
+ + + +
+

+ + #net_termsInteger + + + + + +

+
+ +

Returns Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 51
+
+define_attribute :net_terms, Integer
+
+
+ + + +
+

+ + #po_numberString + + + + + +

+
+ +

Returns For manual invoicing, this identifies the PO number associated with the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For manual invoicing, this identifies the PO number associated with the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 55
+
+define_attribute :po_number, String
+
+
+ + + +
+

+ + #shippingShippingPurchase + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 59
+
+define_attribute :shipping, :ShippingPurchase
+
+
+ + + +
+

+ + #subscriptionsArray[SubscriptionPurchase] + + + + + +

+
+ +

Returns A list of subscriptions to be created with the purchase.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionPurchase]) + + + + — +
    +

    A list of subscriptions to be created with the purchase.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 63
+
+define_attribute :subscriptions, Array, { :item_type => :SubscriptionPurchase }
+
+
+ + + +
+

+ + #terms_and_conditionsString + + + + + +

+
+ +

Returns Terms and conditions to be put on the purchase invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Terms and conditions to be put on the purchase invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 67
+
+define_attribute :terms_and_conditions, String
+
+
+ + + +
+

+ + #transaction_typeString + + + + + +

+
+ +

Returns An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 71
+
+define_attribute :transaction_type, String
+
+
+ + + +
+

+ + #vat_reverse_charge_notesString + + + + + +

+
+ +

Returns VAT reverse charge notes for cross border European tax settlement.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    VAT reverse charge notes for cross border European tax settlement.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/purchase_create.rb', line 75
+
+define_attribute :vat_reverse_charge_notes, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ShippingAddressCreate.html b/Recurly/Requests/ShippingAddressCreate.html new file mode 100644 index 000000000..39a8f3e6a --- /dev/null +++ b/Recurly/Requests/ShippingAddressCreate.html @@ -0,0 +1,1195 @@ + + + + + + + Class: Recurly::Requests::ShippingAddressCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ShippingAddressCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/shipping_address_create.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

+ + + +
+

+ + #cityString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 11
+
+define_attribute :city, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 15
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #countryString + + + + + +

+
+ +

Returns Country, 2-letter ISO 3166-1 alpha-2 code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Country, 2-letter ISO 3166-1 alpha-2 code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 19
+
+define_attribute :country, String
+
+
+ + + +
+

+ + #emailString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 23
+
+define_attribute :email, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 27
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 31
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #nicknameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 35
+
+define_attribute :nickname, String
+
+
+ + + +
+

+ + #phoneString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 39
+
+define_attribute :phone, String
+
+
+ + + +
+

+ + #postal_codeString + + + + + +

+
+ +

Returns Zip or postal code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Zip or postal code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 43
+
+define_attribute :postal_code, String
+
+
+ + + +
+

+ + #regionString + + + + + +

+
+ +

Returns State or province.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    State or province.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 47
+
+define_attribute :region, String
+
+
+ + + +
+

+ + #street1String + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 51
+
+define_attribute :street1, String
+
+
+ + + +
+

+ + #street2String + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 55
+
+define_attribute :street2, String
+
+
+ + + +
+

+ + #vat_numberString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/shipping_address_create.rb', line 59
+
+define_attribute :vat_number, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ShippingAddressUpdate.html b/Recurly/Requests/ShippingAddressUpdate.html new file mode 100644 index 000000000..3fbea2a98 --- /dev/null +++ b/Recurly/Requests/ShippingAddressUpdate.html @@ -0,0 +1,1279 @@ + + + + + + + Class: Recurly::Requests::ShippingAddressUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ShippingAddressUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/shipping_address_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

+ + + +
+

+ + #cityString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 11
+
+define_attribute :city, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 15
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #countryString + + + + + +

+
+ +

Returns Country, 2-letter ISO 3166-1 alpha-2 code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Country, 2-letter ISO 3166-1 alpha-2 code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 19
+
+define_attribute :country, String
+
+
+ + + +
+

+ + #emailString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 23
+
+define_attribute :email, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 27
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Shipping Address ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Shipping Address ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 31
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 35
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #nicknameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 39
+
+define_attribute :nickname, String
+
+
+ + + +
+

+ + #phoneString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 43
+
+define_attribute :phone, String
+
+
+ + + +
+

+ + #postal_codeString + + + + + +

+
+ +

Returns Zip or postal code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Zip or postal code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 47
+
+define_attribute :postal_code, String
+
+
+ + + +
+

+ + #regionString + + + + + +

+
+ +

Returns State or province.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    State or province.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 51
+
+define_attribute :region, String
+
+
+ + + +
+

+ + #street1String + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 55
+
+define_attribute :street1, String
+
+
+ + + +
+

+ + #street2String + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 59
+
+define_attribute :street2, String
+
+
+ + + +
+

+ + #vat_numberString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/shipping_address_update.rb', line 63
+
+define_attribute :vat_number, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ShippingFeeCreate.html b/Recurly/Requests/ShippingFeeCreate.html new file mode 100644 index 000000000..5bd6fb4ce --- /dev/null +++ b/Recurly/Requests/ShippingFeeCreate.html @@ -0,0 +1,445 @@ + + + + + + + Class: Recurly::Requests::ShippingFeeCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ShippingFeeCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/shipping_fee_create.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

+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns This is priced in the purchase's currency.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    This is priced in the purchase's currency.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/shipping_fee_create.rb', line 11
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #method_codeString + + + + + +

+
+ +

Returns The code of the shipping method used to deliver the purchase. If `method_id` and `method_code` are both present, `method_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The code of the shipping method used to deliver the purchase. If `method_id` and `method_code` are both present, `method_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/shipping_fee_create.rb', line 15
+
+define_attribute :method_code, String
+
+
+ + + +
+

+ + #method_idString + + + + + +

+
+ +

Returns The id of the shipping method used to deliver the purchase. If `method_id` and `method_code` are both present, `method_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The id of the shipping method used to deliver the purchase. If `method_id` and `method_code` are both present, `method_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/shipping_fee_create.rb', line 19
+
+define_attribute :method_id, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ShippingMethodCreate.html b/Recurly/Requests/ShippingMethodCreate.html new file mode 100644 index 000000000..535e0fa16 --- /dev/null +++ b/Recurly/Requests/ShippingMethodCreate.html @@ -0,0 +1,529 @@ + + + + + + + Class: Recurly::Requests::ShippingMethodCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ShippingMethodCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/shipping_method_create.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_codeString + + + + + +

+
+ +

Returns Accounting code for shipping method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for shipping method.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/shipping_method_create.rb', line 11
+
+define_attribute :accounting_code, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The internal name used identify the shipping method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The internal name used identify the shipping method.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/shipping_method_create.rb', line 15
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns The name of the shipping method displayed to customers.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The name of the shipping method displayed to customers.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/shipping_method_create.rb', line 19
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

Returns Used by Avalara, Vertex, and Recurly’s built-in tax feature. The tax code values are specific to each tax system. If you are using Recurly’s built-in taxes the values are: - `FR` – Common Carrier FOB Destination - `FR022000` – Common Carrier FOB Origin - `FR020400` – Non Common Carrier FOB Destination - `FR020500` – Non Common Carrier FOB Origin - `FR010100` – Delivery by Company Vehicle Before Passage of Title - `FR010200` – Delivery by Company Vehicle After Passage of Title - `NT` – Non-Taxable.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used by Avalara, Vertex, and Recurly’s built-in tax feature. The tax code values are specific to each tax system. If you are using Recurly’s built-in taxes the values are: - `FR` – Common Carrier FOB Destination - `FR022000` – Common Carrier FOB Origin - `FR020400` – Non Common Carrier FOB Destination - `FR020500` – Non Common Carrier FOB Origin - `FR010100` – Delivery by Company Vehicle Before Passage of Title - `FR010200` – Delivery by Company Vehicle After Passage of Title - `NT` – Non-Taxable

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/shipping_method_create.rb', line 23
+
+define_attribute :tax_code, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ShippingMethodUpdate.html b/Recurly/Requests/ShippingMethodUpdate.html new file mode 100644 index 000000000..eb1cea440 --- /dev/null +++ b/Recurly/Requests/ShippingMethodUpdate.html @@ -0,0 +1,529 @@ + + + + + + + Class: Recurly::Requests::ShippingMethodUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ShippingMethodUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/shipping_method_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_codeString + + + + + +

+
+ +

Returns Accounting code for shipping method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for shipping method.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/shipping_method_update.rb', line 11
+
+define_attribute :accounting_code, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The internal name used identify the shipping method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The internal name used identify the shipping method.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/shipping_method_update.rb', line 15
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns The name of the shipping method displayed to customers.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The name of the shipping method displayed to customers.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/shipping_method_update.rb', line 19
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

Returns Used by Avalara, Vertex, and Recurly’s built-in tax feature. The tax code values are specific to each tax system. If you are using Recurly’s built-in taxes the values are: - `FR` – Common Carrier FOB Destination - `FR022000` – Common Carrier FOB Origin - `FR020400` – Non Common Carrier FOB Destination - `FR020500` – Non Common Carrier FOB Origin - `FR010100` – Delivery by Company Vehicle Before Passage of Title - `FR010200` – Delivery by Company Vehicle After Passage of Title - `NT` – Non-Taxable.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used by Avalara, Vertex, and Recurly’s built-in tax feature. The tax code values are specific to each tax system. If you are using Recurly’s built-in taxes the values are: - `FR` – Common Carrier FOB Destination - `FR022000` – Common Carrier FOB Origin - `FR020400` – Non Common Carrier FOB Destination - `FR020500` – Non Common Carrier FOB Origin - `FR010100` – Delivery by Company Vehicle Before Passage of Title - `FR010200` – Delivery by Company Vehicle After Passage of Title - `NT` – Non-Taxable

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/shipping_method_update.rb', line 23
+
+define_attribute :tax_code, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/ShippingPurchase.html b/Recurly/Requests/ShippingPurchase.html new file mode 100644 index 000000000..971ace8dd --- /dev/null +++ b/Recurly/Requests/ShippingPurchase.html @@ -0,0 +1,436 @@ + + + + + + + Class: Recurly::Requests::ShippingPurchase + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::ShippingPurchase + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/shipping_purchase.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

+ + + +
+

+ + #addressShippingAddressCreate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/shipping_purchase.rb', line 11
+
+define_attribute :address, :ShippingAddressCreate
+
+
+ + + +
+

+ + #address_idString + + + + + +

+
+ +

Returns Assign a shipping address from the account's existing shipping addresses. If this and `address` are both present, `address` will take precedence.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Assign a shipping address from the account's existing shipping addresses. If this and `address` are both present, `address` will take precedence.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/shipping_purchase.rb', line 15
+
+define_attribute :address_id, String
+
+
+ + + +
+

+ + #feesArray[ShippingFeeCreate] + + + + + +

+
+ +

Returns A list of shipping fees to be created as charges with the purchase.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[ShippingFeeCreate]) + + + + — +
    +

    A list of shipping fees to be created as charges with the purchase.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/shipping_purchase.rb', line 19
+
+define_attribute :fees, Array, { :item_type => :ShippingFeeCreate }
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionAddOnCreate.html b/Recurly/Requests/SubscriptionAddOnCreate.html new file mode 100644 index 000000000..b4454c609 --- /dev/null +++ b/Recurly/Requests/SubscriptionAddOnCreate.html @@ -0,0 +1,949 @@ + + + + + + + Class: Recurly::Requests::SubscriptionAddOnCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionAddOnCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_add_on_create.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

+ + + +
+

+ + #add_on_sourceString + + + + + +

+
+ +

Returns Used to determine where the associated add-on data is pulled from. If this value is set to `plan_add_on` or left blank, then add-on data will be pulled from the plan's add-ons. If the associated `plan` has `allow_any_item_on_subscriptions` set to `true` and this field is set to `item`, then the associated add-on data will be pulled from the site's item catalog.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used to determine where the associated add-on data is pulled from. If this value is set to `plan_add_on` or left blank, then add-on data will be pulled from the plan's add-ons. If the associated `plan` has `allow_any_item_on_subscriptions` set to `true` and this field is set to `item`, then the associated add-on data will be pulled from the site's item catalog.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_add_on_create.rb', line 11
+
+define_attribute :add_on_source, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns If `add_on_source` is set to `plan_add_on` or left blank, then plan's add-on `code` should be used. If `add_on_source` is set to `item`, then the `code` from the associated item should be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If `add_on_source` is set to `plan_add_on` or left blank, then plan's add-on `code` should be used. If `add_on_source` is set to `item`, then the `code` from the associated item should be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_add_on_create.rb', line 15
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #percentage_tiersArray[SubscriptionAddOnPercentageTier] + + + + + +

+
+ +

Returns If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request. There must be one tier without ending_amount value which represents the final tier. Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage. This feature is currently in development and requires approval and enablement, please contact support.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionAddOnPercentageTier]) + + + + — +
    +

    If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request. There must be one tier without ending_amount value which represents the final tier. Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage. This feature is currently in development and requires approval and enablement, please contact support.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_add_on_create.rb', line 19
+
+define_attribute :percentage_tiers, Array, { :item_type => :SubscriptionAddOnPercentageTier }
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns Quantity.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Quantity

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/subscription_add_on_create.rb', line 23
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/subscription_add_on_create.rb', line 27
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #tiersArray[SubscriptionAddOnTier] + + + + + +

+
+ +

Returns If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount`. There must be one tier without an `ending_quantity` value which represents the final tier. See our [Guide](recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionAddOnTier]) + + + + — +
    +

    If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount`. There must be one tier without an `ending_quantity` value which represents the final tier. See our [Guide](recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/subscription_add_on_create.rb', line 31
+
+define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Allows up to 2 decimal places. Optionally, override the add-on's default unit amount. If the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount` cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Allows up to 2 decimal places. Optionally, override the add-on's default unit amount. If the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount` cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/subscription_add_on_create.rb', line 35
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Allows up to 9 decimal places. Optionally, override the add-on's default unit amount. If the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount_decimal` cannot be provided. Only supported when the plan add-on's `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Allows up to 9 decimal places. Optionally, override the add-on's default unit amount. If the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount_decimal` cannot be provided. Only supported when the plan add-on's `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/subscription_add_on_create.rb', line 39
+
+define_attribute :unit_amount_decimal, String
+
+
+ + + +
+

+ + #usage_percentageFloat + + + + + +

+
+ +

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. See our [Guide](recurly.com/developers/guides/usage-based-billing-guide.html) for an overview of how to configure usage add-ons.

+ + +
+
+
+ +

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. See our [Guide](recurly.com/developers/guides/usage-based-billing-guide.html) for an overview of how to configure usage add-ons.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/subscription_add_on_create.rb', line 43
+
+define_attribute :usage_percentage, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionAddOnPercentageTier.html b/Recurly/Requests/SubscriptionAddOnPercentageTier.html new file mode 100644 index 000000000..862e224c7 --- /dev/null +++ b/Recurly/Requests/SubscriptionAddOnPercentageTier.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::SubscriptionAddOnPercentageTier + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionAddOnPercentageTier + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_add_on_percentage_tier.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

+ + + +
+

+ + #ending_amountFloat + + + + + +

+
+ +

Returns Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_add_on_percentage_tier.rb', line 11
+
+define_attribute :ending_amount, Float
+
+
+ + + +
+

+ + #usage_percentageString + + + + + +

+
+ +

Returns The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places represented as a string.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places represented as a string.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_add_on_percentage_tier.rb', line 15
+
+define_attribute :usage_percentage, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionAddOnTier.html b/Recurly/Requests/SubscriptionAddOnTier.html new file mode 100644 index 000000000..d81fd02e2 --- /dev/null +++ b/Recurly/Requests/SubscriptionAddOnTier.html @@ -0,0 +1,529 @@ + + + + + + + Class: Recurly::Requests::SubscriptionAddOnTier + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionAddOnTier + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_add_on_tier.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

+ + + +
+

+ + #ending_quantityInteger + + + + + +

+
+ +

Returns Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_add_on_tier.rb', line 11
+
+define_attribute :ending_quantity, Integer
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Allows up to 2 decimal places. Optionally, override the tiers' default unit amount. If add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Allows up to 2 decimal places. Optionally, override the tiers' default unit amount. If add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_add_on_tier.rb', line 15
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Allows up to 9 decimal places. Optionally, override tiers' default unit amount. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided. If add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Allows up to 9 decimal places. Optionally, override tiers' default unit amount. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided. If add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_add_on_tier.rb', line 19
+
+define_attribute :unit_amount_decimal, String
+
+
+ + + +
+

+ + #usage_percentageString + + + + + +

+
+ +

Returns (deprecated) – Use the percentage_tiers object instead.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    (deprecated) – Use the percentage_tiers object instead.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/subscription_add_on_tier.rb', line 23
+
+define_attribute :usage_percentage, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionAddOnUpdate.html b/Recurly/Requests/SubscriptionAddOnUpdate.html new file mode 100644 index 000000000..2d23ec0b9 --- /dev/null +++ b/Recurly/Requests/SubscriptionAddOnUpdate.html @@ -0,0 +1,1033 @@ + + + + + + + Class: Recurly::Requests::SubscriptionAddOnUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionAddOnUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_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

+ + + +
+

+ + #add_on_sourceString + + + + + +

+
+ +

Returns Used to determine where the associated add-on data is pulled from. If this value is set to `plan_add_on` or left blank, then add-on data will be pulled from the plan's add-ons. If the associated `plan` has `allow_any_item_on_subscriptions` set to `true` and this field is set to `item`, then the associated add-on data will be pulled from the site's item catalog.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used to determine where the associated add-on data is pulled from. If this value is set to `plan_add_on` or left blank, then add-on data will be pulled from the plan's add-ons. If the associated `plan` has `allow_any_item_on_subscriptions` set to `true` and this field is set to `item`, then the associated add-on data will be pulled from the site's item catalog.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_add_on_update.rb', line 11
+
+define_attribute :add_on_source, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns If a code is provided without an id, the subscription add-on attributes will be set to the current value for those attributes on the plan add-on unless provided in the request. If `add_on_source` is set to `plan_add_on` or left blank, then plan's add-on `code` should be used. If `add_on_source` is set to `item`, then the `code` from the associated item should be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If a code is provided without an id, the subscription add-on attributes will be set to the current value for those attributes on the plan add-on unless provided in the request. If `add_on_source` is set to `plan_add_on` or left blank, then plan's add-on `code` should be used. If `add_on_source` is set to `item`, then the `code` from the associated item should be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_add_on_update.rb', line 15
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns When an id is provided, the existing subscription add-on attributes will persist unless overridden in the request.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    When an id is provided, the existing subscription add-on attributes will persist unless overridden in the request.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_add_on_update.rb', line 19
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #percentage_tiersArray[SubscriptionAddOnPercentageTier] + + + + + +

+
+ +

Returns If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage. There must be one tier without an `ending_amount` value which represents the final tier. This feature is currently in development and requires approval and enablement, please contact support.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionAddOnPercentageTier]) + + + + — +
    +

    If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage. There must be one tier without an `ending_amount` value which represents the final tier. This feature is currently in development and requires approval and enablement, please contact support.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/subscription_add_on_update.rb', line 23
+
+define_attribute :percentage_tiers, Array, { :item_type => :SubscriptionAddOnPercentageTier }
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns Quantity.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Quantity

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/subscription_add_on_update.rb', line 27
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/subscription_add_on_update.rb', line 31
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #tiersArray[SubscriptionAddOnTier] + + + + + +

+
+ +

Returns If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount`. There must be one tier without an `ending_quantity` value which represents the final tier.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionAddOnTier]) + + + + — +
    +

    If the plan add-on's `tier_type` is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount`. There must be one tier without an `ending_quantity` value which represents the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/subscription_add_on_update.rb', line 35
+
+define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Allows up to 2 decimal places. Optionally, override the add-on's default unit amount. If the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount` cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Allows up to 2 decimal places. Optionally, override the add-on's default unit amount. If the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount` cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/subscription_add_on_update.rb', line 39
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Allows up to 9 decimal places. Optionally, override the add-on's default unit amount. If the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount_decimal` cannot be provided. Only supported when the plan add-on's `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Allows up to 9 decimal places. Optionally, override the add-on's default unit amount. If the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount_decimal` cannot be provided. Only supported when the plan add-on's `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/subscription_add_on_update.rb', line 43
+
+define_attribute :unit_amount_decimal, String
+
+
+ + + +
+

+ + #usage_percentageFloat + + + + + +

+
+ +

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.

+ + +
+
+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/subscription_add_on_update.rb', line 47
+
+define_attribute :usage_percentage, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionCancel.html b/Recurly/Requests/SubscriptionCancel.html new file mode 100644 index 000000000..6650f0380 --- /dev/null +++ b/Recurly/Requests/SubscriptionCancel.html @@ -0,0 +1,277 @@ + + + + + + + Class: Recurly::Requests::SubscriptionCancel + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionCancel + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_cancel.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

+ + + +
+

+ + #timeframeString + + + + + +

+
+ +

Returns The timeframe parameter controls when the expiration takes place. The `bill_date` timeframe causes the subscription to expire when the subscription is scheduled to bill next. The `term_end` timeframe causes the subscription to continue to bill until the end of the subscription term, then expire.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The timeframe parameter controls when the expiration takes place. The `bill_date` timeframe causes the subscription to expire when the subscription is scheduled to bill next. The `term_end` timeframe causes the subscription to continue to bill until the end of the subscription term, then expire.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_cancel.rb', line 11
+
+define_attribute :timeframe, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionChangeBillingInfoCreate.html b/Recurly/Requests/SubscriptionChangeBillingInfoCreate.html new file mode 100644 index 000000000..5f41432bf --- /dev/null +++ b/Recurly/Requests/SubscriptionChangeBillingInfoCreate.html @@ -0,0 +1,277 @@ + + + + + + + Class: Recurly::Requests::SubscriptionChangeBillingInfoCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionChangeBillingInfoCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_change_billing_info_create.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

+ + + +
+

+ + #three_d_secure_action_result_token_idString + + + + + +

+
+ +

Returns A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_change_billing_info_create.rb', line 11
+
+define_attribute :three_d_secure_action_result_token_id, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionChangeCreate.html b/Recurly/Requests/SubscriptionChangeCreate.html new file mode 100644 index 000000000..c43706aac --- /dev/null +++ b/Recurly/Requests/SubscriptionChangeCreate.html @@ -0,0 +1,1612 @@ + + + + + + + Class: Recurly::Requests::SubscriptionChangeCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionChangeCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_change_create.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

+ + + +
+

+ + #add_onsArray[SubscriptionAddOnUpdate] + + + + + +

+
+ +

Returns If you provide a value for this field it will replace any existing add-ons. So, when adding or modifying an add-on, you need to include the existing subscription add-ons. Unchanged add-ons can be included just using the subscription add-on''s ID: `“abc123”`. If this value is omitted your existing add-ons will be unaffected. To remove all existing add-ons, this value should be an empty array.' If a subscription add-on's `code` is supplied without the `id`, `“def456”`, the subscription add-on attributes will be set to the current values of the plan add-on unless provided in the request. - If an `id` is passed, any attributes not passed in will pull from the existing subscription add-on - If a `code` is passed, any attributes not passed in will pull from the current values of the plan add-on - Attributes passed in as part of the request will override either of the above scenarios.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionAddOnUpdate]) + + + + — +
    +

    If you provide a value for this field it will replace any existing add-ons. So, when adding or modifying an add-on, you need to include the existing subscription add-ons. Unchanged add-ons can be included just using the subscription add-on''s ID: `“abc123”`. If this value is omitted your existing add-ons will be unaffected. To remove all existing add-ons, this value should be an empty array.' If a subscription add-on's `code` is supplied without the `id`, `“def456”`, the subscription add-on attributes will be set to the current values of the plan add-on unless provided in the request. - If an `id` is passed, any attributes not passed in will pull from the existing subscription add-on - If a `code` is passed, any attributes not passed in will pull from the current values of the plan add-on - Attributes passed in as part of the request will override either of the above scenarios

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 11
+
+define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOnUpdate }
+
+
+ + + +
+

+ + #billing_infoSubscriptionChangeBillingInfoCreate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 15
+
+define_attribute :billing_info, :SubscriptionChangeBillingInfoCreate
+
+
+ + + +
+

+ + #collection_methodString + + + + + +

+
+ +

Returns Collection method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Collection method

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 19
+
+define_attribute :collection_method, String
+
+
+ + + +
+

+ + #coupon_codesArray[String] + + + + + +

+
+ +

Returns A list of coupon_codes to be redeemed on the subscription during the change. Only allowed if timeframe is now and you change something about the subscription that creates an invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    A list of coupon_codes to be redeemed on the subscription during the change. Only allowed if timeframe is now and you change something about the subscription that creates an invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 23
+
+define_attribute :coupon_codes, Array, { :item_type => String }
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 27
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #net_termsInteger + + + + + +

+
+ +

Returns Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 31
+
+define_attribute :net_terms, Integer
+
+
+ + + +
+

+ + #plan_codeString + + + + + +

+
+ +

Returns If you want to change to a new plan, you can provide the plan's code or id. If both are provided the `plan_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If you want to change to a new plan, you can provide the plan's code or id. If both are provided the `plan_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 35
+
+define_attribute :plan_code, String
+
+
+ + + +
+

+ + #plan_idString + + + + + +

+
+ +

Returns If you want to change to a new plan, you can provide the plan's code or id. If both are provided the `plan_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If you want to change to a new plan, you can provide the plan's code or id. If both are provided the `plan_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 39
+
+define_attribute :plan_id, String
+
+
+ + + +
+

+ + #po_numberString + + + + + +

+
+ +

Returns For manual invoicing, this identifies the PO number associated with the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For manual invoicing, this identifies the PO number associated with the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 43
+
+define_attribute :po_number, String
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns Optionally override the default quantity of 1.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Optionally override the default quantity of 1.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 47
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #ramp_intervalsArray[SubscriptionRampInterval] + + + + + +

+
+ +

Returns The new set of ramp intervals for the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionRampInterval]) + + + + — +
    +

    The new set of ramp intervals for the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 51
+
+define_attribute :ramp_intervals, Array, { :item_type => :SubscriptionRampInterval }
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 55
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #shippingSubscriptionChangeShippingCreate + + + + + +

+
+ +

Returns Shipping addresses are tied to a customer's account. Each account can have up to 20 different shipping addresses, and if you have enabled multiple subscriptions per account, you can associate different shipping addresses to each subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (SubscriptionChangeShippingCreate) + + + + — +
    +

    Shipping addresses are tied to a customer's account. Each account can have up to 20 different shipping addresses, and if you have enabled multiple subscriptions per account, you can associate different shipping addresses to each subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 59
+
+define_attribute :shipping, :SubscriptionChangeShippingCreate
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns This field is deprecated. Please do not use it.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    This field is deprecated. Please do not use it.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 63
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #timeframeString + + + + + +

+
+ +

Returns The timeframe parameter controls when the upgrade or downgrade takes place. The subscription change can occur now, when the subscription is next billed, or when the subscription term ends. Generally, if you're performing an upgrade, you will want the change to occur immediately (now). If you're performing a downgrade, you should set the timeframe to `term_end` or `bill_date` so the change takes effect at a scheduled billing date. The `renewal` timeframe option is accepted as an alias for `term_end`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The timeframe parameter controls when the upgrade or downgrade takes place. The subscription change can occur now, when the subscription is next billed, or when the subscription term ends. Generally, if you're performing an upgrade, you will want the change to occur immediately (now). If you're performing a downgrade, you should set the timeframe to `term_end` or `bill_date` so the change takes effect at a scheduled billing date. The `renewal` timeframe option is accepted as an alias for `term_end`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 67
+
+define_attribute :timeframe, String
+
+
+ + + +
+

+ + #transaction_typeString + + + + + +

+
+ +

Returns An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 71
+
+define_attribute :transaction_type, String
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Optionally, sets custom pricing for the subscription, overriding the plan's default unit amount. The subscription's current currency will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Optionally, sets custom pricing for the subscription, overriding the plan's default unit amount. The subscription's current currency will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/subscription_change_create.rb', line 75
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionChangeShippingCreate.html b/Recurly/Requests/SubscriptionChangeShippingCreate.html new file mode 100644 index 000000000..716ae3634 --- /dev/null +++ b/Recurly/Requests/SubscriptionChangeShippingCreate.html @@ -0,0 +1,604 @@ + + + + + + + Class: Recurly::Requests::SubscriptionChangeShippingCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionChangeShippingCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_change_shipping_create.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

+ + + +
+

+ + #addressShippingAddressCreate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_change_shipping_create.rb', line 11
+
+define_attribute :address, :ShippingAddressCreate
+
+
+ + + +
+

+ + #address_idString + + + + + +

+
+ +

Returns Assign a shipping address from the account's existing shipping addresses. If this and address are both present, address will take precedence.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Assign a shipping address from the account's existing shipping addresses. If this and address are both present, address will take precedence.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_change_shipping_create.rb', line 15
+
+define_attribute :address_id, String
+
+
+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_change_shipping_create.rb', line 19
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #method_codeString + + + + + +

+
+ +

Returns The code of the shipping method used to deliver the subscription. To remove shipping set this to `null` and the `amount=0`. If `method_id` and `method_code` are both present, `method_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The code of the shipping method used to deliver the subscription. To remove shipping set this to `null` and the `amount=0`. If `method_id` and `method_code` are both present, `method_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/subscription_change_shipping_create.rb', line 23
+
+define_attribute :method_code, String
+
+
+ + + +
+

+ + #method_idString + + + + + +

+
+ +

Returns The id of the shipping method used to deliver the subscription. To remove shipping set this to `null` and the `amount=0`. If `method_id` and `method_code` are both present, `method_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The id of the shipping method used to deliver the subscription. To remove shipping set this to `null` and the `amount=0`. If `method_id` and `method_code` are both present, `method_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/subscription_change_shipping_create.rb', line 27
+
+define_attribute :method_id, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionCreate.html b/Recurly/Requests/SubscriptionCreate.html new file mode 100644 index 000000000..85f7ae0b3 --- /dev/null +++ b/Recurly/Requests/SubscriptionCreate.html @@ -0,0 +1,2536 @@ + + + + + + + Class: Recurly::Requests::SubscriptionCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_create.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

+ + + +
+

+ + #accountAccountCreate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 11
+
+define_attribute :account, :AccountCreate
+
+
+ + + +
+

+ + #add_onsArray[SubscriptionAddOnCreate] + + + + + +

+
+ +

Returns Add-ons.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 15
+
+define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOnCreate }
+
+
+ + + +
+

+ + #auto_renewBoolean + + + + + +

+
+ +

Returns Whether the subscription renews at the end of its term.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Whether the subscription renews at the end of its term.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 19
+
+define_attribute :auto_renew, :Boolean
+
+
+ + + +
+

+ + #billing_info_idString + + + + + +

+
+ +

Returns The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 23
+
+define_attribute :billing_info_id, String
+
+
+ + + +
+

+ + #collection_methodString + + + + + +

+
+ +

Returns Collection method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Collection method

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 27
+
+define_attribute :collection_method, String
+
+
+ + + +
+

+ + #coupon_codesArray[String] + + + + + +

+
+ +

Returns A list of coupon_codes to be redeemed on the subscription or account during the purchase.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    A list of coupon_codes to be redeemed on the subscription or account during the purchase.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 31
+
+define_attribute :coupon_codes, Array, { :item_type => String }
+
+
+ + + +
+

+ + #credit_customer_notesString + + + + + +

+
+ +

Returns If there are pending credits on the account that will be invoiced during the subscription creation, these will be used as the Customer Notes on the credit invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If there are pending credits on the account that will be invoiced during the subscription creation, these will be used as the Customer Notes on the credit invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 35
+
+define_attribute :credit_customer_notes, String
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 39
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 43
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #customer_notesString + + + + + +

+
+ +

Returns This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes. Custom notes will stay with a subscription on all renewals.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes. Custom notes will stay with a subscription on all renewals.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 47
+
+define_attribute :customer_notes, String
+
+
+ + + +
+

+ + #gift_card_redemption_codeString + + + + + +

+
+ +

Returns A gift card redemption code to be redeemed on the purchase invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A gift card redemption code to be redeemed on the purchase invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 51
+
+define_attribute :gift_card_redemption_code, String
+
+
+ + + +
+

+ + #net_termsInteger + + + + + +

+
+ +

Returns Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 55
+
+define_attribute :net_terms, Integer
+
+
+ + + +
+

+ + #next_bill_dateDateTime + + + + + +

+
+ +

Returns If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). This can be used to align the subscription’s billing to a specific day of the month. The initial invoice will be prorated for the period between the subscription's activation date and the billing period end date. Subsequent periods will be based off the plan interval. For a subscription with a trial period, this will change when the trial expires.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). This can be used to align the subscription’s billing to a specific day of the month. The initial invoice will be prorated for the period between the subscription's activation date and the billing period end date. Subsequent periods will be based off the plan interval. For a subscription with a trial period, this will change when the trial expires.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 59
+
+define_attribute :next_bill_date, DateTime
+
+
+ + + +
+

+ + #plan_codeString + + + + + +

+
+ +

Returns You must provide either a `plan_code` or `plan_id`. If both are provided the `plan_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    You must provide either a `plan_code` or `plan_id`. If both are provided the `plan_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 63
+
+define_attribute :plan_code, String
+
+
+ + + +
+

+ + #plan_idString + + + + + +

+
+ +

Returns You must provide either a `plan_code` or `plan_id`. If both are provided the `plan_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    You must provide either a `plan_code` or `plan_id`. If both are provided the `plan_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 67
+
+define_attribute :plan_id, String
+
+
+ + + +
+

+ + #po_numberString + + + + + +

+
+ +

Returns For manual invoicing, this identifies the PO number associated with the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For manual invoicing, this identifies the PO number associated with the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 71
+
+define_attribute :po_number, String
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns Optionally override the default quantity of 1.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Optionally override the default quantity of 1.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 75
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #ramp_intervalsArray[SubscriptionRampInterval] + + + + + +

+
+ +

Returns The new set of ramp intervals for the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionRampInterval]) + + + + — +
    +

    The new set of ramp intervals for the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 79
+
+define_attribute :ramp_intervals, Array, { :item_type => :SubscriptionRampInterval }
+
+
+ + + +
+

+ + #renewal_billing_cyclesInteger + + + + + +

+
+ +

Returns If `auto_renew=true`, when a term completes, `total_billing_cycles` takes this value as the length of subsequent terms. Defaults to the plan's `total_billing_cycles`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    If `auto_renew=true`, when a term completes, `total_billing_cycles` takes this value as the length of subsequent terms. Defaults to the plan's `total_billing_cycles`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 83
+
+define_attribute :renewal_billing_cycles, Integer
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 87
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #shippingSubscriptionShippingCreate + + + + + +

+
+ +

Returns Create a shipping address on the account and assign it to the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (SubscriptionShippingCreate) + + + + — +
    +

    Create a shipping address on the account and assign it to the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 91
+
+define_attribute :shipping, :SubscriptionShippingCreate
+
+
+ + + +
+

+ + #starts_atDateTime + + + + + +

+
+ +

Returns If set, the subscription will begin in the future on this date. The subscription will apply the setup fee and trial period, unless the plan has no trial.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If set, the subscription will begin in the future on this date. The subscription will apply the setup fee and trial period, unless the plan has no trial.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 95
+
+define_attribute :starts_at, DateTime
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 99
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #terms_and_conditionsString + + + + + +

+
+ +

Returns This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Specify custom notes to add or override Terms and Conditions. Custom notes will stay with a subscription on all renewals.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Specify custom notes to add or override Terms and Conditions. Custom notes will stay with a subscription on all renewals.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 103
+
+define_attribute :terms_and_conditions, String
+
+
+ + + +
+

+ + #total_billing_cyclesInteger + + + + + +

+
+ +

Returns The number of cycles/billing periods in a term. When `remaining_billing_cycles=0`, if `auto_renew=true` the subscription will renew and a new term will begin, otherwise the subscription will expire.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The number of cycles/billing periods in a term. When `remaining_billing_cycles=0`, if `auto_renew=true` the subscription will renew and a new term will begin, otherwise the subscription will expire.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+107
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 107
+
+define_attribute :total_billing_cycles, Integer
+
+
+ + + +
+

+ + #transaction_typeString + + + + + +

+
+ +

Returns An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An optional type designation for the payment gateway transaction created by this request. Supports 'moto' value, which is the acronym for mail order and telephone transactions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+111
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 111
+
+define_attribute :transaction_type, String
+
+
+ + + +
+

+ + #trial_ends_atDateTime + + + + + +

+
+ +

Returns If set, overrides the default trial behavior for the subscription. When the current date time or a past date time is provided the subscription will begin with no trial phase (overriding any plan default trial). When a future date time is provided the subscription will begin with a trial phase ending at the specified date time.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If set, overrides the default trial behavior for the subscription. When the current date time or a past date time is provided the subscription will begin with no trial phase (overriding any plan default trial). When a future date time is provided the subscription will begin with a trial phase ending at the specified date time.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+115
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 115
+
+define_attribute :trial_ends_at, DateTime
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Override the unit amount of the subscription plan by setting this value. If not provided, the subscription will inherit the price from the subscription plan for the provided currency.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Override the unit amount of the subscription plan by setting this value. If not provided, the subscription will inherit the price from the subscription plan for the provided currency.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+119
+
+
# File 'lib/recurly/requests/subscription_create.rb', line 119
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionPause.html b/Recurly/Requests/SubscriptionPause.html new file mode 100644 index 000000000..a67e65dd0 --- /dev/null +++ b/Recurly/Requests/SubscriptionPause.html @@ -0,0 +1,277 @@ + + + + + + + Class: Recurly::Requests::SubscriptionPause + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionPause + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_pause.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

+ + + +
+

+ + #remaining_pause_cyclesInteger + + + + + +

+
+ +

Returns Number of billing cycles to pause the subscriptions. A value of 0 will cancel any pending pauses on the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Number of billing cycles to pause the subscriptions. A value of 0 will cancel any pending pauses on the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_pause.rb', line 11
+
+define_attribute :remaining_pause_cycles, Integer
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionPurchase.html b/Recurly/Requests/SubscriptionPurchase.html new file mode 100644 index 000000000..56e7dfac9 --- /dev/null +++ b/Recurly/Requests/SubscriptionPurchase.html @@ -0,0 +1,1537 @@ + + + + + + + Class: Recurly::Requests::SubscriptionPurchase + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionPurchase + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_purchase.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

+ + + +
+

+ + #add_onsArray[SubscriptionAddOnCreate] + + + + + +

+
+ +

Returns Add-ons.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 11
+
+define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOnCreate }
+
+
+ + + +
+

+ + #auto_renewBoolean + + + + + +

+
+ +

Returns Whether the subscription renews at the end of its term.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Whether the subscription renews at the end of its term.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 15
+
+define_attribute :auto_renew, :Boolean
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 19
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #next_bill_dateDateTime + + + + + +

+
+ +

Returns If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). This can be used to align the subscription’s billing to a specific day of the month. The initial invoice will be prorated for the period between the subscription's activation date and the billing period end date. Subsequent periods will be based off the plan interval. For a subscription with a trial period, this will change when the trial expires.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). This can be used to align the subscription’s billing to a specific day of the month. The initial invoice will be prorated for the period between the subscription's activation date and the billing period end date. Subsequent periods will be based off the plan interval. For a subscription with a trial period, this will change when the trial expires.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 23
+
+define_attribute :next_bill_date, DateTime
+
+
+ + + +
+

+ + #plan_codeString + + + + + +

+
+ +

Returns Plan code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Plan code

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 27
+
+define_attribute :plan_code, String
+
+
+ + + +
+

+ + #plan_idString + + + + + +

+
+ +

Returns Plan ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Plan ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 31
+
+define_attribute :plan_id, String
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns Optionally override the default quantity of 1.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Optionally override the default quantity of 1.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 35
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #ramp_intervalsArray[SubscriptionRampInterval] + + + + + +

+
+ +

Returns The new set of ramp intervals for the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionRampInterval]) + + + + — +
    +

    The new set of ramp intervals for the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 39
+
+define_attribute :ramp_intervals, Array, { :item_type => :SubscriptionRampInterval }
+
+
+ + + +
+

+ + #renewal_billing_cyclesInteger + + + + + +

+
+ +

Returns If `auto_renew=true`, when a term completes, `total_billing_cycles` takes this value as the length of subsequent terms. Defaults to the plan's `total_billing_cycles`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    If `auto_renew=true`, when a term completes, `total_billing_cycles` takes this value as the length of subsequent terms. Defaults to the plan's `total_billing_cycles`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 43
+
+define_attribute :renewal_billing_cycles, Integer
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 47
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #shippingSubscriptionShippingPurchase + + + + + +

+
+ +

Returns Create a shipping address on the account and assign it to the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (SubscriptionShippingPurchase) + + + + — +
    +

    Create a shipping address on the account and assign it to the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 51
+
+define_attribute :shipping, :SubscriptionShippingPurchase
+
+
+ + + +
+

+ + #starts_atDateTime + + + + + +

+
+ +

Returns If set, the subscription will begin in the future on this date. The subscription will apply the setup fee and trial period, unless the plan has no trial.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If set, the subscription will begin in the future on this date. The subscription will apply the setup fee and trial period, unless the plan has no trial.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 55
+
+define_attribute :starts_at, DateTime
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to use this flag.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 59
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #total_billing_cyclesInteger + + + + + +

+
+ +

Returns The number of cycles/billing periods in a term. When `remaining_billing_cycles=0`, if `auto_renew=true` the subscription will renew and a new term will begin, otherwise the subscription will expire.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The number of cycles/billing periods in a term. When `remaining_billing_cycles=0`, if `auto_renew=true` the subscription will renew and a new term will begin, otherwise the subscription will expire.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 63
+
+define_attribute :total_billing_cycles, Integer
+
+
+ + + +
+

+ + #trial_ends_atDateTime + + + + + +

+
+ +

Returns If set, overrides the default trial behavior for the subscription. When the current date time or a past date time is provided the subscription will begin with no trial phase (overriding any plan default trial). When a future date time is provided the subscription will begin with a trial phase ending at the specified date time.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If set, overrides the default trial behavior for the subscription. When the current date time or a past date time is provided the subscription will begin with no trial phase (overriding any plan default trial). When a future date time is provided the subscription will begin with a trial phase ending at the specified date time.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 67
+
+define_attribute :trial_ends_at, DateTime
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Override the unit amount of the subscription plan by setting this value. If not provided, the subscription will inherit the price from the subscription plan for the provided currency.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Override the unit amount of the subscription plan by setting this value. If not provided, the subscription will inherit the price from the subscription plan for the provided currency.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/requests/subscription_purchase.rb', line 71
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionRampInterval.html b/Recurly/Requests/SubscriptionRampInterval.html new file mode 100644 index 000000000..971551c13 --- /dev/null +++ b/Recurly/Requests/SubscriptionRampInterval.html @@ -0,0 +1,361 @@ + + + + + + + Class: Recurly::Requests::SubscriptionRampInterval + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionRampInterval + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_ramp_interval.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

+ + + +
+

+ + #starting_billing_cycleInteger + + + + + +

+
+ +

Returns Represents the billing cycle where a ramp interval starts.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Represents the billing cycle where a ramp interval starts.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_ramp_interval.rb', line 11
+
+define_attribute :starting_billing_cycle, Integer
+
+
+ + + +
+

+ + #unit_amountInteger + + + + + +

+
+ +

Returns Represents the price for the ramp interval.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Represents the price for the ramp interval.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_ramp_interval.rb', line 15
+
+define_attribute :unit_amount, Integer
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionShippingCreate.html b/Recurly/Requests/SubscriptionShippingCreate.html new file mode 100644 index 000000000..267b6f5a1 --- /dev/null +++ b/Recurly/Requests/SubscriptionShippingCreate.html @@ -0,0 +1,604 @@ + + + + + + + Class: Recurly::Requests::SubscriptionShippingCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionShippingCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_shipping_create.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

+ + + +
+

+ + #addressShippingAddressCreate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_shipping_create.rb', line 11
+
+define_attribute :address, :ShippingAddressCreate
+
+
+ + + +
+

+ + #address_idString + + + + + +

+
+ +

Returns Assign a shipping address from the account's existing shipping addresses. If `address_id` and `address` are both present, `address` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Assign a shipping address from the account's existing shipping addresses. If `address_id` and `address` are both present, `address` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_shipping_create.rb', line 15
+
+define_attribute :address_id, String
+
+
+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_shipping_create.rb', line 19
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #method_codeString + + + + + +

+
+ +

Returns The code of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The code of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/subscription_shipping_create.rb', line 23
+
+define_attribute :method_code, String
+
+
+ + + +
+

+ + #method_idString + + + + + +

+
+ +

Returns The id of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The id of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/subscription_shipping_create.rb', line 27
+
+define_attribute :method_id, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionShippingPurchase.html b/Recurly/Requests/SubscriptionShippingPurchase.html new file mode 100644 index 000000000..c04585f07 --- /dev/null +++ b/Recurly/Requests/SubscriptionShippingPurchase.html @@ -0,0 +1,445 @@ + + + + + + + Class: Recurly::Requests::SubscriptionShippingPurchase + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionShippingPurchase + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_shipping_purchase.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

+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_shipping_purchase.rb', line 11
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #method_codeString + + + + + +

+
+ +

Returns The code of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The code of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_shipping_purchase.rb', line 15
+
+define_attribute :method_code, String
+
+
+ + + +
+

+ + #method_idString + + + + + +

+
+ +

Returns The id of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The id of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_shipping_purchase.rb', line 19
+
+define_attribute :method_id, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionShippingUpdate.html b/Recurly/Requests/SubscriptionShippingUpdate.html new file mode 100644 index 000000000..6de4cf3b2 --- /dev/null +++ b/Recurly/Requests/SubscriptionShippingUpdate.html @@ -0,0 +1,436 @@ + + + + + + + Class: Recurly::Requests::SubscriptionShippingUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionShippingUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_shipping_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

+ + + +
+

+ + #addressShippingAddressCreate + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_shipping_update.rb', line 11
+
+define_attribute :address, :ShippingAddressCreate
+
+
+ + + +
+

+ + #address_idString + + + + + +

+
+ +

Returns Assign a shipping address from the account's existing shipping addresses.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Assign a shipping address from the account's existing shipping addresses.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_shipping_update.rb', line 15
+
+define_attribute :address_id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_shipping_update.rb', line 19
+
+define_attribute :object, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/SubscriptionUpdate.html b/Recurly/Requests/SubscriptionUpdate.html new file mode 100644 index 000000000..ffb559cb2 --- /dev/null +++ b/Recurly/Requests/SubscriptionUpdate.html @@ -0,0 +1,1453 @@ + + + + + + + Class: Recurly::Requests::SubscriptionUpdate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::SubscriptionUpdate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/subscription_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

+ + + +
+

+ + #auto_renewBoolean + + + + + +

+
+ +

Returns Whether the subscription renews at the end of its term.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Whether the subscription renews at the end of its term.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 11
+
+define_attribute :auto_renew, :Boolean
+
+
+ + + +
+

+ + #billing_info_idString + + + + + +

+
+ +

Returns The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 15
+
+define_attribute :billing_info_id, String
+
+
+ + + +
+

+ + #collection_methodString + + + + + +

+
+ +

Returns Change collection method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Change collection method

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 19
+
+define_attribute :collection_method, String
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 23
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #customer_notesString + + + + + +

+
+ +

Returns Specify custom notes to add or override Customer Notes. Custom notes will stay with a subscription on all renewals.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Specify custom notes to add or override Customer Notes. Custom notes will stay with a subscription on all renewals.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 27
+
+define_attribute :customer_notes, String
+
+
+ + + +
+

+ + #gateway_codeString + + + + + +

+
+ +

Returns If present, this subscription's transactions will use the payment gateway with this code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If present, this subscription's transactions will use the payment gateway with this code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 31
+
+define_attribute :gateway_code, String
+
+
+ + + +
+

+ + #net_termsInteger + + + + + +

+
+ +

Returns Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 35
+
+define_attribute :net_terms, Integer
+
+
+ + + +
+

+ + #next_bill_dateDateTime + + + + + +

+
+ +

Returns If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). This can be used to align the subscription’s billing to a specific day of the month. For a subscription in a trial period, this will change when the trial expires. This parameter is useful for postponement of a subscription to change its billing date without proration.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If present, this sets the date the subscription's next billing period will start (`current_period_ends_at`). This can be used to align the subscription’s billing to a specific day of the month. For a subscription in a trial period, this will change when the trial expires. This parameter is useful for postponement of a subscription to change its billing date without proration.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 39
+
+define_attribute :next_bill_date, DateTime
+
+
+ + + +
+

+ + #po_numberString + + + + + +

+
+ +

Returns For manual invoicing, this identifies the PO number associated with the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For manual invoicing, this identifies the PO number associated with the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 43
+
+define_attribute :po_number, String
+
+
+ + + +
+

+ + #remaining_billing_cyclesInteger + + + + + +

+
+ +

Returns The remaining billing cycles in the current term.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The remaining billing cycles in the current term.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 47
+
+define_attribute :remaining_billing_cycles, Integer
+
+
+ + + +
+

+ + #renewal_billing_cyclesInteger + + + + + +

+
+ +

Returns If `auto_renew=true`, when a term completes, `total_billing_cycles` takes this value as the length of subsequent terms. Defaults to the plan's `total_billing_cycles`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    If `auto_renew=true`, when a term completes, `total_billing_cycles` takes this value as the length of subsequent terms. Defaults to the plan's `total_billing_cycles`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 51
+
+define_attribute :renewal_billing_cycles, Integer
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 55
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #shippingSubscriptionShippingUpdate + + + + + +

+
+ +

Returns Subscription shipping details.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 59
+
+define_attribute :shipping, :SubscriptionShippingUpdate
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns This field is deprecated. Please do not use it.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    This field is deprecated. Please do not use it.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 63
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #terms_and_conditionsString + + + + + +

+
+ +

Returns Specify custom notes to add or override Terms and Conditions. Custom notes will stay with a subscription on all renewals.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Specify custom notes to add or override Terms and Conditions. Custom notes will stay with a subscription on all renewals.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/requests/subscription_update.rb', line 67
+
+define_attribute :terms_and_conditions, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/Tier.html b/Recurly/Requests/Tier.html new file mode 100644 index 000000000..c9493dbe4 --- /dev/null +++ b/Recurly/Requests/Tier.html @@ -0,0 +1,445 @@ + + + + + + + Class: Recurly::Requests::Tier + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::Tier + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/tier.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

+ + + +
+

+ + #currenciesArray[TierPricing] + + + + + +

+
+ +

Returns Tier pricing.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[TierPricing]) + + + + — +
    +

    Tier pricing

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/tier.rb', line 11
+
+define_attribute :currencies, Array, { :item_type => :TierPricing }
+
+
+ + + +
+

+ + #ending_quantityInteger + + + + + +

+
+ +

Returns Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/tier.rb', line 15
+
+define_attribute :ending_quantity, Integer
+
+
+ + + +
+

+ + #usage_percentageString + + + + + +

+
+ +

Returns (deprecated) – Use the percentage_tiers object instead.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    (deprecated) – Use the percentage_tiers object instead.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/tier.rb', line 19
+
+define_attribute :usage_percentage, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/TierPricing.html b/Recurly/Requests/TierPricing.html new file mode 100644 index 000000000..d239ec596 --- /dev/null +++ b/Recurly/Requests/TierPricing.html @@ -0,0 +1,445 @@ + + + + + + + Class: Recurly::Requests::TierPricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::TierPricing + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/tier_pricing.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/tier_pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/tier_pricing.rb', line 15
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/tier_pricing.rb', line 19
+
+define_attribute :unit_amount_decimal, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Requests/UsageCreate.html b/Recurly/Requests/UsageCreate.html new file mode 100644 index 000000000..95fc10bef --- /dev/null +++ b/Recurly/Requests/UsageCreate.html @@ -0,0 +1,529 @@ + + + + + + + Class: Recurly::Requests::UsageCreate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Requests::UsageCreate + + + +

+
+ +
+
Inherits:
+
+ Recurly::Request + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/requests/usage_create.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

+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns The amount of usage. Can be positive, negative, or 0. If the Decimal Quantity feature is enabled, this value will be rounded to nine decimal places. Otherwise, all digits after the decimal will be stripped. If the usage-based add-on is billed with a percentage, your usage should be a monetary amount formatted in cents (e.g., $5.00 is “500”).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The amount of usage. Can be positive, negative, or 0. If the Decimal Quantity feature is enabled, this value will be rounded to nine decimal places. Otherwise, all digits after the decimal will be stripped. If the usage-based add-on is billed with a percentage, your usage should be a monetary amount formatted in cents (e.g., $5.00 is “500”).

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/requests/usage_create.rb', line 11
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #merchant_tagString + + + + + +

+
+ +

Returns Custom field for recording the id in your own system associated with the usage, so you can provide auditable usage displays to your customers using a GET on this endpoint.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Custom field for recording the id in your own system associated with the usage, so you can provide auditable usage displays to your customers using a GET on this endpoint.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/requests/usage_create.rb', line 15
+
+define_attribute :merchant_tag, String
+
+
+ + + +
+

+ + #recording_timestampDateTime + + + + + +

+
+ +

Returns When the usage was recorded in your system.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the usage was recorded in your system.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/requests/usage_create.rb', line 19
+
+define_attribute :recording_timestamp, DateTime
+
+
+ + + +
+

+ + #usage_timestampDateTime + + + + + +

+
+ +

Returns When the usage actually happened. This will define the line item dates this usage is billed under and is important for revenue recognition.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the usage actually happened. This will define the line item dates this usage is billed under and is important for revenue recognition.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/requests/usage_create.rb', line 23
+
+define_attribute :usage_timestamp, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resource.html b/Recurly/Resource.html new file mode 100644 index 000000000..a3d9a5d35 --- /dev/null +++ b/Recurly/Resource.html @@ -0,0 +1,642 @@ + + + + + + + Class: Recurly::Resource + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resource + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + +
+
Extended by:
+
Schema::ResourceCaster, Schema::SchemaFactory
+
+ + + +
+
Includes:
+
Schema::SchemaValidator
+
+ + + + + + +
+
Defined in:
+
lib/recurly/resource.rb
+
+ +
+ +

Overview

+
+ +

This class represents an object as it exists on the Recurly servers. It is generated from a response. If you wish to update or change a resource, you need to send a request to the server and get a new Resource.

+ + +
+
+
+ + +
+

Direct Known Subclasses

+

Recurly::Resources::Account, Recurly::Resources::AccountAcquisition, Recurly::Resources::AccountAcquisitionCost, Recurly::Resources::AccountBalance, Recurly::Resources::AccountBalanceAmount, Recurly::Resources::AccountMini, Recurly::Resources::AccountNote, Recurly::Resources::AddOn, Recurly::Resources::AddOnMini, Recurly::Resources::AddOnPricing, Recurly::Resources::Address, Recurly::Resources::AddressWithName, Recurly::Resources::BillingInfo, Recurly::Resources::BillingInfoUpdatedBy, Recurly::Resources::BinaryFile, Recurly::Resources::Coupon, Recurly::Resources::CouponDiscount, Recurly::Resources::CouponDiscountPricing, Recurly::Resources::CouponDiscountTrial, Recurly::Resources::CouponMini, Recurly::Resources::CouponRedemption, Recurly::Resources::CouponRedemptionMini, Recurly::Resources::CreditPayment, Recurly::Resources::CustomField, Recurly::Resources::CustomFieldDefinition, Recurly::Resources::CustomerPermission, Recurly::Resources::DunningCampaign, Recurly::Resources::DunningCampaignsBulkUpdateResponse, Recurly::Resources::DunningCycle, Recurly::Resources::DunningInterval, Recurly::Resources::Empty, Recurly::Resources::Entitlement, Recurly::Resources::Entitlements, Recurly::Resources::Error, Recurly::Resources::ErrorMayHaveTransaction, Recurly::Resources::ExportDates, Recurly::Resources::ExportFile, Recurly::Resources::ExportFiles, Recurly::Resources::ExternalAccount, Recurly::Resources::ExternalCharge, Recurly::Resources::ExternalInvoice, Recurly::Resources::ExternalProduct, Recurly::Resources::ExternalProductReferenceMini, Recurly::Resources::ExternalSubscription, Recurly::Resources::FraudInfo, Recurly::Resources::GiftCard, Recurly::Resources::GiftCardDelivery, Recurly::Resources::GrantedBy, Recurly::Resources::Invoice, Recurly::Resources::InvoiceAddress, Recurly::Resources::InvoiceCollection, Recurly::Resources::InvoiceMini, Recurly::Resources::InvoiceTemplate, Recurly::Resources::Item, Recurly::Resources::ItemMini, Recurly::Resources::LineItem, Recurly::Resources::MeasuredUnit, Recurly::Resources::Page, Recurly::Resources::PaymentMethod, Recurly::Resources::PercentageTier, Recurly::Resources::PercentageTiersByCurrency, Recurly::Resources::Plan, Recurly::Resources::PlanHostedPages, Recurly::Resources::PlanMini, Recurly::Resources::PlanPricing, Recurly::Resources::PlanRampInterval, Recurly::Resources::PlanRampPricing, Recurly::Resources::Pricing, Recurly::Resources::Settings, Recurly::Resources::ShippingAddress, Recurly::Resources::ShippingMethod, Recurly::Resources::ShippingMethodMini, Recurly::Resources::Site, Recurly::Resources::Subscription, Recurly::Resources::SubscriptionAddOn, Recurly::Resources::SubscriptionAddOnPercentageTier, Recurly::Resources::SubscriptionAddOnTier, Recurly::Resources::SubscriptionChange, Recurly::Resources::SubscriptionChangeBillingInfo, Recurly::Resources::SubscriptionRampIntervalResponse, Recurly::Resources::SubscriptionShipping, Recurly::Resources::TaxDetail, Recurly::Resources::TaxInfo, Recurly::Resources::Tier, Recurly::Resources::TierPricing, Recurly::Resources::Transaction, Recurly::Resources::TransactionError, Recurly::Resources::TransactionPaymentGateway, Recurly::Resources::UniqueCouponCode, Recurly::Resources::UniqueCouponCodeParams, Recurly::Resources::Usage, Recurly::Resources::User

+
+ + + + +

Instance Attribute Summary collapse

+ + + + + + +

+ Instance Method Summary + collapse +

+ + + + + + + + + + + + + + + + + + + +

Methods included from Schema::ResourceCaster

+

cast

+ + + + + + + + + +

Methods included from Schema::SchemaValidator

+

#get_did_you_mean, #validate!, #validate_attribute!

+ +
+

Instance Attribute Details

+ + + +
+

+ + #attributesObject (readonly) + + + + + +

+
+ +

Returns the value of attribute attributes.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+11
+12
+13
+
+
# File 'lib/recurly/resource.rb', line 11
+
+def attributes
+  @attributes
+end
+
+
+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #==(other_resource) ⇒ Object + + + + + +

+ + + + +
+
+
+
+17
+18
+19
+
+
# File 'lib/recurly/resource.rb', line 17
+
+def ==(other_resource)
+  self.attributes == other_resource.attributes
+end
+
+
+ +
+

+ + #get_responseObject + + + + + +

+ + + + +
+
+
+
+34
+35
+36
+
+
# File 'lib/recurly/resource.rb', line 34
+
+def get_response
+  @response
+end
+
+
+ +
+

+ + #inspectObject + + + + + +

+
+ +

Hide instance variables to keep from accidental logging

+ + +
+
+
+ + +
+ + + + +
+
+
+
+22
+23
+24
+
+
# File 'lib/recurly/resource.rb', line 22
+
+def inspect
+  "#<#{self.class.name}:#{object_id}} @attributes=#{attributes}>"
+end
+
+
+ +
+

+ + #requires_client?Boolean + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + +
  • + +
+ +
+ + + + +
+
+
+
+13
+14
+15
+
+
# File 'lib/recurly/resource.rb', line 13
+
+def requires_client?
+  false
+end
+
+
+ +
+

+ + #to_jsonObject + + + + + +

+
+ + +
+
+
+ +

Raises:

+
    + +
  • + + + (NoMethodError) + + + +
  • + +
+ +
+ + + + +
+
+
+
+30
+31
+32
+
+
# File 'lib/recurly/resource.rb', line 30
+
+def to_json
+  raise NoMethodError, "to_json is not implemented for Resources. Please use Resource#attributes"
+end
+
+
+ +
+

+ + #to_sObject + + + + + +

+ + + + +
+
+
+
+26
+27
+28
+
+
# File 'lib/recurly/resource.rb', line 26
+
+def to_s
+  self.inspect
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources.html b/Recurly/Resources.html new file mode 100644 index 000000000..1d82d129d --- /dev/null +++ b/Recurly/Resources.html @@ -0,0 +1,117 @@ + + + + + + + Module: Recurly::Resources + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Module: Recurly::Resources + + + +

+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources.rb,
+ lib/recurly/resources/item.rb,
lib/recurly/resources/plan.rb,
lib/recurly/resources/site.rb,
lib/recurly/resources/tier.rb,
lib/recurly/resources/user.rb,
lib/recurly/resources/error.rb,
lib/recurly/resources/usage.rb,
lib/recurly/resources/add_on.rb,
lib/recurly/resources/coupon.rb,
lib/recurly/resources/account.rb,
lib/recurly/resources/address.rb,
lib/recurly/resources/invoice.rb,
lib/recurly/resources/pricing.rb,
lib/recurly/resources/settings.rb,
lib/recurly/resources/tax_info.rb,
lib/recurly/resources/gift_card.rb,
lib/recurly/resources/item_mini.rb,
lib/recurly/resources/line_item.rb,
lib/recurly/resources/plan_mini.rb,
lib/recurly/resources/fraud_info.rb,
lib/recurly/resources/granted_by.rb,
lib/recurly/resources/tax_detail.rb,
lib/recurly/resources/add_on_mini.rb,
lib/recurly/resources/binary_file.rb,
lib/recurly/resources/coupon_mini.rb,
lib/recurly/resources/entitlement.rb,
lib/recurly/resources/export_file.rb,
lib/recurly/resources/transaction.rb,
lib/recurly/resources/account_mini.rb,
lib/recurly/resources/account_note.rb,
lib/recurly/resources/billing_info.rb,
lib/recurly/resources/custom_field.rb,
lib/recurly/resources/entitlements.rb,
lib/recurly/resources/export_dates.rb,
lib/recurly/resources/export_files.rb,
lib/recurly/resources/invoice_mini.rb,
lib/recurly/resources/plan_pricing.rb,
lib/recurly/resources/subscription.rb,
lib/recurly/resources/tier_pricing.rb,
lib/recurly/resources/dunning_cycle.rb,
lib/recurly/resources/measured_unit.rb,
lib/recurly/resources/add_on_pricing.rb,
lib/recurly/resources/credit_payment.rb,
lib/recurly/resources/payment_method.rb,
lib/recurly/resources/account_balance.rb,
lib/recurly/resources/coupon_discount.rb,
lib/recurly/resources/external_charge.rb,
lib/recurly/resources/invoice_address.rb,
lib/recurly/resources/percentage_tier.rb,
lib/recurly/resources/shipping_method.rb,
lib/recurly/resources/dunning_campaign.rb,
lib/recurly/resources/dunning_interval.rb,
lib/recurly/resources/external_account.rb,
lib/recurly/resources/external_invoice.rb,
lib/recurly/resources/external_product.rb,
lib/recurly/resources/invoice_template.rb,
lib/recurly/resources/shipping_address.rb,
lib/recurly/resources/address_with_name.rb,
lib/recurly/resources/coupon_redemption.rb,
lib/recurly/resources/plan_hosted_pages.rb,
lib/recurly/resources/plan_ramp_pricing.rb,
lib/recurly/resources/transaction_error.rb,
lib/recurly/resources/gift_card_delivery.rb,
lib/recurly/resources/invoice_collection.rb,
lib/recurly/resources/plan_ramp_interval.rb,
lib/recurly/resources/unique_coupon_code.rb,
lib/recurly/resources/account_acquisition.rb,
lib/recurly/resources/customer_permission.rb,
lib/recurly/resources/subscription_add_on.rb,
lib/recurly/resources/subscription_change.rb,
lib/recurly/resources/shipping_method_mini.rb,
lib/recurly/resources/coupon_discount_trial.rb,
lib/recurly/resources/external_subscription.rb,
lib/recurly/resources/subscription_shipping.rb,
lib/recurly/resources/account_balance_amount.rb,
lib/recurly/resources/coupon_redemption_mini.rb,
lib/recurly/resources/billing_info_updated_by.rb,
lib/recurly/resources/coupon_discount_pricing.rb,
lib/recurly/resources/custom_field_definition.rb,
lib/recurly/resources/account_acquisition_cost.rb,
lib/recurly/resources/subscription_add_on_tier.rb,
lib/recurly/resources/unique_coupon_code_params.rb,
lib/recurly/resources/error_may_have_transaction.rb,
lib/recurly/resources/transaction_payment_gateway.rb,
lib/recurly/resources/percentage_tiers_by_currency.rb,
lib/recurly/resources/external_product_reference_mini.rb,
lib/recurly/resources/subscription_change_billing_info.rb,
lib/recurly/resources/subscription_add_on_percentage_tier.rb,
lib/recurly/resources/subscription_ramp_interval_response.rb,
lib/recurly/resources/dunning_campaigns_bulk_update_response.rb
+
+
+ +
+ +

Defined Under Namespace

+

+ + + + + Classes: Account, AccountAcquisition, AccountAcquisitionCost, AccountBalance, AccountBalanceAmount, AccountMini, AccountNote, AddOn, AddOnMini, AddOnPricing, Address, AddressWithName, BillingInfo, BillingInfoUpdatedBy, BinaryFile, Coupon, CouponDiscount, CouponDiscountPricing, CouponDiscountTrial, CouponMini, CouponRedemption, CouponRedemptionMini, CreditPayment, CustomField, CustomFieldDefinition, CustomerPermission, DunningCampaign, DunningCampaignsBulkUpdateResponse, DunningCycle, DunningInterval, Empty, Entitlement, Entitlements, Error, ErrorMayHaveTransaction, ExportDates, ExportFile, ExportFiles, ExternalAccount, ExternalCharge, ExternalInvoice, ExternalProduct, ExternalProductReferenceMini, ExternalSubscription, FraudInfo, GiftCard, GiftCardDelivery, GrantedBy, Invoice, InvoiceAddress, InvoiceCollection, InvoiceMini, InvoiceTemplate, Item, ItemMini, LineItem, MeasuredUnit, Page, PaymentMethod, PercentageTier, PercentageTiersByCurrency, Plan, PlanHostedPages, PlanMini, PlanPricing, PlanRampInterval, PlanRampPricing, Pricing, Settings, ShippingAddress, ShippingMethod, ShippingMethodMini, Site, Subscription, SubscriptionAddOn, SubscriptionAddOnPercentageTier, SubscriptionAddOnTier, SubscriptionChange, SubscriptionChangeBillingInfo, SubscriptionRampIntervalResponse, SubscriptionShipping, TaxDetail, TaxInfo, Tier, TierPricing, Transaction, TransactionError, TransactionPaymentGateway, UniqueCouponCode, UniqueCouponCodeParams, Usage, User + + +

+ + + + + + + + + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Account.html b/Recurly/Resources/Account.html new file mode 100644 index 000000000..fb6ccf415 --- /dev/null +++ b/Recurly/Resources/Account.html @@ -0,0 +1,2984 @@ + + + + + + + Class: Recurly::Resources::Account + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Account + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/account.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

+ + + +
+

+ + #addressAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/account.rb', line 11
+
+define_attribute :address, :Address
+
+
+ + + +
+

+ + #bill_toString + + + + + +

+
+ +

Returns An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/account.rb', line 15
+
+define_attribute :bill_to, String
+
+
+ + + +
+

+ + #billing_infoBillingInfo + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/account.rb', line 19
+
+define_attribute :billing_info, :BillingInfo
+
+
+ + + +
+

+ + #cc_emailsString + + + + + +

+
+ +

Returns Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Additional email address that should receive account correspondence. These should be separated only by commas. These CC emails will receive all emails that the `email` field also receives.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/account.rb', line 23
+
+define_attribute :cc_emails, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The unique identifier of the account. This cannot be changed once the account is created.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The unique identifier of the account. This cannot be changed once the account is created.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/account.rb', line 27
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/account.rb', line 31
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the account was created.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the account was created.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/account.rb', line 35
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/account.rb', line 39
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #deleted_atDateTime + + + + + +

+
+ +

Returns If present, when the account was last marked inactive.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If present, when the account was last marked inactive.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/account.rb', line 43
+
+define_attribute :deleted_at, DateTime
+
+
+ + + +
+

+ + #dunning_campaign_idString + + + + + +

+
+ +

Returns Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/account.rb', line 47
+
+define_attribute :dunning_campaign_id, String
+
+
+ + + +
+

+ + #emailString + + + + + +

+
+ +

Returns The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/account.rb', line 51
+
+define_attribute :email, String
+
+
+ + + +
+

+ + #exemption_certificateString + + + + + +

+
+ +

Returns The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/account.rb', line 55
+
+define_attribute :exemption_certificate, String
+
+
+ + + +
+

+ + #external_accountsArray[ExternalAccount] + + + + + +

+
+ +

Returns The external accounts belonging to this account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[ExternalAccount]) + + + + — +
    +

    The external accounts belonging to this account

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/account.rb', line 59
+
+define_attribute :external_accounts, Array, { :item_type => :ExternalAccount }
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/account.rb', line 63
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #has_active_subscriptionBoolean + + + + + +

+
+ +

Returns Indicates if the account has an active subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Indicates if the account has an active subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/account.rb', line 67
+
+define_attribute :has_active_subscription, :Boolean
+
+
+ + + +
+

+ + #has_canceled_subscriptionBoolean + + + + + +

+
+ +

Returns Indicates if the account has a canceled subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Indicates if the account has a canceled subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/account.rb', line 71
+
+define_attribute :has_canceled_subscription, :Boolean
+
+
+ + + +
+

+ + #has_future_subscriptionBoolean + + + + + +

+
+ +

Returns Indicates if the account has a future subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Indicates if the account has a future subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/account.rb', line 75
+
+define_attribute :has_future_subscription, :Boolean
+
+
+ + + +
+

+ + #has_live_subscriptionBoolean + + + + + +

+
+ +

Returns Indicates if the account has a subscription that is either active, canceled, future, or paused.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Indicates if the account has a subscription that is either active, canceled, future, or paused.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/account.rb', line 79
+
+define_attribute :has_live_subscription, :Boolean
+
+
+ + + +
+

+ + #has_past_due_invoiceBoolean + + + + + +

+
+ +

Returns Indicates if the account has a past due invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Indicates if the account has a past due invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/resources/account.rb', line 83
+
+define_attribute :has_past_due_invoice, :Boolean
+
+
+ + + +
+

+ + #has_paused_subscriptionBoolean + + + + + +

+
+ +

Returns Indicates if the account has a paused subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Indicates if the account has a paused subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/resources/account.rb', line 87
+
+define_attribute :has_paused_subscription, :Boolean
+
+
+ + + +
+

+ + #hosted_login_tokenString + + + + + +

+
+ +

Returns The unique token for automatically logging the account in to the hosted management pages. You may automatically log the user into their hosted management pages by directing the user to: ` + +

Returns:

+
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/AccountAcquisition.html b/Recurly/Resources/AccountAcquisition.html new file mode 100644 index 000000000..1101f2d73 --- /dev/null +++ b/Recurly/Resources/AccountAcquisition.html @@ -0,0 +1,929 @@ + + + + + + + Class: Recurly::Resources::AccountAcquisition + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::AccountAcquisition + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #account ⇒ AccountMini + + + + + + + + + + + + + + + + +
    +

    Account mini details.

    +
    + +
  • + + +
  • + + + #campaign ⇒ String + + + + + + + + + + + + + + + + +
    +

    An arbitrary identifier for the marketing campaign that led to the acquisition of this account.

    +
    + +
  • + + +
  • + + + #channel ⇒ String + + + + + + + + + + + + + + + + +
    +

    The channel through which the account was acquired.

    +
    + +
  • + + +
  • + + + #cost ⇒ AccountAcquisitionCost + + + + + + + + + + + + + + + + +
    +

    Account balance.

    +
    + +
  • + + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the account acquisition data was created.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #subchannel ⇒ String + + + + + + + + + + + + + + + + +
    +

    An arbitrary subchannel string representing a distinction/subcategory within a broader channel.

    +
    + +
  • + + +
  • + + + #updated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the account acquisition data was last changed.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns Account mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    Account mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/account_acquisition.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #campaignString + + + + + +

+
+ +

Returns An arbitrary identifier for the marketing campaign that led to the acquisition of this account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An arbitrary identifier for the marketing campaign that led to the acquisition of this account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/account_acquisition.rb', line 15
+
+define_attribute :campaign, String
+
+
+ + + +
+

+ + #channelString + + + + + +

+
+ +

Returns The channel through which the account was acquired.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The channel through which the account was acquired.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/account_acquisition.rb', line 19
+
+define_attribute :channel, String
+
+
+ + + +
+

+ + #costAccountAcquisitionCost + + + + + +

+
+ +

Returns Account balance.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/account_acquisition.rb', line 23
+
+define_attribute :cost, :AccountAcquisitionCost
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the account acquisition data was created.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the account acquisition data was created.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/account_acquisition.rb', line 27
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/account_acquisition.rb', line 31
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/account_acquisition.rb', line 35
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #subchannelString + + + + + +

+
+ +

Returns An arbitrary subchannel string representing a distinction/subcategory within a broader channel.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An arbitrary subchannel string representing a distinction/subcategory within a broader channel.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/account_acquisition.rb', line 39
+
+define_attribute :subchannel, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the account acquisition data was last changed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the account acquisition data was last changed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/account_acquisition.rb', line 43
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/AccountAcquisitionCost.html b/Recurly/Resources/AccountAcquisitionCost.html new file mode 100644 index 000000000..376b9a7e8 --- /dev/null +++ b/Recurly/Resources/AccountAcquisitionCost.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::AccountAcquisitionCost + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::AccountAcquisitionCost + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #amount ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The amount of the corresponding currency used to acquire the account.

    +
    + +
  • + + +
  • + + + #currency ⇒ String + + + + + + + + + + + + + + + + +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns The amount of the corresponding currency used to acquire the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The amount of the corresponding currency used to acquire the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/account_acquisition_cost.rb', line 11
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/account_acquisition_cost.rb', line 15
+
+define_attribute :currency, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/AccountBalance.html b/Recurly/Resources/AccountBalance.html new file mode 100644 index 000000000..6071c3f0b --- /dev/null +++ b/Recurly/Resources/AccountBalance.html @@ -0,0 +1,500 @@ + + + + + + + Class: Recurly::Resources::AccountBalance + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::AccountBalance + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/account_balance.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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns Account mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    Account mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/account_balance.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #balancesArray[AccountBalanceAmount] + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/account_balance.rb', line 15
+
+define_attribute :balances, Array, { :item_type => :AccountBalanceAmount }
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/account_balance.rb', line 19
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #past_dueBoolean + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/account_balance.rb', line 23
+
+define_attribute :past_due, :Boolean
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/AccountBalanceAmount.html b/Recurly/Resources/AccountBalanceAmount.html new file mode 100644 index 000000000..040d46445 --- /dev/null +++ b/Recurly/Resources/AccountBalanceAmount.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::AccountBalanceAmount + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::AccountBalanceAmount + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/account_balance_amount.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

+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns Total amount the account is past due.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Total amount the account is past due.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/account_balance_amount.rb', line 11
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #available_credit_amountFloat + + + + + +

+
+ +

Returns Total amount of the open balances on credit invoices for the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Total amount of the open balances on credit invoices for the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/account_balance_amount.rb', line 15
+
+define_attribute :available_credit_amount, Float
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/account_balance_amount.rb', line 19
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #processing_prepayment_amountFloat + + + + + +

+
+ +

Returns Total amount for the prepayment credit invoices in a `processing` state on the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Total amount for the prepayment credit invoices in a `processing` state on the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/account_balance_amount.rb', line 23
+
+define_attribute :processing_prepayment_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/AccountMini.html b/Recurly/Resources/AccountMini.html new file mode 100644 index 000000000..730c105bd --- /dev/null +++ b/Recurly/Resources/AccountMini.html @@ -0,0 +1,968 @@ + + + + + + + Class: Recurly::Resources::AccountMini + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::AccountMini + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/account_mini.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

+ + + +
+

+ + #bill_toString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/account_mini.rb', line 11
+
+define_attribute :bill_to, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The unique identifier of the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The unique identifier of the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/account_mini.rb', line 15
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/account_mini.rb', line 19
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #dunning_campaign_idString + + + + + +

+
+ +

Returns Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/account_mini.rb', line 23
+
+define_attribute :dunning_campaign_id, String
+
+
+ + + +
+

+ + #emailString + + + + + +

+
+ +

Returns The email address used for communicating with this customer.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The email address used for communicating with this customer.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/account_mini.rb', line 27
+
+define_attribute :email, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/account_mini.rb', line 31
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/account_mini.rb', line 35
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/account_mini.rb', line 39
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/account_mini.rb', line 43
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #parent_account_idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/account_mini.rb', line 47
+
+define_attribute :parent_account_id, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/AccountNote.html b/Recurly/Resources/AccountNote.html new file mode 100644 index 000000000..e22fc750b --- /dev/null +++ b/Recurly/Resources/AccountNote.html @@ -0,0 +1,641 @@ + + + + + + + Class: Recurly::Resources::AccountNote + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::AccountNote + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/account_note.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

+ + + +
+

+ + #account_idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/account_note.rb', line 11
+
+define_attribute :account_id, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/account_note.rb', line 15
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/account_note.rb', line 19
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #messageString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/account_note.rb', line 23
+
+define_attribute :message, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/account_note.rb', line 27
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #userUser + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (User) + + + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/account_note.rb', line 31
+
+define_attribute :user, :User
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/AddOn.html b/Recurly/Resources/AddOn.html new file mode 100644 index 000000000..e98794b2d --- /dev/null +++ b/Recurly/Resources/AddOn.html @@ -0,0 +1,2618 @@ + + + + + + + Class: Recurly::Resources::AddOn + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::AddOn + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/add_on.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 for this add-on. If no value is provided, it defaults to add-on's code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for invoice line items for this add-on. If no value is provided, it defaults to add-on's code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/add_on.rb', line 11
+
+define_attribute :accounting_code, String
+
+
+ + + +
+

+ + #add_on_typeString + + + + + +

+
+ +

Returns Whether the add-on type is fixed, or usage-based.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Whether the add-on type is fixed, or usage-based.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/add_on.rb', line 15
+
+define_attribute :add_on_type, String
+
+
+ + + +
+

+ + #avalara_service_typeInteger + + + + + +

+
+ +

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](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/add_on.rb', line 19
+
+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 add-on 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:

+ + +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/add_on.rb', line 23
+
+define_attribute :avalara_transaction_type, Integer
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The unique identifier for the add-on within its plan.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The unique identifier for the add-on within its plan.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/add_on.rb', line 27
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/add_on.rb', line 31
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #currenciesArray[AddOnPricing] + + + + + +

+
+ +

Returns Add-on pricing.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[AddOnPricing]) + + + + — +
    +

    Add-on pricing

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/add_on.rb', line 35
+
+define_attribute :currencies, Array, { :item_type => :AddOnPricing }
+
+
+ + + +
+

+ + #default_quantityInteger + + + + + +

+
+ +

Returns Default quantity for the hosted pages.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Default quantity for the hosted pages.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/add_on.rb', line 39
+
+define_attribute :default_quantity, Integer
+
+
+ + + +
+

+ + #deleted_atDateTime + + + + + +

+
+ +

Returns Deleted at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Deleted at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/add_on.rb', line 43
+
+define_attribute :deleted_at, DateTime
+
+
+ + + +
+

+ + #display_quantityBoolean + + + + + +

+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/add_on.rb', line 47
+
+define_attribute :display_quantity, :Boolean
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/add_on.rb', line 51
+
+define_attribute :external_sku, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Add-on ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Add-on ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/add_on.rb', line 55
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #itemItemMini + + + + + +

+
+ +

Returns Just the important parts.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (ItemMini) + + + + — +
    +

    Just the important parts.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/add_on.rb', line 59
+
+define_attribute :item, :ItemMini
+
+
+ + + +
+

+ + #measured_unit_idString + + + + + +

+
+ +

Returns System-generated unique identifier for an measured unit associated with the add-on.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    System-generated unique identifier for an measured unit associated with the add-on.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/add_on.rb', line 63
+
+define_attribute :measured_unit_id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Describes your add-on and will appear in subscribers' invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Describes your add-on and will appear in subscribers' invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/add_on.rb', line 67
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/add_on.rb', line 71
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #optionalBoolean + + + + + +

+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/add_on.rb', line 75
+
+define_attribute :optional, :Boolean
+
+
+ + + +
+

+ + #percentage_tiersArray[PercentageTiersByCurrency] + + + + + +

+
+ +

Returns This feature is currently in development and requires approval and enablement, please contact support.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[PercentageTiersByCurrency]) + + + + — +
    +

    This feature is currently in development and requires approval and enablement, please contact support.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/add_on.rb', line 79
+
+define_attribute :percentage_tiers, Array, { :item_type => :PercentageTiersByCurrency }
+
+
+ + + +
+

+ + #plan_idString + + + + + +

+
+ +

Returns Plan ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Plan ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/resources/add_on.rb', line 83
+
+define_attribute :plan_id, String
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns When this add-on is invoiced, the line item will use this revenue schedule. If `item_code`/`item_id` is part of the request 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 `item_code`/`item_id` is part of the request then `revenue_schedule_type` must be absent in the request as the value will be set from the item.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/resources/add_on.rb', line 87
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns Add-ons can be either active or inactive.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Add-ons can be either active or inactive.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/resources/add_on.rb', line 91
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/resources/add_on.rb', line 95
+
+define_attribute :tax_code, String
+
+
+ + + +
+

+ + #tier_typeString + + + + + +

+
+ +

Returns The pricing model for the add-on. For more information, [click here](docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/resources/add_on.rb', line 99
+
+define_attribute :tier_type, String
+
+
+ + + +
+

+ + #tiersArray[Tier] + + + + + +

+
+ +

Returns Tiers.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[Tier]) + + + + — +
    +

    Tiers

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/resources/add_on.rb', line 103
+
+define_attribute :tiers, Array, { :item_type => :Tier }
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+107
+
+
# File 'lib/recurly/resources/add_on.rb', line 107
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #usage_calculation_typeString + + + + + +

+
+ +

Returns The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+111
+
+
# File 'lib/recurly/resources/add_on.rb', line 111
+
+define_attribute :usage_calculation_type, String
+
+
+ + + +
+

+ + #usage_percentageFloat + + + + + +

+
+ +

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.

+ + +
+
+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+115
+
+
# File 'lib/recurly/resources/add_on.rb', line 115
+
+define_attribute :usage_percentage, Float
+
+
+ + + +
+

+ + #usage_timeframeString + + + + + +

+
+ +

Returns The time at which usage totals are reset for billing purposes.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The time at which usage totals are reset for billing purposes.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+119
+
+
# File 'lib/recurly/resources/add_on.rb', line 119
+
+define_attribute :usage_timeframe, String
+
+
+ + + +
+

+ + #usage_typeString + + + + + +

+
+ +

Returns Type of usage, returns usage type if `add_on_type` is `usage`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Type of usage, returns usage type if `add_on_type` is `usage`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+123
+
+
# File 'lib/recurly/resources/add_on.rb', line 123
+
+define_attribute :usage_type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/AddOnMini.html b/Recurly/Resources/AddOnMini.html new file mode 100644 index 000000000..4cfd46b3f --- /dev/null +++ b/Recurly/Resources/AddOnMini.html @@ -0,0 +1,1106 @@ + + + + + + + Class: Recurly::Resources::AddOnMini + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::AddOnMini + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #accounting_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    Accounting code for invoice line items for this add-on.

    +
    + +
  • + + +
  • + + + #add_on_type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Whether the add-on type is fixed, or usage-based.

    +
    + +
  • + + +
  • + + + #code ⇒ String + + + + + + + + + + + + + + + + +
    +

    The unique identifier for the add-on within its plan.

    +
    + +
  • + + +
  • + + + #external_sku ⇒ String + + + + + + + + + + + + + + + + +
    +

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

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Add-on ID.

    +
    + +
  • + + +
  • + + + #item_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Item ID.

    +
    + +
  • + + +
  • + + + #measured_unit_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    System-generated unique identifier for an measured unit associated with the add-on.

    +
    + +
  • + + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

    Describes your add-on and will appear in subscribers' invoices.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #usage_percentage ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The percentage taken of the monetary amount of usage tracked.

    +
    + +
  • + + +
  • + + + #usage_type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Type of usage, returns usage type if `add_on_type` is `usage`.

    +
    + +
  • + + +
+ + + + + +

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 for this add-on. If no value is provided, it defaults to add-on's code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for invoice line items for this add-on. If no value is provided, it defaults to add-on's code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 11
+
+define_attribute :accounting_code, String
+
+
+ + + +
+

+ + #add_on_typeString + + + + + +

+
+ +

Returns Whether the add-on type is fixed, or usage-based.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Whether the add-on type is fixed, or usage-based.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 15
+
+define_attribute :add_on_type, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The unique identifier for the add-on within its plan.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The unique identifier for the add-on within its plan.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 19
+
+define_attribute :code, 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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 23
+
+define_attribute :external_sku, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Add-on ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Add-on ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 27
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #item_idString + + + + + +

+
+ +

Returns Item ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Item ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 31
+
+define_attribute :item_id, String
+
+
+ + + +
+

+ + #measured_unit_idString + + + + + +

+
+ +

Returns System-generated unique identifier for an measured unit associated with the add-on.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    System-generated unique identifier for an measured unit associated with the add-on.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 35
+
+define_attribute :measured_unit_id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Describes your add-on and will appear in subscribers' invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Describes your add-on and will appear in subscribers' invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 39
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 43
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #usage_percentageFloat + + + + + +

+
+ +

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.

+ + +
+
+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 47
+
+define_attribute :usage_percentage, Float
+
+
+ + + +
+

+ + #usage_typeString + + + + + +

+
+ +

Returns Type of usage, returns usage type if `add_on_type` is `usage`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Type of usage, returns usage type if `add_on_type` is `usage`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/add_on_mini.rb', line 51
+
+define_attribute :usage_type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/AddOnPricing.html b/Recurly/Resources/AddOnPricing.html new file mode 100644 index 000000000..63f8b29fd --- /dev/null +++ b/Recurly/Resources/AddOnPricing.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::AddOnPricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::AddOnPricing + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/add_on_pricing.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/add_on_pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns This field is deprecated. Please do not use it.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    This field is deprecated. Please do not use it.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/add_on_pricing.rb', line 15
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/add_on_pricing.rb', line 19
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/add_on_pricing.rb', line 23
+
+define_attribute :unit_amount_decimal, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Address.html b/Recurly/Resources/Address.html new file mode 100644 index 000000000..d5b38599a --- /dev/null +++ b/Recurly/Resources/Address.html @@ -0,0 +1,770 @@ + + + + + + + Class: Recurly::Resources::Address + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Address + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/address.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

+ + + +
+

+ + #cityString + + + + + +

+
+ +

Returns City.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    City

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/address.rb', line 11
+
+define_attribute :city, String
+
+
+ + + +
+

+ + #countryString + + + + + +

+
+ +

Returns Country, 2-letter ISO 3166-1 alpha-2 code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Country, 2-letter ISO 3166-1 alpha-2 code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/address.rb', line 15
+
+define_attribute :country, String
+
+
+ + + +
+

+ + #phoneString + + + + + +

+
+ +

Returns Phone number.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Phone number

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/address.rb', line 19
+
+define_attribute :phone, String
+
+
+ + + +
+

+ + #postal_codeString + + + + + +

+
+ +

Returns Zip or postal code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Zip or postal code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/address.rb', line 23
+
+define_attribute :postal_code, String
+
+
+ + + +
+

+ + #regionString + + + + + +

+
+ +

Returns State or province.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    State or province.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/address.rb', line 27
+
+define_attribute :region, String
+
+
+ + + +
+

+ + #street1String + + + + + +

+
+ +

Returns Street 1.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Street 1

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/address.rb', line 31
+
+define_attribute :street1, String
+
+
+ + + +
+

+ + #street2String + + + + + +

+
+ +

Returns Street 2.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Street 2

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/address.rb', line 35
+
+define_attribute :street2, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/AddressWithName.html b/Recurly/Resources/AddressWithName.html new file mode 100644 index 000000000..6a851c92b --- /dev/null +++ b/Recurly/Resources/AddressWithName.html @@ -0,0 +1,938 @@ + + + + + + + Class: Recurly::Resources::AddressWithName + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::AddressWithName + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/address_with_name.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

+ + + +
+

+ + #cityString + + + + + +

+
+ +

Returns City.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    City

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/address_with_name.rb', line 11
+
+define_attribute :city, String
+
+
+ + + +
+

+ + #countryString + + + + + +

+
+ +

Returns Country, 2-letter ISO 3166-1 alpha-2 code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Country, 2-letter ISO 3166-1 alpha-2 code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/address_with_name.rb', line 15
+
+define_attribute :country, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ +

Returns First name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    First name

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/address_with_name.rb', line 19
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ +

Returns Last name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Last name

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/address_with_name.rb', line 23
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #phoneString + + + + + +

+
+ +

Returns Phone number.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Phone number

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/address_with_name.rb', line 27
+
+define_attribute :phone, String
+
+
+ + + +
+

+ + #postal_codeString + + + + + +

+
+ +

Returns Zip or postal code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Zip or postal code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/address_with_name.rb', line 31
+
+define_attribute :postal_code, String
+
+
+ + + +
+

+ + #regionString + + + + + +

+
+ +

Returns State or province.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    State or province.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/address_with_name.rb', line 35
+
+define_attribute :region, String
+
+
+ + + +
+

+ + #street1String + + + + + +

+
+ +

Returns Street 1.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Street 1

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/address_with_name.rb', line 39
+
+define_attribute :street1, String
+
+
+ + + +
+

+ + #street2String + + + + + +

+
+ +

Returns Street 2.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Street 2

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/address_with_name.rb', line 43
+
+define_attribute :street2, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/BillingInfo.html b/Recurly/Resources/BillingInfo.html new file mode 100644 index 000000000..6a4ccf405 --- /dev/null +++ b/Recurly/Resources/BillingInfo.html @@ -0,0 +1,1445 @@ + + + + + + + Class: Recurly::Resources::BillingInfo + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::BillingInfo + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/billing_info.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

+ + + +
+

+ + #account_idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/billing_info.rb', line 11
+
+define_attribute :account_id, String
+
+
+ + + +
+

+ + #addressAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/billing_info.rb', line 15
+
+define_attribute :address, :Address
+
+
+ + + +
+

+ + #backup_payment_methodBoolean + + + + + +

+
+ +

Returns The `backup_payment_method` field is used to indicate a billing info as a backup on the account that will be tried if the initial billing info used for an invoice is declined.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The `backup_payment_method` field is used to indicate a billing info as a backup on the account that will be tried if the initial billing info used for an invoice is declined.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/billing_info.rb', line 19
+
+define_attribute :backup_payment_method, :Boolean
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/billing_info.rb', line 23
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the billing information was created.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the billing information was created.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/billing_info.rb', line 27
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/billing_info.rb', line 31
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #fraudFraudInfo + + + + + +

+
+ +

Returns Most recent fraud result.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (FraudInfo) + + + + — +
    +

    Most recent fraud result.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/billing_info.rb', line 35
+
+define_attribute :fraud, :FraudInfo
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/billing_info.rb', line 39
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/billing_info.rb', line 43
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/billing_info.rb', line 47
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #payment_methodPaymentMethod + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/billing_info.rb', line 51
+
+define_attribute :payment_method, :PaymentMethod
+
+
+ + + +
+

+ + #primary_payment_methodBoolean + + + + + +

+
+ +

Returns The `primary_payment_method` field is used to indicate the primary billing info on the account. The first billing info created on an account will always become primary. This payment method will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The `primary_payment_method` field is used to indicate the primary billing info on the account. The first billing info created on an account will always become primary. This payment method will be used

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/billing_info.rb', line 55
+
+define_attribute :primary_payment_method, :Boolean
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the billing information was last changed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the billing information was last changed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/billing_info.rb', line 59
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #updated_byBillingInfoUpdatedBy + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/billing_info.rb', line 63
+
+define_attribute :updated_by, :BillingInfoUpdatedBy
+
+
+ + + +
+

+ + #validBoolean + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/billing_info.rb', line 67
+
+define_attribute :valid, :Boolean
+
+
+ + + +
+

+ + #vat_numberString + + + + + +

+
+ +

Returns Customer's VAT number (to avoid having the VAT applied). This is only used for automatically collected invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Customer's VAT number (to avoid having the VAT applied). This is only used for automatically collected invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/billing_info.rb', line 71
+
+define_attribute :vat_number, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/BillingInfoUpdatedBy.html b/Recurly/Resources/BillingInfoUpdatedBy.html new file mode 100644 index 000000000..e695fe169 --- /dev/null +++ b/Recurly/Resources/BillingInfoUpdatedBy.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::BillingInfoUpdatedBy + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::BillingInfoUpdatedBy + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #country ⇒ String + + + + + + + + + + + + + + + + +
    +

    Country, 2-letter ISO 3166-1 alpha-2 code matching the origin IP address, if known by Recurly.

    +
    + +
  • + + +
  • + + + #ip ⇒ String + + + + + + + + + + + + + + + + +
    +

    Customer's IP address when updating their billing information.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #countryString + + + + + +

+
+ +

Returns Country, 2-letter ISO 3166-1 alpha-2 code matching the origin IP address, if known by Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Country, 2-letter ISO 3166-1 alpha-2 code matching the origin IP address, if known by Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/billing_info_updated_by.rb', line 11
+
+define_attribute :country, String
+
+
+ + + +
+

+ + #ipString + + + + + +

+
+ +

Returns Customer's IP address when updating their billing information.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Customer's IP address when updating their billing information.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/billing_info_updated_by.rb', line 15
+
+define_attribute :ip, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/BinaryFile.html b/Recurly/Resources/BinaryFile.html new file mode 100644 index 000000000..699175033 --- /dev/null +++ b/Recurly/Resources/BinaryFile.html @@ -0,0 +1,257 @@ + + + + + + + Class: Recurly::Resources::BinaryFile + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::BinaryFile + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/binary_file.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

+ + + +
+

+ + #dataString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/binary_file.rb', line 11
+
+define_attribute :data, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Coupon.html b/Recurly/Resources/Coupon.html new file mode 100644 index 000000000..9aa6a36ce --- /dev/null +++ b/Recurly/Resources/Coupon.html @@ -0,0 +1,2620 @@ + + + + + + + Class: Recurly::Resources::Coupon + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Coupon + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #applies_to_all_items ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    The coupon is valid for all items if true.

    +
    + +
  • + + +
  • + + + #applies_to_all_plans ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    The coupon is valid for all plans if true.

    +
    + +
  • + + +
  • + + + #applies_to_non_plan_charges ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    The coupon is valid for one-time, non-plan charges if true.

    +
    + +
  • + + +
  • + + + #code ⇒ String + + + + + + + + + + + + + + + + +
    +

    The code the customer enters to redeem the coupon.

    +
    + +
  • + + +
  • + + + #coupon_type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Whether the coupon is “single_code” or “bulk”.

    +
    + +
  • + + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Created at.

    +
    + +
  • + + +
  • + + + #discount ⇒ CouponDiscount + + + + + + + + + + + + + + + + +
    +

    Details of the discount a coupon applies.

    +
    + +
  • + + +
  • + + + #duration ⇒ String + + + + + + + + + + + + + + + + +
    • +

      “single_use” coupons applies to the first invoice only.

      +
    +
    + +
  • + + +
  • + + + #expired_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    The date and time the coupon was expired early or reached its `max_redemptions`.

    +
    + +
  • + + +
  • + + + #free_trial_amount ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    Sets the duration of time the `free_trial_unit` is for.

    +
    + +
  • + + +
  • + + + #free_trial_unit ⇒ String + + + + + + + + + + + + + + + + +
    +

    Description of the unit of time the coupon is for.

    +
    + +
  • + + +
  • + + + #hosted_page_description ⇒ String + + + + + + + + + + + + + + + + +
    +

    This description will show up when a customer redeems a coupon on your Hosted Payment Pages, or if you choose to show the description on your own checkout page.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Coupon ID.

    +
    + +
  • + + +
  • + + + #invoice_description ⇒ String + + + + + + + + + + + + + + + + +
    +

    Description of the coupon on the invoice.

    +
    + +
  • + + +
  • + + + #items ⇒ Array[ItemMini] + + + + + + + + + + + + + + + + +
    +

    A list of items for which this coupon applies.

    +
    + +
  • + + +
  • + + + #max_redemptions ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    A maximum number of redemptions for the coupon.

    +
    + +
  • + + +
  • + + + #max_redemptions_per_account ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    Redemptions per account is the number of times a specific account can redeem the coupon.

    +
    + +
  • + + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

    The internal name for the coupon.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #plans ⇒ Array[PlanMini] + + + + + + + + + + + + + + + + +
    +

    A list of plans for which this coupon applies.

    +
    + +
  • + + +
  • + + + #redeem_by ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    The date and time the coupon will expire and can no longer be redeemed.

    +
    + +
  • + + +
  • + + + #redemption_resource ⇒ String + + + + + + + + + + + + + + + + +
    +

    Whether the discount is for all eligible charges on the account, or only a specific subscription.

    +
    + +
  • + + +
  • + + + #state ⇒ String + + + + + + + + + + + + + + + + +
    +

    Indicates if the coupon is redeemable, and if it is not, why.

    +
    + +
  • + + +
  • + + + #temporal_amount ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    If `duration` is “temporal” than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for.

    +
    + +
  • + + +
  • + + + #temporal_unit ⇒ String + + + + + + + + + + + + + + + + +
    +

    If `duration` is “temporal” than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for.

    +
    + +
  • + + +
  • + + + #unique_code_template ⇒ String + + + + + + + + + + + + + + + + +
    +

    On a bulk coupon, the template from which unique coupon codes are generated.

    +
    + +
  • + + +
  • + + + #unique_coupon_code ⇒ Hash + + + + + + + + + + + + + + + + +
    +

    Will be populated when the Coupon being returned is a `UniqueCouponCode`.

    +
    + +
  • + + +
  • + + + #unique_coupon_codes_count ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    When this number reaches `max_redemptions` the coupon will no longer be redeemable.

    +
    + +
  • + + +
  • + + + #updated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Last updated at.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #applies_to_all_itemsBoolean + + + + + +

+
+ +

Returns The coupon is valid for all items if true. If false then `items` will list the applicable items.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The coupon is valid for all items if true. If false then `items` will list the applicable items.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/coupon.rb', line 11
+
+define_attribute :applies_to_all_items, :Boolean
+
+
+ + + +
+

+ + #applies_to_all_plansBoolean + + + + + +

+
+ +

Returns The coupon is valid for all plans if true. If false then `plans` will list the applicable plans.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The coupon is valid for all plans if true. If false then `plans` will list the applicable plans.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/coupon.rb', line 15
+
+define_attribute :applies_to_all_plans, :Boolean
+
+
+ + + +
+

+ + #applies_to_non_plan_chargesBoolean + + + + + +

+
+ +

Returns The coupon is valid for one-time, non-plan charges if true.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    The coupon is valid for one-time, non-plan charges if true.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/coupon.rb', line 19
+
+define_attribute :applies_to_non_plan_charges, :Boolean
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The code the customer enters to redeem the coupon.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The code the customer enters to redeem the coupon.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/coupon.rb', line 23
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #coupon_typeString + + + + + +

+
+ +

Returns Whether the coupon is “single_code” or “bulk”. Bulk coupons will require a `unique_code_template` and will generate unique codes through the `/generate` endpoint.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Whether the coupon is “single_code” or “bulk”. Bulk coupons will require a `unique_code_template` and will generate unique codes through the `/generate` endpoint.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/coupon.rb', line 27
+
+define_attribute :coupon_type, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/coupon.rb', line 31
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #discountCouponDiscount + + + + + +

+
+ +

Returns Details of the discount a coupon applies. Will contain a `type` property and one of the following properties: `percent`, `fixed`, `trial`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (CouponDiscount) + + + + — +
    +

    Details of the discount a coupon applies. Will contain a `type` property and one of the following properties: `percent`, `fixed`, `trial`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/coupon.rb', line 35
+
+define_attribute :discount, :CouponDiscount
+
+
+ + + +
+

+ + #durationString + + + + + +

+
+ +

Returns - “single_use” coupons applies to the first invoice only. - “temporal” coupons will apply to invoices for the duration determined by the `temporal_unit` and `temporal_amount` attributes.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    • +

      “single_use” coupons applies to the first invoice only. - “temporal” coupons will apply to invoices for the duration determined by the `temporal_unit` and `temporal_amount` attributes.

      +
    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/coupon.rb', line 39
+
+define_attribute :duration, String
+
+
+ + + +
+

+ + #expired_atDateTime + + + + + +

+
+ +

Returns The date and time the coupon was expired early or reached its `max_redemptions`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    The date and time the coupon was expired early or reached its `max_redemptions`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/coupon.rb', line 43
+
+define_attribute :expired_at, DateTime
+
+
+ + + +
+

+ + #free_trial_amountInteger + + + + + +

+
+ +

Returns Sets the duration of time the `free_trial_unit` is for.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Sets the duration of time the `free_trial_unit` is for.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/coupon.rb', line 47
+
+define_attribute :free_trial_amount, Integer
+
+
+ + + +
+

+ + #free_trial_unitString + + + + + +

+
+ +

Returns Description of the unit of time the coupon is for. Used with `free_trial_amount` to determine the duration of time the coupon is for.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Description of the unit of time the coupon is for. Used with `free_trial_amount` to determine the duration of time the coupon is for.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/coupon.rb', line 51
+
+define_attribute :free_trial_unit, String
+
+
+ + + +
+

+ + #hosted_page_descriptionString + + + + + +

+
+ +

Returns This description will show up when a customer redeems a coupon on your Hosted Payment Pages, or if you choose to show the description on your own checkout page.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This description will show up when a customer redeems a coupon on your Hosted Payment Pages, or if you choose to show the description on your own checkout page.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/coupon.rb', line 55
+
+define_attribute :hosted_page_description, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Coupon ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Coupon ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/coupon.rb', line 59
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #invoice_descriptionString + + + + + +

+
+ +

Returns Description of the coupon on the invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Description of the coupon on the invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/coupon.rb', line 63
+
+define_attribute :invoice_description, String
+
+
+ + + +
+

+ + #itemsArray[ItemMini] + + + + + +

+
+ +

Returns A list of items for which this coupon applies. This will be `null` if `applies_to_all_items=true`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[ItemMini]) + + + + — +
    +

    A list of items for which this coupon applies. This will be `null` if `applies_to_all_items=true`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/coupon.rb', line 67
+
+define_attribute :items, Array, { :item_type => :ItemMini }
+
+
+ + + +
+

+ + #max_redemptionsInteger + + + + + +

+
+ +

Returns A maximum number of redemptions for the coupon. The coupon will expire when it hits its maximum redemptions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    A maximum number of redemptions for the coupon. The coupon will expire when it hits its maximum redemptions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/coupon.rb', line 71
+
+define_attribute :max_redemptions, Integer
+
+
+ + + +
+

+ + #max_redemptions_per_accountInteger + + + + + +

+
+ +

Returns Redemptions per account is the number of times a specific account can redeem the coupon. Set redemptions per account to `1` if you want to keep customers from gaming the system and getting more than one discount from the coupon campaign.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Redemptions per account is the number of times a specific account can redeem the coupon. Set redemptions per account to `1` if you want to keep customers from gaming the system and getting more than one discount from the coupon campaign.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/coupon.rb', line 75
+
+define_attribute :max_redemptions_per_account, Integer
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns The internal name for the coupon.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The internal name for the coupon.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/coupon.rb', line 79
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/resources/coupon.rb', line 83
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #plansArray[PlanMini] + + + + + +

+
+ +

Returns A list of plans for which this coupon applies. This will be `null` if `applies_to_all_plans=true`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[PlanMini]) + + + + — +
    +

    A list of plans for which this coupon applies. This will be `null` if `applies_to_all_plans=true`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/resources/coupon.rb', line 87
+
+define_attribute :plans, Array, { :item_type => :PlanMini }
+
+
+ + + +
+

+ + #redeem_byDateTime + + + + + +

+
+ +

Returns The date and time the coupon will expire and can no longer be redeemed. Time is always 11:59:59, the end-of-day Pacific time.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    The date and time the coupon will expire and can no longer be redeemed. Time is always 11:59:59, the end-of-day Pacific time.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/resources/coupon.rb', line 91
+
+define_attribute :redeem_by, DateTime
+
+
+ + + +
+

+ + #redemption_resourceString + + + + + +

+
+ +

Returns Whether the discount is for all eligible charges on the account, or only a specific subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Whether the discount is for all eligible charges on the account, or only a specific subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/resources/coupon.rb', line 95
+
+define_attribute :redemption_resource, String
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns Indicates if the coupon is redeemable, and if it is not, why.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Indicates if the coupon is redeemable, and if it is not, why.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/resources/coupon.rb', line 99
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #temporal_amountInteger + + + + + +

+
+ +

Returns If `duration` is “temporal” than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    If `duration` is “temporal” than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/resources/coupon.rb', line 103
+
+define_attribute :temporal_amount, Integer
+
+
+ + + +
+

+ + #temporal_unitString + + + + + +

+
+ +

Returns If `duration` is “temporal” than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If `duration` is “temporal” than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+107
+
+
# File 'lib/recurly/resources/coupon.rb', line 107
+
+define_attribute :temporal_unit, String
+
+
+ + + +
+

+ + #unique_code_templateString + + + + + +

+
+ +

Returns On a bulk coupon, the template from which unique coupon codes are generated.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    On a bulk coupon, the template from which unique coupon codes are generated.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+111
+
+
# File 'lib/recurly/resources/coupon.rb', line 111
+
+define_attribute :unique_code_template, String
+
+
+ + + +
+

+ + #unique_coupon_codeHash + + + + + +

+
+ +

Returns Will be populated when the Coupon being returned is a `UniqueCouponCode`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Hash) + + + + — +
    +

    Will be populated when the Coupon being returned is a `UniqueCouponCode`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+115
+
+
# File 'lib/recurly/resources/coupon.rb', line 115
+
+define_attribute :unique_coupon_code, Hash
+
+
+ + + +
+

+ + #unique_coupon_codes_countInteger + + + + + +

+
+ +

Returns When this number reaches `max_redemptions` the coupon will no longer be redeemable.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    When this number reaches `max_redemptions` the coupon will no longer be redeemable.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+119
+
+
# File 'lib/recurly/resources/coupon.rb', line 119
+
+define_attribute :unique_coupon_codes_count, Integer
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+123
+
+
# File 'lib/recurly/resources/coupon.rb', line 123
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/CouponDiscount.html b/Recurly/Resources/CouponDiscount.html new file mode 100644 index 000000000..34b1179e4 --- /dev/null +++ b/Recurly/Resources/CouponDiscount.html @@ -0,0 +1,509 @@ + + + + + + + Class: Recurly::Resources::CouponDiscount + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::CouponDiscount + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/coupon_discount.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

+ + + +
+

+ + #currenciesArray[CouponDiscountPricing] + + + + + +

+
+ +

Returns This is only present when `type=fixed`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[CouponDiscountPricing]) + + + + — +
    +

    This is only present when `type=fixed`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/coupon_discount.rb', line 11
+
+define_attribute :currencies, Array, { :item_type => :CouponDiscountPricing }
+
+
+ + + +
+

+ + #percentInteger + + + + + +

+
+ +

Returns This is only present when `type=percent`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    This is only present when `type=percent`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/coupon_discount.rb', line 15
+
+define_attribute :percent, Integer
+
+
+ + + +
+

+ + #trialCouponDiscountTrial + + + + + +

+
+ +

Returns This is only present when `type=free_trial`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (CouponDiscountTrial) + + + + — +
    +

    This is only present when `type=free_trial`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/coupon_discount.rb', line 19
+
+define_attribute :trial, :CouponDiscountTrial
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/coupon_discount.rb', line 23
+
+define_attribute :type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/CouponDiscountPricing.html b/Recurly/Resources/CouponDiscountPricing.html new file mode 100644 index 000000000..85e4f16af --- /dev/null +++ b/Recurly/Resources/CouponDiscountPricing.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::CouponDiscountPricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::CouponDiscountPricing + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #amount ⇒ Float + + + + + + + + + + + + + + + + +
    +

    Value of the fixed discount that this coupon applies.

    +
    + +
  • + + +
  • + + + #currency ⇒ String + + + + + + + + + + + + + + + + +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns Value of the fixed discount that this coupon applies.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Value of the fixed discount that this coupon applies.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/coupon_discount_pricing.rb', line 11
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/coupon_discount_pricing.rb', line 15
+
+define_attribute :currency, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/CouponDiscountTrial.html b/Recurly/Resources/CouponDiscountTrial.html new file mode 100644 index 000000000..a0ac9fc9b --- /dev/null +++ b/Recurly/Resources/CouponDiscountTrial.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::CouponDiscountTrial + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::CouponDiscountTrial + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #length ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    Trial length measured in the units specified by the sibling `unit` property.

    +
    + +
  • + + +
  • + + + #unit ⇒ String + + + + + + + + + + + + + + + + +
    +

    Temporal unit of the free trial.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #lengthInteger + + + + + +

+
+ +

Returns Trial length measured in the units specified by the sibling `unit` property.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Trial length measured in the units specified by the sibling `unit` property

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/coupon_discount_trial.rb', line 11
+
+define_attribute :length, Integer
+
+
+ + + +
+

+ + #unitString + + + + + +

+
+ +

Returns Temporal unit of the free trial.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Temporal unit of the free trial

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/coupon_discount_trial.rb', line 15
+
+define_attribute :unit, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/CouponMini.html b/Recurly/Resources/CouponMini.html new file mode 100644 index 000000000..873fb91c7 --- /dev/null +++ b/Recurly/Resources/CouponMini.html @@ -0,0 +1,854 @@ + + + + + + + Class: Recurly::Resources::CouponMini + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::CouponMini + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #code ⇒ String + + + + + + + + + + + + + + + + +
    +

    The code the customer enters to redeem the coupon.

    +
    + +
  • + + +
  • + + + #coupon_type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Whether the coupon is “single_code” or “bulk”.

    +
    + +
  • + + +
  • + + + #discount ⇒ CouponDiscount + + + + + + + + + + + + + + + + +
    +

    Details of the discount a coupon applies.

    +
    + +
  • + + +
  • + + + #expired_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    The date and time the coupon was expired early or reached its `max_redemptions`.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Coupon ID.

    +
    + +
  • + + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

    The internal name for the coupon.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #state ⇒ String + + + + + + + + + + + + + + + + +
    +

    Indicates if the coupon is redeemable, and if it is not, why.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The code the customer enters to redeem the coupon.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The code the customer enters to redeem the coupon.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/coupon_mini.rb', line 11
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #coupon_typeString + + + + + +

+
+ +

Returns Whether the coupon is “single_code” or “bulk”. Bulk coupons will require a `unique_code_template` and will generate unique codes through the `/generate` endpoint.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Whether the coupon is “single_code” or “bulk”. Bulk coupons will require a `unique_code_template` and will generate unique codes through the `/generate` endpoint.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/coupon_mini.rb', line 15
+
+define_attribute :coupon_type, String
+
+
+ + + +
+

+ + #discountCouponDiscount + + + + + +

+
+ +

Returns Details of the discount a coupon applies. Will contain a `type` property and one of the following properties: `percent`, `fixed`, `trial`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (CouponDiscount) + + + + — +
    +

    Details of the discount a coupon applies. Will contain a `type` property and one of the following properties: `percent`, `fixed`, `trial`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/coupon_mini.rb', line 19
+
+define_attribute :discount, :CouponDiscount
+
+
+ + + +
+

+ + #expired_atDateTime + + + + + +

+
+ +

Returns The date and time the coupon was expired early or reached its `max_redemptions`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    The date and time the coupon was expired early or reached its `max_redemptions`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/coupon_mini.rb', line 23
+
+define_attribute :expired_at, DateTime
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Coupon ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Coupon ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/coupon_mini.rb', line 27
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns The internal name for the coupon.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The internal name for the coupon.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/coupon_mini.rb', line 31
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/coupon_mini.rb', line 35
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns Indicates if the coupon is redeemable, and if it is not, why.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Indicates if the coupon is redeemable, and if it is not, why.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/coupon_mini.rb', line 39
+
+define_attribute :state, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/CouponRedemption.html b/Recurly/Resources/CouponRedemption.html new file mode 100644 index 000000000..cc5acaa93 --- /dev/null +++ b/Recurly/Resources/CouponRedemption.html @@ -0,0 +1,1097 @@ + + + + + + + Class: Recurly::Resources::CouponRedemption + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::CouponRedemption + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/coupon_redemption.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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns The Account on which the coupon was applied.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    The Account on which the coupon was applied.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #couponCoupon + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Coupon) + + + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 15
+
+define_attribute :coupon, :Coupon
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 19
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 23
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #discountedFloat + + + + + +

+
+ +

Returns The amount that was discounted upon the application of the coupon, formatted with the currency.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The amount that was discounted upon the application of the coupon, formatted with the currency.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 27
+
+define_attribute :discounted, Float
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Coupon Redemption ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Coupon Redemption ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 31
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Will always be `coupon`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Will always be `coupon`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 35
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #removed_atDateTime + + + + + +

+
+ +

Returns The date and time the redemption was removed from the account (un-redeemed).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    The date and time the redemption was removed from the account (un-redeemed).

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 39
+
+define_attribute :removed_at, DateTime
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns Coupon Redemption state.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Coupon Redemption state

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 43
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #subscription_idString + + + + + +

+
+ +

Returns Subscription ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Subscription ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 47
+
+define_attribute :subscription_id, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/coupon_redemption.rb', line 51
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/CouponRedemptionMini.html b/Recurly/Resources/CouponRedemptionMini.html new file mode 100644 index 000000000..945373f73 --- /dev/null +++ b/Recurly/Resources/CouponRedemptionMini.html @@ -0,0 +1,677 @@ + + + + + + + Class: Recurly::Resources::CouponRedemptionMini + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::CouponRedemptionMini + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #coupon ⇒ CouponMini + + + + + + + + + + + + + + + + +
    + +
  • + + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Created at.

    +
    + +
  • + + +
  • + + + #discounted ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The amount that was discounted upon the application of the coupon, formatted with the currency.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Coupon Redemption ID.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Will always be `coupon`.

    +
    + +
  • + + +
  • + + + #state ⇒ String + + + + + + + + + + + + + + + + +
    +

    Invoice state.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #couponCouponMini + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/coupon_redemption_mini.rb', line 11
+
+define_attribute :coupon, :CouponMini
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/coupon_redemption_mini.rb', line 15
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #discountedFloat + + + + + +

+
+ +

Returns The amount that was discounted upon the application of the coupon, formatted with the currency.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The amount that was discounted upon the application of the coupon, formatted with the currency.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/coupon_redemption_mini.rb', line 19
+
+define_attribute :discounted, Float
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Coupon Redemption ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Coupon Redemption ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/coupon_redemption_mini.rb', line 23
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Will always be `coupon`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Will always be `coupon`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/coupon_redemption_mini.rb', line 27
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns Invoice state.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice state

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/coupon_redemption_mini.rb', line 31
+
+define_attribute :state, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/CreditPayment.html b/Recurly/Resources/CreditPayment.html new file mode 100644 index 000000000..3dea191da --- /dev/null +++ b/Recurly/Resources/CreditPayment.html @@ -0,0 +1,1349 @@ + + + + + + + Class: Recurly::Resources::CreditPayment + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::CreditPayment + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/credit_payment.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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns Account mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    Account mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #actionString + + + + + +

+
+ +

Returns The action for which the credit was created.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The action for which the credit was created.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 15
+
+define_attribute :action, String
+
+
+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns Total credit payment amount applied to the charge invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Total credit payment amount applied to the charge invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 19
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #applied_to_invoiceInvoiceMini + + + + + +

+
+ +

Returns Invoice mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (InvoiceMini) + + + + — +
    +

    Invoice mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 23
+
+define_attribute :applied_to_invoice, :InvoiceMini
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 27
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 31
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Credit Payment ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Credit Payment ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 35
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 39
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #original_credit_payment_idString + + + + + +

+
+ +

Returns For credit payments with action `refund`, this is the credit payment that was refunded.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For credit payments with action `refund`, this is the credit payment that was refunded.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 43
+
+define_attribute :original_credit_payment_id, String
+
+
+ + + +
+

+ + #original_invoiceInvoiceMini + + + + + +

+
+ +

Returns Invoice mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (InvoiceMini) + + + + — +
    +

    Invoice mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 47
+
+define_attribute :original_invoice, :InvoiceMini
+
+
+ + + +
+

+ + #refund_transactionTransaction + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 51
+
+define_attribute :refund_transaction, :Transaction
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 55
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #uuidString + + + + + +

+
+ +

Returns The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 59
+
+define_attribute :uuid, String
+
+
+ + + +
+

+ + #voided_atDateTime + + + + + +

+
+ +

Returns Voided at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Voided at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/credit_payment.rb', line 63
+
+define_attribute :voided_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/CustomField.html b/Recurly/Resources/CustomField.html new file mode 100644 index 000000000..8a2697fcb --- /dev/null +++ b/Recurly/Resources/CustomField.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::CustomField + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::CustomField + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

    Fields must be created in the UI before values can be assigned to them.

    +
    + +
  • + + +
  • + + + #value ⇒ String + + + + + + + + + + + + + + + + +
    +

    Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Fields must be created in the UI before values can be assigned to them.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Fields must be created in the UI before values can be assigned to them.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/custom_field.rb', line 11
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #valueString + + + + + +

+
+ +

Returns Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/custom_field.rb', line 15
+
+define_attribute :value, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/CustomFieldDefinition.html b/Recurly/Resources/CustomFieldDefinition.html new file mode 100644 index 000000000..1b53703cb --- /dev/null +++ b/Recurly/Resources/CustomFieldDefinition.html @@ -0,0 +1,1022 @@ + + + + + + + Class: Recurly::Resources::CustomFieldDefinition + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::CustomFieldDefinition + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Created at.

    +
    + +
  • + + +
  • + + + #deleted_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Definitions are initially soft deleted, and once all the values are removed from the accouts or subscriptions, will be hard deleted an no longer visible.

    +
    + +
  • + + +
  • + + + #display_name ⇒ String + + + + + + + + + + + + + + + + +
    +

    Used to label the field when viewing and editing the field in Recurly's admin UI.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Custom field definition ID.

    +
    + +
  • + + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

    Used by the API to identify the field or reading and writing.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #related_type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Related Recurly object type.

    +
    + +
  • + + +
  • + + + #tooltip ⇒ String + + + + + + + + + + + + + + + + +
    +

    Displayed as a tooltip when editing the field in the Recurly admin UI.

    +
    + +
  • + + +
  • + + + #updated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Last updated at.

    +
    + +
  • + + +
  • + + + #user_access ⇒ String + + + + + + + + + + + + + + + + +
    +

    The access control applied inside Recurly's admin UI: - `api_only` - No one will be able to view or edit this field's data via the admin UI.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/custom_field_definition.rb', line 11
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #deleted_atDateTime + + + + + +

+
+ +

Returns Definitions are initially soft deleted, and once all the values are removed from the accouts or subscriptions, will be hard deleted an no longer visible.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Definitions are initially soft deleted, and once all the values are removed from the accouts or subscriptions, will be hard deleted an no longer visible.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/custom_field_definition.rb', line 15
+
+define_attribute :deleted_at, DateTime
+
+
+ + + +
+

+ + #display_nameString + + + + + +

+
+ +

Returns Used to label the field when viewing and editing the field in Recurly's admin UI.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used to label the field when viewing and editing the field in Recurly's admin UI.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/custom_field_definition.rb', line 19
+
+define_attribute :display_name, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Custom field definition ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Custom field definition ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/custom_field_definition.rb', line 23
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Used by the API to identify the field or reading and writing. The name can only be used once per Recurly object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used by the API to identify the field or reading and writing. The name can only be used once per Recurly object type.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/custom_field_definition.rb', line 27
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/custom_field_definition.rb', line 31
+
+define_attribute :object, String
+
+
+ + + +
+
+
+ +

Returns Related Recurly object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Related Recurly object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/custom_field_definition.rb', line 35
+
+define_attribute :related_type, String
+
+
+ + + +
+

+ + #tooltipString + + + + + +

+
+ +

Returns Displayed as a tooltip when editing the field in the Recurly admin UI.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Displayed as a tooltip when editing the field in the Recurly admin UI.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/custom_field_definition.rb', line 39
+
+define_attribute :tooltip, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/custom_field_definition.rb', line 43
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #user_accessString + + + + + +

+
+ +

Returns The access control applied inside Recurly's admin UI: - `api_only` - No one will be able to view or edit this field's data via the admin UI. - `read_only` - Users with the Customers role will be able to view this field's data via the admin UI, but editing will only be available via the API. - `write` - Users with the Customers role will be able to view and edit this field's data via the admin UI. - `set_only` - Users with the Customers role will be able to set this field's data via the admin console.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The access control applied inside Recurly's admin UI: - `api_only` - No one will be able to view or edit this field's data via the admin UI. - `read_only` - Users with the Customers role will be able to view this field's data via the admin UI, but editing will only be available via the API. - `write` - Users with the Customers role will be able to view and edit this field's data via the admin UI. - `set_only` - Users with the Customers role will be able to set this field's data via the admin console.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/custom_field_definition.rb', line 47
+
+define_attribute :user_access, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/CustomerPermission.html b/Recurly/Resources/CustomerPermission.html new file mode 100644 index 000000000..97235be30 --- /dev/null +++ b/Recurly/Resources/CustomerPermission.html @@ -0,0 +1,602 @@ + + + + + + + Class: Recurly::Resources::CustomerPermission + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::CustomerPermission + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #code ⇒ String + + + + + + + + + + + + + + + + +
    +

    Customer permission code.

    +
    + +
  • + + +
  • + + + #description ⇒ String + + + + + + + + + + + + + + + + +
    +

    Description of customer permission.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Customer permission ID.

    +
    + +
  • + + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

    Customer permission name.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    It will always be “customer_permission”.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns Customer permission code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Customer permission code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/customer_permission.rb', line 11
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Description of customer permission.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Description of customer permission.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/customer_permission.rb', line 15
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Customer permission ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Customer permission ID.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/customer_permission.rb', line 19
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Customer permission name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Customer permission name.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/customer_permission.rb', line 23
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns It will always be “customer_permission”.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    It will always be “customer_permission”.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/customer_permission.rb', line 27
+
+define_attribute :object, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/DunningCampaign.html b/Recurly/Resources/DunningCampaign.html new file mode 100644 index 000000000..4112e65d6 --- /dev/null +++ b/Recurly/Resources/DunningCampaign.html @@ -0,0 +1,1013 @@ + + + + + + + Class: Recurly::Resources::DunningCampaign + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::DunningCampaign + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/dunning_campaign.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

+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns Campaign code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Campaign code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/dunning_campaign.rb', line 11
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the current campaign was created in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the current campaign was created in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/dunning_campaign.rb', line 15
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #default_campaignBoolean + + + + + +

+
+ +

Returns Whether or not this is the default campaign for accounts or plans without an assigned dunning campaign.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Whether or not this is the default campaign for accounts or plans without an assigned dunning campaign.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/dunning_campaign.rb', line 19
+
+define_attribute :default_campaign, :Boolean
+
+
+ + + +
+

+ + #deleted_atDateTime + + + + + +

+
+ +

Returns When the current campaign was deleted in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the current campaign was deleted in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/dunning_campaign.rb', line 23
+
+define_attribute :deleted_at, DateTime
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Campaign description.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Campaign description.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/dunning_campaign.rb', line 27
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #dunning_cyclesArray[DunningCycle] + + + + + +

+
+ +

Returns Dunning Cycle settings.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[DunningCycle]) + + + + — +
    +

    Dunning Cycle settings.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/dunning_campaign.rb', line 31
+
+define_attribute :dunning_cycles, Array, { :item_type => :DunningCycle }
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/dunning_campaign.rb', line 35
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Campaign name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Campaign name.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/dunning_campaign.rb', line 39
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/dunning_campaign.rb', line 43
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the current campaign was updated in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the current campaign was updated in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/dunning_campaign.rb', line 47
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/DunningCampaignsBulkUpdateResponse.html b/Recurly/Resources/DunningCampaignsBulkUpdateResponse.html new file mode 100644 index 000000000..a8d02cd02 --- /dev/null +++ b/Recurly/Resources/DunningCampaignsBulkUpdateResponse.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::DunningCampaignsBulkUpdateResponse + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::DunningCampaignsBulkUpdateResponse + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/dunning_campaigns_bulk_update_response.rb
+
+ +
+ + + + + +

Instance Attribute Summary collapse

+
    + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #plans ⇒ Array[Plan] + + + + + + + + + + + + + + + + +
    +

    An array containing all of the `Plan` resources that have been updated.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/dunning_campaigns_bulk_update_response.rb', line 11
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #plansArray[Plan] + + + + + +

+
+ +

Returns An array containing all of the `Plan` resources that have been updated.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[Plan]) + + + + — +
    +

    An array containing all of the `Plan` resources that have been updated.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/dunning_campaigns_bulk_update_response.rb', line 15
+
+define_attribute :plans, Array, { :item_type => :Plan }
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/DunningCycle.html b/Recurly/Resources/DunningCycle.html new file mode 100644 index 000000000..0ffe5443b --- /dev/null +++ b/Recurly/Resources/DunningCycle.html @@ -0,0 +1,1190 @@ + + + + + + + Class: Recurly::Resources::DunningCycle + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::DunningCycle + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/dunning_cycle.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

+ + + +
+

+ + #applies_to_manual_trialBoolean + + + + + +

+
+ +

Returns Whether the dunning settings will be applied to manual trials. Only applies to trial cycles.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Whether the dunning settings will be applied to manual trials. Only applies to trial cycles.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 11
+
+define_attribute :applies_to_manual_trial, :Boolean
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the current settings were created in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the current settings were created in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 15
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #expire_subscriptionBoolean + + + + + +

+
+ +

Returns Whether the subscription(s) should be cancelled at the end of the dunning cycle.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Whether the subscription(s) should be cancelled at the end of the dunning cycle.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 19
+
+define_attribute :expire_subscription, :Boolean
+
+
+ + + +
+

+ + #fail_invoiceBoolean + + + + + +

+
+ +

Returns Whether the invoice should be failed at the end of the dunning cycle.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Whether the invoice should be failed at the end of the dunning cycle.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 23
+
+define_attribute :fail_invoice, :Boolean
+
+
+ + + +
+

+ + #first_communication_intervalInteger + + + + + +

+
+ +

Returns The number of days after a transaction failure before the first dunning email is sent.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The number of days after a transaction failure before the first dunning email is sent.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 27
+
+define_attribute :first_communication_interval, Integer
+
+
+ + + +
+

+ + #intervalsArray[DunningInterval] + + + + + +

+
+ +

Returns Dunning intervals.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[DunningInterval]) + + + + — +
    +

    Dunning intervals.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 31
+
+define_attribute :intervals, Array, { :item_type => :DunningInterval }
+
+
+ + + +
+

+ + #send_immediately_on_hard_declineBoolean + + + + + +

+
+ +

Returns Whether or not to send an extra email immediately to customers whose initial payment attempt fails with either a hard decline or invalid billing info.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Whether or not to send an extra email immediately to customers whose initial payment attempt fails with either a hard decline or invalid billing info.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 35
+
+define_attribute :send_immediately_on_hard_decline, :Boolean
+
+
+ + + +
+

+ + #total_dunning_daysInteger + + + + + +

+
+ +

Returns The number of days between the first dunning email being sent and the end of the dunning cycle.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The number of days between the first dunning email being sent and the end of the dunning cycle.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 39
+
+define_attribute :total_dunning_days, Integer
+
+
+ + + +
+

+ + #total_recycling_daysInteger + + + + + +

+
+ +

Returns The number of days between a transaction failure and the end of the dunning cycle.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The number of days between a transaction failure and the end of the dunning cycle.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 43
+
+define_attribute :total_recycling_days, Integer
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns The type of invoice this cycle applies to.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The type of invoice this cycle applies to.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 47
+
+define_attribute :type, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the current settings were updated in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the current settings were updated in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 51
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #versionInteger + + + + + +

+
+ +

Returns Current campaign version.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Current campaign version.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/dunning_cycle.rb', line 55
+
+define_attribute :version, Integer
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/DunningInterval.html b/Recurly/Resources/DunningInterval.html new file mode 100644 index 000000000..f5dca9cbb --- /dev/null +++ b/Recurly/Resources/DunningInterval.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::DunningInterval + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::DunningInterval + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #days ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    Number of days before sending the next email.

    +
    + +
  • + + +
  • + + + #email_template ⇒ String + + + + + + + + + + + + + + + + +
    +

    Email template being used.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #daysInteger + + + + + +

+
+ +

Returns Number of days before sending the next email.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Number of days before sending the next email.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/dunning_interval.rb', line 11
+
+define_attribute :days, Integer
+
+
+ + + +
+

+ + #email_templateString + + + + + +

+
+ +

Returns Email template being used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Email template being used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/dunning_interval.rb', line 15
+
+define_attribute :email_template, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Empty.html b/Recurly/Resources/Empty.html new file mode 100644 index 000000000..e3af4c745 --- /dev/null +++ b/Recurly/Resources/Empty.html @@ -0,0 +1,172 @@ + + + + + + + Class: Recurly::Resources::Empty + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Empty + + + +

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

Instance Attribute Summary

+ +

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!

+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Entitlement.html b/Recurly/Resources/Entitlement.html new file mode 100644 index 000000000..42b5cf6e2 --- /dev/null +++ b/Recurly/Resources/Entitlement.html @@ -0,0 +1,593 @@ + + + + + + + Class: Recurly::Resources::Entitlement + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Entitlement + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/entitlement.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

+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Time object was created.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Time object was created.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/entitlement.rb', line 11
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #customer_permissionCustomerPermission + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/entitlement.rb', line 15
+
+define_attribute :customer_permission, :CustomerPermission
+
+
+ + + +
+

+ + #granted_byArray[GrantedBy] + + + + + +

+
+ +

Returns Subscription or item that granted the customer permission.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[GrantedBy]) + + + + — +
    +

    Subscription or item that granted the customer permission.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/entitlement.rb', line 19
+
+define_attribute :granted_by, Array, { :item_type => :GrantedBy }
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Entitlement.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Entitlement

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/entitlement.rb', line 23
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Time the object was last updated.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Time the object was last updated

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/entitlement.rb', line 27
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Entitlements.html b/Recurly/Resources/Entitlements.html new file mode 100644 index 000000000..f4ff642d7 --- /dev/null +++ b/Recurly/Resources/Entitlements.html @@ -0,0 +1,509 @@ + + + + + + + Class: Recurly::Resources::Entitlements + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Entitlements + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/entitlements.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

+ + + +
+

+ + #dataArray[Entitlement] + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/entitlements.rb', line 11
+
+define_attribute :data, Array, { :item_type => :Entitlement }
+
+
+ + + +
+

+ + #has_moreBoolean + + + + + +

+
+ +

Returns Indicates there are more results on subsequent pages.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Indicates there are more results on subsequent pages.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/entitlements.rb', line 15
+
+define_attribute :has_more, :Boolean
+
+
+ + + +
+

+ + #nextString + + + + + +

+
+ +

Returns Path to subsequent page of results.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Path to subsequent page of results.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/entitlements.rb', line 19
+
+define_attribute :next, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object Type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object Type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/entitlements.rb', line 23
+
+define_attribute :object, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Error.html b/Recurly/Resources/Error.html new file mode 100644 index 000000000..3a2c423c8 --- /dev/null +++ b/Recurly/Resources/Error.html @@ -0,0 +1,434 @@ + + + + + + + Class: Recurly::Resources::Error + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Error + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/error.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

+ + + +
+

+ + #messageString + + + + + +

+
+ +

Returns Message.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Message

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/error.rb', line 11
+
+define_attribute :message, String
+
+
+ + + +
+

+ + #paramsArray[Hash] + + + + + +

+
+ +

Returns Parameter specific errors.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[Hash]) + + + + — +
    +

    Parameter specific errors

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/error.rb', line 15
+
+define_attribute :params, Array, { :item_type => Hash }
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns Type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/error.rb', line 19
+
+define_attribute :type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ErrorMayHaveTransaction.html b/Recurly/Resources/ErrorMayHaveTransaction.html new file mode 100644 index 000000000..44db43844 --- /dev/null +++ b/Recurly/Resources/ErrorMayHaveTransaction.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::ErrorMayHaveTransaction + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ErrorMayHaveTransaction + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/error_may_have_transaction.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

+ + + +
+

+ + #messageString + + + + + +

+
+ +

Returns Message.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Message

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/error_may_have_transaction.rb', line 11
+
+define_attribute :message, String
+
+
+ + + +
+

+ + #paramsArray[Hash] + + + + + +

+
+ +

Returns Parameter specific errors.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[Hash]) + + + + — +
    +

    Parameter specific errors

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/error_may_have_transaction.rb', line 15
+
+define_attribute :params, Array, { :item_type => Hash }
+
+
+ + + +
+

+ + #transaction_errorTransactionError + + + + + +

+
+ +

Returns This is only included on errors with `type=transaction`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (TransactionError) + + + + — +
    +

    This is only included on errors with `type=transaction`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/error_may_have_transaction.rb', line 19
+
+define_attribute :transaction_error, :TransactionError
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns Type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/error_may_have_transaction.rb', line 23
+
+define_attribute :type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ExportDates.html b/Recurly/Resources/ExportDates.html new file mode 100644 index 000000000..9e57e9875 --- /dev/null +++ b/Recurly/Resources/ExportDates.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::ExportDates + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ExportDates + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/export_dates.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

+ + + +
+

+ + #datesArray[String] + + + + + +

+
+ +

Returns An array of dates that have available exports.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    An array of dates that have available exports.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/export_dates.rb', line 11
+
+define_attribute :dates, Array, { :item_type => String }
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/export_dates.rb', line 15
+
+define_attribute :object, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ExportFile.html b/Recurly/Resources/ExportFile.html new file mode 100644 index 000000000..8403eb4e5 --- /dev/null +++ b/Recurly/Resources/ExportFile.html @@ -0,0 +1,434 @@ + + + + + + + Class: Recurly::Resources::ExportFile + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ExportFile + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #href ⇒ String + + + + + + + + + + + + + + + + +
    +

    A presigned link to download the export file.

    +
    + +
  • + + +
  • + + + #md5sum ⇒ String + + + + + + + + + + + + + + + + +
    +

    MD5 hash of the export file.

    +
    + +
  • + + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

    Name of the export file.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #hrefString + + + + + +

+
+ +

Returns A presigned link to download the export file.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A presigned link to download the export file.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/export_file.rb', line 11
+
+define_attribute :href, String
+
+
+ + + +
+

+ + #md5sumString + + + + + +

+
+ +

Returns MD5 hash of the export file.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    MD5 hash of the export file.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/export_file.rb', line 15
+
+define_attribute :md5sum, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Name of the export file.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Name of the export file.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/export_file.rb', line 19
+
+define_attribute :name, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ExportFiles.html b/Recurly/Resources/ExportFiles.html new file mode 100644 index 000000000..cd9d500cc --- /dev/null +++ b/Recurly/Resources/ExportFiles.html @@ -0,0 +1,341 @@ + + + + + + + Class: Recurly::Resources::ExportFiles + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ExportFiles + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/export_files.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

+ + + +
+

+ + #filesArray[ExportFile] + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/export_files.rb', line 11
+
+define_attribute :files, Array, { :item_type => :ExportFile }
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/export_files.rb', line 15
+
+define_attribute :object, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ExternalAccount.html b/Recurly/Resources/ExternalAccount.html new file mode 100644 index 000000000..ab3a0b627 --- /dev/null +++ b/Recurly/Resources/ExternalAccount.html @@ -0,0 +1,677 @@ + + + + + + + Class: Recurly::Resources::ExternalAccount + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ExternalAccount + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/external_account.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

+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/external_account.rb', line 11
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #external_account_codeString + + + + + +

+
+ +

Returns Represents the account code for the external account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Represents the account code for the external account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/external_account.rb', line 15
+
+define_attribute :external_account_code, String
+
+
+ + + +
+

+ + #external_connection_typeString + + + + + +

+
+ +

Returns Represents the connection type. `AppleAppStore` or `GooglePlayStore`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Represents the connection type. `AppleAppStore` or `GooglePlayStore`

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/external_account.rb', line 19
+
+define_attribute :external_connection_type, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns UUID of the external_account .

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    UUID of the external_account .

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/external_account.rb', line 23
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/external_account.rb', line 27
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/external_account.rb', line 31
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ExternalCharge.html b/Recurly/Resources/ExternalCharge.html new file mode 100644 index 000000000..4511cf3b1 --- /dev/null +++ b/Recurly/Resources/ExternalCharge.html @@ -0,0 +1,1004 @@ + + + + + + + Class: Recurly::Resources::ExternalCharge + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ExternalCharge + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/external_charge.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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns Account mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    Account mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/external_charge.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the external charge was created in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external charge was created in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/external_charge.rb', line 15
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/external_charge.rb', line 19
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/external_charge.rb', line 23
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #external_product_referenceExternalProductReferenceMini + + + + + +

+
+ +

Returns External Product Reference details.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/external_charge.rb', line 27
+
+define_attribute :external_product_reference, :ExternalProductReferenceMini
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns System-generated unique identifier for an external charge ID, e.g. `e28zov4fw0v2`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    System-generated unique identifier for an external charge ID, e.g. `e28zov4fw0v2`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/external_charge.rb', line 31
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/external_charge.rb', line 35
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/external_charge.rb', line 39
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #unit_amountString + + + + + +

+
+ +

Returns Unit Amount.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unit Amount

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/external_charge.rb', line 43
+
+define_attribute :unit_amount, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the external charge was updated in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external charge was updated in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/external_charge.rb', line 47
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ExternalInvoice.html b/Recurly/Resources/ExternalInvoice.html new file mode 100644 index 000000000..1ce797815 --- /dev/null +++ b/Recurly/Resources/ExternalInvoice.html @@ -0,0 +1,1172 @@ + + + + + + + Class: Recurly::Resources::ExternalInvoice + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ExternalInvoice + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/external_invoice.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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns Account mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    Account mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the external invoice was created in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external invoice was created in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 15
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 19
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #external_idString + + + + + +

+
+ +

Returns An identifier which associates the external invoice to a corresponding object in an external platform.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An identifier which associates the external invoice to a corresponding object in an external platform.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 23
+
+define_attribute :external_id, String
+
+
+ + + +
+

+ + #external_subscriptionExternalSubscription + + + + + +

+
+ +

Returns Subscription from an external resource such as Apple App Store or Google Play Store.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (ExternalSubscription) + + + + — +
    +

    Subscription from an external resource such as Apple App Store or Google Play Store.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 27
+
+define_attribute :external_subscription, :ExternalSubscription
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns System-generated unique identifier for an external invoice ID, e.g. `e28zov4fw0v2`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    System-generated unique identifier for an external invoice ID, e.g. `e28zov4fw0v2`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 31
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #line_itemsArray[ExternalCharge] + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 35
+
+define_attribute :line_items, Array, { :item_type => :ExternalCharge }
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 39
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #purchased_atDateTime + + + + + +

+
+ +

Returns When the invoice was created in the external platform.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the invoice was created in the external platform.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 43
+
+define_attribute :purchased_at, DateTime
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 47
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #totalString + + + + + +

+
+ +

Returns Total.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Total

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 51
+
+define_attribute :total, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the external invoice was updated in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external invoice was updated in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/external_invoice.rb', line 55
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ExternalProduct.html b/Recurly/Resources/ExternalProduct.html new file mode 100644 index 000000000..1f1d11f31 --- /dev/null +++ b/Recurly/Resources/ExternalProduct.html @@ -0,0 +1,770 @@ + + + + + + + Class: Recurly::Resources::ExternalProduct + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ExternalProduct + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/external_product.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

+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the external product was created in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external product was created in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/external_product.rb', line 11
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #external_product_referencesArray[ExternalProductReferenceMini] + + + + + +

+
+ +

Returns List of external product references of the external product.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/external_product.rb', line 15
+
+define_attribute :external_product_references, Array, { :item_type => :ExternalProductReferenceMini }
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns System-generated unique identifier for an external product ID, e.g. `e28zov4fw0v2`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    System-generated unique identifier for an external product ID, e.g. `e28zov4fw0v2`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/external_product.rb', line 19
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Name to identify the external product in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Name to identify the external product in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/external_product.rb', line 23
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/external_product.rb', line 27
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #planPlanMini + + + + + +

+
+ +

Returns Just the important parts.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (PlanMini) + + + + — +
    +

    Just the important parts.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/external_product.rb', line 31
+
+define_attribute :plan, :PlanMini
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the external product was updated in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external product was updated in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/external_product.rb', line 35
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ExternalProductReferenceMini.html b/Recurly/Resources/ExternalProductReferenceMini.html new file mode 100644 index 000000000..a6aac3524 --- /dev/null +++ b/Recurly/Resources/ExternalProductReferenceMini.html @@ -0,0 +1,686 @@ + + + + + + + Class: Recurly::Resources::ExternalProductReferenceMini + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ExternalProductReferenceMini + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/external_product_reference_mini.rb
+
+ +
+ + + + + +

Instance Attribute Summary collapse

+
    + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the external product was created in Recurly.

    +
    + +
  • + + +
  • + + + #external_connection_type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Source connection platform.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    System-generated unique identifier for an external product ID, e.g.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object.

    +
    + +
  • + + +
  • + + + #reference_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store.

    +
    + +
  • + + +
  • + + + #updated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the external product was updated in Recurly.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the external product was created in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external product was created in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/external_product_reference_mini.rb', line 11
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #external_connection_typeString + + + + + +

+
+ +

Returns Source connection platform.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Source connection platform.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/external_product_reference_mini.rb', line 15
+
+define_attribute :external_connection_type, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns System-generated unique identifier for an external product ID, e.g. `e28zov4fw0v2`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    System-generated unique identifier for an external product ID, e.g. `e28zov4fw0v2`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/external_product_reference_mini.rb', line 19
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns object.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    object

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/external_product_reference_mini.rb', line 23
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #reference_codeString + + + + + +

+
+ +

Returns A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/external_product_reference_mini.rb', line 27
+
+define_attribute :reference_code, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the external product was updated in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external product was updated in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/external_product_reference_mini.rb', line 31
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ExternalSubscription.html b/Recurly/Resources/ExternalSubscription.html new file mode 100644 index 000000000..46d9e078a --- /dev/null +++ b/Recurly/Resources/ExternalSubscription.html @@ -0,0 +1,1358 @@ + + + + + + + Class: Recurly::Resources::ExternalSubscription + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ExternalSubscription + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #account ⇒ AccountMini + + + + + + + + + + + + + + + + +
    +

    Account mini details.

    +
    + +
  • + + +
  • + + + #activated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the external subscription was activated in the external platform.

    +
    + +
  • + + +
  • + + + #app_identifier ⇒ String + + + + + + + + + + + + + + + + +
    +

    Identifier of the app that generated the external subscription.

    +
    + +
  • + + +
  • + + + #auto_renew ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    An indication of whether or not the external subscription will auto-renew at the expiration date.

    +
    + +
  • + + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the external subscription was created in Recurly.

    +
    + +
  • + + +
  • + + + #expires_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the external subscription expires in the external platform.

    +
    + +
  • + + +
  • + + + #external_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    The id of the subscription in the external systems., I.e.

    +
    + +
  • + + +
  • + + + #external_product_reference ⇒ ExternalProductReferenceMini + + + + + + + + + + + + + + + + +
    +

    External Product Reference details.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    System-generated unique identifier for an external subscription ID, e.g.

    +
    + +
  • + + +
  • + + + #last_purchased ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #quantity ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    An indication of the quantity of a subscribed item's quantity.

    +
    + +
  • + + +
  • + + + #state ⇒ String + + + + + + + + + + + + + + + + +
    +

    External subscriptions can be active, canceled, expired, or future.

    +
    + +
  • + + +
  • + + + #updated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the external subscription was updated in Recurly.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns Account mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    Account mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #activated_atDateTime + + + + + +

+
+ +

Returns When the external subscription was activated in the external platform.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external subscription was activated in the external platform.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 15
+
+define_attribute :activated_at, DateTime
+
+
+ + + +
+

+ + #app_identifierString + + + + + +

+
+ +

Returns Identifier of the app that generated the external subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Identifier of the app that generated the external subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 19
+
+define_attribute :app_identifier, String
+
+
+ + + +
+

+ + #auto_renewBoolean + + + + + +

+
+ +

Returns An indication of whether or not the external subscription will auto-renew at the expiration date.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    An indication of whether or not the external subscription will auto-renew at the expiration date.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 23
+
+define_attribute :auto_renew, :Boolean
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the external subscription was created in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external subscription was created in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 27
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #expires_atDateTime + + + + + +

+
+ +

Returns When the external subscription expires in the external platform.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external subscription expires in the external platform.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 31
+
+define_attribute :expires_at, DateTime
+
+
+ + + +
+

+ + #external_idString + + + + + +

+
+ +

Returns The id of the subscription in the external systems., I.e. Apple App Store or Google Play Store.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The id of the subscription in the external systems., I.e. Apple App Store or Google Play Store.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 35
+
+define_attribute :external_id, String
+
+
+ + + +
+

+ + #external_product_referenceExternalProductReferenceMini + + + + + +

+
+ +

Returns External Product Reference details.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 39
+
+define_attribute :external_product_reference, :ExternalProductReferenceMini
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns System-generated unique identifier for an external subscription ID, e.g. `e28zov4fw0v2`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    System-generated unique identifier for an external subscription ID, e.g. `e28zov4fw0v2`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 43
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #last_purchasedDateTime + + + + + +

+
+ +

Returns When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 47
+
+define_attribute :last_purchased, DateTime
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 51
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns An indication of the quantity of a subscribed item's quantity.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    An indication of the quantity of a subscribed item's quantity.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 55
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns External subscriptions can be active, canceled, expired, or future.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    External subscriptions can be active, canceled, expired, or future.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 59
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the external subscription was updated in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the external subscription was updated in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/external_subscription.rb', line 63
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/FraudInfo.html b/Recurly/Resources/FraudInfo.html new file mode 100644 index 000000000..65d6ffd4e --- /dev/null +++ b/Recurly/Resources/FraudInfo.html @@ -0,0 +1,434 @@ + + + + + + + Class: Recurly::Resources::FraudInfo + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::FraudInfo + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/fraud_info.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

+ + + +
+

+ + #decisionString + + + + + +

+
+ +

Returns Kount decision.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Kount decision

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/fraud_info.rb', line 11
+
+define_attribute :decision, String
+
+
+ + + +
+

+ + #risk_rules_triggeredHash + + + + + +

+
+ +

Returns Kount rules.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Hash) + + + + — +
    +

    Kount rules

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/fraud_info.rb', line 15
+
+define_attribute :risk_rules_triggered, Hash
+
+
+ + + +
+

+ + #scoreInteger + + + + + +

+
+ +

Returns Kount score.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Kount score

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/fraud_info.rb', line 19
+
+define_attribute :score, Integer
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/GiftCard.html b/Recurly/Resources/GiftCard.html new file mode 100644 index 000000000..f09879226 --- /dev/null +++ b/Recurly/Resources/GiftCard.html @@ -0,0 +1,1610 @@ + + + + + + + Class: Recurly::Resources::GiftCard + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::GiftCard + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #balance ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The remaining credit on the recipient account associated with this gift card.

    +
    + +
  • + + +
  • + + + #canceled_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the gift card was canceled.

    +
    + +
  • + + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Created at.

    +
    + +
  • + + +
  • + + + #currency ⇒ String + + + + + + + + + + + + + + + + +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + + +
  • + + + #delivered_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the gift card was sent to the recipient by Recurly via email, if method was email and the “Gift Card Delivery” email template was enabled.

    +
    + +
  • + + +
  • + + + #delivery ⇒ GiftCardDelivery + + + + + + + + + + + + + + + + +
    +

    The delivery details for the gift card.

    +
    + +
  • + + +
  • + + + #gifter_account_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    The ID of the account that purchased the gift card.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Gift card ID.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #product_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    The product code or SKU of the gift card product.

    +
    + +
  • + + +
  • + + + #purchase_invoice_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    The ID of the invoice for the gift card purchase made by the gifter.

    +
    + +
  • + + +
  • + + + #recipient_account_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    The ID of the account that redeemed the gift card redemption code.

    +
    + +
  • + + +
  • + + + #redeemed_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the gift card was redeemed by the recipient.

    +
    + +
  • + + +
  • + + + #redemption_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    The unique redemption code for the gift card, generated by Recurly.

    +
    + +
  • + + +
  • + + + #redemption_invoice_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    The ID of the invoice for the gift card redemption made by the recipient.

    +
    + +
  • + + +
  • + + + #unit_amount ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The amount of the gift card, which is the amount of the charge to the gifter account and the amount of credit that is applied to the recipient account upon successful redemption.

    +
    + +
  • + + +
  • + + + #updated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Last updated at.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #balanceFloat + + + + + +

+
+ +

Returns The remaining credit on the recipient account associated with this gift card. Only has a value once the gift card has been redeemed. Can be used to create gift card balance displays for your customers.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The remaining credit on the recipient account associated with this gift card. Only has a value once the gift card has been redeemed. Can be used to create gift card balance displays for your customers.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/gift_card.rb', line 11
+
+define_attribute :balance, Float
+
+
+ + + +
+

+ + #canceled_atDateTime + + + + + +

+
+ +

Returns When the gift card was canceled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the gift card was canceled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/gift_card.rb', line 15
+
+define_attribute :canceled_at, DateTime
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/gift_card.rb', line 19
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/gift_card.rb', line 23
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #delivered_atDateTime + + + + + +

+
+ +

Returns When the gift card was sent to the recipient by Recurly via email, if method was email and the “Gift Card Delivery” email template was enabled. This will be empty for post delivery or email delivery where the email template was disabled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the gift card was sent to the recipient by Recurly via email, if method was email and the “Gift Card Delivery” email template was enabled. This will be empty for post delivery or email delivery where the email template was disabled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/gift_card.rb', line 27
+
+define_attribute :delivered_at, DateTime
+
+
+ + + +
+

+ + #deliveryGiftCardDelivery + + + + + +

+
+ +

Returns The delivery details for the gift card.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (GiftCardDelivery) + + + + — +
    +

    The delivery details for the gift card.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/gift_card.rb', line 31
+
+define_attribute :delivery, :GiftCardDelivery
+
+
+ + + +
+

+ + #gifter_account_idString + + + + + +

+
+ +

Returns The ID of the account that purchased the gift card.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The ID of the account that purchased the gift card.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/gift_card.rb', line 35
+
+define_attribute :gifter_account_id, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Gift card ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Gift card ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/gift_card.rb', line 39
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/gift_card.rb', line 43
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #product_codeString + + + + + +

+
+ +

Returns The product code or SKU of the gift card product.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The product code or SKU of the gift card product.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/gift_card.rb', line 47
+
+define_attribute :product_code, String
+
+
+ + + +
+

+ + #purchase_invoice_idString + + + + + +

+
+ +

Returns The ID of the invoice for the gift card purchase made by the gifter.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The ID of the invoice for the gift card purchase made by the gifter.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/gift_card.rb', line 51
+
+define_attribute :purchase_invoice_id, String
+
+
+ + + +
+

+ + #recipient_account_idString + + + + + +

+
+ +

Returns The ID of the account that redeemed the gift card redemption code. Does not have a value until gift card is redeemed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The ID of the account that redeemed the gift card redemption code. Does not have a value until gift card is redeemed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/gift_card.rb', line 55
+
+define_attribute :recipient_account_id, String
+
+
+ + + +
+

+ + #redeemed_atDateTime + + + + + +

+
+ +

Returns When the gift card was redeemed by the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the gift card was redeemed by the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/gift_card.rb', line 59
+
+define_attribute :redeemed_at, DateTime
+
+
+ + + +
+

+ + #redemption_codeString + + + + + +

+
+ +

Returns The unique redemption code for the gift card, generated by Recurly. Will be 16 characters, alphanumeric, displayed uppercase, but accepted in any case at redemption. Used by the recipient account to create a credit in the amount of the `unit_amount` on their account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The unique redemption code for the gift card, generated by Recurly. Will be 16 characters, alphanumeric, displayed uppercase, but accepted in any case at redemption. Used by the recipient account to create a credit in the amount of the `unit_amount` on their account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/gift_card.rb', line 63
+
+define_attribute :redemption_code, String
+
+
+ + + +
+

+ + #redemption_invoice_idString + + + + + +

+
+ +

Returns The ID of the invoice for the gift card redemption made by the recipient. Does not have a value until gift card is redeemed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The ID of the invoice for the gift card redemption made by the recipient. Does not have a value until gift card is redeemed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/gift_card.rb', line 67
+
+define_attribute :redemption_invoice_id, String
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns The amount of the gift card, which is the amount of the charge to the gifter account and the amount of credit that is applied to the recipient account upon successful redemption.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The amount of the gift card, which is the amount of the charge to the gifter account and the amount of credit that is applied to the recipient account upon successful redemption.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/gift_card.rb', line 71
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/gift_card.rb', line 75
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/GiftCardDelivery.html b/Recurly/Resources/GiftCardDelivery.html new file mode 100644 index 000000000..47e004061 --- /dev/null +++ b/Recurly/Resources/GiftCardDelivery.html @@ -0,0 +1,854 @@ + + + + + + + Class: Recurly::Resources::GiftCardDelivery + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::GiftCardDelivery + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #deliver_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the gift card should be delivered to the recipient.

    +
    + +
  • + + +
  • + + + #email_address ⇒ String + + + + + + + + + + + + + + + + +
    +

    The email address of the recipient.

    +
    + +
  • + + +
  • + + + #first_name ⇒ String + + + + + + + + + + + + + + + + +
    +

    The first name of the recipient.

    +
    + +
  • + + +
  • + + + #gifter_name ⇒ String + + + + + + + + + + + + + + + + +
    +

    The name of the gifter for the purpose of a message displayed to the recipient.

    +
    + +
  • + + +
  • + + + #last_name ⇒ String + + + + + + + + + + + + + + + + +
    +

    The last name of the recipient.

    +
    + +
  • + + +
  • + + + #method ⇒ String + + + + + + + + + + + + + + + + +
    +

    Whether the delivery method is email or postal service.

    +
    + +
  • + + +
  • + + + #personal_message ⇒ String + + + + + + + + + + + + + + + + +
    +

    The personal message from the gifter to the recipient.

    +
    + +
  • + + +
  • + + + #recipient_address ⇒ Address + + + + + + + + + + + + + + + + +
    +

    Address information for the recipient.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #deliver_atDateTime + + + + + +

+
+ +

Returns When the gift card should be delivered to the recipient. If null, the gift card will be delivered immediately. If a datetime is provided, the delivery will be in an hourly window, rounding down. For example, 6:23 pm will be in the 6:00 pm hourly batch.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the gift card should be delivered to the recipient. If null, the gift card will be delivered immediately. If a datetime is provided, the delivery will be in an hourly window, rounding down. For example, 6:23 pm will be in the 6:00 pm hourly batch.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/gift_card_delivery.rb', line 11
+
+define_attribute :deliver_at, DateTime
+
+
+ + + +
+

+ + #email_addressString + + + + + +

+
+ +

Returns The email address of the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The email address of the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/gift_card_delivery.rb', line 15
+
+define_attribute :email_address, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ +

Returns The first name of the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The first name of the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/gift_card_delivery.rb', line 19
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #gifter_nameString + + + + + +

+
+ +

Returns The name of the gifter for the purpose of a message displayed to the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The name of the gifter for the purpose of a message displayed to the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/gift_card_delivery.rb', line 23
+
+define_attribute :gifter_name, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ +

Returns The last name of the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The last name of the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/gift_card_delivery.rb', line 27
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #methodString + + + + + +

+
+ +

Returns Whether the delivery method is email or postal service.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Whether the delivery method is email or postal service.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/gift_card_delivery.rb', line 31
+
+define_attribute :method, String
+
+
+ + + +
+

+ + #personal_messageString + + + + + +

+
+ +

Returns The personal message from the gifter to the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The personal message from the gifter to the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/gift_card_delivery.rb', line 35
+
+define_attribute :personal_message, String
+
+
+ + + +
+

+ + #recipient_addressAddress + + + + + +

+
+ +

Returns Address information for the recipient.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Address) + + + + — +
    +

    Address information for the recipient.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/gift_card_delivery.rb', line 39
+
+define_attribute :recipient_address, :Address
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/GrantedBy.html b/Recurly/Resources/GrantedBy.html new file mode 100644 index 000000000..52884358c --- /dev/null +++ b/Recurly/Resources/GrantedBy.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::GrantedBy + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::GrantedBy + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    The ID of the subscription or external subscription that grants the permission to the account.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object Type.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns The ID of the subscription or external subscription that grants the permission to the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The ID of the subscription or external subscription that grants the permission to the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/granted_by.rb', line 11
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object Type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object Type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/granted_by.rb', line 15
+
+define_attribute :object, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Invoice.html b/Recurly/Resources/Invoice.html new file mode 100644 index 000000000..2ff4e93dc --- /dev/null +++ b/Recurly/Resources/Invoice.html @@ -0,0 +1,3608 @@ + + + + + + + Class: Recurly::Resources::Invoice + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Invoice + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #account ⇒ AccountMini + + + + + + + + + + + + + + + + +
    +

    Account mini details.

    +
    + +
  • + + +
  • + + + #address ⇒ InvoiceAddress + + + + + + + + + + + + + + + + +
    + +
  • + + +
  • + + + #balance ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The outstanding balance remaining on this invoice.

    +
    + +
  • + + +
  • + + + #billing_info_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    The `billing_info_id` is the value that represents a specific billing info for an end customer.

    +
    + +
  • + + +
  • + + + #closed_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Date invoice was marked paid or failed.

    +
    + +
  • + + +
  • + + + #collection_method ⇒ String + + + + + + + + + + + + + + + + +
    +

    An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created.

    +
    + +
  • + + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Created at.

    +
    + +
  • + + +
  • + + + #credit_payments ⇒ Array[CreditPayment] + + + + + + + + + + + + + + + + +
    +

    Credit payments.

    +
    + +
  • + + +
  • + + + #currency ⇒ String + + + + + + + + + + + + + + + + +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + + +
  • + + + #customer_notes ⇒ String + + + + + + + + + + + + + + + + +
    +

    This will default to the Customer Notes text specified on the Invoice Settings.

    +
    + +
  • + + +
  • + + + #discount ⇒ Float + + + + + + + + + + + + + + + + +
    +

    Total discounts applied to this invoice.

    +
    + +
  • + + +
  • + + + #due_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Date invoice is due.

    +
    + +
  • + + +
  • + + + #dunning_campaign_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Unique ID to identify the dunning campaign used when dunning the invoice.

    +
    + +
  • + + +
  • + + + #dunning_events_sent ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    Number of times the event was sent.

    +
    + +
  • + + +
  • + + + #final_dunning_event ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    Last communication attempt.

    +
    + +
  • + + +
  • + + + #has_more_line_items ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    Identifies if the invoice has more line items than are returned in `line_items`.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Invoice ID.

    +
    + +
  • + + +
  • + + + #line_items ⇒ Array[LineItem] + + + + + + + + + + + + + + + + +
    +

    Line Items.

    +
    + +
  • + + +
  • + + + #net_terms ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    Integer representing the number of days after an invoice's creation that the invoice will become past due.

    +
    + +
  • + + +
  • + + + #number ⇒ String + + + + + + + + + + + + + + + + +
    +

    If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001).

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #origin ⇒ String + + + + + + + + + + + + + + + + +
    +

    The event that created the invoice.

    +
    + +
  • + + +
  • + + + #paid ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The total amount of successful payments transaction on this invoice.

    +
    + +
  • + + +
  • + + + #po_number ⇒ String + + + + + + + + + + + + + + + + +
    +

    For manual invoicing, this identifies the PO number associated with the subscription.

    +
    + +
  • + + +
  • + + + #previous_invoice_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    On refund invoices, this value will exist and show the invoice ID of the purchase invoice the refund was created from.

    +
    + +
  • + + +
  • + + + #refundable_amount ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The refundable amount on a charge invoice.

    +
    + +
  • + + +
  • + + + #shipping_address ⇒ ShippingAddress + + + + + + + + + + + + + + + + +
    + +
  • + + +
  • + + + #state ⇒ String + + + + + + + + + + + + + + + + +
    +

    Invoice state.

    +
    + +
  • + + +
  • + + + #subscription_ids ⇒ Array[String] + + + + + + + + + + + + + + + + +
    +

    If the invoice is charging or refunding for one or more subscriptions, these are their IDs.

    +
    + +
  • + + +
  • + + + #subtotal ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The summation of charges and credits, before discounts and taxes.

    +
    + +
  • + + +
  • + + + #tax ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The total tax on this invoice.

    +
    + +
  • + + +
  • + + + #tax_info ⇒ TaxInfo + + + + + + + + + + + + + + + + +
    +

    Tax info.

    +
    + +
  • + + +
  • + + + #terms_and_conditions ⇒ String + + + + + + + + + + + + + + + + +
    +

    This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin.

    +
    + +
  • + + +
  • + + + #total ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The final total on this invoice.

    +
    + +
  • + + +
  • + + + #transactions ⇒ Array[Transaction] + + + + + + + + + + + + + + + + +
    +

    Transactions.

    +
    + +
  • + + +
  • + + + #type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Invoices are either charge, credit, or legacy invoices.

    +
    + +
  • + + +
  • + + + #updated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Last updated at.

    +
    + +
  • + + +
  • + + + #used_tax_service ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    Will be `true` when the invoice had a successful response from the tax service and `false` when the invoice was not sent to tax service due to a lack of address or enabled jurisdiction or was processed without tax due to a non-blocking error returned from the tax service.

    +
    + +
  • + + +
  • + + + #uuid ⇒ String + + + + + + + + + + + + + + + + +
    +

    Invoice UUID.

    +
    + +
  • + + +
  • + + + #vat_number ⇒ String + + + + + + + + + + + + + + + + +
    +

    VAT registration number for the customer on this invoice.

    +
    + +
  • + + +
  • + + + #vat_reverse_charge_notes ⇒ String + + + + + + + + + + + + + + + + +
    +

    VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns Account mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    Account mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/invoice.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #addressInvoiceAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/invoice.rb', line 15
+
+define_attribute :address, :InvoiceAddress
+
+
+ + + +
+

+ + #balanceFloat + + + + + +

+
+ +

Returns The outstanding balance remaining on this invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The outstanding balance remaining on this invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/invoice.rb', line 19
+
+define_attribute :balance, Float
+
+
+ + + +
+

+ + #billing_info_idString + + + + + +

+
+ +

Returns The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/invoice.rb', line 23
+
+define_attribute :billing_info_id, String
+
+
+ + + +
+

+ + #closed_atDateTime + + + + + +

+
+ +

Returns Date invoice was marked paid or failed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Date invoice was marked paid or failed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/invoice.rb', line 27
+
+define_attribute :closed_at, DateTime
+
+
+ + + +
+

+ + #collection_methodString + + + + + +

+
+ +

Returns An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created. Manual invoices are created without a corresponding transaction. The merchant must enter a manual payment transaction or have the customer pay the invoice with an automatic method, like credit card, PayPal, Amazon, or ACH bank payment.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created. Manual invoices are created without a corresponding transaction. The merchant must enter a manual payment transaction or have the customer pay the invoice with an automatic method, like credit card, PayPal, Amazon, or ACH bank payment.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/invoice.rb', line 31
+
+define_attribute :collection_method, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/invoice.rb', line 35
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #credit_paymentsArray[CreditPayment] + + + + + +

+
+ +

Returns Credit payments.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[CreditPayment]) + + + + — +
    +

    Credit payments

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/invoice.rb', line 39
+
+define_attribute :credit_payments, Array, { :item_type => :CreditPayment }
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/invoice.rb', line 43
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #customer_notesString + + + + + +

+
+ +

Returns This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/invoice.rb', line 47
+
+define_attribute :customer_notes, String
+
+
+ + + +
+

+ + #discountFloat + + + + + +

+
+ +

Returns Total discounts applied to this invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Total discounts applied to this invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/invoice.rb', line 51
+
+define_attribute :discount, Float
+
+
+ + + +
+

+ + #due_atDateTime + + + + + +

+
+ +

Returns Date invoice is due. This is the date the net terms are reached.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Date invoice is due. This is the date the net terms are reached.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/invoice.rb', line 55
+
+define_attribute :due_at, DateTime
+
+
+ + + +
+

+ + #dunning_campaign_idString + + + + + +

+
+ +

Returns Unique ID to identify the dunning campaign used when dunning the invoice. For sites without multiple dunning campaigns enabled, this will always be the default dunning campaign.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify the dunning campaign used when dunning the invoice. For sites without multiple dunning campaigns enabled, this will always be the default dunning campaign.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/invoice.rb', line 59
+
+define_attribute :dunning_campaign_id, String
+
+
+ + + +
+

+ + #dunning_events_sentInteger + + + + + +

+
+ +

Returns Number of times the event was sent.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Number of times the event was sent.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/invoice.rb', line 63
+
+define_attribute :dunning_events_sent, Integer
+
+
+ + + +
+

+ + #final_dunning_eventBoolean + + + + + +

+
+ +

Returns Last communication attempt.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Last communication attempt.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/invoice.rb', line 67
+
+define_attribute :final_dunning_event, :Boolean
+
+
+ + + +
+

+ + #has_more_line_itemsBoolean + + + + + +

+
+ +

Returns Identifies if the invoice has more line items than are returned in `line_items`. If `has_more_line_items` is `true`, then a request needs to be made to the `list_invoice_line_items` endpoint.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Identifies if the invoice has more line items than are returned in `line_items`. If `has_more_line_items` is `true`, then a request needs to be made to the `list_invoice_line_items` endpoint.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/invoice.rb', line 71
+
+define_attribute :has_more_line_items, :Boolean
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Invoice ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/invoice.rb', line 75
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #line_itemsArray[LineItem] + + + + + +

+
+ +

Returns Line Items.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[LineItem]) + + + + — +
    +

    Line Items

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/invoice.rb', line 79
+
+define_attribute :line_items, Array, { :item_type => :LineItem }
+
+
+ + + +
+

+ + #net_termsInteger + + + + + +

+
+ +

Returns Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/resources/invoice.rb', line 83
+
+define_attribute :net_terms, Integer
+
+
+ + + +
+

+ + #numberString + + + + + +

+
+ +

Returns If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/resources/invoice.rb', line 87
+
+define_attribute :number, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/resources/invoice.rb', line 91
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #originString + + + + + +

+
+ +

Returns The event that created the invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The event that created the invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/resources/invoice.rb', line 95
+
+define_attribute :origin, String
+
+
+ + + +
+
+
+ +

Returns The total amount of successful payments transaction on this invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The total amount of successful payments transaction on this invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/resources/invoice.rb', line 99
+
+define_attribute :paid, Float
+
+
+ + + +
+

+ + #po_numberString + + + + + +

+
+ +

Returns For manual invoicing, this identifies the PO number associated with the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For manual invoicing, this identifies the PO number associated with the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/resources/invoice.rb', line 103
+
+define_attribute :po_number, String
+
+
+ + + +
+

+ + #previous_invoice_idString + + + + + +

+
+ +

Returns On refund invoices, this value will exist and show the invoice ID of the purchase invoice the refund was created from. This field is only populated for sites without the [Only Bill What Changed](docs.recurly.com/docs/only-bill-what-changed) feature enabled. Sites with Only Bill What Changed enabled should use the [related_invoices endpoint](recurly.com/developers/api/v2021-02-25/index.html#operation/list_related_invoices) to see purchase invoices refunded by this invoice.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+107
+
+
# File 'lib/recurly/resources/invoice.rb', line 107
+
+define_attribute :previous_invoice_id, String
+
+
+ + + +
+

+ + #refundable_amountFloat + + + + + +

+
+ +

Returns The refundable amount on a charge invoice. It will be null for all other invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The refundable amount on a charge invoice. It will be null for all other invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+111
+
+
# File 'lib/recurly/resources/invoice.rb', line 111
+
+define_attribute :refundable_amount, Float
+
+
+ + + +
+

+ + #shipping_addressShippingAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+115
+
+
# File 'lib/recurly/resources/invoice.rb', line 115
+
+define_attribute :shipping_address, :ShippingAddress
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns Invoice state.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice state

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+119
+
+
# File 'lib/recurly/resources/invoice.rb', line 119
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #subscription_idsArray[String] + + + + + +

+
+ +

Returns If the invoice is charging or refunding for one or more subscriptions, these are their IDs.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    If the invoice is charging or refunding for one or more subscriptions, these are their IDs.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+123
+
+
# File 'lib/recurly/resources/invoice.rb', line 123
+
+define_attribute :subscription_ids, Array, { :item_type => String }
+
+
+ + + +
+

+ + #subtotalFloat + + + + + +

+
+ +

Returns The summation of charges and credits, before discounts and taxes.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The summation of charges and credits, before discounts and taxes.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+127
+
+
# File 'lib/recurly/resources/invoice.rb', line 127
+
+define_attribute :subtotal, Float
+
+
+ + + +
+

+ + #taxFloat + + + + + +

+
+ +

Returns The total tax on this invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The total tax on this invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+131
+
+
# File 'lib/recurly/resources/invoice.rb', line 131
+
+define_attribute :tax, Float
+
+
+ + + +
+

+ + #tax_infoTaxInfo + + + + + +

+
+ +

Returns Tax info.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (TaxInfo) + + + + — +
    +

    Tax info

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+135
+
+
# File 'lib/recurly/resources/invoice.rb', line 135
+
+define_attribute :tax_info, :TaxInfo
+
+
+ + + +
+

+ + #terms_and_conditionsString + + + + + +

+
+ +

Returns This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Specify custom notes to add or override Terms and Conditions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Specify custom notes to add or override Terms and Conditions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+139
+
+
# File 'lib/recurly/resources/invoice.rb', line 139
+
+define_attribute :terms_and_conditions, String
+
+
+ + + +
+

+ + #totalFloat + + + + + +

+
+ +

Returns The final total on this invoice. The summation of invoice charges, discounts, credits, and tax.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The final total on this invoice. The summation of invoice charges, discounts, credits, and tax.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+143
+
+
# File 'lib/recurly/resources/invoice.rb', line 143
+
+define_attribute :total, Float
+
+
+ + + +
+

+ + #transactionsArray[Transaction] + + + + + +

+
+ +

Returns Transactions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[Transaction]) + + + + — +
    +

    Transactions

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+147
+
+
# File 'lib/recurly/resources/invoice.rb', line 147
+
+define_attribute :transactions, Array, { :item_type => :Transaction }
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns Invoices are either charge, credit, or legacy invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoices are either charge, credit, or legacy invoices.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+151
+
+
# File 'lib/recurly/resources/invoice.rb', line 151
+
+define_attribute :type, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+155
+
+
# File 'lib/recurly/resources/invoice.rb', line 155
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #used_tax_serviceBoolean + + + + + +

+
+ +

Returns Will be `true` when the invoice had a successful response from the tax service and `false` when the invoice was not sent to tax service due to a lack of address or enabled jurisdiction or was processed without tax due to a non-blocking error returned from the tax service.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Will be `true` when the invoice had a successful response from the tax service and `false` when the invoice was not sent to tax service due to a lack of address or enabled jurisdiction or was processed without tax due to a non-blocking error returned from the tax service.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+159
+
+
# File 'lib/recurly/resources/invoice.rb', line 159
+
+define_attribute :used_tax_service, :Boolean
+
+
+ + + +
+

+ + #uuidString + + + + + +

+
+ +

Returns Invoice UUID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice UUID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+163
+
+
# File 'lib/recurly/resources/invoice.rb', line 163
+
+define_attribute :uuid, String
+
+
+ + + +
+

+ + #vat_numberString + + + + + +

+
+ +

Returns VAT registration number for the customer on this invoice. This will come from the VAT Number field in the Billing Info or the Account Info depending on your tax settings and the invoice collection method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    VAT registration number for the customer on this invoice. This will come from the VAT Number field in the Billing Info or the Account Info depending on your tax settings and the invoice collection method.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+167
+
+
# File 'lib/recurly/resources/invoice.rb', line 167
+
+define_attribute :vat_number, String
+
+
+ + + +
+

+ + #vat_reverse_charge_notesString + + + + + +

+
+ +

Returns VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+171
+
+
# File 'lib/recurly/resources/invoice.rb', line 171
+
+define_attribute :vat_reverse_charge_notes, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/InvoiceAddress.html b/Recurly/Resources/InvoiceAddress.html new file mode 100644 index 000000000..9e96bfe8b --- /dev/null +++ b/Recurly/Resources/InvoiceAddress.html @@ -0,0 +1,1106 @@ + + + + + + + Class: Recurly::Resources::InvoiceAddress + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::InvoiceAddress + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/invoice_address.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

+ + + +
+

+ + #cityString + + + + + +

+
+ +

Returns City.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    City

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 11
+
+define_attribute :city, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ +

Returns Company.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Company

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 15
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #countryString + + + + + +

+
+ +

Returns Country, 2-letter ISO 3166-1 alpha-2 code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Country, 2-letter ISO 3166-1 alpha-2 code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 19
+
+define_attribute :country, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ +

Returns First name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    First name

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 23
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ +

Returns Last name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Last name

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 27
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #name_on_accountString + + + + + +

+
+ +

Returns Name on account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Name on account

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 31
+
+define_attribute :name_on_account, String
+
+
+ + + +
+

+ + #phoneString + + + + + +

+
+ +

Returns Phone number.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Phone number

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 35
+
+define_attribute :phone, String
+
+
+ + + +
+

+ + #postal_codeString + + + + + +

+
+ +

Returns Zip or postal code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Zip or postal code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 39
+
+define_attribute :postal_code, String
+
+
+ + + +
+

+ + #regionString + + + + + +

+
+ +

Returns State or province.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    State or province.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 43
+
+define_attribute :region, String
+
+
+ + + +
+

+ + #street1String + + + + + +

+
+ +

Returns Street 1.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Street 1

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 47
+
+define_attribute :street1, String
+
+
+ + + +
+

+ + #street2String + + + + + +

+
+ +

Returns Street 2.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Street 2

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/invoice_address.rb', line 51
+
+define_attribute :street2, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/InvoiceCollection.html b/Recurly/Resources/InvoiceCollection.html new file mode 100644 index 000000000..e45873228 --- /dev/null +++ b/Recurly/Resources/InvoiceCollection.html @@ -0,0 +1,425 @@ + + + + + + + Class: Recurly::Resources::InvoiceCollection + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::InvoiceCollection + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/invoice_collection.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

+ + + +
+

+ + #charge_invoiceInvoice + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/invoice_collection.rb', line 11
+
+define_attribute :charge_invoice, :Invoice
+
+
+ + + +
+

+ + #credit_invoicesArray[Invoice] + + + + + +

+
+ +

Returns Credit invoices.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[Invoice]) + + + + — +
    +

    Credit invoices

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/invoice_collection.rb', line 15
+
+define_attribute :credit_invoices, Array, { :item_type => :Invoice }
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/invoice_collection.rb', line 19
+
+define_attribute :object, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/InvoiceMini.html b/Recurly/Resources/InvoiceMini.html new file mode 100644 index 000000000..553a68cc4 --- /dev/null +++ b/Recurly/Resources/InvoiceMini.html @@ -0,0 +1,602 @@ + + + + + + + Class: Recurly::Resources::InvoiceMini + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::InvoiceMini + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/invoice_mini.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

+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Invoice ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/invoice_mini.rb', line 11
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #numberString + + + + + +

+
+ +

Returns Invoice number.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice number

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/invoice_mini.rb', line 15
+
+define_attribute :number, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/invoice_mini.rb', line 19
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns Invoice state.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice state

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/invoice_mini.rb', line 23
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns Invoice type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/invoice_mini.rb', line 27
+
+define_attribute :type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/InvoiceTemplate.html b/Recurly/Resources/InvoiceTemplate.html new file mode 100644 index 000000000..49648d50c --- /dev/null +++ b/Recurly/Resources/InvoiceTemplate.html @@ -0,0 +1,677 @@ + + + + + + + Class: Recurly::Resources::InvoiceTemplate + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::InvoiceTemplate + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #code ⇒ String + + + + + + + + + + + + + + + + +
    +

    Invoice template code.

    +
    + +
  • + + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the invoice template was created in Recurly.

    +
    + +
  • + + +
  • + + + #description ⇒ String + + + + + + + + + + + + + + + + +
    +

    Invoice template description.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    + +
  • + + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

    Invoice template name.

    +
    + +
  • + + +
  • + + + #updated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the invoice template was updated in Recurly.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns Invoice template code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice template code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/invoice_template.rb', line 11
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the invoice template was created in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the invoice template was created in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/invoice_template.rb', line 15
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Invoice template description.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice template description.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/invoice_template.rb', line 19
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/invoice_template.rb', line 23
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Invoice template name.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Invoice template name.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/invoice_template.rb', line 27
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the invoice template was updated in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the invoice template was updated in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/invoice_template.rb', line 31
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Item.html b/Recurly/Resources/Item.html new file mode 100644 index 000000000..ec49d40c2 --- /dev/null +++ b/Recurly/Resources/Item.html @@ -0,0 +1,1694 @@ + + + + + + + Class: Recurly::Resources::Item + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

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
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Item ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Item ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/item.rb', line 51
+
+define_attribute :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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/item.rb', line 55
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/item.rb', line 59
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/item.rb', line 63
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns The current state of the item.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The current state of the item.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/item.rb', line 67
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/item.rb', line 71
+
+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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/item.rb', line 75
+
+define_attribute :tax_exempt, :Boolean
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/item.rb', line 79
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ItemMini.html b/Recurly/Resources/ItemMini.html new file mode 100644 index 000000000..e93844103 --- /dev/null +++ b/Recurly/Resources/ItemMini.html @@ -0,0 +1,686 @@ + + + + + + + Class: Recurly::Resources::ItemMini + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ItemMini + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #code ⇒ String + + + + + + + + + + + + + + + + +
    +

    Unique code to identify the item.

    +
    + +
  • + + +
  • + + + #description ⇒ String + + + + + + + + + + + + + + + + +
    +

    Optional, description.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Item ID.

    +
    + +
  • + + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

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

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #state ⇒ String + + + + + + + + + + + + + + + + +
    +

    The current state of the item.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns Unique code to identify the item.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique code to identify the item.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/item_mini.rb', line 11
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Optional, description.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional, description.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/item_mini.rb', line 15
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Item ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Item ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/item_mini.rb', line 19
+
+define_attribute :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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/item_mini.rb', line 23
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/item_mini.rb', line 27
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns The current state of the item.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The current state of the item.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/item_mini.rb', line 31
+
+define_attribute :state, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/LineItem.html b/Recurly/Resources/LineItem.html new file mode 100644 index 000000000..4fa3b6f73 --- /dev/null +++ b/Recurly/Resources/LineItem.html @@ -0,0 +1,4625 @@ + + + + + + + Class: Recurly::Resources::LineItem + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::LineItem + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #account ⇒ AccountMini + + + + + + + + + + + + + + + + +
    +

    Account mini details.

    +
    + +
  • + + +
  • + + + #accounting_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    Internal accounting code to help you reconcile your revenue to the correct ledger.

    +
    + +
  • + + +
  • + + + #add_on_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    If the line item is a charge or credit for an add-on, this is its code.

    +
    + +
  • + + +
  • + + + #add_on_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    If the line item is a charge or credit for an add-on this is its ID.

    +
    + +
  • + + +
  • + + + #amount ⇒ Float + + + + + + + + + + + + + + + + +
    +

    `(quantity * unit_amount) - (discount + tax)`.

    +
    + +
  • + + +
  • + + + #avalara_service_type ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    Used by Avalara for Communications taxes.

    +
    + +
  • + + +
  • + + + #avalara_transaction_type ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    Used by Avalara for Communications taxes.

    +
    + +
  • + + +
  • + + + #bill_for_account_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    The UUID of the account responsible for originating the line item.

    +
    + +
  • + + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the line item was created.

    +
    + +
  • + + +
  • + + + #credit_applied ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The amount of credit from this line item that was applied to the invoice.

    +
    + +
  • + + +
  • + + + #credit_reason_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    The reason the credit was given when line item is `type=credit`.

    +
    + +
  • + + +
  • + + + #currency ⇒ String + + + + + + + + + + + + + + + + +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + + +
  • + + + #custom_fields ⇒ Array[CustomField] + + + + + + + + + + + + + + + + +
    +

    The custom fields will only be altered when they are included in a request.

    +
    + +
  • + + +
  • + + + #description ⇒ String + + + + + + + + + + + + + + + + +
    +

    Description that appears on the invoice.

    +
    + +
  • + + +
  • + + + #discount ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The discount applied to the line item.

    +
    + +
  • + + +
  • + + + #end_date ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    If this date is provided, it indicates the end of a time range.

    +
    + +
  • + + +
  • + + + #external_sku ⇒ String + + + + + + + + + + + + + + + + +
    +

    Optional Stock Keeping Unit assigned to an item.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Line item ID.

    +
    + +
  • + + +
  • + + + #invoice_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Once the line item has been invoiced this will be the invoice's ID.

    +
    + +
  • + + +
  • + + + #invoice_number ⇒ String + + + + + + + + + + + + + + + + +
    +

    Once the line item has been invoiced this will be the invoice's number.

    +
    + +
  • + + +
  • + + + #item_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    Unique code to identify an item.

    +
    + +
  • + + +
  • + + + #item_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    System-generated unique identifier for an item.

    +
    + +
  • + + +
  • + + + #legacy_category ⇒ String + + + + + + + + + + + + + + + + +
    +

    Category to describe the role of a line item on a legacy invoice: - “charges” refers to charges being billed for on this invoice.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #origin ⇒ String + + + + + + + + + + + + + + + + +
    +

    A credit created from an original charge will have the value of the charge's origin.

    +
    + +
  • + + +
  • + + + #original_line_item_invoice_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    The invoice where the credit originated.

    +
    + +
  • + + +
  • + + + #plan_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    If the line item is a charge or credit for a plan or add-on, this is the plan's code.

    +
    + +
  • + + +
  • + + + #plan_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    If the line item is a charge or credit for a plan or add-on, this is the plan's ID.

    +
    + +
  • + + +
  • + + + #previous_line_item_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Will only have a value if the line item is a credit created from a previous credit, or if the credit was created from a charge refund.

    +
    + +
  • + + +
  • + + + #product_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    For plan-related line items this will be the plan's code, for add-on related line items it will be the add-on's code.

    +
    + +
  • + + +
  • + + + #proration_rate ⇒ Float + + + + + + + + + + + + + + + + +
    +

    When a line item has been prorated, this is the rate of the proration.

    +
    + +
  • + + +
  • + + + #quantity ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    This number will be multiplied by the unit amount to compute the subtotal before any discounts or taxes.

    +
    + +
  • + + +
  • + + + #quantity_decimal ⇒ String + + + + + + + + + + + + + + + + +
    +

    A floating-point alternative to Quantity.

    +
    + +
  • + + +
  • + + + #refund ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    Refund?.

    +
    + +
  • + + +
  • + + + #refunded_quantity ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    For refund charges, the quantity being refunded.

    +
    + +
  • + + +
  • + + + #refunded_quantity_decimal ⇒ String + + + + + + + + + + + + + + + + +
    +

    A floating-point alternative to Refunded Quantity.

    +
    + +
  • + + +
  • + + + #revenue_schedule_type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Revenue schedule type.

    +
    + +
  • + + +
  • + + + #shipping_address ⇒ ShippingAddress + + + + + + + + + + + + + + + + +
    + +
  • + + +
  • + + + #start_date ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    If an end date is present, this is value indicates the beginning of a billing time range.

    +
    + +
  • + + +
  • + + + #state ⇒ String + + + + + + + + + + + + + + + + +
    +

    Pending line items are charges or credits on an account that have not been applied to an invoice yet.

    +
    + +
  • + + +
  • + + + #subscription_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    If the line item is a charge or credit for a subscription, this is its ID.

    +
    + +
  • + + +
  • + + + #subtotal ⇒ Float + + + + + + + + + + + + + + + + +
    +

    `quantity * unit_amount`.

    +
    + +
  • + + +
  • + + + #tax ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The tax amount for the line item.

    +
    + +
  • + + +
  • + + + #tax_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    Used by Avalara, Vertex, and Recurly’s EU VAT tax feature.

    +
    + +
  • + + +
  • + + + #tax_exempt ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    `true` exempts tax on charges, `false` applies tax on charges.

    +
    + +
  • + + +
  • + + + #tax_inclusive ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    Determines whether or not tax is included in the unit amount.

    +
    + +
  • + + +
  • + + + #tax_info ⇒ TaxInfo + + + + + + + + + + + + + + + + +
    +

    Tax info.

    +
    + +
  • + + +
  • + + + #taxable ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    `true` if the line item is taxable, `false` if it is not.

    +
    + +
  • + + +
  • + + + #type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Charges are positive line items that debit the account.

    +
    + +
  • + + +
  • + + + #unit_amount ⇒ Float + + + + + + + + + + + + + + + + +
    +

    Positive amount for a charge, negative amount for a credit.

    +
    + +
  • + + +
  • + + + #unit_amount_decimal ⇒ String + + + + + + + + + + + + + + + + +
    +

    Positive amount for a charge, negative amount for a credit.

    +
    + +
  • + + +
  • + + + #updated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    When the line item was last changed.

    +
    + +
  • + + +
  • + + + #uuid ⇒ String + + + + + + + + + + + + + + + + +
    +

    The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns Account mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    Account mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/line_item.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #accounting_codeString + + + + + +

+
+ +

Returns Internal accounting code to help you reconcile your revenue to the correct ledger. Line items created as part of a subscription invoice will use the plan or add-on's accounting code, otherwise the value will only be present if you define an accounting code when creating the line item.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Internal accounting code to help you reconcile your revenue to the correct ledger. Line items created as part of a subscription invoice will use the plan or add-on's accounting code, otherwise the value will only be present if you define an accounting code when creating the line item.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/line_item.rb', line 15
+
+define_attribute :accounting_code, String
+
+
+ + + +
+

+ + #add_on_codeString + + + + + +

+
+ +

Returns If the line item is a charge or credit for an add-on, this is its code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If the line item is a charge or credit for an add-on, this is its code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/line_item.rb', line 19
+
+define_attribute :add_on_code, String
+
+
+ + + +
+

+ + #add_on_idString + + + + + +

+
+ +

Returns If the line item is a charge or credit for an add-on this is its ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If the line item is a charge or credit for an add-on this is its ID.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/line_item.rb', line 23
+
+define_attribute :add_on_id, String
+
+
+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns `(quantity * unit_amount) - (discount + tax)`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    `(quantity * unit_amount) - (discount + tax)`

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/line_item.rb', line 27
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #avalara_service_typeInteger + + + + + +

+
+ +

Returns Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the line 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:

+ + +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/line_item.rb', line 31
+
+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 line 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:

+ + +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/line_item.rb', line 35
+
+define_attribute :avalara_transaction_type, Integer
+
+
+ + + +
+

+ + #bill_for_account_idString + + + + + +

+
+ +

Returns The UUID of the account responsible for originating the line item.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The UUID of the account responsible for originating the line item.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/line_item.rb', line 39
+
+define_attribute :bill_for_account_id, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the line item was created.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the line item was created.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/line_item.rb', line 43
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #credit_appliedFloat + + + + + +

+
+ +

Returns The amount of credit from this line item that was applied to the invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The amount of credit from this line item that was applied to the invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/line_item.rb', line 47
+
+define_attribute :credit_applied, Float
+
+
+ + + +
+

+ + #credit_reason_codeString + + + + + +

+
+ +

Returns The reason the credit was given when line item is `type=credit`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The reason the credit was given when line item is `type=credit`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/line_item.rb', line 51
+
+define_attribute :credit_reason_code, String
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/line_item.rb', line 55
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/line_item.rb', line 59
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Description that appears on the invoice. For subscription related items this will be filled in automatically.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Description that appears on the invoice. For subscription related items this will be filled in automatically.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/line_item.rb', line 63
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #discountFloat + + + + + +

+
+ +

Returns The discount applied to the line item.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The discount applied to the line item.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/line_item.rb', line 67
+
+define_attribute :discount, Float
+
+
+ + + +
+

+ + #end_dateDateTime + + + + + +

+
+ +

Returns If this date is provided, it indicates the end of a time range.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If this date is provided, it indicates the end of a time range.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/line_item.rb', line 71
+
+define_attribute :end_date, DateTime
+
+
+ + + +
+

+ + #external_skuString + + + + + +

+
+ +

Returns Optional Stock Keeping Unit assigned to an item. Available when the Credit Invoices feature is enabled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional Stock Keeping Unit assigned to an item. Available when the Credit Invoices feature is enabled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/line_item.rb', line 75
+
+define_attribute :external_sku, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Line item ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Line item ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/line_item.rb', line 79
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #invoice_idString + + + + + +

+
+ +

Returns Once the line item has been invoiced this will be the invoice's ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Once the line item has been invoiced this will be the invoice's ID.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/resources/line_item.rb', line 83
+
+define_attribute :invoice_id, String
+
+
+ + + +
+

+ + #invoice_numberString + + + + + +

+
+ +

Returns Once the line item has been invoiced this will be the invoice's number. If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Once the line item has been invoiced this will be the invoice's number. If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/resources/line_item.rb', line 87
+
+define_attribute :invoice_number, String
+
+
+ + + +
+

+ + #item_codeString + + + + + +

+
+ +

Returns Unique code to identify an item. Available when the Credit Invoices feature is enabled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique code to identify an item. Available when the Credit Invoices feature is enabled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/resources/line_item.rb', line 91
+
+define_attribute :item_code, String
+
+
+ + + +
+

+ + #item_idString + + + + + +

+
+ +

Returns System-generated unique identifier for an item. Available when the Credit Invoices feature is enabled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    System-generated unique identifier for an item. Available when the Credit Invoices feature is enabled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/resources/line_item.rb', line 95
+
+define_attribute :item_id, String
+
+
+ + + +
+

+ + #legacy_categoryString + + + + + +

+
+ +

Returns Category to describe the role of a line item on a legacy invoice: - “charges” refers to charges being billed for on this invoice. - “credits” refers to refund or proration credits. This portion of the invoice can be considered a credit memo. - “applied_credits” refers to previous credits applied to this invoice. See their original_line_item_id to determine where the credit first originated. - “carryforwards” can be ignored. They exist to consume any remaining credit balance. A new credit with the same amount will be created and placed back on the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Category to describe the role of a line item on a legacy invoice: - “charges” refers to charges being billed for on this invoice. - “credits” refers to refund or proration credits. This portion of the invoice can be considered a credit memo. - “applied_credits” refers to previous credits applied to this invoice. See their original_line_item_id to determine where the credit first originated. - “carryforwards” can be ignored. They exist to consume any remaining credit balance. A new credit with the same amount will be created and placed back on the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/resources/line_item.rb', line 99
+
+define_attribute :legacy_category, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/resources/line_item.rb', line 103
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #originString + + + + + +

+
+ +

Returns A credit created from an original charge will have the value of the charge's origin.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A credit created from an original charge will have the value of the charge's origin.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+107
+
+
# File 'lib/recurly/resources/line_item.rb', line 107
+
+define_attribute :origin, String
+
+
+ + + +
+

+ + #original_line_item_invoice_idString + + + + + +

+
+ +

Returns The invoice where the credit originated. Will only have a value if the line item is a credit created from a previous credit, or if the credit was created from a charge refund.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The invoice where the credit originated. Will only have a value if the line item is a credit created from a previous credit, or if the credit was created from a charge refund.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+111
+
+
# File 'lib/recurly/resources/line_item.rb', line 111
+
+define_attribute :original_line_item_invoice_id, String
+
+
+ + + +
+

+ + #plan_codeString + + + + + +

+
+ +

Returns If the line item is a charge or credit for a plan or add-on, this is the plan's code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If the line item is a charge or credit for a plan or add-on, this is the plan's code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+115
+
+
# File 'lib/recurly/resources/line_item.rb', line 115
+
+define_attribute :plan_code, String
+
+
+ + + +
+

+ + #plan_idString + + + + + +

+
+ +

Returns If the line item is a charge or credit for a plan or add-on, this is the plan's ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If the line item is a charge or credit for a plan or add-on, this is the plan's ID.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+119
+
+
# File 'lib/recurly/resources/line_item.rb', line 119
+
+define_attribute :plan_id, String
+
+
+ + + +
+

+ + #previous_line_item_idString + + + + + +

+
+ +

Returns Will only have a value if the line item is a credit created from a previous credit, or if the credit was created from a charge refund.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Will only have a value if the line item is a credit created from a previous credit, or if the credit was created from a charge refund.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+123
+
+
# File 'lib/recurly/resources/line_item.rb', line 123
+
+define_attribute :previous_line_item_id, String
+
+
+ + + +
+

+ + #product_codeString + + + + + +

+
+ +

Returns For plan-related line items this will be the plan's code, for add-on related line items it will be the add-on's code. For item-related line items it will be the item's `external_sku`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For plan-related line items this will be the plan's code, for add-on related line items it will be the add-on's code. For item-related line items it will be the item's `external_sku`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+127
+
+
# File 'lib/recurly/resources/line_item.rb', line 127
+
+define_attribute :product_code, String
+
+
+ + + +
+

+ + #proration_rateFloat + + + + + +

+
+ +

Returns When a line item has been prorated, this is the rate of the proration. Proration rates were made available for line items created after March 30, 2017. For line items created prior to that date, the proration rate will be `null`, even if the line item was prorated.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    When a line item has been prorated, this is the rate of the proration. Proration rates were made available for line items created after March 30, 2017. For line items created prior to that date, the proration rate will be `null`, even if the line item was prorated.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+131
+
+
# File 'lib/recurly/resources/line_item.rb', line 131
+
+define_attribute :proration_rate, Float
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns This number will be multiplied by the unit amount to compute the subtotal before any discounts or taxes.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    This number will be multiplied by the unit amount to compute the subtotal before any discounts or taxes.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+135
+
+
# File 'lib/recurly/resources/line_item.rb', line 135
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #quantity_decimalString + + + + + +

+
+ +

Returns A floating-point alternative to Quantity. If this value is present, it will be used in place of Quantity for calculations, and Quantity will be the rounded integer value of this number. This field supports up to 9 decimal places. The Decimal Quantity feature must be enabled to utilize this field.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A floating-point alternative to Quantity. If this value is present, it will be used in place of Quantity for calculations, and Quantity will be the rounded integer value of this number. This field supports up to 9 decimal places. The Decimal Quantity feature must be enabled to utilize this field.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+139
+
+
# File 'lib/recurly/resources/line_item.rb', line 139
+
+define_attribute :quantity_decimal, String
+
+
+ + + +
+

+ + #refundBoolean + + + + + +

+
+ +

Returns Refund?.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Refund?

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+143
+
+
# File 'lib/recurly/resources/line_item.rb', line 143
+
+define_attribute :refund, :Boolean
+
+
+ + + +
+

+ + #refunded_quantityInteger + + + + + +

+
+ +

Returns For refund charges, the quantity being refunded. For non-refund charges, the total quantity refunded (possibly over multiple refunds).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    For refund charges, the quantity being refunded. For non-refund charges, the total quantity refunded (possibly over multiple refunds).

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+147
+
+
# File 'lib/recurly/resources/line_item.rb', line 147
+
+define_attribute :refunded_quantity, Integer
+
+
+ + + +
+

+ + #refunded_quantity_decimalString + + + + + +

+
+ +

Returns A floating-point alternative to Refunded Quantity. For refund charges, the quantity being refunded. For non-refund charges, the total quantity refunded (possibly over multiple refunds). The Decimal Quantity feature must be enabled to utilize this field.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A floating-point alternative to Refunded Quantity. For refund charges, the quantity being refunded. For non-refund charges, the total quantity refunded (possibly over multiple refunds). The Decimal Quantity feature must be enabled to utilize this field.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+151
+
+
# File 'lib/recurly/resources/line_item.rb', line 151
+
+define_attribute :refunded_quantity_decimal, String
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+155
+
+
# File 'lib/recurly/resources/line_item.rb', line 155
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #shipping_addressShippingAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+159
+
+
# File 'lib/recurly/resources/line_item.rb', line 159
+
+define_attribute :shipping_address, :ShippingAddress
+
+
+ + + +
+

+ + #start_dateDateTime + + + + + +

+
+ +

Returns If an end date is present, this is value indicates the beginning of a billing time range. If no end date is present it indicates billing for a specific date.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    If an end date is present, this is value indicates the beginning of a billing time range. If no end date is present it indicates billing for a specific date.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+163
+
+
# File 'lib/recurly/resources/line_item.rb', line 163
+
+define_attribute :start_date, DateTime
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns Pending line items are charges or credits on an account that have not been applied to an invoice yet. Invoiced line items will always have an `invoice_id` value.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Pending line items are charges or credits on an account that have not been applied to an invoice yet. Invoiced line items will always have an `invoice_id` value.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+167
+
+
# File 'lib/recurly/resources/line_item.rb', line 167
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #subscription_idString + + + + + +

+
+ +

Returns If the line item is a charge or credit for a subscription, this is its ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If the line item is a charge or credit for a subscription, this is its ID.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+171
+
+
# File 'lib/recurly/resources/line_item.rb', line 171
+
+define_attribute :subscription_id, String
+
+
+ + + +
+

+ + #subtotalFloat + + + + + +

+
+ +

Returns `quantity * unit_amount`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    `quantity * unit_amount`

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+175
+
+
# File 'lib/recurly/resources/line_item.rb', line 175
+
+define_attribute :subtotal, Float
+
+
+ + + +
+

+ + #taxFloat + + + + + +

+
+ +

Returns The tax amount for the line item.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The tax amount for the line item.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+179
+
+
# File 'lib/recurly/resources/line_item.rb', line 179
+
+define_attribute :tax, Float
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+183
+
+
# File 'lib/recurly/resources/line_item.rb', line 183
+
+define_attribute :tax_code, String
+
+
+ + + +
+

+ + #tax_exemptBoolean + + + + + +

+
+ +

Returns `true` exempts tax on charges, `false` applies tax on charges. If not defined, then defaults to the Plan and Site settings. This attribute does not work for credits (negative line items). Credits are always applied post-tax. Pre-tax discounts should use the Coupons feature.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    `true` exempts tax on charges, `false` applies tax on charges. If not defined, then defaults to the Plan and Site settings. This attribute does not work for credits (negative line items). Credits are always applied post-tax. Pre-tax discounts should use the Coupons feature.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+187
+
+
# File 'lib/recurly/resources/line_item.rb', line 187
+
+define_attribute :tax_exempt, :Boolean
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to utilize this flag.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to utilize this flag.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+191
+
+
# File 'lib/recurly/resources/line_item.rb', line 191
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #tax_infoTaxInfo + + + + + +

+
+ +

Returns Tax info.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (TaxInfo) + + + + — +
    +

    Tax info

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+195
+
+
# File 'lib/recurly/resources/line_item.rb', line 195
+
+define_attribute :tax_info, :TaxInfo
+
+
+ + + +
+

+ + #taxableBoolean + + + + + +

+
+ +

Returns `true` if the line item is taxable, `false` if it is not.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    `true` if the line item is taxable, `false` if it is not.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+199
+
+
# File 'lib/recurly/resources/line_item.rb', line 199
+
+define_attribute :taxable, :Boolean
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns Charges are positive line items that debit the account. Credits are negative line items that credit the account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Charges are positive line items that debit the account. Credits are negative line items that credit the account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+203
+
+
# File 'lib/recurly/resources/line_item.rb', line 203
+
+define_attribute :type, String
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Positive amount for a charge, negative amount for a credit.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Positive amount for a charge, negative amount for a credit.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+207
+
+
# File 'lib/recurly/resources/line_item.rb', line 207
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Positive amount for a charge, negative amount for a credit.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Positive amount for a charge, negative amount for a credit.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+211
+
+
# File 'lib/recurly/resources/line_item.rb', line 211
+
+define_attribute :unit_amount_decimal, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the line item was last changed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the line item was last changed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+215
+
+
# File 'lib/recurly/resources/line_item.rb', line 215
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #uuidString + + + + + +

+
+ +

Returns The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+219
+
+
# File 'lib/recurly/resources/line_item.rb', line 219
+
+define_attribute :uuid, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/MeasuredUnit.html b/Recurly/Resources/MeasuredUnit.html new file mode 100644 index 000000000..9df5e89c2 --- /dev/null +++ b/Recurly/Resources/MeasuredUnit.html @@ -0,0 +1,938 @@ + + + + + + + Class: Recurly::Resources::MeasuredUnit + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::MeasuredUnit + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/measured_unit.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

+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/measured_unit.rb', line 11
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #deleted_atDateTime + + + + + +

+
+ +

Returns Deleted at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Deleted at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/measured_unit.rb', line 15
+
+define_attribute :deleted_at, DateTime
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Optional internal description.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional internal description.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/measured_unit.rb', line 19
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #display_nameString + + + + + +

+
+ +

Returns Display name for the measured unit. Can only contain spaces, underscores and must be alphanumeric.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Display name for the measured unit. Can only contain spaces, underscores and must be alphanumeric.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/measured_unit.rb', line 23
+
+define_attribute :display_name, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Item ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Item ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/measured_unit.rb', line 27
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns Unique internal name of the measured unit on your site.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique internal name of the measured unit on your site.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/measured_unit.rb', line 31
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/measured_unit.rb', line 35
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns The current state of the measured unit.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The current state of the measured unit.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/measured_unit.rb', line 39
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/measured_unit.rb', line 43
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Page.html b/Recurly/Resources/Page.html new file mode 100644 index 000000000..f0da09248 --- /dev/null +++ b/Recurly/Resources/Page.html @@ -0,0 +1,172 @@ + + + + + + + Class: Recurly::Resources::Page + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Page + + + +

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

Instance Attribute Summary

+ +

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!

+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/PaymentMethod.html b/Recurly/Resources/PaymentMethod.html new file mode 100644 index 000000000..0bbe85943 --- /dev/null +++ b/Recurly/Resources/PaymentMethod.html @@ -0,0 +1,1517 @@ + + + + + + + Class: Recurly::Resources::PaymentMethod + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::PaymentMethod + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/payment_method.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

+ + + +
+

+ + #account_typeString + + + + + +

+
+ +

Returns The bank account type. Only present for ACH payment methods.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The bank account type. Only present for ACH payment methods.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/payment_method.rb', line 11
+
+define_attribute :account_type, String
+
+
+ + + +
+

+ + #billing_agreement_idString + + + + + +

+
+ +

Returns Billing Agreement identifier. Only present for Amazon or Paypal payment methods.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Billing Agreement identifier. Only present for Amazon or Paypal payment methods.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/payment_method.rb', line 15
+
+define_attribute :billing_agreement_id, String
+
+
+ + + +
+

+ + #card_typeString + + + + + +

+
+ +

Returns Visa, MasterCard, American Express, Discover, JCB, etc.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Visa, MasterCard, American Express, Discover, JCB, etc.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/payment_method.rb', line 19
+
+define_attribute :card_type, String
+
+
+ + + +
+

+ + #cc_bin_countryString + + + + + +

+
+ +

Returns The 2-letter ISO 3166-1 alpha-2 country code associated with the credit card BIN, if known by Recurly. Available on the BillingInfo object only. Available when the BIN country lookup feature is enabled.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The 2-letter ISO 3166-1 alpha-2 country code associated with the credit card BIN, if known by Recurly. Available on the BillingInfo object only. Available when the BIN country lookup feature is enabled.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/payment_method.rb', line 23
+
+define_attribute :cc_bin_country, String
+
+
+ + + +
+

+ + #exp_monthInteger + + + + + +

+
+ +

Returns Expiration month.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Expiration month.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/payment_method.rb', line 27
+
+define_attribute :exp_month, Integer
+
+
+ + + +
+

+ + #exp_yearInteger + + + + + +

+
+ +

Returns Expiration year.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Expiration year.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/payment_method.rb', line 31
+
+define_attribute :exp_year, Integer
+
+
+ + + +
+

+ + #first_sixString + + + + + +

+
+ +

Returns Credit card number's first six digits.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Credit card number's first six digits.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/payment_method.rb', line 35
+
+define_attribute :first_six, String
+
+
+ + + +
+

+ + #gateway_codeString + + + + + +

+
+ +

Returns An identifier for a specific payment gateway.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    An identifier for a specific payment gateway.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/payment_method.rb', line 39
+
+define_attribute :gateway_code, String
+
+
+ + + +
+

+ + #gateway_tokenString + + + + + +

+
+ +

Returns A token used in place of a credit card in order to perform transactions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A token used in place of a credit card in order to perform transactions.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/payment_method.rb', line 43
+
+define_attribute :gateway_token, String
+
+
+ + + +
+

+ + #last_fourString + + + + + +

+
+ +

Returns Credit card number's last four digits. Will refer to bank account if payment method is ACH.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Credit card number's last four digits. Will refer to bank account if payment method is ACH.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/payment_method.rb', line 47
+
+define_attribute :last_four, String
+
+
+ + + +
+

+ + #last_twoString + + + + + +

+
+ +

Returns The IBAN bank account's last two digits.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The IBAN bank account's last two digits.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/payment_method.rb', line 51
+
+define_attribute :last_two, String
+
+
+ + + +
+

+ + #name_on_accountString + + + + + +

+
+ +

Returns The name associated with the bank account.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The name associated with the bank account.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/payment_method.rb', line 55
+
+define_attribute :name_on_account, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/payment_method.rb', line 59
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #routing_numberString + + + + + +

+
+ +

Returns The bank account's routing number. Only present for ACH payment methods.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The bank account's routing number. Only present for ACH payment methods.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/payment_method.rb', line 63
+
+define_attribute :routing_number, String
+
+
+ + + +
+

+ + #routing_number_bankString + + + + + +

+
+ +

Returns The bank name of this routing number.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The bank name of this routing number.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/payment_method.rb', line 67
+
+define_attribute :routing_number_bank, String
+
+
+ + + +
+

+ + #usernameString + + + + + +

+
+ +

Returns Username of the associated payment method. Currently only associated with Venmo.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Username of the associated payment method. Currently only associated with Venmo.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/payment_method.rb', line 71
+
+define_attribute :username, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/PercentageTier.html b/Recurly/Resources/PercentageTier.html new file mode 100644 index 000000000..a2f3ed78a --- /dev/null +++ b/Recurly/Resources/PercentageTier.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::PercentageTier + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::PercentageTier + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/percentage_tier.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

+ + + +
+

+ + #ending_amountFloat + + + + + +

+
+ +

Returns Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/percentage_tier.rb', line 11
+
+define_attribute :ending_amount, Float
+
+
+ + + +
+

+ + #usage_percentageString + + + + + +

+
+ +

Returns The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places represented as a string.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places represented as a string.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/percentage_tier.rb', line 15
+
+define_attribute :usage_percentage, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/PercentageTiersByCurrency.html b/Recurly/Resources/PercentageTiersByCurrency.html new file mode 100644 index 000000000..4c0142921 --- /dev/null +++ b/Recurly/Resources/PercentageTiersByCurrency.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::PercentageTiersByCurrency + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::PercentageTiersByCurrency + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/percentage_tiers_by_currency.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/percentage_tiers_by_currency.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #tiersArray[PercentageTier] + + + + + +

+
+ +

Returns Tiers.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/percentage_tiers_by_currency.rb', line 15
+
+define_attribute :tiers, Array, { :item_type => :PercentageTier }
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Plan.html b/Recurly/Resources/Plan.html new file mode 100644 index 000000000..070484132 --- /dev/null +++ b/Recurly/Resources/Plan.html @@ -0,0 +1,2786 @@ + + + + + + + Class: Recurly::Resources::Plan + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Plan + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/plan.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 for the plan. If no value is provided, it defaults to plan's code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for invoice line items for the plan. If no value is provided, it defaults to plan's code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/plan.rb', line 11
+
+define_attribute :accounting_code, String
+
+
+ + + +
+

+ + #allow_any_item_on_subscriptionsBoolean + + + + + +

+
+ +

Returns Used to determine whether items can be assigned as add-ons to individual subscriptions. If `true`, items can be assigned as add-ons to individual subscription add-ons. If `false`, only plan add-ons can be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Used to determine whether items can be assigned as add-ons to individual subscriptions. If `true`, items can be assigned as add-ons to individual subscription add-ons. If `false`, only plan add-ons can be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/plan.rb', line 15
+
+define_attribute :allow_any_item_on_subscriptions, :Boolean
+
+
+ + + +
+

+ + #auto_renewBoolean + + + + + +

+
+ +

Returns Subscriptions will automatically inherit this value once they are active. If `auto_renew` is `true`, then a subscription will automatically renew its term at renewal. If `auto_renew` is `false`, then a subscription will expire at the end of its term. `auto_renew` can be overridden on the subscription record itself.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Subscriptions will automatically inherit this value once they are active. If `auto_renew` is `true`, then a subscription will automatically renew its term at renewal. If `auto_renew` is `false`, then a subscription will expire at the end of its term. `auto_renew` can be overridden on the subscription record itself.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/plan.rb', line 19
+
+define_attribute :auto_renew, :Boolean
+
+
+ + + +
+

+ + #avalara_service_typeInteger + + + + + +

+
+ +

Returns Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the plan 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:

+ + +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/plan.rb', line 23
+
+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 plan 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:

+ + +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/plan.rb', line 27
+
+define_attribute :avalara_transaction_type, Integer
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/plan.rb', line 31
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/plan.rb', line 35
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #currenciesArray[PlanPricing] + + + + + +

+
+ +

Returns Pricing.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[PlanPricing]) + + + + — +
    +

    Pricing

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/plan.rb', line 39
+
+define_attribute :currencies, Array, { :item_type => :PlanPricing }
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/plan.rb', line 43
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #deleted_atDateTime + + + + + +

+
+ +

Returns Deleted at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Deleted at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/plan.rb', line 47
+
+define_attribute :deleted_at, DateTime
+
+
+ + + +
+

+ + #descriptionString + + + + + +

+
+ +

Returns Optional description, not displayed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Optional description, not displayed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/plan.rb', line 51
+
+define_attribute :description, String
+
+
+ + + +
+

+ + #dunning_campaign_idString + + + + + +

+
+ +

Returns Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this plan. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this plan. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/plan.rb', line 55
+
+define_attribute :dunning_campaign_id, String
+
+
+ + + +
+

+ + #hosted_pagesPlanHostedPages + + + + + +

+
+ +

Returns Hosted pages settings.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (PlanHostedPages) + + + + — +
    +

    Hosted pages settings

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/plan.rb', line 59
+
+define_attribute :hosted_pages, :PlanHostedPages
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Plan ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Plan ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/plan.rb', line 63
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #interval_lengthInteger + + + + + +

+
+ +

Returns Length of the plan's billing interval in `interval_unit`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Length of the plan's billing interval in `interval_unit`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/plan.rb', line 67
+
+define_attribute :interval_length, Integer
+
+
+ + + +
+

+ + #interval_unitString + + + + + +

+
+ +

Returns Unit for the plan's billing interval.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unit for the plan's billing interval.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/plan.rb', line 71
+
+define_attribute :interval_unit, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/plan.rb', line 75
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/plan.rb', line 79
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #pricing_modelString + + + + + +

+
+ +

Returns A fixed pricing model has the same price for each billing period. A ramp pricing model defines a set of Ramp Intervals, where a subscription changes price on a specified cadence of billing periods. The price change could be an increase or decrease.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A fixed pricing model has the same price for each billing period. A ramp pricing model defines a set of Ramp Intervals, where a subscription changes price on a specified cadence of billing periods. The price change could be an increase or decrease.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/resources/plan.rb', line 83
+
+define_attribute :pricing_model, String
+
+
+ + + +
+

+ + #ramp_intervalsArray[PlanRampInterval] + + + + + +

+
+ +

Returns Ramp Intervals.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/resources/plan.rb', line 87
+
+define_attribute :ramp_intervals, Array, { :item_type => :PlanRampInterval }
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/resources/plan.rb', line 91
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #setup_fee_accounting_codeString + + + + + +

+
+ +

Returns Accounting code for invoice line items for the plan's setup fee. If no value is provided, it defaults to plan's accounting code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for invoice line items for the plan's setup fee. If no value is provided, it defaults to plan's accounting code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/resources/plan.rb', line 95
+
+define_attribute :setup_fee_accounting_code, String
+
+
+ + + +
+

+ + #setup_fee_revenue_schedule_typeString + + + + + +

+
+ +

Returns Setup fee revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Setup fee revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/resources/plan.rb', line 99
+
+define_attribute :setup_fee_revenue_schedule_type, String
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns The current state of the plan.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The current state of the plan.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/resources/plan.rb', line 103
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+107
+
+
# File 'lib/recurly/resources/plan.rb', line 107
+
+define_attribute :tax_code, String
+
+
+ + + +
+

+ + #tax_exemptBoolean + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+111
+
+
# File 'lib/recurly/resources/plan.rb', line 111
+
+define_attribute :tax_exempt, :Boolean
+
+
+ + + +
+

+ + #total_billing_cyclesInteger + + + + + +

+
+ +

Returns Automatically terminate subscriptions after a defined number of billing cycles. Number of billing cycles before the plan automatically stops renewing, defaults to `null` for continuous, automatic renewal.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Automatically terminate subscriptions after a defined number of billing cycles. Number of billing cycles before the plan automatically stops renewing, defaults to `null` for continuous, automatic renewal.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+115
+
+
# File 'lib/recurly/resources/plan.rb', line 115
+
+define_attribute :total_billing_cycles, Integer
+
+
+ + + +
+

+ + #trial_lengthInteger + + + + + +

+
+ +

Returns Length of plan's trial period in `trial_units`. `0` means `no trial`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Length of plan's trial period in `trial_units`. `0` means `no trial`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+119
+
+
# File 'lib/recurly/resources/plan.rb', line 119
+
+define_attribute :trial_length, Integer
+
+
+ + + +
+

+ + #trial_requires_billing_infoBoolean + + + + + +

+
+ +

Returns Allow free trial subscriptions to be created without billing info. Should not be used if billing info is needed for initial invoice due to existing uninvoiced charges or setup fee.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Allow free trial subscriptions to be created without billing info. Should not be used if billing info is needed for initial invoice due to existing uninvoiced charges or setup fee.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+123
+
+
# File 'lib/recurly/resources/plan.rb', line 123
+
+define_attribute :trial_requires_billing_info, :Boolean
+
+
+ + + +
+

+ + #trial_unitString + + + + + +

+
+ +

Returns Units for the plan's trial period.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Units for the plan's trial period.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+127
+
+
# File 'lib/recurly/resources/plan.rb', line 127
+
+define_attribute :trial_unit, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+131
+
+
# File 'lib/recurly/resources/plan.rb', line 131
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/PlanHostedPages.html b/Recurly/Resources/PlanHostedPages.html new file mode 100644 index 000000000..d94bd7d35 --- /dev/null +++ b/Recurly/Resources/PlanHostedPages.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::PlanHostedPages + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::PlanHostedPages + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #bypass_confirmation ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    If `true`, the customer will be sent directly to your `success_url` after a successful signup, bypassing Recurly's hosted confirmation page.

    +
    + +
  • + + +
  • + + + #cancel_url ⇒ String + + + + + + + + + + + + + + + + +
    +

    URL to redirect to on canceled signup on the hosted payment pages.

    +
    + +
  • + + +
  • + + + #display_quantity ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

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

    +
    + +
  • + + +
  • + + + #success_url ⇒ String + + + + + + + + + + + + + + + + +
    +

    URL to redirect to after signup on the hosted payment pages.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #bypass_confirmationBoolean + + + + + +

+
+ +

Returns If `true`, the customer will be sent directly to your `success_url` after a successful signup, bypassing Recurly's hosted confirmation page.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    If `true`, the customer will be sent directly to your `success_url` after a successful signup, bypassing Recurly's hosted confirmation page.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/plan_hosted_pages.rb', line 11
+
+define_attribute :bypass_confirmation, :Boolean
+
+
+ + + +
+

+ + #cancel_urlString + + + + + +

+
+ +

Returns URL to redirect to on canceled signup on the hosted payment pages.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    URL to redirect to on canceled signup on the hosted payment pages.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/plan_hosted_pages.rb', line 15
+
+define_attribute :cancel_url, String
+
+
+ + + +
+

+ + #display_quantityBoolean + + + + + +

+
+ +

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

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

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

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/plan_hosted_pages.rb', line 19
+
+define_attribute :display_quantity, :Boolean
+
+
+ + + +
+

+ + #success_urlString + + + + + +

+
+ +

Returns URL to redirect to after signup on the hosted payment pages.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    URL to redirect to after signup on the hosted payment pages.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/plan_hosted_pages.rb', line 23
+
+define_attribute :success_url, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/PlanMini.html b/Recurly/Resources/PlanMini.html new file mode 100644 index 000000000..663fddf50 --- /dev/null +++ b/Recurly/Resources/PlanMini.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::PlanMini + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::PlanMini + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #code ⇒ String + + + + + + + + + + + + + + + + +
    +

    Unique code to identify the plan.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Plan ID.

    +
    + +
  • + + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

    This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/plan_mini.rb', line 11
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Plan ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Plan ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/plan_mini.rb', line 15
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/plan_mini.rb', line 19
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/plan_mini.rb', line 23
+
+define_attribute :object, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/PlanPricing.html b/Recurly/Resources/PlanPricing.html new file mode 100644 index 000000000..8ecb92f34 --- /dev/null +++ b/Recurly/Resources/PlanPricing.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::PlanPricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::PlanPricing + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #currency ⇒ String + + + + + + + + + + + + + + + + +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + + +
  • + + + #setup_fee ⇒ Float + + + + + + + + + + + + + + + + +
    +

    Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle.

    +
    + +
  • + + +
  • + + + #tax_inclusive ⇒ Boolean + + + + + + + + + + + + + + + + +
    +

    This field is deprecated.

    +
    + +
  • + + +
  • + + + #unit_amount ⇒ Float + + + + + + + + + + + + + + + + +
    +

    This field should not be sent when the pricing model is 'ramp'.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/plan_pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #setup_feeFloat + + + + + +

+
+ +

Returns Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Amount of one-time setup fee automatically charged at the beginning of a subscription billing cycle. For subscription plans with a trial, the setup fee will be charged at the time of signup. Setup fees do not increase with the quantity of a subscription plan.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/plan_pricing.rb', line 15
+
+define_attribute :setup_fee, Float
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns This field is deprecated. Please do not use it.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    This field is deprecated. Please do not use it.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/plan_pricing.rb', line 19
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns This field should not be sent when the pricing model is 'ramp'.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    This field should not be sent when the pricing model is 'ramp'.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/plan_pricing.rb', line 23
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/PlanRampInterval.html b/Recurly/Resources/PlanRampInterval.html new file mode 100644 index 000000000..81e9cb1fb --- /dev/null +++ b/Recurly/Resources/PlanRampInterval.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::PlanRampInterval + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::PlanRampInterval + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/plan_ramp_interval.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

+ + + +
+

+ + #currenciesArray[PlanRampPricing] + + + + + +

+
+ +

Returns Represents the price for the ramp interval.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[PlanRampPricing]) + + + + — +
    +

    Represents the price for the ramp interval.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/plan_ramp_interval.rb', line 11
+
+define_attribute :currencies, Array, { :item_type => :PlanRampPricing }
+
+
+ + + +
+

+ + #starting_billing_cycleInteger + + + + + +

+
+ +

Returns Represents the billing cycle where a ramp interval starts.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Represents the billing cycle where a ramp interval starts.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/plan_ramp_interval.rb', line 15
+
+define_attribute :starting_billing_cycle, Integer
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/PlanRampPricing.html b/Recurly/Resources/PlanRampPricing.html new file mode 100644 index 000000000..5b113b560 --- /dev/null +++ b/Recurly/Resources/PlanRampPricing.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::PlanRampPricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::PlanRampPricing + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #currency ⇒ String + + + + + + + + + + + + + + + + +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + + +
  • + + + #unit_amount ⇒ Float + + + + + + + + + + + + + + + + +
    +

    Represents the price for the Ramp Interval.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/plan_ramp_pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Represents the price for the Ramp Interval.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Represents the price for the Ramp Interval.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/plan_ramp_pricing.rb', line 15
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Pricing.html b/Recurly/Resources/Pricing.html new file mode 100644 index 000000000..f57fe4184 --- /dev/null +++ b/Recurly/Resources/Pricing.html @@ -0,0 +1,434 @@ + + + + + + + Class: Recurly::Resources::Pricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Pricing + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/pricing.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns This field is deprecated. Please do not use it.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    This field is deprecated. Please do not use it.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/pricing.rb', line 15
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Unit price.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Unit price

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/pricing.rb', line 19
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Settings.html b/Recurly/Resources/Settings.html new file mode 100644 index 000000000..a11cd1df6 --- /dev/null +++ b/Recurly/Resources/Settings.html @@ -0,0 +1,427 @@ + + + + + + + Class: Recurly::Resources::Settings + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Settings + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/settings.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

+ + + +
+

+ + #accepted_currenciesArray[String] + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/settings.rb', line 11
+
+define_attribute :accepted_currencies, Array, { :item_type => String }
+
+
+ + + +
+

+ + #billing_address_requirementString + + + + + +

+
+ +

Returns - full: Full Address (Street, City, State, Postal Code and Country) - streetzip: Street and Postal Code only - zip: Postal Code only - none: No Address.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    • +

      full: Full Address (Street, City, State, Postal Code and Country) - streetzip: Street and Postal Code only - zip: Postal Code only - none: No Address

      +
    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/settings.rb', line 15
+
+define_attribute :billing_address_requirement, String
+
+
+ + + +
+

+ + #default_currencyString + + + + + +

+
+ +

Returns The default 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The default 3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/settings.rb', line 19
+
+define_attribute :default_currency, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ShippingAddress.html b/Recurly/Resources/ShippingAddress.html new file mode 100644 index 000000000..2a25c1cd6 --- /dev/null +++ b/Recurly/Resources/ShippingAddress.html @@ -0,0 +1,1604 @@ + + + + + + + Class: Recurly::Resources::ShippingAddress + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ShippingAddress + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/shipping_address.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

+ + + +
+

+ + #account_idString + + + + + +

+
+ +

Returns Account ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Account ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 11
+
+define_attribute :account_id, String
+
+
+ + + +
+

+ + #cityString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 15
+
+define_attribute :city, String
+
+
+ + + +
+

+ + #companyString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 19
+
+define_attribute :company, String
+
+
+ + + +
+

+ + #countryString + + + + + +

+
+ +

Returns Country, 2-letter ISO 3166-1 alpha-2 code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Country, 2-letter ISO 3166-1 alpha-2 code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 23
+
+define_attribute :country, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 27
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #emailString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 31
+
+define_attribute :email, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 35
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Shipping Address ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Shipping Address ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 39
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 43
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #nicknameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 47
+
+define_attribute :nickname, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 51
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #phoneString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 55
+
+define_attribute :phone, String
+
+
+ + + +
+

+ + #postal_codeString + + + + + +

+
+ +

Returns Zip or postal code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Zip or postal code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 59
+
+define_attribute :postal_code, String
+
+
+ + + +
+

+ + #regionString + + + + + +

+
+ +

Returns State or province.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    State or province.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 63
+
+define_attribute :region, String
+
+
+ + + +
+

+ + #street1String + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 67
+
+define_attribute :street1, String
+
+
+ + + +
+

+ + #street2String + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 71
+
+define_attribute :street2, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 75
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #vat_numberString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/shipping_address.rb', line 79
+
+define_attribute :vat_number, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ShippingMethod.html b/Recurly/Resources/ShippingMethod.html new file mode 100644 index 000000000..18bc9de52 --- /dev/null +++ b/Recurly/Resources/ShippingMethod.html @@ -0,0 +1,938 @@ + + + + + + + Class: Recurly::Resources::ShippingMethod + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ShippingMethod + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/shipping_method.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 shipping method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Accounting code for shipping method.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/shipping_method.rb', line 11
+
+define_attribute :accounting_code, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The internal name used identify the shipping method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The internal name used identify the shipping method.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/shipping_method.rb', line 15
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/shipping_method.rb', line 19
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #deleted_atDateTime + + + + + +

+
+ +

Returns Deleted at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Deleted at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/shipping_method.rb', line 23
+
+define_attribute :deleted_at, DateTime
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Shipping Method ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Shipping Method ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/shipping_method.rb', line 27
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns The name of the shipping method displayed to customers.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The name of the shipping method displayed to customers.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/shipping_method.rb', line 31
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/shipping_method.rb', line 35
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #tax_codeString + + + + + +

+
+ +

Returns Used by Avalara, Vertex, and Recurly’s built-in tax feature. The tax code values are specific to each tax system. If you are using Recurly’s built-in taxes the values are: - `FR` – Common Carrier FOB Destination - `FR022000` – Common Carrier FOB Origin - `FR020400` – Non Common Carrier FOB Destination - `FR020500` – Non Common Carrier FOB Origin - `FR010100` – Delivery by Company Vehicle Before Passage of Title - `FR010200` – Delivery by Company Vehicle After Passage of Title - `NT` – Non-Taxable.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used by Avalara, Vertex, and Recurly’s built-in tax feature. The tax code values are specific to each tax system. If you are using Recurly’s built-in taxes the values are: - `FR` – Common Carrier FOB Destination - `FR022000` – Common Carrier FOB Origin - `FR020400` – Non Common Carrier FOB Destination - `FR020500` – Non Common Carrier FOB Origin - `FR010100` – Delivery by Company Vehicle Before Passage of Title - `FR010200` – Delivery by Company Vehicle After Passage of Title - `NT` – Non-Taxable

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/shipping_method.rb', line 39
+
+define_attribute :tax_code, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/shipping_method.rb', line 43
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/ShippingMethodMini.html b/Recurly/Resources/ShippingMethodMini.html new file mode 100644 index 000000000..b67044c27 --- /dev/null +++ b/Recurly/Resources/ShippingMethodMini.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::ShippingMethodMini + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::ShippingMethodMini + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #code ⇒ String + + + + + + + + + + + + + + + + +
    +

    The internal name used identify the shipping method.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Shipping Method ID.

    +
    + +
  • + + +
  • + + + #name ⇒ String + + + + + + + + + + + + + + + + +
    +

    The name of the shipping method displayed to customers.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The internal name used identify the shipping method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The internal name used identify the shipping method.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/shipping_method_mini.rb', line 11
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Shipping Method ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Shipping Method ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/shipping_method_mini.rb', line 15
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ +

Returns The name of the shipping method displayed to customers.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The name of the shipping method displayed to customers.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/shipping_method_mini.rb', line 19
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/shipping_method_mini.rb', line 23
+
+define_attribute :object, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Site.html b/Recurly/Resources/Site.html new file mode 100644 index 000000000..f4c38afa5 --- /dev/null +++ b/Recurly/Resources/Site.html @@ -0,0 +1,1079 @@ + + + + + + + Class: Recurly::Resources::Site + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Site + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/site.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

+ + + +
+

+ + #addressAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/site.rb', line 11
+
+define_attribute :address, :Address
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/site.rb', line 15
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #deleted_atDateTime + + + + + +

+
+ +

Returns Deleted at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Deleted at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/site.rb', line 19
+
+define_attribute :deleted_at, DateTime
+
+
+ + + +
+

+ + #featuresArray[String] + + + + + +

+
+ +

Returns A list of features enabled for the site.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    A list of features enabled for the site.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/site.rb', line 23
+
+define_attribute :features, Array, { :item_type => String }
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Site ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Site ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/site.rb', line 27
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #modeString + + + + + +

+
+ +

Returns Mode.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Mode

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/site.rb', line 31
+
+define_attribute :mode, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/site.rb', line 35
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #public_api_keyString + + + + + +

+
+ +

Returns This value is used to configure RecurlyJS to submit tokenized billing information.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    This value is used to configure RecurlyJS to submit tokenized billing information.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/site.rb', line 39
+
+define_attribute :public_api_key, String
+
+
+ + + +
+

+ + #settingsSettings + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/site.rb', line 43
+
+define_attribute :settings, :Settings
+
+
+ + + +
+

+ + #subdomainString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/site.rb', line 47
+
+define_attribute :subdomain, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/site.rb', line 51
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Subscription.html b/Recurly/Resources/Subscription.html new file mode 100644 index 000000000..1cf44b1ef --- /dev/null +++ b/Recurly/Resources/Subscription.html @@ -0,0 +1,4466 @@ + + + + + + + Class: Recurly::Resources::Subscription + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Subscription + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/subscription.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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns Account mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    Account mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/subscription.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #activated_atDateTime + + + + + +

+
+ +

Returns Activated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Activated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/subscription.rb', line 15
+
+define_attribute :activated_at, DateTime
+
+
+ + + +
+

+ + #active_invoice_idString + + + + + +

+
+ +

Returns The invoice ID of the latest invoice created for an active subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The invoice ID of the latest invoice created for an active subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/subscription.rb', line 19
+
+define_attribute :active_invoice_id, String
+
+
+ + + +
+

+ + #add_onsArray[SubscriptionAddOn] + + + + + +

+
+ +

Returns Add-ons.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/subscription.rb', line 23
+
+define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOn }
+
+
+ + + +
+

+ + #add_ons_totalFloat + + + + + +

+
+ +

Returns Total price of add-ons.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Total price of add-ons

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/subscription.rb', line 27
+
+define_attribute :add_ons_total, Float
+
+
+ + + +
+

+ + #auto_renewBoolean + + + + + +

+
+ +

Returns Whether the subscription renews at the end of its term.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Whether the subscription renews at the end of its term.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/subscription.rb', line 31
+
+define_attribute :auto_renew, :Boolean
+
+
+ + + +
+

+ + #bank_account_authorized_atDateTime + + + + + +

+
+ +

Returns Recurring subscriptions paid with ACH will have this attribute set. This timestamp is used for alerting customers to reauthorize in 3 years in accordance with NACHA rules. If a subscription becomes inactive or the billing info is no longer a bank account, this timestamp is cleared.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Recurring subscriptions paid with ACH will have this attribute set. This timestamp is used for alerting customers to reauthorize in 3 years in accordance with NACHA rules. If a subscription becomes inactive or the billing info is no longer a bank account, this timestamp is cleared.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/subscription.rb', line 35
+
+define_attribute :bank_account_authorized_at, DateTime
+
+
+ + + +
+

+ + #billing_info_idString + + + + + +

+
+ +

Returns Billing Info ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Billing Info ID.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/subscription.rb', line 39
+
+define_attribute :billing_info_id, String
+
+
+ + + +
+

+ + #canceled_atDateTime + + + + + +

+
+ +

Returns Canceled at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Canceled at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/subscription.rb', line 43
+
+define_attribute :canceled_at, DateTime
+
+
+ + + +
+

+ + #collection_methodString + + + + + +

+
+ +

Returns Collection method.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Collection method

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/subscription.rb', line 47
+
+define_attribute :collection_method, String
+
+
+ + + +
+

+ + #converted_atDateTime + + + + + +

+
+ +

Returns When the subscription was converted from a gift card.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the subscription was converted from a gift card.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/subscription.rb', line 51
+
+define_attribute :converted_at, DateTime
+
+
+ + + +
+

+ + #coupon_redemptionsArray[CouponRedemptionMini] + + + + + +

+
+ +

Returns subscription level coupon redemptions that are tied to this subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[CouponRedemptionMini]) + + + + — +
    +

    Returns subscription level coupon redemptions that are tied to this subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/subscription.rb', line 55
+
+define_attribute :coupon_redemptions, Array, { :item_type => :CouponRedemptionMini }
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/subscription.rb', line 59
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/subscription.rb', line 63
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #current_period_ends_atDateTime + + + + + +

+
+ +

Returns Current billing period ends at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Current billing period ends at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/subscription.rb', line 67
+
+define_attribute :current_period_ends_at, DateTime
+
+
+ + + +
+

+ + #current_period_started_atDateTime + + + + + +

+
+ +

Returns Current billing period started at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Current billing period started at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/subscription.rb', line 71
+
+define_attribute :current_period_started_at, DateTime
+
+
+ + + +
+

+ + #current_term_ends_atDateTime + + + + + +

+
+ +

Returns When the term ends. This is calculated by a plan's interval and `total_billing_cycles` in a term. Subscription changes with a `timeframe=renewal` will be applied on this date.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the term ends. This is calculated by a plan's interval and `total_billing_cycles` in a term. Subscription changes with a `timeframe=renewal` will be applied on this date.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/subscription.rb', line 75
+
+define_attribute :current_term_ends_at, DateTime
+
+
+ + + +
+

+ + #current_term_started_atDateTime + + + + + +

+
+ +

Returns The start date of the term when the first billing period starts. The subscription term is the length of time that a customer will be committed to a subscription. A term can span multiple billing periods.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    The start date of the term when the first billing period starts. The subscription term is the length of time that a customer will be committed to a subscription. A term can span multiple billing periods.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/subscription.rb', line 79
+
+define_attribute :current_term_started_at, DateTime
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/resources/subscription.rb', line 83
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #customer_notesString + + + + + +

+
+ +

Returns Customer notes.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Customer notes

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/resources/subscription.rb', line 87
+
+define_attribute :customer_notes, String
+
+
+ + + +
+

+ + #expiration_reasonString + + + + + +

+
+ +

Returns Expiration reason.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Expiration reason

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/resources/subscription.rb', line 91
+
+define_attribute :expiration_reason, String
+
+
+ + + +
+

+ + #expires_atDateTime + + + + + +

+
+ +

Returns Expires at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Expires at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/resources/subscription.rb', line 95
+
+define_attribute :expires_at, DateTime
+
+
+ + + +
+

+ + #gateway_codeString + + + + + +

+
+ +

Returns If present, this subscription's transactions will use the payment gateway with this code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If present, this subscription's transactions will use the payment gateway with this code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/resources/subscription.rb', line 99
+
+define_attribute :gateway_code, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Subscription ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Subscription ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/resources/subscription.rb', line 103
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #net_termsInteger + + + + + +

+
+ +

Returns Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Integer representing the number of days after an invoice's creation that the invoice will become past due. If an invoice's net terms are set to '0', it is due 'On Receipt' and will become past due 24 hours after it’s created. If an invoice is due net 30, it will become past due at 31 days exactly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+107
+
+
# File 'lib/recurly/resources/subscription.rb', line 107
+
+define_attribute :net_terms, Integer
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+111
+
+
# File 'lib/recurly/resources/subscription.rb', line 111
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #paused_atDateTime + + + + + +

+
+ +

Returns Null unless subscription is paused or will pause at the end of the current billing period.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Null unless subscription is paused or will pause at the end of the current billing period.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+115
+
+
# File 'lib/recurly/resources/subscription.rb', line 115
+
+define_attribute :paused_at, DateTime
+
+
+ + + +
+

+ + #pending_changeSubscriptionChange + + + + + +

+
+ +

Returns Subscription Change.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+119
+
+
# File 'lib/recurly/resources/subscription.rb', line 119
+
+define_attribute :pending_change, :SubscriptionChange
+
+
+ + + +
+

+ + #planPlanMini + + + + + +

+
+ +

Returns Just the important parts.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (PlanMini) + + + + — +
    +

    Just the important parts.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+123
+
+
# File 'lib/recurly/resources/subscription.rb', line 123
+
+define_attribute :plan, :PlanMini
+
+
+ + + +
+

+ + #po_numberString + + + + + +

+
+ +

Returns For manual invoicing, this identifies the PO number associated with the subscription.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For manual invoicing, this identifies the PO number associated with the subscription.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+127
+
+
# File 'lib/recurly/resources/subscription.rb', line 127
+
+define_attribute :po_number, String
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns Subscription quantity.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Subscription quantity

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+131
+
+
# File 'lib/recurly/resources/subscription.rb', line 131
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #ramp_intervalsArray[SubscriptionRampIntervalResponse] + + + + + +

+
+ +

Returns The ramp intervals representing the pricing schedule for the subscription.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+135
+
+
# File 'lib/recurly/resources/subscription.rb', line 135
+
+define_attribute :ramp_intervals, Array, { :item_type => :SubscriptionRampIntervalResponse }
+
+
+ + + +
+

+ + #remaining_billing_cyclesInteger + + + + + +

+
+ +

Returns The remaining billing cycles in the current term.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The remaining billing cycles in the current term.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+139
+
+
# File 'lib/recurly/resources/subscription.rb', line 139
+
+define_attribute :remaining_billing_cycles, Integer
+
+
+ + + +
+

+ + #remaining_pause_cyclesInteger + + + + + +

+
+ +

Returns Null unless subscription is paused or will pause at the end of the current billing period.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Null unless subscription is paused or will pause at the end of the current billing period.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+143
+
+
# File 'lib/recurly/resources/subscription.rb', line 143
+
+define_attribute :remaining_pause_cycles, Integer
+
+
+ + + +
+

+ + #renewal_billing_cyclesInteger + + + + + +

+
+ +

Returns If `auto_renew=true`, when a term completes, `total_billing_cycles` takes this value as the length of subsequent terms. Defaults to the plan's `total_billing_cycles`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    If `auto_renew=true`, when a term completes, `total_billing_cycles` takes this value as the length of subsequent terms. Defaults to the plan's `total_billing_cycles`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+147
+
+
# File 'lib/recurly/resources/subscription.rb', line 147
+
+define_attribute :renewal_billing_cycles, Integer
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+151
+
+
# File 'lib/recurly/resources/subscription.rb', line 151
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #shippingSubscriptionShipping + + + + + +

+
+ +

Returns Subscription shipping details.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+155
+
+
# File 'lib/recurly/resources/subscription.rb', line 155
+
+define_attribute :shipping, :SubscriptionShipping
+
+
+ + + +
+

+ + #started_with_giftBoolean + + + + + +

+
+ +

Returns Whether the subscription was started with a gift certificate.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Whether the subscription was started with a gift certificate.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+159
+
+
# File 'lib/recurly/resources/subscription.rb', line 159
+
+define_attribute :started_with_gift, :Boolean
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns State.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    State

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+163
+
+
# File 'lib/recurly/resources/subscription.rb', line 163
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #subtotalFloat + + + + + +

+
+ +

Returns Estimated total, before tax.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Estimated total, before tax.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+167
+
+
# File 'lib/recurly/resources/subscription.rb', line 167
+
+define_attribute :subtotal, Float
+
+
+ + + +
+

+ + #taxFloat + + + + + +

+
+ +

Returns Estimated tax.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Estimated tax

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+171
+
+
# File 'lib/recurly/resources/subscription.rb', line 171
+
+define_attribute :tax, Float
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to utilize this flag.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to utilize this flag.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+175
+
+
# File 'lib/recurly/resources/subscription.rb', line 175
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #tax_infoTaxInfo + + + + + +

+
+ +

Returns Tax info.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (TaxInfo) + + + + — +
    +

    Tax info

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+179
+
+
# File 'lib/recurly/resources/subscription.rb', line 179
+
+define_attribute :tax_info, :TaxInfo
+
+
+ + + +
+

+ + #terms_and_conditionsString + + + + + +

+
+ +

Returns Terms and conditions.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Terms and conditions

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+183
+
+
# File 'lib/recurly/resources/subscription.rb', line 183
+
+define_attribute :terms_and_conditions, String
+
+
+ + + +
+

+ + #totalFloat + + + + + +

+
+ +

Returns Estimated total.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Estimated total

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+187
+
+
# File 'lib/recurly/resources/subscription.rb', line 187
+
+define_attribute :total, Float
+
+
+ + + +
+

+ + #total_billing_cyclesInteger + + + + + +

+
+ +

Returns The number of cycles/billing periods in a term. When `remaining_billing_cycles=0`, if `auto_renew=true` the subscription will renew and a new term will begin, otherwise the subscription will expire.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The number of cycles/billing periods in a term. When `remaining_billing_cycles=0`, if `auto_renew=true` the subscription will renew and a new term will begin, otherwise the subscription will expire.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+191
+
+
# File 'lib/recurly/resources/subscription.rb', line 191
+
+define_attribute :total_billing_cycles, Integer
+
+
+ + + +
+

+ + #trial_ends_atDateTime + + + + + +

+
+ +

Returns Trial period ends at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Trial period ends at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+195
+
+
# File 'lib/recurly/resources/subscription.rb', line 195
+
+define_attribute :trial_ends_at, DateTime
+
+
+ + + +
+

+ + #trial_started_atDateTime + + + + + +

+
+ +

Returns Trial period started at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Trial period started at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+199
+
+
# File 'lib/recurly/resources/subscription.rb', line 199
+
+define_attribute :trial_started_at, DateTime
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Subscription unit price.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Subscription unit price

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+203
+
+
# File 'lib/recurly/resources/subscription.rb', line 203
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Last updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Last updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+207
+
+
# File 'lib/recurly/resources/subscription.rb', line 207
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #uuidString + + + + + +

+
+ +

Returns The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+211
+
+
# File 'lib/recurly/resources/subscription.rb', line 211
+
+define_attribute :uuid, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/SubscriptionAddOn.html b/Recurly/Resources/SubscriptionAddOn.html new file mode 100644 index 000000000..375fda9c0 --- /dev/null +++ b/Recurly/Resources/SubscriptionAddOn.html @@ -0,0 +1,1694 @@ + + + + + + + Class: Recurly::Resources::SubscriptionAddOn + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::SubscriptionAddOn + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/subscription_add_on.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

+ + + +
+

+ + #add_onAddOnMini + + + + + +

+
+ +

Returns Just the important parts.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AddOnMini) + + + + — +
    +

    Just the important parts.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 11
+
+define_attribute :add_on, :AddOnMini
+
+
+ + + +
+

+ + #add_on_sourceString + + + + + +

+
+ +

Returns Used to determine where the associated add-on data is pulled from. If this value is set to `plan_add_on` or left blank, then add-on data will be pulled from the plan's add-ons. If the associated `plan` has `allow_any_item_on_subscriptions` set to `true` and this field is set to `item`, then the associated add-on data will be pulled from the site's item catalog.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Used to determine where the associated add-on data is pulled from. If this value is set to `plan_add_on` or left blank, then add-on data will be pulled from the plan's add-ons. If the associated `plan` has `allow_any_item_on_subscriptions` set to `true` and this field is set to `item`, then the associated add-on data will be pulled from the site's item catalog.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 15
+
+define_attribute :add_on_source, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 19
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #expired_atDateTime + + + + + +

+
+ +

Returns Expired at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Expired at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 23
+
+define_attribute :expired_at, DateTime
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Subscription Add-on ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Subscription Add-on ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 27
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 31
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #percentage_tiersArray[SubscriptionAddOnPercentageTier] + + + + + +

+
+ +

Returns If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage. There must be one tier without an `ending_amount` value which represents the final tier. This feature is currently in development and requires approval and enablement, please contact support.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionAddOnPercentageTier]) + + + + — +
    +

    If percentage tiers are provided in the request, all existing percentage tiers on the Subscription Add-on will be removed and replaced by the percentage tiers in the request. Use only if add_on.tier_type is tiered or volume and add_on.usage_type is percentage. There must be one tier without an `ending_amount` value which represents the final tier. This feature is currently in development and requires approval and enablement, please contact support.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 35
+
+define_attribute :percentage_tiers, Array, { :item_type => :SubscriptionAddOnPercentageTier }
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns Add-on quantity.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Add-on quantity

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 39
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 43
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #subscription_idString + + + + + +

+
+ +

Returns Subscription ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Subscription ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 47
+
+define_attribute :subscription_id, String
+
+
+ + + +
+

+ + #tier_typeString + + + + + +

+
+ +

Returns The pricing model for the add-on. For more information, [click here](docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 51
+
+define_attribute :tier_type, String
+
+
+ + + +
+

+ + #tiersArray[SubscriptionAddOnTier] + + + + + +

+
+ +

Returns If tiers are provided in the request, all existing tiers on the Subscription Add-on will be removed and replaced by the tiers in the request. If add_on.tier_type is tiered or volume and add_on.usage_type is percentage use percentage_tiers instead. There must be one tier without an `ending_quantity` value which represents the final tier.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionAddOnTier]) + + + + — +
    +

    If tiers are provided in the request, all existing tiers on the Subscription Add-on will be removed and replaced by the tiers in the request. If add_on.tier_type is tiered or volume and add_on.usage_type is percentage use percentage_tiers instead. There must be one tier without an `ending_quantity` value which represents the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 55
+
+define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Supports up to 2 decimal places.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Supports up to 2 decimal places.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 59
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Supports up to 9 decimal places.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Supports up to 9 decimal places.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 63
+
+define_attribute :unit_amount_decimal, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 67
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #usage_calculation_typeString + + + + + +

+
+ +

Returns The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 71
+
+define_attribute :usage_calculation_type, String
+
+
+ + + +
+

+ + #usage_percentageFloat + + + + + +

+
+ +

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.

+ + +
+
+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 75
+
+define_attribute :usage_percentage, Float
+
+
+ + + +
+

+ + #usage_timeframeString + + + + + +

+
+ +

Returns The time at which usage totals are reset for billing purposes.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The time at which usage totals are reset for billing purposes.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/subscription_add_on.rb', line 79
+
+define_attribute :usage_timeframe, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/SubscriptionAddOnPercentageTier.html b/Recurly/Resources/SubscriptionAddOnPercentageTier.html new file mode 100644 index 000000000..fddfeba13 --- /dev/null +++ b/Recurly/Resources/SubscriptionAddOnPercentageTier.html @@ -0,0 +1,350 @@ + + + + + + + Class: Recurly::Resources::SubscriptionAddOnPercentageTier + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::SubscriptionAddOnPercentageTier + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/subscription_add_on_percentage_tier.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

+ + + +
+

+ + #ending_amountFloat + + + + + +

+
+ +

Returns Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Ending amount for the tier. Allows up to 2 decimal places. Must be left empty if it is the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/subscription_add_on_percentage_tier.rb', line 11
+
+define_attribute :ending_amount, Float
+
+
+ + + +
+

+ + #usage_percentageString + + + + + +

+
+ +

Returns The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places represented as a string.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places represented as a string.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/subscription_add_on_percentage_tier.rb', line 15
+
+define_attribute :usage_percentage, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/SubscriptionAddOnTier.html b/Recurly/Resources/SubscriptionAddOnTier.html new file mode 100644 index 000000000..d19879c8f --- /dev/null +++ b/Recurly/Resources/SubscriptionAddOnTier.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::SubscriptionAddOnTier + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::SubscriptionAddOnTier + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/subscription_add_on_tier.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

+ + + +
+

+ + #ending_quantityInteger + + + + + +

+
+ +

Returns Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/subscription_add_on_tier.rb', line 11
+
+define_attribute :ending_quantity, Integer
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Allows up to 2 decimal places. Optionally, override the tiers' default unit amount. If add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Allows up to 2 decimal places. Optionally, override the tiers' default unit amount. If add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/subscription_add_on_tier.rb', line 15
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Allows up to 9 decimal places. Optionally, override tiers' default unit amount. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided. If add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Allows up to 9 decimal places. Optionally, override tiers' default unit amount. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided. If add-on's `add_on_type` is `usage` and `usage_type` is `percentage`, cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/subscription_add_on_tier.rb', line 19
+
+define_attribute :unit_amount_decimal, String
+
+
+ + + +
+

+ + #usage_percentageString + + + + + +

+
+ +

Returns (deprecated) – Use the percentage_tiers object instead.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    (deprecated) – Use the percentage_tiers object instead.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/subscription_add_on_tier.rb', line 23
+
+define_attribute :usage_percentage, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/SubscriptionChange.html b/Recurly/Resources/SubscriptionChange.html new file mode 100644 index 000000000..d6d563516 --- /dev/null +++ b/Recurly/Resources/SubscriptionChange.html @@ -0,0 +1,1778 @@ + + + + + + + Class: Recurly::Resources::SubscriptionChange + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::SubscriptionChange + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/subscription_change.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

+ + + +
+

+ + #activate_atDateTime + + + + + +

+
+ +

Returns Activated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Activated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 11
+
+define_attribute :activate_at, DateTime
+
+
+ + + +
+

+ + #activatedBoolean + + + + + +

+
+ +

Returns `true` if the subscription change is activated.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Returns `true` if the subscription change is activated.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 15
+
+define_attribute :activated, :Boolean
+
+
+ + + +
+

+ + #add_onsArray[SubscriptionAddOn] + + + + + +

+
+ +

Returns These add-ons will be used when the subscription renews.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionAddOn]) + + + + — +
    +

    These add-ons will be used when the subscription renews.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 19
+
+define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOn }
+
+
+ + + +
+

+ + #billing_infoSubscriptionChangeBillingInfo + + + + + +

+
+ +

Returns Accept nested attributes for three_d_secure_action_result_token_id.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 23
+
+define_attribute :billing_info, :SubscriptionChangeBillingInfo
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 27
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 31
+
+define_attribute :custom_fields, Array, { :item_type => :CustomField }
+
+
+ + + +
+

+ + #deleted_atDateTime + + + + + +

+
+ +

Returns Deleted at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Deleted at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 35
+
+define_attribute :deleted_at, DateTime
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns The ID of the Subscription Change.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The ID of the Subscription Change.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 39
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #invoice_collectionInvoiceCollection + + + + + +

+
+ +

Returns Invoice Collection.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 43
+
+define_attribute :invoice_collection, :InvoiceCollection
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 47
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #planPlanMini + + + + + +

+
+ +

Returns Just the important parts.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (PlanMini) + + + + — +
    +

    Just the important parts.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 51
+
+define_attribute :plan, :PlanMini
+
+
+ + + +
+

+ + #quantityInteger + + + + + +

+
+ +

Returns Subscription quantity.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Subscription quantity

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 55
+
+define_attribute :quantity, Integer
+
+
+ + + +
+

+ + #ramp_intervalsArray[SubscriptionRampIntervalResponse] + + + + + +

+
+ +

Returns The ramp intervals representing the pricing schedule for the subscription.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 59
+
+define_attribute :ramp_intervals, Array, { :item_type => :SubscriptionRampIntervalResponse }
+
+
+ + + +
+

+ + #revenue_schedule_typeString + + + + + +

+
+ +

Returns Revenue schedule type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Revenue schedule type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 63
+
+define_attribute :revenue_schedule_type, String
+
+
+ + + +
+

+ + #shippingSubscriptionShipping + + + + + +

+
+ +

Returns Subscription shipping details.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 67
+
+define_attribute :shipping, :SubscriptionShipping
+
+
+ + + +
+

+ + #subscription_idString + + + + + +

+
+ +

Returns The ID of the subscription that is going to be changed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The ID of the subscription that is going to be changed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 71
+
+define_attribute :subscription_id, String
+
+
+ + + +
+

+ + #tax_inclusiveBoolean + + + + + +

+
+ +

Returns This field is deprecated. Please do not use it.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    This field is deprecated. Please do not use it.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 75
+
+define_attribute :tax_inclusive, :Boolean
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Unit amount.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Unit amount

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 79
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/resources/subscription_change.rb', line 83
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/SubscriptionChangeBillingInfo.html b/Recurly/Resources/SubscriptionChangeBillingInfo.html new file mode 100644 index 000000000..76c8103b8 --- /dev/null +++ b/Recurly/Resources/SubscriptionChangeBillingInfo.html @@ -0,0 +1,266 @@ + + + + + + + Class: Recurly::Resources::SubscriptionChangeBillingInfo + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::SubscriptionChangeBillingInfo + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/subscription_change_billing_info.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

+ + + +
+

+ + #three_d_secure_action_result_token_idString + + + + + +

+
+ +

Returns A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/subscription_change_billing_info.rb', line 11
+
+define_attribute :three_d_secure_action_result_token_id, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/SubscriptionRampIntervalResponse.html b/Recurly/Resources/SubscriptionRampIntervalResponse.html new file mode 100644 index 000000000..fdb47c511 --- /dev/null +++ b/Recurly/Resources/SubscriptionRampIntervalResponse.html @@ -0,0 +1,434 @@ + + + + + + + Class: Recurly::Resources::SubscriptionRampIntervalResponse + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::SubscriptionRampIntervalResponse + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/subscription_ramp_interval_response.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

+ + + +
+

+ + #remaining_billing_cyclesInteger + + + + + +

+
+ +

Returns Represents how many billing cycles are left in a ramp interval.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Represents how many billing cycles are left in a ramp interval.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/subscription_ramp_interval_response.rb', line 11
+
+define_attribute :remaining_billing_cycles, Integer
+
+
+ + + +
+

+ + #starting_billing_cycleInteger + + + + + +

+
+ +

Returns Represents the billing cycle where a ramp interval starts.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Represents the billing cycle where a ramp interval starts.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/subscription_ramp_interval_response.rb', line 15
+
+define_attribute :starting_billing_cycle, Integer
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Represents the price for the ramp interval.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Represents the price for the ramp interval.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/subscription_ramp_interval_response.rb', line 19
+
+define_attribute :unit_amount, Float
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/SubscriptionShipping.html b/Recurly/Resources/SubscriptionShipping.html new file mode 100644 index 000000000..c9cc46747 --- /dev/null +++ b/Recurly/Resources/SubscriptionShipping.html @@ -0,0 +1,500 @@ + + + + + + + Class: Recurly::Resources::SubscriptionShipping + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::SubscriptionShipping + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/subscription_shipping.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

+ + + +
+

+ + #addressShippingAddress + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/subscription_shipping.rb', line 11
+
+define_attribute :address, :ShippingAddress
+
+
+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns Subscription's shipping cost.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Subscription's shipping cost

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/subscription_shipping.rb', line 15
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #methodShippingMethodMini + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/subscription_shipping.rb', line 19
+
+define_attribute :method, :ShippingMethodMini
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/subscription_shipping.rb', line 23
+
+define_attribute :object, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/TaxDetail.html b/Recurly/Resources/TaxDetail.html new file mode 100644 index 000000000..d2dd88a41 --- /dev/null +++ b/Recurly/Resources/TaxDetail.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::TaxDetail + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::TaxDetail + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #rate ⇒ Float + + + + + + + + + + + + + + + + +
    +

    Provides the tax rate for the region.

    +
    + +
  • + + +
  • + + + #region ⇒ String + + + + + + + + + + + + + + + + +
    +

    Provides the tax region applied on an invoice.

    +
    + +
  • + + +
  • + + + #tax ⇒ Float + + + + + + + + + + + + + + + + +
    +

    The total tax applied for this tax type.

    +
    + +
  • + + +
  • + + + #type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Provides the tax type for the region.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #rateFloat + + + + + +

+
+ +

Returns Provides the tax rate for the region.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Provides the tax rate for the region.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/tax_detail.rb', line 11
+
+define_attribute :rate, Float
+
+
+ + + +
+

+ + #regionString + + + + + +

+
+ +

Returns Provides the tax region applied on an invoice. For Canadian Sales Tax, this will be either the 2 letter province code or country code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Provides the tax region applied on an invoice. For Canadian Sales Tax, this will be either the 2 letter province code or country code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/tax_detail.rb', line 15
+
+define_attribute :region, String
+
+
+ + + +
+

+ + #taxFloat + + + + + +

+
+ +

Returns The total tax applied for this tax type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The total tax applied for this tax type.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/tax_detail.rb', line 19
+
+define_attribute :tax, Float
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns Provides the tax type for the region. For Canadian Sales Tax, this will be GST, HST, QST or PST.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Provides the tax type for the region. For Canadian Sales Tax, this will be GST, HST, QST or PST.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/tax_detail.rb', line 23
+
+define_attribute :type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/TaxInfo.html b/Recurly/Resources/TaxInfo.html new file mode 100644 index 000000000..2a0b57a95 --- /dev/null +++ b/Recurly/Resources/TaxInfo.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::TaxInfo + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::TaxInfo + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #rate ⇒ Float + + + + + + + + + + + + + + + + +
    +

    Rate.

    +
    + +
  • + + +
  • + + + #region ⇒ String + + + + + + + + + + + + + + + + +
    +

    Provides the tax region applied on an invoice.

    +
    + +
  • + + +
  • + + + #tax_details ⇒ Array[TaxDetail] + + + + + + + + + + + + + + + + +
    +

    Provides additional tax details for Canadian Sales Tax when there is tax applied at both the country and province levels.

    +
    + +
  • + + +
  • + + + #type ⇒ String + + + + + + + + + + + + + + + + +
    +

    Provides the tax type as “vat” for EU VAT, “usst” for U.S.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #rateFloat + + + + + +

+
+ +

Returns Rate.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Rate

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/tax_info.rb', line 11
+
+define_attribute :rate, Float
+
+
+ + + +
+

+ + #regionString + + + + + +

+
+ +

Returns Provides the tax region applied on an invoice. For U.S. Sales Tax, this will be the 2 letter state code. For EU VAT this will be the 2 letter country code. For all country level tax types, this will display the regional tax, like VAT, GST, or PST.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Provides the tax region applied on an invoice. For U.S. Sales Tax, this will be the 2 letter state code. For EU VAT this will be the 2 letter country code. For all country level tax types, this will display the regional tax, like VAT, GST, or PST.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/tax_info.rb', line 15
+
+define_attribute :region, String
+
+
+ + + +
+

+ + #tax_detailsArray[TaxDetail] + + + + + +

+
+ +

Returns Provides additional tax details for Canadian Sales Tax when there is tax applied at both the country and province levels. This will only be populated for the Invoice response when fetching a single invoice and not for the InvoiceList or LineItem.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[TaxDetail]) + + + + — +
    +

    Provides additional tax details for Canadian Sales Tax when there is tax applied at both the country and province levels. This will only be populated for the Invoice response when fetching a single invoice and not for the InvoiceList or LineItem.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/tax_info.rb', line 19
+
+define_attribute :tax_details, Array, { :item_type => :TaxDetail }
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns Provides the tax type as “vat” for EU VAT, “usst” for U.S. Sales Tax, or the 2 letter country code for country level tax types like Canada, Australia, New Zealand, Israel, and all non-EU European countries.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Provides the tax type as “vat” for EU VAT, “usst” for U.S. Sales Tax, or the 2 letter country code for country level tax types like Canada, Australia, New Zealand, Israel, and all non-EU European countries.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/tax_info.rb', line 23
+
+define_attribute :type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Tier.html b/Recurly/Resources/Tier.html new file mode 100644 index 000000000..8a5c9bead --- /dev/null +++ b/Recurly/Resources/Tier.html @@ -0,0 +1,434 @@ + + + + + + + Class: Recurly::Resources::Tier + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Tier + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/tier.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

+ + + +
+

+ + #currenciesArray[TierPricing] + + + + + +

+
+ +

Returns Tier pricing.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[TierPricing]) + + + + — +
    +

    Tier pricing

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/tier.rb', line 11
+
+define_attribute :currencies, Array, { :item_type => :TierPricing }
+
+
+ + + +
+

+ + #ending_quantityInteger + + + + + +

+
+ +

Returns Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    Ending quantity for the tier. This represents a unit amount for unit-priced add ons. Must be left empty if it is the final tier.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/tier.rb', line 15
+
+define_attribute :ending_quantity, Integer
+
+
+ + + +
+

+ + #usage_percentageString + + + + + +

+
+ +

Returns (deprecated) – Use the percentage_tiers object instead.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    (deprecated) – Use the percentage_tiers object instead.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/tier.rb', line 19
+
+define_attribute :usage_percentage, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/TierPricing.html b/Recurly/Resources/TierPricing.html new file mode 100644 index 000000000..9aea4e3e8 --- /dev/null +++ b/Recurly/Resources/TierPricing.html @@ -0,0 +1,434 @@ + + + + + + + Class: Recurly::Resources::TierPricing + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::TierPricing + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/tier_pricing.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

+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/tier_pricing.rb', line 11
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/tier_pricing.rb', line 15
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`. If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/tier_pricing.rb', line 19
+
+define_attribute :unit_amount_decimal, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Transaction.html b/Recurly/Resources/Transaction.html new file mode 100644 index 000000000..fafbff427 --- /dev/null +++ b/Recurly/Resources/Transaction.html @@ -0,0 +1,3349 @@ + + + + + + + Class: Recurly::Resources::Transaction + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Transaction + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/transaction.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

+ + + +
+

+ + #accountAccountMini + + + + + +

+
+ +

Returns Account mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (AccountMini) + + + + — +
    +

    Account mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/transaction.rb', line 11
+
+define_attribute :account, :AccountMini
+
+
+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns Total transaction amount sent to the payment gateway.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Total transaction amount sent to the payment gateway.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/transaction.rb', line 15
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #avs_checkString + + + + + +

+
+ +

Returns When processed, result from checking the overall AVS on the transaction.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    When processed, result from checking the overall AVS on the transaction.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/transaction.rb', line 19
+
+define_attribute :avs_check, String
+
+
+ + + +
+

+ + #backup_payment_method_usedBoolean + + + + + +

+
+ +

Returns Indicates if the transaction was completed using a backup payment.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Indicates if the transaction was completed using a backup payment

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/transaction.rb', line 23
+
+define_attribute :backup_payment_method_used, :Boolean
+
+
+ + + +
+

+ + #billing_addressAddressWithName + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/transaction.rb', line 27
+
+define_attribute :billing_address, :AddressWithName
+
+
+ + + +
+

+ + #collected_atDateTime + + + + + +

+
+ +

Returns Collected at, or if not collected yet, the time the transaction was created.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Collected at, or if not collected yet, the time the transaction was created.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/transaction.rb', line 31
+
+define_attribute :collected_at, DateTime
+
+
+ + + +
+

+ + #collection_methodString + + + + + +

+
+ +

Returns The method by which the payment was collected.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The method by which the payment was collected.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/transaction.rb', line 35
+
+define_attribute :collection_method, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/transaction.rb', line 39
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #currencyString + + + + + +

+
+ +

Returns 3-letter ISO 4217 currency code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    3-letter ISO 4217 currency code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/transaction.rb', line 43
+
+define_attribute :currency, String
+
+
+ + + +
+

+ + #customer_messageString + + + + + +

+
+ +

Returns For declined (`success=false`) transactions, the message displayed to the customer.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For declined (`success=false`) transactions, the message displayed to the customer.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/transaction.rb', line 47
+
+define_attribute :customer_message, String
+
+
+ + + +
+

+ + #customer_message_localeString + + + + + +

+
+ +

Returns Language code for the message.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Language code for the message

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/transaction.rb', line 51
+
+define_attribute :customer_message_locale, String
+
+
+ + + +
+

+ + #cvv_checkString + + + + + +

+
+ +

Returns When processed, result from checking the CVV/CVC value on the transaction.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    When processed, result from checking the CVV/CVC value on the transaction.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/transaction.rb', line 55
+
+define_attribute :cvv_check, String
+
+
+ + + +
+

+ + #gateway_approval_codeString + + + + + +

+
+ +

Returns Transaction approval code from the payment gateway.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Transaction approval code from the payment gateway.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/transaction.rb', line 59
+
+define_attribute :gateway_approval_code, String
+
+
+ + + +
+

+ + #gateway_messageString + + + + + +

+
+ +

Returns Transaction message from the payment gateway.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Transaction message from the payment gateway.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/transaction.rb', line 63
+
+define_attribute :gateway_message, String
+
+
+ + + +
+

+ + #gateway_referenceString + + + + + +

+
+ +

Returns Transaction reference number from the payment gateway.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Transaction reference number from the payment gateway.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/transaction.rb', line 67
+
+define_attribute :gateway_reference, String
+
+
+ + + +
+

+ + #gateway_response_codeString + + + + + +

+
+ +

Returns For declined transactions (`success=false`), this field lists the gateway error code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For declined transactions (`success=false`), this field lists the gateway error code.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/transaction.rb', line 71
+
+define_attribute :gateway_response_code, String
+
+
+ + + +
+

+ + #gateway_response_timeFloat + + + + + +

+
+ +

Returns Time, in seconds, for gateway to process the transaction.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Time, in seconds, for gateway to process the transaction.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/transaction.rb', line 75
+
+define_attribute :gateway_response_time, Float
+
+
+ + + +
+

+ + #gateway_response_valuesHash + + + + + +

+
+ +

Returns The values in this field will vary from gateway to gateway.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Hash) + + + + — +
    +

    The values in this field will vary from gateway to gateway.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+79
+
+
# File 'lib/recurly/resources/transaction.rb', line 79
+
+define_attribute :gateway_response_values, Hash
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Transaction ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Transaction ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+83
+
+
# File 'lib/recurly/resources/transaction.rb', line 83
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #invoiceInvoiceMini + + + + + +

+
+ +

Returns Invoice mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (InvoiceMini) + + + + — +
    +

    Invoice mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+87
+
+
# File 'lib/recurly/resources/transaction.rb', line 87
+
+define_attribute :invoice, :InvoiceMini
+
+
+ + + +
+

+ + #ip_address_countryString + + + + + +

+
+ +

Returns Origin IP address country, 2-letter ISO 3166-1 alpha-2 code, if known by Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Origin IP address country, 2-letter ISO 3166-1 alpha-2 code, if known by Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+91
+
+
# File 'lib/recurly/resources/transaction.rb', line 91
+
+define_attribute :ip_address_country, String
+
+
+ + + +
+

+ + #ip_address_v4String + + + + + +

+
+ +

Returns IP address provided when the billing information was collected: - When the customer enters billing information into the Recurly.js or Hosted Payment Pages, Recurly records the IP address. - When the merchant enters billing information using the API, the merchant may provide an IP address. - When the merchant enters billing information using the UI, no IP address is recorded.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    IP address provided when the billing information was collected: - When the customer enters billing information into the Recurly.js or Hosted Payment Pages, Recurly records the IP address. - When the merchant enters billing information using the API, the merchant may provide an IP address. - When the merchant enters billing information using the UI, no IP address is recorded.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+95
+
+
# File 'lib/recurly/resources/transaction.rb', line 95
+
+define_attribute :ip_address_v4, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+99
+
+
# File 'lib/recurly/resources/transaction.rb', line 99
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #originString + + + + + +

+
+ +

Returns Describes how the transaction was triggered.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Describes how the transaction was triggered.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+103
+
+
# File 'lib/recurly/resources/transaction.rb', line 103
+
+define_attribute :origin, String
+
+
+ + + +
+

+ + #original_transaction_idString + + + + + +

+
+ +

Returns If this transaction is a refund (`type=refund`), this will be the ID of the original transaction on the invoice being refunded.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    If this transaction is a refund (`type=refund`), this will be the ID of the original transaction on the invoice being refunded.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+107
+
+
# File 'lib/recurly/resources/transaction.rb', line 107
+
+define_attribute :original_transaction_id, String
+
+
+ + + +
+

+ + #payment_gatewayTransactionPaymentGateway + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+111
+
+
# File 'lib/recurly/resources/transaction.rb', line 111
+
+define_attribute :payment_gateway, :TransactionPaymentGateway
+
+
+ + + +
+

+ + #payment_methodPaymentMethod + + + + + +

+
+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+115
+
+
# File 'lib/recurly/resources/transaction.rb', line 115
+
+define_attribute :payment_method, :PaymentMethod
+
+
+ + + +
+

+ + #refundedBoolean + + + + + +

+
+ +

Returns Indicates if part or all of this transaction was refunded.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Indicates if part or all of this transaction was refunded.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+119
+
+
# File 'lib/recurly/resources/transaction.rb', line 119
+
+define_attribute :refunded, :Boolean
+
+
+ + + +
+

+ + #statusString + + + + + +

+
+ +

Returns The current transaction status. Note that the status may change, e.g. a `pending` transaction may become `declined` or `success` may later become `void`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The current transaction status. Note that the status may change, e.g. a `pending` transaction may become `declined` or `success` may later become `void`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+123
+
+
# File 'lib/recurly/resources/transaction.rb', line 123
+
+define_attribute :status, String
+
+
+ + + +
+

+ + #status_codeString + + + + + +

+
+ +

Returns Status code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Status code

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+127
+
+
# File 'lib/recurly/resources/transaction.rb', line 127
+
+define_attribute :status_code, String
+
+
+ + + +
+

+ + #status_messageString + + + + + +

+
+ +

Returns For declined (`success=false`) transactions, the message displayed to the merchant.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    For declined (`success=false`) transactions, the message displayed to the merchant.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+131
+
+
# File 'lib/recurly/resources/transaction.rb', line 131
+
+define_attribute :status_message, String
+
+
+ + + +
+

+ + #subscription_idsArray[String] + + + + + +

+
+ +

Returns If the transaction is charging or refunding for one or more subscriptions, these are their IDs.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[String]) + + + + — +
    +

    If the transaction is charging or refunding for one or more subscriptions, these are their IDs.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+135
+
+
# File 'lib/recurly/resources/transaction.rb', line 135
+
+define_attribute :subscription_ids, Array, { :item_type => String }
+
+
+ + + +
+

+ + #successBoolean + + + + + +

+
+ +

Returns Did this transaction complete successfully?.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + + — +
    +

    Did this transaction complete successfully?

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+139
+
+
# File 'lib/recurly/resources/transaction.rb', line 139
+
+define_attribute :success, :Boolean
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ +

Returns - `authorization` – verifies billing information and places a hold on money in the customer's account. - `capture` – captures funds held by an authorization and completes a purchase. - `purchase` – combines the authorization and capture in one transaction. - `refund` – returns all or a portion of the money collected in a previous transaction to the customer. - `verify` – a $0 or $1 transaction used to verify billing information which is immediately voided.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    • +

      `authorization` – verifies billing information and places a hold on money in the customer's account. - `capture` – captures funds held by an authorization and completes a purchase. - `purchase` – combines the authorization and capture in one transaction. - `refund` – returns all or a portion of the money collected in a previous transaction to the customer. - `verify` – a $0 or $1 transaction used to verify billing information which is immediately voided.

      +
    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+143
+
+
# File 'lib/recurly/resources/transaction.rb', line 143
+
+define_attribute :type, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+147
+
+
# File 'lib/recurly/resources/transaction.rb', line 147
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #uuidString + + + + + +

+
+ +

Returns The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+151
+
+
# File 'lib/recurly/resources/transaction.rb', line 151
+
+define_attribute :uuid, String
+
+
+ + + +
+

+ + #voided_atDateTime + + + + + +

+
+ +

Returns Voided at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Voided at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+155
+
+
# File 'lib/recurly/resources/transaction.rb', line 155
+
+define_attribute :voided_at, DateTime
+
+
+ + + +
+

+ + #voided_by_invoiceInvoiceMini + + + + + +

+
+ +

Returns Invoice mini details.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (InvoiceMini) + + + + — +
    +

    Invoice mini details

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+159
+
+
# File 'lib/recurly/resources/transaction.rb', line 159
+
+define_attribute :voided_by_invoice, :InvoiceMini
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/TransactionError.html b/Recurly/Resources/TransactionError.html new file mode 100644 index 000000000..6431a8a98 --- /dev/null +++ b/Recurly/Resources/TransactionError.html @@ -0,0 +1,854 @@ + + + + + + + Class: Recurly::Resources::TransactionError + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::TransactionError + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/transaction_error.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

+ + + +
+

+ + #categoryString + + + + + +

+
+ +

Returns Category.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Category

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/transaction_error.rb', line 11
+
+define_attribute :category, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns Code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Code

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/transaction_error.rb', line 15
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #decline_codeString + + + + + +

+
+ +

Returns Decline code.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Decline code

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/transaction_error.rb', line 19
+
+define_attribute :decline_code, String
+
+
+ + + +
+

+ + #merchant_adviceString + + + + + +

+
+ +

Returns Merchant message.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Merchant message

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/transaction_error.rb', line 23
+
+define_attribute :merchant_advice, String
+
+
+ + + +
+

+ + #messageString + + + + + +

+
+ +

Returns Customer message.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Customer message

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/transaction_error.rb', line 27
+
+define_attribute :message, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/transaction_error.rb', line 31
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #three_d_secure_action_token_idString + + + + + +

+
+ +

Returned when 3-D Secure authentication is required for a transaction. Pass this value to Recurly.js so it can continue the challenge flow.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Returned when 3-D Secure authentication is required for a transaction. Pass this value to Recurly.js so it can continue the challenge flow.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/transaction_error.rb', line 35
+
+define_attribute :three_d_secure_action_token_id, String
+
+
+ + + +
+

+ + #transaction_idString + + + + + +

+
+ +

Returns Transaction ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Transaction ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/transaction_error.rb', line 39
+
+define_attribute :transaction_id, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/TransactionPaymentGateway.html b/Recurly/Resources/TransactionPaymentGateway.html new file mode 100644 index 000000000..732e1c549 --- /dev/null +++ b/Recurly/Resources/TransactionPaymentGateway.html @@ -0,0 +1,491 @@ + + + + + + + Class: Recurly::Resources::TransactionPaymentGateway + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::TransactionPaymentGateway + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/transaction_payment_gateway.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

+ + + +
+

+ + #idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/transaction_payment_gateway.rb', line 11
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/transaction_payment_gateway.rb', line 15
+
+define_attribute :name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/transaction_payment_gateway.rb', line 19
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #typeString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/transaction_payment_gateway.rb', line 23
+
+define_attribute :type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/UniqueCouponCode.html b/Recurly/Resources/UniqueCouponCode.html new file mode 100644 index 000000000..e343ff75a --- /dev/null +++ b/Recurly/Resources/UniqueCouponCode.html @@ -0,0 +1,1022 @@ + + + + + + + Class: Recurly::Resources::UniqueCouponCode + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::UniqueCouponCode + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #bulk_coupon_code ⇒ String + + + + + + + + + + + + + + + + +
    +

    The Coupon code of the parent Bulk Coupon.

    +
    + +
  • + + +
  • + + + #bulk_coupon_id ⇒ String + + + + + + + + + + + + + + + + +
    +

    The Coupon ID of the parent Bulk Coupon.

    +
    + +
  • + + +
  • + + + #code ⇒ String + + + + + + + + + + + + + + + + +
    +

    The code the customer enters to redeem the coupon.

    +
    + +
  • + + +
  • + + + #created_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Created at.

    +
    + +
  • + + +
  • + + + #expired_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    The date and time the coupon was expired early or reached its `max_redemptions`.

    +
    + +
  • + + +
  • + + + #id ⇒ String + + + + + + + + + + + + + + + + +
    +

    Unique Coupon Code ID.

    +
    + +
  • + + +
  • + + + #object ⇒ String + + + + + + + + + + + + + + + + +
    +

    Object type.

    +
    + +
  • + + +
  • + + + #redeemed_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    The date and time the unique coupon code was redeemed.

    +
    + +
  • + + +
  • + + + #state ⇒ String + + + + + + + + + + + + + + + + +
    +

    Indicates if the unique coupon code is redeemable or why not.

    +
    + +
  • + + +
  • + + + #updated_at ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    Updated at.

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #bulk_coupon_codeString + + + + + +

+
+ +

Returns The Coupon code of the parent Bulk Coupon.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The Coupon code of the parent Bulk Coupon

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/unique_coupon_code.rb', line 11
+
+define_attribute :bulk_coupon_code, String
+
+
+ + + +
+

+ + #bulk_coupon_idString + + + + + +

+
+ +

Returns The Coupon ID of the parent Bulk Coupon.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The Coupon ID of the parent Bulk Coupon

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/unique_coupon_code.rb', line 15
+
+define_attribute :bulk_coupon_id, String
+
+
+ + + +
+

+ + #codeString + + + + + +

+
+ +

Returns The code the customer enters to redeem the coupon.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The code the customer enters to redeem the coupon.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/unique_coupon_code.rb', line 19
+
+define_attribute :code, String
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns Created at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Created at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/unique_coupon_code.rb', line 23
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #expired_atDateTime + + + + + +

+
+ +

Returns The date and time the coupon was expired early or reached its `max_redemptions`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    The date and time the coupon was expired early or reached its `max_redemptions`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/unique_coupon_code.rb', line 27
+
+define_attribute :expired_at, DateTime
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ +

Returns Unique Coupon Code ID.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unique Coupon Code ID

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/unique_coupon_code.rb', line 31
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/unique_coupon_code.rb', line 35
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #redeemed_atDateTime + + + + + +

+
+ +

Returns The date and time the unique coupon code was redeemed.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    The date and time the unique coupon code was redeemed.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/unique_coupon_code.rb', line 39
+
+define_attribute :redeemed_at, DateTime
+
+
+ + + +
+

+ + #stateString + + + + + +

+
+ +

Returns Indicates if the unique coupon code is redeemable or why not.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Indicates if the unique coupon code is redeemable or why not.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/unique_coupon_code.rb', line 43
+
+define_attribute :state, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns Updated at.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    Updated at

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/unique_coupon_code.rb', line 47
+
+define_attribute :updated_at, DateTime
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/UniqueCouponCodeParams.html b/Recurly/Resources/UniqueCouponCodeParams.html new file mode 100644 index 000000000..8bbda56ba --- /dev/null +++ b/Recurly/Resources/UniqueCouponCodeParams.html @@ -0,0 +1,518 @@ + + + + + + + Class: Recurly::Resources::UniqueCouponCodeParams + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::UniqueCouponCodeParams + + + +

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

Instance Attribute Summary collapse

+
    + +
  • + + + #begin_time ⇒ DateTime + + + + + + + + + + + + + + + + +
    +

    The date-time to be included when listing UniqueCouponCodes.

    +
    + +
  • + + +
  • + + + #limit ⇒ Integer + + + + + + + + + + + + + + + + +
    +

    The number of UniqueCouponCodes that will be generated.

    +
    + +
  • + + +
  • + + + #order ⇒ String + + + + + + + + + + + + + + + + +
    +

    Sort order to list newly generated UniqueCouponCodes (should always be `asc`).

    +
    + +
  • + + +
  • + + + #sort ⇒ String + + + + + + + + + + + + + + + + +
    +

    Sort field to list newly generated UniqueCouponCodes (should always be `created_at`).

    +
    + +
  • + + +
+ + + + + +

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

+ + + +
+

+ + #begin_timeDateTime + + + + + +

+
+ +

Returns The date-time to be included when listing UniqueCouponCodes.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    The date-time to be included when listing UniqueCouponCodes

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/unique_coupon_code_params.rb', line 11
+
+define_attribute :begin_time, DateTime
+
+
+ + + +
+

+ + #limitInteger + + + + + +

+
+ +

Returns The number of UniqueCouponCodes that will be generated.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Integer) + + + + — +
    +

    The number of UniqueCouponCodes that will be generated

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/unique_coupon_code_params.rb', line 15
+
+define_attribute :limit, Integer
+
+
+ + + +
+

+ + #orderString + + + + + +

+
+ +

Returns Sort order to list newly generated UniqueCouponCodes (should always be `asc`).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Sort order to list newly generated UniqueCouponCodes (should always be `asc`)

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/unique_coupon_code_params.rb', line 19
+
+define_attribute :order, String
+
+
+ + + +
+

+ + #sortString + + + + + +

+
+ +

Returns Sort field to list newly generated UniqueCouponCodes (should always be `created_at`).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Sort field to list newly generated UniqueCouponCodes (should always be `created_at`)

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/unique_coupon_code_params.rb', line 23
+
+define_attribute :sort, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/Usage.html b/Recurly/Resources/Usage.html new file mode 100644 index 000000000..cffed9415 --- /dev/null +++ b/Recurly/Resources/Usage.html @@ -0,0 +1,1601 @@ + + + + + + + Class: Recurly::Resources::Usage + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::Usage + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/usage.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

+ + + +
+

+ + #amountFloat + + + + + +

+
+ +

Returns The amount of usage. Can be positive, negative, or 0. If the Decimal Quantity feature is enabled, this value will be rounded to nine decimal places. Otherwise, all digits after the decimal will be stripped. If the usage-based add-on is billed with a percentage, your usage should be a monetary amount formatted in cents (e.g., $5.00 is “500”).

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    The amount of usage. Can be positive, negative, or 0. If the Decimal Quantity feature is enabled, this value will be rounded to nine decimal places. Otherwise, all digits after the decimal will be stripped. If the usage-based add-on is billed with a percentage, your usage should be a monetary amount formatted in cents (e.g., $5.00 is “500”).

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/usage.rb', line 11
+
+define_attribute :amount, Float
+
+
+ + + +
+

+ + #billed_atDateTime + + + + + +

+
+ +

Returns When the usage record was billed on an invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the usage record was billed on an invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/usage.rb', line 15
+
+define_attribute :billed_at, DateTime
+
+
+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ +

Returns When the usage record was created in Recurly.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the usage record was created in Recurly.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/usage.rb', line 19
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/usage.rb', line 23
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #measured_unit_idString + + + + + +

+
+ +

Returns The ID of the measured unit associated with the add-on the usage record is for.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    The ID of the measured unit associated with the add-on the usage record is for.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/usage.rb', line 27
+
+define_attribute :measured_unit_id, String
+
+
+ + + +
+

+ + #merchant_tagString + + + + + +

+
+ +

Returns Custom field for recording the id in your own system associated with the usage, so you can provide auditable usage displays to your customers using a GET on this endpoint.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Custom field for recording the id in your own system associated with the usage, so you can provide auditable usage displays to your customers using a GET on this endpoint.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/usage.rb', line 31
+
+define_attribute :merchant_tag, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/usage.rb', line 35
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #percentage_tiersArray[SubscriptionAddOnPercentageTier] + + + + + +

+
+ +

Returns The percentage tiers of the subscription based on the usage_timestamp. If tier_type = flat, percentage_tiers = []. This feature is currently in development and requires approval and enablement, please contact support.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionAddOnPercentageTier]) + + + + — +
    +

    The percentage tiers of the subscription based on the usage_timestamp. If tier_type = flat, percentage_tiers = []. This feature is currently in development and requires approval and enablement, please contact support.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/usage.rb', line 39
+
+define_attribute :percentage_tiers, Array, { :item_type => :SubscriptionAddOnPercentageTier }
+
+
+ + + +
+

+ + #recording_timestampDateTime + + + + + +

+
+ +

Returns When the usage was recorded in your system.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the usage was recorded in your system.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+43
+
+
# File 'lib/recurly/resources/usage.rb', line 43
+
+define_attribute :recording_timestamp, DateTime
+
+
+ + + +
+

+ + #tier_typeString + + + + + +

+
+ +

Returns The pricing model for the add-on. For more information, [click here](docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.

+ + +
+
+
+ +

Returns:

+ + +
+ + + + +
+
+
+
+47
+
+
# File 'lib/recurly/resources/usage.rb', line 47
+
+define_attribute :tier_type, String
+
+
+ + + +
+

+ + #tiersArray[SubscriptionAddOnTier] + + + + + +

+
+ +

Returns The tiers and prices of the subscription based on the usage_timestamp. If tier_type = flat, tiers = [].

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Array[SubscriptionAddOnTier]) + + + + — +
    +

    The tiers and prices of the subscription based on the usage_timestamp. If tier_type = flat, tiers = []

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+51
+
+
# File 'lib/recurly/resources/usage.rb', line 51
+
+define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }
+
+
+ + + +
+

+ + #unit_amountFloat + + + + + +

+
+ +

Returns Unit price.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Float) + + + + — +
    +

    Unit price

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+55
+
+
# File 'lib/recurly/resources/usage.rb', line 55
+
+define_attribute :unit_amount, Float
+
+
+ + + +
+

+ + #unit_amount_decimalString + + + + + +

+
+ +

Returns Unit price that can optionally support a sub-cent value.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Unit price that can optionally support a sub-cent value.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+59
+
+
# File 'lib/recurly/resources/usage.rb', line 59
+
+define_attribute :unit_amount_decimal, String
+
+
+ + + +
+

+ + #updated_atDateTime + + + + + +

+
+ +

Returns When the usage record was billed on an invoice.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the usage record was billed on an invoice.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+63
+
+
# File 'lib/recurly/resources/usage.rb', line 63
+
+define_attribute :updated_at, DateTime
+
+
+ + + +
+

+ + #usage_percentageFloat + + + + + +

+
+ +

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.

+ + +
+
+
+ +

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.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+67
+
+
# File 'lib/recurly/resources/usage.rb', line 67
+
+define_attribute :usage_percentage, Float
+
+
+ + + +
+

+ + #usage_timestampDateTime + + + + + +

+
+ +

Returns When the usage actually happened. This will define the line item dates this usage is billed under and is important for revenue recognition.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + + — +
    +

    When the usage actually happened. This will define the line item dates this usage is billed under and is important for revenue recognition.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+71
+
+
# File 'lib/recurly/resources/usage.rb', line 71
+
+define_attribute :usage_timestamp, DateTime
+
+
+ + + +
+

+ + #usage_typeString + + + + + +

+
+ +

Returns Type of usage, returns usage type if `add_on_type` is `usage`.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Type of usage, returns usage type if `add_on_type` is `usage`.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+75
+
+
# File 'lib/recurly/resources/usage.rb', line 75
+
+define_attribute :usage_type, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Resources/User.html b/Recurly/Resources/User.html new file mode 100644 index 000000000..88f78bfcf --- /dev/null +++ b/Recurly/Resources/User.html @@ -0,0 +1,791 @@ + + + + + + + Class: Recurly::Resources::User + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Resources::User + + + +

+
+ +
+
Inherits:
+
+ Recurly::Resource + + + show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/resources/user.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

+ + + +
+

+ + #created_atDateTime + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+
+
# File 'lib/recurly/resources/user.rb', line 11
+
+define_attribute :created_at, DateTime
+
+
+ + + +
+

+ + #deleted_atDateTime + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (DateTime) + + + +
  • + +
+ +
+ + + + +
+
+
+
+15
+
+
# File 'lib/recurly/resources/user.rb', line 15
+
+define_attribute :deleted_at, DateTime
+
+
+ + + +
+

+ + #emailString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+19
+
+
# File 'lib/recurly/resources/user.rb', line 19
+
+define_attribute :email, String
+
+
+ + + +
+

+ + #first_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+23
+
+
# File 'lib/recurly/resources/user.rb', line 23
+
+define_attribute :first_name, String
+
+
+ + + +
+

+ + #idString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+27
+
+
# File 'lib/recurly/resources/user.rb', line 27
+
+define_attribute :id, String
+
+
+ + + +
+

+ + #last_nameString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+31
+
+
# File 'lib/recurly/resources/user.rb', line 31
+
+define_attribute :last_name, String
+
+
+ + + +
+

+ + #objectString + + + + + +

+
+ +

Returns Object type.

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + + — +
    +

    Object type

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+35
+
+
# File 'lib/recurly/resources/user.rb', line 35
+
+define_attribute :object, String
+
+
+ + + +
+

+ + #time_zoneString + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (String) + + + +
  • + +
+ +
+ + + + +
+
+
+
+39
+
+
# File 'lib/recurly/resources/user.rb', line 39
+
+define_attribute :time_zone, String
+
+
+ +
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema.html b/Recurly/Schema.html new file mode 100644 index 000000000..45c8db3c6 --- /dev/null +++ b/Recurly/Schema.html @@ -0,0 +1,713 @@ + + + + + + + Class: Recurly::Schema + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Schema + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/schema.rb,
+ lib/recurly/schema/request_caster.rb,
lib/recurly/schema/schema_factory.rb,
lib/recurly/schema/resource_caster.rb,
lib/recurly/schema/schema_validator.rb
+
+
+ +
+ +

Overview

+
+ +

The class responsible for describing a schema. This is used for requests and resources.

+ + +
+
+
+ + +

Defined Under Namespace

+

+ + + Modules: RequestCaster, ResourceCaster, SchemaFactory, SchemaValidator + + + + Classes: ArrayAttribute, Attribute, BooleanAttribute, DateTimeAttribute, PrimitiveAttribute, ResourceAttribute + + +

+ + + + +

Instance Attribute Summary collapse

+ + + + + + +

+ Class Method Summary + collapse +

+ + + +

+ Instance Method Summary + collapse +

+ + + + +
+

Constructor Details

+ +
+

+ + #initializeSchema + + + + + +

+
+ +

Returns a new instance of Schema.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+9
+10
+11
+
+
# File 'lib/recurly/schema.rb', line 9
+
+def initialize
+  @attributes = {}
+end
+
+
+ +
+ +
+

Instance Attribute Details

+ + + +
+

+ + #attributesHash<String,Attribute> (readonly) + + + + + +

+
+ +

The attributes in the schema

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Hash<String,Attribute>) + + + +
  • + +
+ +
+ + + + +
+
+
+
+7
+8
+9
+
+
# File 'lib/recurly/schema.rb', line 7
+
+def attributes
+  @attributes
+end
+
+
+ +
+ + +
+

Class Method Details

+ + +
+

+ + .get_recurly_class(type) ⇒ Request, Resource + + + + + +

+
+ +

Gets a recurly class given a symbol name.

+ + +
+
+
+ +
+

Examples:

+ + +
Schema.get_recurly_class(:Account)
+#=> Recurly::Resources::Account
+ +
+

Parameters:

+
    + +
  • + + type + + + (Symbol) + + + + — +
    +

    The name of the class you wish to find

    +
    + +
  • + +
+ +

Returns:

+ +

Raises:

+
    + +
  • + + + + + + + +
    +

    ArgumentError If class can't be found.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+
+
# File 'lib/recurly/schema.rb', line 41
+
+def self.get_recurly_class(type)
+  raise ArgumentError, "#{type.inspect} must be a symbol but is a #{type.class}" unless type.is_a?(Symbol)
+
+  if type == :Address
+    Recurly::Resources::Address
+  elsif Recurly::Requests.const_defined?(type, false)
+    Recurly::Requests.const_get(type, false)
+  elsif Recurly::Resources.const_defined?(type, false)
+    Recurly::Resources.const_get(type, false)
+  else
+    raise ArgumentError, "Recurly type '#{type}' is unknown"
+  end
+end
+
+
+ +
+ +
+

Instance Method Details

+ + +
+

+ + #add_attribute(name, type, options) ⇒ Object + + + + + +

+
+ +

Adds an attribute to the schema definition

+ + +
+
+
+

Parameters:

+
    + +
  • + + name + + + (Symbol) + + + + — +
    +

    The name of the attribute

    +
    + +
  • + +
  • + + type + + + (Class, Symbol) + + + + — +
    +

    The type of the attribute. Use capitalized symbol for Recurly class. Example: :Account.

    +
    + +
  • + +
  • + + options + + + (Schema::Attribute) + + + + — +
    +

    The created and registered attribute object.

    +
    + +
  • + +
+ + +
+ + + + +
+
+
+
+18
+19
+20
+21
+22
+
+
# File 'lib/recurly/schema.rb', line 18
+
+def add_attribute(name, type, options)
+  attribute = Attribute.build(type, options)
+  @attributes[name.to_s] = attribute
+  attribute
+end
+
+
+ +
+

+ + #get_attribute(name) ⇒ Attribute? + + + + + +

+
+ +

Gets an attribute from this schema given a name

+ + +
+
+
+

Parameters:

+
    + +
  • + + name + + + (String, Symbol) + + + + — +
    +

    The name/key of the attribute

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Attribute, nil) + + + + — +
    +

    The found Attribute. nil if not found.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+28
+29
+30
+
+
# File 'lib/recurly/schema.rb', line 28
+
+def get_attribute(name)
+  @attributes[name.to_s]
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema/ArrayAttribute.html b/Recurly/Schema/ArrayAttribute.html new file mode 100644 index 000000000..b84c19f94 --- /dev/null +++ b/Recurly/Schema/ArrayAttribute.html @@ -0,0 +1,298 @@ + + + + + + + Class: Recurly::Schema::ArrayAttribute + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Schema::ArrayAttribute + + + +

+
+ +
+
Inherits:
+
+ Attribute + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/schema.rb
+
+ +
+ + + + +

Constant Summary

+ +

Constants inherited + from Attribute

+

Recurly::Schema::Attribute::PRIMITIVE_TYPES

+ + + + +

Instance Attribute Summary

+ +

Attributes inherited from Attribute

+

#type

+ + + +

+ Instance Method Summary + collapse +

+ + + + + + + + + + + + + +

Methods inherited from Attribute

+

build, #initialize, #recurly_class

+
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Schema::Attribute

+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #cast(value) ⇒ Object + + + + + +

+ + + + +
+
+
+
+144
+145
+146
+147
+148
+
+
# File 'lib/recurly/schema.rb', line 144
+
+def cast(value)
+  value.map do |v|
+    self.type.cast(v)
+  end
+end
+
+
+ +
+

+ + #is_valid?(value) ⇒ Boolean + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + +
  • + +
+ +
+ + + + +
+
+
+
+140
+141
+142
+
+
# File 'lib/recurly/schema.rb', line 140
+
+def is_valid?(value)
+  value.is_a? Array
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema/Attribute.html b/Recurly/Schema/Attribute.html new file mode 100644 index 000000000..60579bfb0 --- /dev/null +++ b/Recurly/Schema/Attribute.html @@ -0,0 +1,526 @@ + + + + + + + Class: Recurly::Schema::Attribute + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Schema::Attribute + + + +

+
+ +
+
Inherits:
+
+ Object + +
    +
  • Object
  • + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/schema.rb
+
+ +
+ + + + +

+ Constant Summary + collapse +

+ +
+ +
PRIMITIVE_TYPES = + +
+
[
+  String,
+  Integer,
+  Float,
+  Hash,
+].freeze
+ +
+ + + + + +

Instance Attribute Summary collapse

+
    + +
  • + + + #type ⇒ Class, Symbol + + + + + + + + + readonly + + + + + + + + + +
    +

    The type of the attribute.

    +
    + +
  • + + +
+ + + + + +

+ Class Method Summary + collapse +

+ + + +

+ Instance Method Summary + collapse +

+ + + + +
+

Constructor Details

+ +
+

+ + #initialize(type = nil) ⇒ Attribute + + + + + +

+
+ +

Returns a new instance of Attribute.

+ + +
+
+
+ + +
+ + + + +
+
+
+
+86
+87
+88
+
+
# File 'lib/recurly/schema.rb', line 86
+
+def initialize(type = nil)
+  @type = type
+end
+
+
+ +
+ +
+

Instance Attribute Details

+ + + +
+

+ + #typeClass, Symbol (readonly) + + + + + +

+
+ +

The type of the attribute. Might be a class like `DateTime` or could be a Recurly object. In this case a symbol should be used. Example: :Account. To get the Recurly type use #recurly_class

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Class, Symbol) + + + +
  • + +
+ +
+ + + + +
+
+
+
+60
+61
+62
+
+
# File 'lib/recurly/schema.rb', line 60
+
+def type
+  @type
+end
+
+
+ +
+ + +
+

Class Method Details

+ + +
+

+ + .build(type, options = {}) ⇒ Object + + + + + +

+ + + + +
+
+
+
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+
+
# File 'lib/recurly/schema.rb', line 69
+
+def self.build(type, options = {})
+  if PRIMITIVE_TYPES.include? type
+    PrimitiveAttribute.new(type)
+  elsif type == :Boolean
+    BooleanAttribute.new
+  elsif type == DateTime
+    DateTimeAttribute.new
+  elsif type.is_a? Symbol
+    ResourceAttribute.new(type)
+  elsif type == Array
+    item_attr = build(options[:item_type])
+    ArrayAttribute.new(item_attr)
+  else
+    throw ArgumentError
+  end
+end
+
+
+ +
+ +
+

Instance Method Details

+ + +
+

+ + #cast(value) ⇒ Object + + + + + +

+ + + + +
+
+
+
+90
+91
+92
+
+
# File 'lib/recurly/schema.rb', line 90
+
+def cast(value)
+  value
+end
+
+
+ +
+

+ + #recurly_classObject + + + + + +

+ + + + +
+
+
+
+94
+95
+96
+
+
# File 'lib/recurly/schema.rb', line 94
+
+def recurly_class
+  @recurly_class ||= Schema.get_recurly_class(type)
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema/BooleanAttribute.html b/Recurly/Schema/BooleanAttribute.html new file mode 100644 index 000000000..563e036d1 --- /dev/null +++ b/Recurly/Schema/BooleanAttribute.html @@ -0,0 +1,242 @@ + + + + + + + Class: Recurly::Schema::BooleanAttribute + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Schema::BooleanAttribute + + + +

+
+ +
+
Inherits:
+
+ Attribute + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/schema.rb
+
+ +
+ + + + +

Constant Summary

+ +

Constants inherited + from Attribute

+

Attribute::PRIMITIVE_TYPES

+ + + + +

Instance Attribute Summary

+ +

Attributes inherited from Attribute

+

#type

+ + + +

+ Instance Method Summary + collapse +

+ + + + + + + + + + + + + +

Methods inherited from Attribute

+

build, #cast, #initialize, #recurly_class

+
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Schema::Attribute

+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #is_valid?(value) ⇒ Boolean + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + +
  • + +
+ +
+ + + + +
+
+
+
+106
+107
+108
+
+
# File 'lib/recurly/schema.rb', line 106
+
+def is_valid?(value)
+  [true, false].include? value
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema/DateTimeAttribute.html b/Recurly/Schema/DateTimeAttribute.html new file mode 100644 index 000000000..eee64a5af --- /dev/null +++ b/Recurly/Schema/DateTimeAttribute.html @@ -0,0 +1,349 @@ + + + + + + + Class: Recurly::Schema::DateTimeAttribute + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Schema::DateTimeAttribute + + + +

+
+ +
+
Inherits:
+
+ Attribute + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/schema.rb
+
+ +
+ + + + +

Constant Summary

+ +

Constants inherited + from Attribute

+

Attribute::PRIMITIVE_TYPES

+ + + + + + +

+ Instance Method Summary + collapse +

+ + + + + + + + + + + + + +

Methods inherited from Attribute

+

build, #initialize, #recurly_class

+
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Schema::Attribute

+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #cast(value) ⇒ Object + + + + + +

+ + + + +
+
+
+
+116
+117
+118
+119
+120
+121
+122
+
+
# File 'lib/recurly/schema.rb', line 116
+
+def cast(value)
+  if value.is_a?(DateTime)
+    value
+  else
+    DateTime.parse(value)
+  end
+end
+
+
+ +
+

+ + #is_valid?(value) ⇒ Boolean + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + +
  • + +
+ +
+ + + + +
+
+
+
+112
+113
+114
+
+
# File 'lib/recurly/schema.rb', line 112
+
+def is_valid?(value)
+  value.is_a?(String) || value.is_a?(DateTime)
+end
+
+
+ +
+

+ + #typeObject + + + + + +

+ + + + +
+
+
+
+124
+125
+126
+
+
# File 'lib/recurly/schema.rb', line 124
+
+def type
+  DateTime
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema/PrimitiveAttribute.html b/Recurly/Schema/PrimitiveAttribute.html new file mode 100644 index 000000000..fd54ad482 --- /dev/null +++ b/Recurly/Schema/PrimitiveAttribute.html @@ -0,0 +1,242 @@ + + + + + + + Class: Recurly::Schema::PrimitiveAttribute + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Schema::PrimitiveAttribute + + + +

+
+ +
+
Inherits:
+
+ Attribute + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/schema.rb
+
+ +
+ + + + +

Constant Summary

+ +

Constants inherited + from Attribute

+

Attribute::PRIMITIVE_TYPES

+ + + + +

Instance Attribute Summary

+ +

Attributes inherited from Attribute

+

#type

+ + + +

+ Instance Method Summary + collapse +

+ + + + + + + + + + + + + +

Methods inherited from Attribute

+

build, #cast, #initialize, #recurly_class

+
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Schema::Attribute

+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #is_valid?(value) ⇒ Boolean + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + +
  • + +
+ +
+ + + + +
+
+
+
+100
+101
+102
+
+
# File 'lib/recurly/schema.rb', line 100
+
+def is_valid?(value)
+  value.is_a? self.type
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema/RequestCaster.html b/Recurly/Schema/RequestCaster.html new file mode 100644 index 000000000..951210dff --- /dev/null +++ b/Recurly/Schema/RequestCaster.html @@ -0,0 +1,327 @@ + + + + + + + Module: Recurly::Schema::RequestCaster + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Module: Recurly::Schema::RequestCaster + + + +

+
+ + + + + + + + + +
+
Included in:
+
Request
+
+ + + +
+
Defined in:
+
lib/recurly/schema/request_caster.rb
+
+ +
+ +

Overview

+
+ +

Note: This module is for internal use. The RequestCaster turns mixed data into a pure Hash so it can be serialized into JSON and used as the body of a request. This module is to be extended by the Request class.

+ + +
+
+
+ + +
+ + + + + + + +

+ Instance Method Summary + collapse +

+ + + + + + +
+

Instance Method Details

+ + +
+

+ + #cast_request(data, schema = self.schema) ⇒ Hash + + + + + +

+
+ +

This method casts the data object (of mixed types) into a Hash ready for JSON serialization. The schema will default to the self's schema. You should pass in the schema where possible. This is because objects are serialized differently depending on the context in which they are being written.

+ + +
+
+
+ +
+

Examples:

+ + +
Recurly::Requests::AccountUpdatable.cast(code: 'benjamin')
+#=> {:code=>"benjamin"}
+ + +
# If you have some mixed data, like passing in an Address, it should cast that
+# address into a Hash based on the Schema defined in AccountUpdatable
+address = Recurly::Resources::Address.new(city: 'New Orleans')
+Recurly::Requests::AccountUpdatable.cast(account_code: 'benjamin', address: address)
+#=> {:account_code=>"benjamin", :address=>{:city=>"New Orleans"}}
+ +
+

Parameters:

+
    + +
  • + + data + + + (Hash, Resource, Request) + + + + — +
    +

    The data to transform into a JSON Hash.

    +
    + +
  • + +
  • + + schema + + + (Schema) + + + (defaults to: self.schema) + + + — +
    +

    The schema to use to transform the data into a JSON Hash.

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Hash) + + + + — +
    +

    The pure Hash ready to be serialized into JSON.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+
+
# File 'lib/recurly/schema/request_caster.rb', line 29
+
+def cast_request(data, schema = self.schema)
+  casted = {}
+  if data.is_a?(Resource) || data.is_a?(Request)
+    data = data.attributes.reject { |_k, v| v.nil? }
+  end
+
+  data.each do |k, v|
+    schema_attr = schema.get_attribute(k)
+    norm_val = if v.respond_to?(:attributes)
+        cast_request(v, v.class.schema)
+      elsif v.is_a?(Array)
+        v.map do |elem|
+          if elem.respond_to?(:attributes)
+            cast_request(elem, elem.class.schema)
+          else
+            elem
+          end
+        end
+      elsif v.is_a?(Hash) && schema_attr && schema_attr.is_a?(Schema::ResourceAttribute)
+        cast_request(v, schema_attr.recurly_class.schema)
+      else
+        v
+      end
+
+    casted[k] = norm_val
+  end
+
+  casted
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema/ResourceAttribute.html b/Recurly/Schema/ResourceAttribute.html new file mode 100644 index 000000000..5ce4d594f --- /dev/null +++ b/Recurly/Schema/ResourceAttribute.html @@ -0,0 +1,294 @@ + + + + + + + Class: Recurly::Schema::ResourceAttribute + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Class: Recurly::Schema::ResourceAttribute + + + +

+
+ +
+
Inherits:
+
+ Attribute + +
    +
  • Object
  • + + + + + +
+ show all + +
+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/schema.rb
+
+ +
+ + + + +

Constant Summary

+ +

Constants inherited + from Attribute

+

Attribute::PRIMITIVE_TYPES

+ + + + +

Instance Attribute Summary

+ +

Attributes inherited from Attribute

+

#type

+ + + +

+ Instance Method Summary + collapse +

+ + + + + + + + + + + + + +

Methods inherited from Attribute

+

build, #initialize, #recurly_class

+
+

Constructor Details

+ +

This class inherits a constructor from Recurly::Schema::Attribute

+ +
+ + +
+

Instance Method Details

+ + +
+

+ + #cast(value) ⇒ Object + + + + + +

+ + + + +
+
+
+
+134
+135
+136
+
+
# File 'lib/recurly/schema.rb', line 134
+
+def cast(value)
+  self.recurly_class.cast(value)
+end
+
+
+ +
+

+ + #is_valid?(value) ⇒ Boolean + + + + + +

+
+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Boolean) + + + +
  • + +
+ +
+ + + + +
+
+
+
+130
+131
+132
+
+
# File 'lib/recurly/schema.rb', line 130
+
+def is_valid?(value)
+  value.is_a? Hash
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema/ResourceCaster.html b/Recurly/Schema/ResourceCaster.html new file mode 100644 index 000000000..5a805a5d2 --- /dev/null +++ b/Recurly/Schema/ResourceCaster.html @@ -0,0 +1,296 @@ + + + + + + + Module: Recurly::Schema::ResourceCaster + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Module: Recurly::Schema::ResourceCaster + + + +

+
+ + + + + + + + + +
+
Included in:
+
Request, Resource
+
+ + + +
+
Defined in:
+
lib/recurly/schema/resource_caster.rb
+
+ +
+ +

Overview

+
+ +

The purpose of this class is to turn JSON parsed Hashes defined into Recurly ruby objects. It's to be used by the Resource as an extension.

+ + +
+
+
+ + +
+ + + + + + + +

+ Instance Method Summary + collapse +

+ + + + + + +
+

Instance Method Details

+ + +
+

+ + #cast(attributes = {}) ⇒ Resource + + + + + +

+
+ +

Gives the class the ability to initialize itself given some json data.

+ + +
+
+
+ +
+

Examples:

+ + +
Recurly::Resources::Account.cast({"code" => "mycode"})
+#=> #<Recurly::Resources::Account @attributes={:code=>"mycode"}>
+ +
+

Parameters:

+
    + +
  • + + attributes + + + (Hash) + + + (defaults to: {}) + + + — +
    +

    A primitive Hash from JSON.parse of Recurly response.

    +
    + +
  • + +
+ +

Returns:

+
    + +
  • + + + (Resource) + + + + — +
    +

    the Resource (ruby object) representing the passed in JSON data.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+
+
# File 'lib/recurly/schema/resource_caster.rb', line 19
+
+def cast(attributes = {})
+  resource = new()
+  attributes.each do |attr_name, val|
+    schema_attr = self.schema.get_attribute(attr_name)
+
+    if schema_attr
+      val = if val.nil?
+          val
+        elsif schema_attr.is_valid?(val)
+          schema_attr.cast(val)
+        else
+          if Recurly::STRICT_MODE
+            msg = "#{self.class}##{attr_name} does not have the right type. Value: #{val.inspect} was expected to be a #{schema_attr}"
+            raise ArgumentError, msg
+          end
+        end
+
+      writer = "#{attr_name}="
+      resource.send(writer, val)
+    elsif Recurly::STRICT_MODE
+      raise ArgumentError, "#{resource.class.name} encountered json attribute #{attr_name.inspect}: #{val.inspect} but it's unknown to it's schema"
+    end
+  end
+  resource
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema/SchemaFactory.html b/Recurly/Schema/SchemaFactory.html new file mode 100644 index 000000000..f68274763 --- /dev/null +++ b/Recurly/Schema/SchemaFactory.html @@ -0,0 +1,216 @@ + + + + + + + Module: Recurly::Schema::SchemaFactory + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Module: Recurly::Schema::SchemaFactory + + + +

+
+ + + + + + + + + +
+
Included in:
+
Request, Resource
+
+ + + +
+
Defined in:
+
lib/recurly/schema/schema_factory.rb
+
+ +
+ +

Overview

+
+ +

A mixin that allows a class to be treated like a recurly object. This gives the class the power to describe it's schema. It adds the define_attribute method and a schema reader.

+ + +
+
+
+ + +
+ + + + + + + +

+ Instance Method Summary + collapse +

+ +
    + +
  • + + + #schema ⇒ Schema + + + + + + + + + + + + + +
    +

    Gets the schema for this class.

    +
    + +
  • + + +
+ + + + +
+

Instance Method Details

+ + +
+

+ + #schemaSchema + + + + + +

+
+ +

Gets the schema for this class

+ + +
+
+
+ +

Returns:

+
    + +
  • + + + (Schema) + + + +
  • + +
+ +
+ + + + +
+
+
+
+11
+12
+13
+
+
# File 'lib/recurly/schema/schema_factory.rb', line 11
+
+def schema
+  @schema ||= ::Recurly::Schema.new
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Schema/SchemaValidator.html b/Recurly/Schema/SchemaValidator.html new file mode 100644 index 000000000..02802f4f2 --- /dev/null +++ b/Recurly/Schema/SchemaValidator.html @@ -0,0 +1,442 @@ + + + + + + + Module: Recurly::Schema::SchemaValidator + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Module: Recurly::Schema::SchemaValidator + + + +

+
+ + + + + + + + + +
+
Included in:
+
Request, Resource
+
+ + + +
+
Defined in:
+
lib/recurly/schema/schema_validator.rb
+
+ +
+ +

Overview

+
+ +

This module is responsible for validating that the raw data passed in to attributes matches the schema belonging to this class. It should be mixed in to the Request class.

+ + +
+
+
+ + +
+ + + + + + + +

+ Instance Method Summary + collapse +

+ + + + + + +
+

Instance Method Details

+ + +
+

+ + #get_did_you_mean(schema, misspelled_attr) ⇒ Object + + + + + +

+
+ +

Gets the closest term to the misspelled attribute

+ + +
+
+
+ + +
+ + + + +
+
+
+
+61
+62
+63
+64
+65
+66
+67
+68
+69
+
+
# File 'lib/recurly/schema/schema_validator.rb', line 61
+
+def get_did_you_mean(schema, misspelled_attr)
+  closest = schema.attributes.keys.sort_by do |v|
+    levenshtein_distance(v, misspelled_attr)
+  end.first
+
+  if closest && levenshtein_distance(closest, misspelled_attr) <= 4
+    closest
+  end
+end
+
+
+ +
+

+ + #validate!Object + + + + + +

+
+ +

Validates the attributes and throws an error if something is wrong.

+ + +
+
+
+ +
+

Examples:

+ + +
Recurly::Requests::PlanCreate.new(code: 'plan123').validate!
+#=> {:code=>"plan123"}
+ + +
Recurly::Requests::PlanCreate.new(code: 3.14).validate!
+#=> ArgumentError: Attribute 'code' on the resource Recurly::Requests::PlanCreate is type Float but should be a String.
+ + +
Recurly::Requests::PlanCreate.new(kode: 'plan123').validate!
+#=> ArgumentError: Attribute 'kode' does not exist on request Recurly::Requests::PlanCreate. Did you mean 'code'?
+ +
+ +

Raises:

+
    + +
  • + + + (ArgumentError) + + + + — +
    +

    if the attribute data does not match the schema.

    +
    + +
  • + +
+ +
+ + + + +
+
+
+
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+
+
# File 'lib/recurly/schema/schema_validator.rb', line 20
+
+def validate!
+  attributes.each do |attr_name, val|
+    schema_attr = schema.get_attribute(attr_name)
+    if schema_attr.nil?
+      err_msg = "Attribute '#{attr_name}' does not exist on request #{self.class.name}."
+      if did_you_mean = get_did_you_mean(schema, attr_name)
+        err_msg << " Did you mean '#{did_you_mean}'?"
+      end
+      raise ArgumentError, err_msg
+    else
+      validate_attribute!(attr_name, schema_attr, val)
+    end
+  end
+end
+
+
+ +
+

+ + #validate_attribute!(name, schema_attr, val) ⇒ Object + + + + + +

+
+ +

Validates an individual attribute

+ + +
+
+
+ + +
+ + + + +
+
+
+
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+
+
# File 'lib/recurly/schema/schema_validator.rb', line 36
+
+def validate_attribute!(name, schema_attr, val)
+  unless val.nil? || schema_attr.is_valid?(val)
+    # If it's safely castable, the json deserializer or server
+    # will take care of it for us
+    unless safely_castable?(val.class, schema_attr.type)
+      expected = case schema_attr
+        when Schema::ArrayAttribute
+          "Array of #{schema_attr.type}s"
+        else
+          schema_attr.type
+        end
+
+      raise ArgumentError, "Attribute '#{name}' on the resource #{self.class.name} is type #{val.class} but should be a #{expected}"
+    end
+  end
+
+  # This is the convention for a recurly object
+  if schema_attr.is_a?(Schema::ResourceAttribute) && val.is_a?(Hash)
+    # Using send because the initializer may be private
+    instance = schema_attr.recurly_class.send(:new, val)
+    instance.validate!
+  end
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/Recurly/Webhooks.html b/Recurly/Webhooks.html new file mode 100644 index 000000000..892f5622b --- /dev/null +++ b/Recurly/Webhooks.html @@ -0,0 +1,319 @@ + + + + + + + Module: Recurly::Webhooks + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Module: Recurly::Webhooks + + + +

+
+ + + + + + + + + + + +
+
Defined in:
+
lib/recurly/webhooks.rb
+
+ +
+ + + +

+ Constant Summary + collapse +

+ +
+ +
DEFAULT_TOLERANCE = + +
+
5 * 60 * 1000
+ +
+ + + + + + + + + +

+ Class Method Summary + collapse +

+ + + + + + +
+

Class Method Details

+ + +
+

+ + .verify_signature(header, secret, body, tolerance: DEFAULT_TOLERANCE) ⇒ Object + + + + + +

+
+ +

Verify webhook signature

+ + +
+
+
+ +
+

Examples:

+ + +
begin
+  Recurly::Webhooks.verify_signature(header,
+                                     ENV['WEBHOOKS_KEY'],
+                                     request.body)
+rescue Recurly::Errors::SignatureVerificationError => e
+  puts e.message
+end
+ +
+

Parameters:

+
    + +
  • + + header + + + (String) + + + + — +
    +

    recurly-signature header from request

    +
    + +
  • + +
  • + + secret + + + (String) + + + + — +
    +

    Shared secret for notification endpoint

    +
    + +
  • + +
  • + + body + + + (String) + + + + — +
    +

    Request POST body

    +
    + +
  • + +
  • + + tolerance + + + (Integer) + + + (defaults to: DEFAULT_TOLERANCE) + + + — +
    +

    Allowed notification time drift in milliseconds

    +
    + +
  • + +
+ + +
+ + + + +
+
+
+
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+
+
# File 'lib/recurly/webhooks.rb', line 20
+
+def self.verify_signature(header, secret, body, tolerance: DEFAULT_TOLERANCE)
+  s_timestamp, *signatures = header.split(",")
+  timestamp = Integer(s_timestamp)
+  now = (Time.now.to_f * 1000).to_i
+
+  if (now - timestamp).abs > tolerance
+    raise Recurly::Errors::SignatureVerificationError.new(
+      "Notification (#{Time.at(timestamp / 1000.0)}) is more than #{tolerance / 1000.0}s out of date"
+    )
+  end
+
+  expected = OpenSSL::HMAC.hexdigest("sha256", secret, "#{timestamp}.#{body}")
+
+  unless signatures.any? { |s| secure_compare(expected, s) }
+    raise Recurly::Errors::SignatureVerificationError.new(
+      "No matching signatures found for payload"
+    )
+  end
+end
+
+
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/_index.html b/_index.html new file mode 100644 index 000000000..d4c2da564 --- /dev/null +++ b/_index.html @@ -0,0 +1,1861 @@ + + + + + + + Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
+ + +

Documentation by YARD 0.9.34

+
+

Alphabetic Index

+ +

File Listing

+ + +
+

Namespace Listing A-Z

+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
  • H
  • +
      + +
    • + HTTP + + (Recurly) + +
    • + +
    +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +
    +
  • W
  • + +
+ +
+ +
+ +
+ + + +
+ + \ No newline at end of file diff --git a/class_list.html b/class_list.html new file mode 100644 index 000000000..83142cab6 --- /dev/null +++ b/class_list.html @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + Class List + + + +
+
+

Class List

+ + + +
+ + +
+ + diff --git a/css/common.css b/css/common.css new file mode 100644 index 000000000..cf25c4523 --- /dev/null +++ b/css/common.css @@ -0,0 +1 @@ +/* Override this file with custom rules */ \ No newline at end of file diff --git a/css/full_list.css b/css/full_list.css new file mode 100644 index 000000000..fa3598242 --- /dev/null +++ b/css/full_list.css @@ -0,0 +1,58 @@ +body { + margin: 0; + font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; + font-size: 13px; + height: 101%; + overflow-x: hidden; + background: #fafafa; +} + +h1 { padding: 12px 10px; padding-bottom: 0; margin: 0; font-size: 1.4em; } +.clear { clear: both; } +.fixed_header { position: fixed; background: #fff; width: 100%; padding-bottom: 10px; margin-top: 0; top: 0; z-index: 9999; height: 70px; } +#search { position: absolute; right: 5px; top: 9px; padding-left: 24px; } +#content.insearch #search, #content.insearch #noresults { background: url(data:image/gif;base64,R0lGODlhEAAQAPYAAP///wAAAPr6+pKSkoiIiO7u7sjIyNjY2J6engAAAI6OjsbGxjIyMlJSUuzs7KamppSUlPLy8oKCghwcHLKysqSkpJqamvT09Pj4+KioqM7OzkRERAwMDGBgYN7e3ujo6Ly8vCoqKjY2NkZGRtTU1MTExDw8PE5OTj4+PkhISNDQ0MrKylpaWrS0tOrq6nBwcKysrLi4uLq6ul5eXlxcXGJiYoaGhuDg4H5+fvz8/KKiohgYGCwsLFZWVgQEBFBQUMzMzDg4OFhYWBoaGvDw8NbW1pycnOLi4ubm5kBAQKqqqiQkJCAgIK6urnJyckpKSjQ0NGpqatLS0sDAwCYmJnx8fEJCQlRUVAoKCggICLCwsOTk5ExMTPb29ra2tmZmZmhoaNzc3KCgoBISEiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCAAAACwAAAAAEAAQAAAHaIAAgoMgIiYlg4kACxIaACEJCSiKggYMCRselwkpghGJBJEcFgsjJyoAGBmfggcNEx0flBiKDhQFlIoCCA+5lAORFb4AJIihCRbDxQAFChAXw9HSqb60iREZ1omqrIPdJCTe0SWI09GBACH5BAkIAAAALAAAAAAQABAAAAdrgACCgwc0NTeDiYozCQkvOTo9GTmDKy8aFy+NOBA7CTswgywJDTIuEjYFIY0JNYMtKTEFiRU8Pjwygy4ws4owPyCKwsMAJSTEgiQlgsbIAMrO0dKDGMTViREZ14kYGRGK38nHguHEJcvTyIEAIfkECQgAAAAsAAAAABAAEAAAB2iAAIKDAggPg4iJAAMJCRUAJRIqiRGCBI0WQEEJJkWDERkYAAUKEBc4Po1GiKKJHkJDNEeKig4URLS0ICImJZAkuQAhjSi/wQyNKcGDCyMnk8u5rYrTgqDVghgZlYjcACTA1sslvtHRgQAh+QQJCAAAACwAAAAAEAAQAAAHZ4AAgoOEhYaCJSWHgxGDJCQARAtOUoQRGRiFD0kJUYWZhUhKT1OLhR8wBaaFBzQ1NwAlkIszCQkvsbOHL7Y4q4IuEjaqq0ZQD5+GEEsJTDCMmIUhtgk1lo6QFUwJVDKLiYJNUd6/hoEAIfkECQgAAAAsAAAAABAAEAAAB2iAAIKDhIWGgiUlh4MRgyQkjIURGRiGGBmNhJWHm4uen4ICCA+IkIsDCQkVACWmhwSpFqAABQoQF6ALTkWFnYMrVlhWvIKTlSAiJiVVPqlGhJkhqShHV1lCW4cMqSkAR1ofiwsjJyqGgQAh+QQJCAAAACwAAAAAEAAQAAAHZ4AAgoOEhYaCJSWHgxGDJCSMhREZGIYYGY2ElYebi56fhyWQniSKAKKfpaCLFlAPhl0gXYNGEwkhGYREUywag1wJwSkHNDU3D0kJYIMZQwk8MjPBLx9eXwuETVEyAC/BOKsuEjYFhoEAIfkECQgAAAAsAAAAABAAEAAAB2eAAIKDhIWGgiUlh4MRgyQkjIURGRiGGBmNhJWHm4ueICImip6CIQkJKJ4kigynKaqKCyMnKqSEK05StgAGQRxPYZaENqccFgIID4KXmQBhXFkzDgOnFYLNgltaSAAEpxa7BQoQF4aBACH5BAkIAAAALAAAAAAQABAAAAdogACCg4SFggJiPUqCJSWGgkZjCUwZACQkgxGEXAmdT4UYGZqCGWQ+IjKGGIUwPzGPhAc0NTewhDOdL7Ykji+dOLuOLhI2BbaFETICx4MlQitdqoUsCQ2vhKGjglNfU0SWmILaj43M5oEAOwAAAAAAAAAAAA==) no-repeat center left; } +#full_list { padding: 0; list-style: none; margin-left: 0; margin-top: 80px; font-size: 1.1em; } +#full_list ul { padding: 0; } +#full_list li { padding: 0; margin: 0; list-style: none; } +#full_list li .item { padding: 5px 5px 5px 12px; } +#noresults { padding: 7px 12px; background: #fff; } +#content.insearch #noresults { margin-left: 7px; } +li.collapsed ul { display: none; } +li a.toggle { cursor: default; position: relative; left: -5px; top: 4px; text-indent: -999px; width: 10px; height: 9px; margin-left: -10px; display: block; float: left; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAVdEVYdENyZWF0aW9uIFRpbWUAMy8xNC8wOeNZPpQAAAE2SURBVDiNrZTBccIwEEXfelIAHUA6CZ24BGaWO+FuzZAK4k6gg5QAdGAq+Bxs2Yqx7BzyL7Llp/VfzZeQhCTc/ezuGzKKnKSzpCxXJM8fwNXda3df5RZETlIt6YUzSQDs93sl8w3wBZxCCE10GM1OcWbWjB2mWgEH4Mfdyxm3PSepBHibgQE2wLe7r4HjEidpnXMYdQPKEMJcsZ4zs2POYQOcaPfwMVOo58zsAdMt18BuoVDPxUJRacELbXv3hUIX2vYmOUvi8C8ydz/ThjXrqKqqLbDIAdsCKBd+Wo7GWa7o9qzOQHVVVXeAbs+yHHCH4aTsaCOQqunmUy1yBUAXkdMIfMlgF5EXLo2OpV/c/Up7jG4hhHcYLgWzAZXUc2b2ixsfvc/RmNNfOXD3Q/oeL9axJE1yT9IOoUu6MGUkAAAAAElFTkSuQmCC) no-repeat bottom left; } +li.collapsed a.toggle { opacity: 0.5; cursor: default; background-position: top left; } +li { color: #888; cursor: pointer; } +li.deprecated { text-decoration: line-through; font-style: italic; } +li.odd { background: #f0f0f0; } +li.even { background: #fafafa; } +.item:hover { background: #ddd; } +li small:before { content: "("; } +li small:after { content: ")"; } +li small.search_info { display: none; } +a, a:visited { text-decoration: none; color: #05a; } +li.clicked > .item { background: #05a; color: #ccc; } +li.clicked > .item a, li.clicked > .item a:visited { color: #eee; } +li.clicked > .item a.toggle { opacity: 0.5; background-position: bottom right; } +li.collapsed.clicked a.toggle { background-position: top right; } +#search input { border: 1px solid #bbb; border-radius: 3px; } +#full_list_nav { margin-left: 10px; font-size: 0.9em; display: block; color: #aaa; } +#full_list_nav a, #nav a:visited { color: #358; } +#full_list_nav a:hover { background: transparent; color: #5af; } +#full_list_nav span:after { content: ' | '; } +#full_list_nav span:last-child:after { content: ''; } + +#content h1 { margin-top: 0; } +li { white-space: nowrap; cursor: normal; } +li small { display: block; font-size: 0.8em; } +li small:before { content: ""; } +li small:after { content: ""; } +li small.search_info { display: none; } +#search { width: 170px; position: static; margin: 3px; margin-left: 10px; font-size: 0.9em; color: #888; padding-left: 0; padding-right: 24px; } +#content.insearch #search { background-position: center right; } +#search input { width: 110px; } + +#full_list.insearch ul { display: block; } +#full_list.insearch .item { display: none; } +#full_list.insearch .found { display: block; padding-left: 11px !important; } +#full_list.insearch li a.toggle { display: none; } +#full_list.insearch li small.search_info { display: block; } diff --git a/css/style.css b/css/style.css new file mode 100644 index 000000000..eb0dbc86f --- /dev/null +++ b/css/style.css @@ -0,0 +1,497 @@ +html { + width: 100%; + height: 100%; +} +body { + font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; + font-size: 13px; + width: 100%; + margin: 0; + padding: 0; + display: flex; + display: -webkit-flex; + display: -ms-flexbox; +} + +#nav { + position: relative; + width: 100%; + height: 100%; + border: 0; + border-right: 1px dotted #eee; + overflow: auto; +} +.nav_wrap { + margin: 0; + padding: 0; + width: 20%; + height: 100%; + position: relative; + display: flex; + display: -webkit-flex; + display: -ms-flexbox; + flex-shrink: 0; + -webkit-flex-shrink: 0; + -ms-flex: 1 0; +} +#resizer { + position: absolute; + right: -5px; + top: 0; + width: 10px; + height: 100%; + cursor: col-resize; + z-index: 9999; +} +#main { + flex: 5 1; + -webkit-flex: 5 1; + -ms-flex: 5 1; + outline: none; + position: relative; + background: #fff; + padding: 1.2em; + padding-top: 0.2em; + box-sizing: border-box; +} + +@media (max-width: 920px) { + .nav_wrap { width: 100%; top: 0; right: 0; overflow: visible; position: absolute; } + #resizer { display: none; } + #nav { + z-index: 9999; + background: #fff; + display: none; + position: absolute; + top: 40px; + right: 12px; + width: 500px; + max-width: 80%; + height: 80%; + overflow-y: scroll; + border: 1px solid #999; + border-collapse: collapse; + box-shadow: -7px 5px 25px #aaa; + border-radius: 2px; + } +} + +@media (min-width: 920px) { + body { height: 100%; overflow: hidden; } + #main { height: 100%; overflow: auto; } + #search { display: none; } +} + +#main img { max-width: 100%; } +h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; } +h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; } +h1.title { margin-bottom: 10px; } +h1.alphaindex { margin-top: 0; font-size: 22px; } +h2 { + padding: 0; + padding-bottom: 3px; + border-bottom: 1px #aaa solid; + font-size: 1.4em; + margin: 1.8em 0 0.5em; + position: relative; +} +h2 small { font-weight: normal; font-size: 0.7em; display: inline; position: absolute; right: 0; } +h2 small a { + display: block; + height: 20px; + border: 1px solid #aaa; + border-bottom: 0; + border-top-left-radius: 5px; + background: #f8f8f8; + position: relative; + padding: 2px 7px; +} +.clear { clear: both; } +.inline { display: inline; } +.inline p:first-child { display: inline; } +.docstring, .tags, #filecontents { font-size: 15px; line-height: 1.5145em; } +.docstring p > code, .docstring p > tt, .tags p > code, .tags p > tt { + color: #c7254e; background: #f9f2f4; padding: 2px 4px; font-size: 1em; + border-radius: 4px; +} +.docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; } +.docstring h1 { font-size: 1.2em; } +.docstring h2 { font-size: 1.1em; } +.docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; } +.summary_desc .object_link a, .docstring .object_link a { + font-family: monospace; font-size: 1.05em; + color: #05a; background: #EDF4FA; padding: 2px 4px; font-size: 1em; + border-radius: 4px; +} +.rdoc-term { padding-right: 25px; font-weight: bold; } +.rdoc-list p { margin: 0; padding: 0; margin-bottom: 4px; } +.summary_desc pre.code .object_link a, .docstring pre.code .object_link a { + padding: 0px; background: inherit; color: inherit; border-radius: inherit; +} + +/* style for */ +#filecontents table, .docstring table { border-collapse: collapse; } +#filecontents table th, #filecontents table td, +.docstring table th, .docstring table td { border: 1px solid #ccc; padding: 8px; padding-right: 17px; } +#filecontents table tr:nth-child(odd), +.docstring table tr:nth-child(odd) { background: #eee; } +#filecontents table tr:nth-child(even), +.docstring table tr:nth-child(even) { background: #fff; } +#filecontents table th, .docstring table th { background: #fff; } + +/* style for
    */ +#filecontents li > p, .docstring li > p { margin: 0px; } +#filecontents ul, .docstring ul { padding-left: 20px; } +/* style for
    */ +#filecontents dl, .docstring dl { border: 1px solid #ccc; } +#filecontents dt, .docstring dt { background: #ddd; font-weight: bold; padding: 3px 5px; } +#filecontents dd, .docstring dd { padding: 5px 0px; margin-left: 18px; } +#filecontents dd > p, .docstring dd > p { margin: 0px; } + +.note { + color: #222; + margin: 20px 0; + padding: 10px; + border: 1px solid #eee; + border-radius: 3px; + display: block; +} +.docstring .note { + border-left-color: #ccc; + border-left-width: 5px; +} +.note.todo { background: #ffffc5; border-color: #ececaa; } +.note.returns_void { background: #efefef; } +.note.deprecated { background: #ffe5e5; border-color: #e9dada; } +.note.title.deprecated { background: #ffe5e5; border-color: #e9dada; } +.note.private { background: #ffffc5; border-color: #ececaa; } +.note.title { padding: 3px 6px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; display: inline; } +.summary_signature + .note.title { margin-left: 7px; } +h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; } +.note.title { background: #efefef; } +.note.title.constructor { color: #fff; background: #6a98d6; border-color: #6689d6; } +.note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; } +.note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; } +.note.title.private { background: #d5d5d5; border-color: #c5c5c5; } +.note.title.not_defined_here { background: transparent; border: none; font-style: italic; } +.discussion .note { margin-top: 6px; } +.discussion .note:first-child { margin-top: 0; } + +h3.inherited { + font-style: italic; + font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; + font-weight: normal; + padding: 0; + margin: 0; + margin-top: 12px; + margin-bottom: 3px; + font-size: 13px; +} +p.inherited { + padding: 0; + margin: 0; + margin-left: 25px; +} + +.box_info dl { + margin: 0; + border: 0; + width: 100%; + font-size: 1em; + display: flex; + display: -webkit-flex; + display: -ms-flexbox; +} +.box_info dl dt { + flex-shrink: 0; + -webkit-flex-shrink: 1; + -ms-flex-shrink: 1; + width: 100px; + text-align: right; + font-weight: bold; + border: 1px solid #aaa; + border-width: 1px 0px 0px 1px; + padding: 6px 0; + padding-right: 10px; +} +.box_info dl dd { + flex-grow: 1; + -webkit-flex-grow: 1; + -ms-flex: 1; + max-width: 420px; + padding: 6px 0; + padding-right: 20px; + border: 1px solid #aaa; + border-width: 1px 1px 0 0; + overflow: hidden; + position: relative; +} +.box_info dl:last-child > * { + border-bottom: 1px solid #aaa; +} +.box_info dl:nth-child(odd) > * { background: #eee; } +.box_info dl:nth-child(even) > * { background: #fff; } +.box_info dl > * { margin: 0; } + +ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; } +.index_inline_list { padding-left: 0; font-size: 1.1em; } + +.index_inline_list li { + list-style: none; + display: inline-block; + padding: 0 12px; + line-height: 30px; + margin-bottom: 5px; +} + +dl.constants { margin-left: 10px; } +dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; } +dl.constants.compact dt { display: inline-block; font-weight: normal } +dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; } +dl.constants .docstring .note:first-child { margin-top: 5px; } + +.summary_desc { + margin-left: 32px; + display: block; + font-family: sans-serif; + font-size: 1.1em; + margin-top: 8px; + line-height: 1.5145em; + margin-bottom: 0.8em; +} +.summary_desc tt { font-size: 0.9em; } +dl.constants .note { padding: 2px 6px; padding-right: 12px; margin-top: 6px; } +dl.constants .docstring { margin-left: 32px; font-size: 0.9em; font-weight: normal; } +dl.constants .tags { padding-left: 32px; font-size: 0.9em; line-height: 0.8em; } +dl.constants .discussion *:first-child { margin-top: 0; } +dl.constants .discussion *:last-child { margin-bottom: 0; } + +.method_details { border-top: 1px dotted #ccc; margin-top: 25px; padding-top: 0; } +.method_details.first { border: 0; margin-top: 5px; } +.method_details.first h3.signature { margin-top: 1em; } +p.signature, h3.signature { + font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace; + padding: 6px 10px; margin-top: 1em; + background: #E8F4FF; border: 1px solid #d8d8e5; border-radius: 5px; +} +p.signature tt, +h3.signature tt { font-family: Monaco, Consolas, Courier, monospace; } +p.signature .overload, +h3.signature .overload { display: block; } +p.signature .extras, +h3.signature .extras { font-weight: normal; font-family: sans-serif; color: #444; font-size: 1em; } +p.signature .not_defined_here, +h3.signature .not_defined_here, +p.signature .aliases, +h3.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; font-family: sans-serif; margin-top: 0px; color: #555; } +p.signature .aliases .names, +h3.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; } + +.tags .tag_title { font-size: 1.05em; margin-bottom: 0; font-weight: bold; } +.tags .tag_title tt { color: initial; padding: initial; background: initial; } +.tags ul { margin-top: 5px; padding-left: 30px; list-style: square; } +.tags ul li { margin-bottom: 3px; } +.tags ul .name { font-family: monospace; font-weight: bold; } +.tags ul .note { padding: 3px 6px; } +.tags { margin-bottom: 12px; } + +.tags .examples .tag_title { margin-bottom: 10px; font-weight: bold; } +.tags .examples .inline p { padding: 0; margin: 0; font-weight: bold; font-size: 1em; } +.tags .examples .inline p:before { content: "▸"; font-size: 1em; margin-right: 5px; } + +.tags .overload .overload_item { list-style: none; margin-bottom: 25px; } +.tags .overload .overload_item .signature { + padding: 2px 8px; + background: #F1F8FF; border: 1px solid #d8d8e5; border-radius: 3px; +} +.tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; } +.tags .overload .docstring { margin-top: 15px; } + +.defines { display: none; } + +#method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; } + +.showSource { font-size: 0.9em; } +.showSource a, .showSource a:visited { text-decoration: none; color: #666; } + +#content a, #content a:visited { text-decoration: none; color: #05a; } +#content a:hover { background: #ffffa5; } + +ul.summary { + list-style: none; + font-family: monospace; + font-size: 1em; + line-height: 1.5em; + padding-left: 0px; +} +ul.summary a, ul.summary a:visited { + text-decoration: none; font-size: 1.1em; +} +ul.summary li { margin-bottom: 5px; } +.summary_signature { padding: 4px 8px; background: #f8f8f8; border: 1px solid #f0f0f0; border-radius: 5px; } +.summary_signature:hover { background: #CFEBFF; border-color: #A4CCDA; cursor: pointer; } +.summary_signature.deprecated { background: #ffe5e5; border-color: #e9dada; } +ul.summary.compact li { display: inline-block; margin: 0px 5px 0px 0px; line-height: 2.6em;} +ul.summary.compact .summary_signature { padding: 5px 7px; padding-right: 4px; } +#content .summary_signature:hover a, +#content .summary_signature:hover a:visited { + background: transparent; + color: #049; +} + +p.inherited a { font-family: monospace; font-size: 0.9em; } +p.inherited { word-spacing: 5px; font-size: 1.2em; } + +p.children { font-size: 1.2em; } +p.children a { font-size: 0.9em; } +p.children strong { font-size: 0.8em; } +p.children strong.modules { padding-left: 5px; } + +ul.fullTree { display: none; padding-left: 0; list-style: none; margin-left: 0; margin-bottom: 10px; } +ul.fullTree ul { margin-left: 0; padding-left: 0; list-style: none; } +ul.fullTree li { text-align: center; padding-top: 18px; padding-bottom: 12px; background: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAHtJREFUeNqMzrEJAkEURdGzuhgZbSoYWcAWoBVsB4JgZAGmphsZCZYzTQgWNCYrDN9RvMmHx+X916SUBFbo8CzD1idXrLErw1mQttgXtyrOcQ/Ny5p4Qh+2XqLYYazsPWNTiuMkRxa4vcV+evuNAUOLIx5+c2hyzv7hNQC67Q+/HHmlEwAAAABJRU5ErkJggg==) no-repeat top center; } +ul.fullTree li:first-child { padding-top: 0; background: transparent; } +ul.fullTree li:last-child { padding-bottom: 0; } +.showAll ul.fullTree { display: block; } +.showAll .inheritName { display: none; } + +#search { position: absolute; right: 12px; top: 0px; z-index: 9000; } +#search a { + display: block; float: left; + padding: 4px 8px; text-decoration: none; color: #05a; fill: #05a; + border: 1px solid #d8d8e5; + border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; + background: #F1F8FF; + box-shadow: -1px 1px 3px #ddd; +} +#search a:hover { background: #f5faff; color: #06b; fill: #06b; } +#search a.active { + background: #568; padding-bottom: 20px; color: #fff; fill: #fff; + border: 1px solid #457; + border-top-left-radius: 5px; border-top-right-radius: 5px; +} +#search a.inactive { color: #999; fill: #999; } +.inheritanceTree, .toggleDefines { + float: right; + border-left: 1px solid #aaa; + position: absolute; top: 0; right: 0; + height: 100%; + background: #f6f6f6; + padding: 5px; + min-width: 55px; + text-align: center; +} + +#menu { font-size: 1.3em; color: #bbb; } +#menu .title, #menu a { font-size: 0.7em; } +#menu .title a { font-size: 1em; } +#menu .title { color: #555; } +#menu a, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; } +#menu a:hover { color: #05a; } + +#footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; } +#footer a, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; } +#footer a:hover { color: #05a; } + +#listing ul.alpha { font-size: 1.1em; } +#listing ul.alpha { margin: 0; padding: 0; padding-bottom: 10px; list-style: none; } +#listing ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; } +#listing ul.alpha ul { margin: 0; padding-left: 15px; } +#listing ul small { color: #666; font-size: 0.7em; } + +li.r1 { background: #f0f0f0; } +li.r2 { background: #fafafa; } + +#content ul.summary li.deprecated .summary_signature a, +#content ul.summary li.deprecated .summary_signature a:visited { text-decoration: line-through; font-style: italic; } + +#toc { + position: relative; + float: right; + overflow-x: auto; + right: -3px; + margin-left: 20px; + margin-bottom: 20px; + padding: 20px; padding-right: 30px; + max-width: 300px; + z-index: 5000; + background: #fefefe; + border: 1px solid #ddd; + box-shadow: -2px 2px 6px #bbb; +} +#toc .title { margin: 0; } +#toc ol { padding-left: 1.8em; } +#toc li { font-size: 1.1em; line-height: 1.7em; } +#toc > ol > li { font-size: 1.1em; font-weight: bold; } +#toc ol > li > ol { font-size: 0.9em; } +#toc ol ol > li > ol { padding-left: 2.3em; } +#toc ol + li { margin-top: 0.3em; } +#toc.hidden { padding: 10px; background: #fefefe; box-shadow: none; } +#toc.hidden:hover { background: #fafafa; } +#filecontents h1 + #toc.nofloat { margin-top: 0; } +@media (max-width: 560px) { + #toc { + margin-left: 0; + margin-top: 16px; + float: none; + max-width: none; + } +} + +/* syntax highlighting */ +.source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; } +#filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; } +#filecontents pre.code, .docstring pre.code { display: block; } +.source_code .lines { padding-right: 12px; color: #555; text-align: right; } +#filecontents pre.code, .docstring pre.code, +.tags pre.example { + padding: 9px 14px; + margin-top: 4px; + border: 1px solid #e1e1e8; + background: #f7f7f9; + border-radius: 4px; + font-size: 1em; + overflow-x: auto; + line-height: 1.2em; +} +pre.code { color: #000; tab-size: 2; } +pre.code .info.file { color: #555; } +pre.code .val { color: #036A07; } +pre.code .tstring_content, +pre.code .heredoc_beg, pre.code .heredoc_end, +pre.code .qwords_beg, pre.code .qwords_end, pre.code .qwords_sep, +pre.code .words_beg, pre.code .words_end, pre.code .words_sep, +pre.code .qsymbols_beg, pre.code .qsymbols_end, pre.code .qsymbols_sep, +pre.code .symbols_beg, pre.code .symbols_end, pre.code .symbols_sep, +pre.code .tstring, pre.code .dstring { color: #036A07; } +pre.code .fid, pre.code .rubyid_new, pre.code .rubyid_to_s, +pre.code .rubyid_to_sym, pre.code .rubyid_to_f, +pre.code .dot + pre.code .id, +pre.code .rubyid_to_i pre.code .rubyid_each { color: #0085FF; } +pre.code .comment { color: #0066FF; } +pre.code .const, pre.code .constant { color: #585CF6; } +pre.code .label, +pre.code .symbol { color: #C5060B; } +pre.code .kw, +pre.code .rubyid_require, +pre.code .rubyid_extend, +pre.code .rubyid_include { color: #0000FF; } +pre.code .ivar { color: #318495; } +pre.code .gvar, +pre.code .rubyid_backref, +pre.code .rubyid_nth_ref { color: #6D79DE; } +pre.code .regexp, .dregexp { color: #036A07; } +pre.code a { border-bottom: 1px dotted #bbf; } +/* inline code */ +*:not(pre) > code { + padding: 1px 3px 1px 3px; + border: 1px solid #E1E1E8; + background: #F7F7F9; + border-radius: 4px; +} + +/* Color fix for links */ +#content .summary_desc pre.code .id > .object_link a, /* identifier */ +#content .docstring pre.code .id > .object_link a { color: #0085FF; } +#content .summary_desc pre.code .const > .object_link a, /* constant */ +#content .docstring pre.code .const > .object_link a { color: #585CF6; } diff --git a/file.GETTING_STARTED.html b/file.GETTING_STARTED.html new file mode 100644 index 000000000..4445c4cd1 --- /dev/null +++ b/file.GETTING_STARTED.html @@ -0,0 +1,361 @@ + + + + + + + File: GETTING_STARTED + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
    + + +
    +

    This repository houses the official ruby client for Recurly's V3 API.

    + +

    Installing

    + +

    In your Gemfile, add recurly as a dependency.

    + +
    gem 'recurly', '~> 4.34'
    +
    + +
    +

    Note: We try to follow semantic versioning and will only apply breaking changes to major versions.

    +
    + +

    Creating a client

    + +

    A client represents a connection to the Recurly servers. Every call to the server exists as a method on this class. To initialize, you only need the private API key which can be obtained on the API Credentials Page.

    + +
    API_KEY = '83749879bbde395b5fe0cc1a5abf8e5'
    +client = Recurly::Client.new(api_key: API_KEY)
    +sub = client.get_subscription(subscription_id: 'abcd123456')
    +
    + +

    To access Recurly API in Europe, you will need to specify the EU Region in the argument region.

    + +
    API_KEY = '83749879bbde395b5fe0cc1a5abf8e5'
    +client = Recurly::Client.new(api_key: API_KEY, region: :eu)
    +sub = client.get_subscription(subscription_id: 'abcd123456')
    +
    + +

    You can also pass the initializer a block. This will give you a client scoped for just that block:

    + +
    Recurly::Client.new(api_key: API_KEY) do |client|
    +  sub = client.get_subscription(subscription_id: 'abcd123456')
    +end
    +
    + +

    If you plan on using the client for more than one site, you should initialize a new client for each site.

    + +
    client = Recurly::Client.new(api_key: API_KEY1) 
    +sub = client.get_subscription(subscription_id: 'abcd123456')
    +
    +# you should create a new client to connect to another site
    +client = Recurly::Client.new(api_key: API_KEY2) 
    +sub = client.get_subscription(subscription_id: 'abcd7890')
    +
    + +

    Logging

    + +

    The client constructor optionally accepts a logger provided by the programmer. The logger you pass should be an instance of ruby stdlib's Logger or follow the same interface. By default, the client creates a logger to STDOUT with level WARN.

    + +
    require 'logger'
    +
    +# Create a logger to STDOUT
    +logger = Logger.new(STDOUT)
    +logger.level = Logger::INFO
    +
    +# You could also use an existing logger
    +# If you are using Rails you may want to use your application's logger
    +logger = Rails.logger
    +
    +client = Recurly::Client.new(api_key: API_KEY, logger: logger)
    +
    + +
    +

    SECURITY WARNING: The log level should never be set to DEBUG in production. This could potentially result in sensitive data in your logging system.

    +
    + +

    Operations

    + +

    The Recurly::Client contains every operation you can perform on the site as a list of methods. Each method is documented explaining the types and descriptions for each input and return type. You can view all available operations by looking at the Instance Methods Summary list on the Recurly::Client documentation page. Clicking a method will give you detailed information about its inputs and returns. Take the create_account operation as an example: Recurly::Client#create_account.

    + +

    Pagination

    + +

    Pagination is done by the class Recurly::Pager. All list_* methods on the client return an instance of this class. The pager has an each method which accepts a block for each object in the entire list. Each page is fetched automatically for you presenting the elements as a single enumerable.

    + +
    plans = client.list_plans()
    +plans.each do |plan|
    +  puts "Plan: #{plan.id}"
    +end
    +
    + +

    You may also paginate in chunks with each_page.

    + +
    plans = client.list_plans()
    +plans.each_page do |data|
    +  data.each do |plan|
    +    puts "Plan: #{plan.id}"
    +  end
    +end
    +
    + +

    Both Pager#each and Pager#each_page return Enumerators if a block is not given. This allows you to use other Enumerator methods such as map or each_with_index.

    + +
    plans = client.list_plans()
    +plans.each_page.each_with_index do |data, page_num|
    +  puts "Page Number #{page_num}"
    +  data.each do |plan|
    +    puts "Plan: #{plan.id}"
    +  end
    +end
    +
    + +

    Pagination endpoints take a number of options to sort and filter the results. They can be passed in as a hash provided by the :params keyword argument. The names, types, and descriptions of these arguments are listed in the rubydocs for each method:

    + +
    options = {
    +  params: {
    +    limit: 200, # number of items per page
    +    state: :active, # only active plans
    +    sort: :updated_at,
    +    order: :asc,
    +    begin_time: DateTime.new(2017,1,1), # January 1st 2017,
    +    end_time: DateTime.now
    +  }
    +}
    +
    +plans = client.list_plans(**options)
    +plans.each do |plan|
    +  puts "Plan: #{plan.id}"
    +end
    +
    + +

    A note on limit:

    + +

    limit defaults to 20 items per page and can be set from 1 to 200. Choosing a lower limit means more network requests but smaller payloads. We recommend keeping the default for most cases but increasing the limit if you are planning on iterating through many pages of items (e.g. all transactions in your site).

    + +

    Efficiently Fetch the First or Last Resource

    + +

    The Pager class implements a first method which allows you to fetch just the first or last resource from the server. On top of being a convenient abstraction, this is implemented efficiently by only asking the server for the 1 item you want.

    + +
    accounts = client.list_accounts(
    +  subscriber: true,
    +  order: :desc
    +)
    +
    +last_subscriber = accounts.first
    +
    + +

    If you want to fetch the last account in this scenario, invert the order from descending desc to ascending asc:

    + +
    accounts = client.list_accounts(
    +  subscriber: true,
    +  order: :asc
    +)
    +
    +first_subscriber = accounts.first
    +
    + +

    Counting Resources

    + +

    The Pager class implements a count method which allows you to count the resources the pager would return. It does so by calling the endpoint with HEAD and parsing and returning the Recurly-Total-Records header. This method respects any filtering parameters you apply to the pager, but the sorting parameters will have no effect.

    + +
    accounts = client.list_accounts(
    +  subscriber: true,
    +  begin_time: DateTime.new(2017,1,1)
    +)
    +
    +# Calling count here will return an integer indicating
    +# the number of subscribers since 2017
    +count = accounts.count
    +# => 573
    +
    + +

    Creating Resources

    + +

    Currently, resources are created by passing in a body keyword argument in the form of a Hash. This Hash must follow the schema of the documented request type. For example, the create_plan operation takes a request of type Recurly::Requests::PlanCreate. Failing to conform to this schema will result in an argument error.

    + +
    require 'securerandom'
    +
    +code = SecureRandom.uuid
    +plan_data = {
    +  code: code,
    +  interval_length: 1,
    +  interval_unit: 'months',
    +  name: code,
    +  currencies: [
    +    {
    +      currency: 'USD',
    +      setup_fee: 800,
    +      unit_amount: 10
    +    }
    +  ]
    +}
    +
    +plan = client.create_plan(body: plan_data)
    +
    + +

    Error Handling

    + +

    All errors thrown by this library are based off of the Recurly::Errors::APIError. There

    + +

    This library throws one main type of exception, Recurly::Errors::APIError. There exists an additional hierarchy of errors to facilitate the process of rescuing various classes of errors. More detail can be found in the Api Errors Module.

    + +

    You can catch specific or generic versions of these exceptions. Example:

    + +
    begin
    +  client = Recurly::Client.new(api_key: API_KEY)
    +  code = "iexistalready"
    +  plan_data = {
    +    code: code,
    +    interval_length: 1,
    +    interval_unit: 'months',
    +    name: code,
    +    currencies: [
    +      {
    +        currency: 'USD',
    +        setup_fee: 800,
    +        unit_amount: 10
    +      }
    +    ]
    +  }
    +
    +  plan = client.create_plan(body: plan_data)
    +rescue Recurly::Errors::ValidationError => ex
    +  puts ex.inspect
    +  #=> #<Recurly::ValidationError: Recurly::ValidationError: Code 'iexistalready' already exists>
    +  puts ex.recurly_error.inspect
    +  #=> #<Recurly::Error:0x007fbbdf8a32c8 @attributes={:type=>"validation", :message=>"Code 'iexistalready' already exists", :params=>[{"param"=>"code", "message"=>"'iexistalready' already exists"}]}>
    +  puts ex.status_code
    +  #=> 422
    +rescue Recurly::Errors::TimeoutError => ex
    +  # catch a specific server error
    +rescue Recurly::Errors::ServerError => ex
    +  # catch a generic server error
    +rescue Recurly::Errors::APIError => ex
    +  # catch a generic api error
    +end
    +
    + +

    Recurly::Errors::APIError instances provide access to the response via the #get_response method.

    + +

    HTTP Metadata

    + +

    Sometimes you might want to get some additional information about the underlying HTTP request and response. Instead of returning this information directly and forcing the programmer to unwrap it, we inject this metadata into the top level resource that was returned. You can access the Recurly::HTTP::Response by calling #get_response on any Recurly::Resource.

    + +

    Warning: Do not log or render whole requests or responses as they may contain PII or sensitive data.

    + +
     = @client.(account_id: "code-benjamin")
    +response = .get_response
    +response.rate_limit_remaining #=> 1985
    +response.request_id #=> "0av50sm5l2n2gkf88ehg"
    +response.request.path #=> "/sites/subdomain-mysite/accounts/code-benjamin"
    +response.request.body #=> None
    +
    + +

    This also works on Recurly::Resources::Empty responses:

    + +
    response = @client.remove_line_item(
    +  line_item_id: "a959576b2b10b012"
    +).get_response
    +
    + +

    And it can be captured on exceptions through the Recurly::APIError object:

    + +
    begin
    +   = client.(account_id: "code-benjamin")
    +rescue Recurly::Errors::NotFoundError => e
    +  response = e.get_response()
    +  puts "Give this request id to Recurly Support: #{response.request_id}"
    +end
    +
    + +

    Webhooks

    + +

    Recurly can send webhooks to any publicly accessible server. When an event in Recurly triggers a webhook (e.g., an account is opened), Recurly will attempt to send this notification to the endpoint(s) you specify. You can specify up to 10 endpoints through the application. All notifications will be sent to all configured endpoints for your site.

    + +

    See our product docs to learn more about webhooks and see our dev docs to learn about what payloads are available.

    + +

    Although our API is now JSON, our webhook payloads are still formatted as XML for the time being. This library is not yet responsible for handling webhooks. If you do need webhooks, we recommend using a simple XML to Hash parser.

    + +

    If you are using Rails, we'd recommend Hash.from_xml.

    + +
    notification = Hash.from_xml <<-XML
    +  <?xml version="1.0" encoding="UTF-8"?>
    +  <new_account_notification>
    +    <account>
    +      <account_code>1</account_code>
    +      <username nil="true"></username>
    +      <email>verena@example.com</email>
    +      <first_name>Verena</first_name>
    +      <last_name>Example</last_name>
    +      <company_name nil="true"></company_name>
    +    </account>
    +  </new_account_notification>
    +XML
    +
    +code = notification["new_account_notification"]["account"]["account_code"]
    +puts "New Account with code #{code} created."
    +
    + +

    If you are not using Rails, we recommend you use nokogiri; however, heed security warnings about parse options. Although the XML should only be coming from Recurly, you should parse it as untrusted to be safe. Read more about the security implications of parsing untrusted XML in this OWASP cheatsheet.

    +
    + + + +
    + + \ No newline at end of file diff --git a/file_list.html b/file_list.html new file mode 100644 index 000000000..6f16ef17d --- /dev/null +++ b/file_list.html @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + File List + + + +
    +
    +

    File List

    + + + +
    + + +
    + + diff --git a/frames.html b/frames.html new file mode 100644 index 000000000..4f918f573 --- /dev/null +++ b/frames.html @@ -0,0 +1,17 @@ + + + + + Documentation by YARD 0.9.34 + + + + diff --git a/index.html b/index.html new file mode 100644 index 000000000..b7dce100b --- /dev/null +++ b/index.html @@ -0,0 +1,361 @@ + + + + + + + File: GETTING_STARTED + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
    + + +
    +

    This repository houses the official ruby client for Recurly's V3 API.

    + +

    Installing

    + +

    In your Gemfile, add recurly as a dependency.

    + +
    gem 'recurly', '~> 4.34'
    +
    + +
    +

    Note: We try to follow semantic versioning and will only apply breaking changes to major versions.

    +
    + +

    Creating a client

    + +

    A client represents a connection to the Recurly servers. Every call to the server exists as a method on this class. To initialize, you only need the private API key which can be obtained on the API Credentials Page.

    + +
    API_KEY = '83749879bbde395b5fe0cc1a5abf8e5'
    +client = Recurly::Client.new(api_key: API_KEY)
    +sub = client.get_subscription(subscription_id: 'abcd123456')
    +
    + +

    To access Recurly API in Europe, you will need to specify the EU Region in the argument region.

    + +
    API_KEY = '83749879bbde395b5fe0cc1a5abf8e5'
    +client = Recurly::Client.new(api_key: API_KEY, region: :eu)
    +sub = client.get_subscription(subscription_id: 'abcd123456')
    +
    + +

    You can also pass the initializer a block. This will give you a client scoped for just that block:

    + +
    Recurly::Client.new(api_key: API_KEY) do |client|
    +  sub = client.get_subscription(subscription_id: 'abcd123456')
    +end
    +
    + +

    If you plan on using the client for more than one site, you should initialize a new client for each site.

    + +
    client = Recurly::Client.new(api_key: API_KEY1) 
    +sub = client.get_subscription(subscription_id: 'abcd123456')
    +
    +# you should create a new client to connect to another site
    +client = Recurly::Client.new(api_key: API_KEY2) 
    +sub = client.get_subscription(subscription_id: 'abcd7890')
    +
    + +

    Logging

    + +

    The client constructor optionally accepts a logger provided by the programmer. The logger you pass should be an instance of ruby stdlib's Logger or follow the same interface. By default, the client creates a logger to STDOUT with level WARN.

    + +
    require 'logger'
    +
    +# Create a logger to STDOUT
    +logger = Logger.new(STDOUT)
    +logger.level = Logger::INFO
    +
    +# You could also use an existing logger
    +# If you are using Rails you may want to use your application's logger
    +logger = Rails.logger
    +
    +client = Recurly::Client.new(api_key: API_KEY, logger: logger)
    +
    + +
    +

    SECURITY WARNING: The log level should never be set to DEBUG in production. This could potentially result in sensitive data in your logging system.

    +
    + +

    Operations

    + +

    The Recurly::Client contains every operation you can perform on the site as a list of methods. Each method is documented explaining the types and descriptions for each input and return type. You can view all available operations by looking at the Instance Methods Summary list on the Recurly::Client documentation page. Clicking a method will give you detailed information about its inputs and returns. Take the create_account operation as an example: Recurly::Client#create_account.

    + +

    Pagination

    + +

    Pagination is done by the class Recurly::Pager. All list_* methods on the client return an instance of this class. The pager has an each method which accepts a block for each object in the entire list. Each page is fetched automatically for you presenting the elements as a single enumerable.

    + +
    plans = client.list_plans()
    +plans.each do |plan|
    +  puts "Plan: #{plan.id}"
    +end
    +
    + +

    You may also paginate in chunks with each_page.

    + +
    plans = client.list_plans()
    +plans.each_page do |data|
    +  data.each do |plan|
    +    puts "Plan: #{plan.id}"
    +  end
    +end
    +
    + +

    Both Pager#each and Pager#each_page return Enumerators if a block is not given. This allows you to use other Enumerator methods such as map or each_with_index.

    + +
    plans = client.list_plans()
    +plans.each_page.each_with_index do |data, page_num|
    +  puts "Page Number #{page_num}"
    +  data.each do |plan|
    +    puts "Plan: #{plan.id}"
    +  end
    +end
    +
    + +

    Pagination endpoints take a number of options to sort and filter the results. They can be passed in as a hash provided by the :params keyword argument. The names, types, and descriptions of these arguments are listed in the rubydocs for each method:

    + +
    options = {
    +  params: {
    +    limit: 200, # number of items per page
    +    state: :active, # only active plans
    +    sort: :updated_at,
    +    order: :asc,
    +    begin_time: DateTime.new(2017,1,1), # January 1st 2017,
    +    end_time: DateTime.now
    +  }
    +}
    +
    +plans = client.list_plans(**options)
    +plans.each do |plan|
    +  puts "Plan: #{plan.id}"
    +end
    +
    + +

    A note on limit:

    + +

    limit defaults to 20 items per page and can be set from 1 to 200. Choosing a lower limit means more network requests but smaller payloads. We recommend keeping the default for most cases but increasing the limit if you are planning on iterating through many pages of items (e.g. all transactions in your site).

    + +

    Efficiently Fetch the First or Last Resource

    + +

    The Pager class implements a first method which allows you to fetch just the first or last resource from the server. On top of being a convenient abstraction, this is implemented efficiently by only asking the server for the 1 item you want.

    + +
    accounts = client.list_accounts(
    +  subscriber: true,
    +  order: :desc
    +)
    +
    +last_subscriber = accounts.first
    +
    + +

    If you want to fetch the last account in this scenario, invert the order from descending desc to ascending asc:

    + +
    accounts = client.list_accounts(
    +  subscriber: true,
    +  order: :asc
    +)
    +
    +first_subscriber = accounts.first
    +
    + +

    Counting Resources

    + +

    The Pager class implements a count method which allows you to count the resources the pager would return. It does so by calling the endpoint with HEAD and parsing and returning the Recurly-Total-Records header. This method respects any filtering parameters you apply to the pager, but the sorting parameters will have no effect.

    + +
    accounts = client.list_accounts(
    +  subscriber: true,
    +  begin_time: DateTime.new(2017,1,1)
    +)
    +
    +# Calling count here will return an integer indicating
    +# the number of subscribers since 2017
    +count = accounts.count
    +# => 573
    +
    + +

    Creating Resources

    + +

    Currently, resources are created by passing in a body keyword argument in the form of a Hash. This Hash must follow the schema of the documented request type. For example, the create_plan operation takes a request of type Recurly::Requests::PlanCreate. Failing to conform to this schema will result in an argument error.

    + +
    require 'securerandom'
    +
    +code = SecureRandom.uuid
    +plan_data = {
    +  code: code,
    +  interval_length: 1,
    +  interval_unit: 'months',
    +  name: code,
    +  currencies: [
    +    {
    +      currency: 'USD',
    +      setup_fee: 800,
    +      unit_amount: 10
    +    }
    +  ]
    +}
    +
    +plan = client.create_plan(body: plan_data)
    +
    + +

    Error Handling

    + +

    All errors thrown by this library are based off of the Recurly::Errors::APIError. There

    + +

    This library throws one main type of exception, Recurly::Errors::APIError. There exists an additional hierarchy of errors to facilitate the process of rescuing various classes of errors. More detail can be found in the Api Errors Module.

    + +

    You can catch specific or generic versions of these exceptions. Example:

    + +
    begin
    +  client = Recurly::Client.new(api_key: API_KEY)
    +  code = "iexistalready"
    +  plan_data = {
    +    code: code,
    +    interval_length: 1,
    +    interval_unit: 'months',
    +    name: code,
    +    currencies: [
    +      {
    +        currency: 'USD',
    +        setup_fee: 800,
    +        unit_amount: 10
    +      }
    +    ]
    +  }
    +
    +  plan = client.create_plan(body: plan_data)
    +rescue Recurly::Errors::ValidationError => ex
    +  puts ex.inspect
    +  #=> #<Recurly::ValidationError: Recurly::ValidationError: Code 'iexistalready' already exists>
    +  puts ex.recurly_error.inspect
    +  #=> #<Recurly::Error:0x007fbbdf8a32c8 @attributes={:type=>"validation", :message=>"Code 'iexistalready' already exists", :params=>[{"param"=>"code", "message"=>"'iexistalready' already exists"}]}>
    +  puts ex.status_code
    +  #=> 422
    +rescue Recurly::Errors::TimeoutError => ex
    +  # catch a specific server error
    +rescue Recurly::Errors::ServerError => ex
    +  # catch a generic server error
    +rescue Recurly::Errors::APIError => ex
    +  # catch a generic api error
    +end
    +
    + +

    Recurly::Errors::APIError instances provide access to the response via the #get_response method.

    + +

    HTTP Metadata

    + +

    Sometimes you might want to get some additional information about the underlying HTTP request and response. Instead of returning this information directly and forcing the programmer to unwrap it, we inject this metadata into the top level resource that was returned. You can access the Recurly::HTTP::Response by calling #get_response on any Recurly::Resource.

    + +

    Warning: Do not log or render whole requests or responses as they may contain PII or sensitive data.

    + +
     = @client.(account_id: "code-benjamin")
    +response = .get_response
    +response.rate_limit_remaining #=> 1985
    +response.request_id #=> "0av50sm5l2n2gkf88ehg"
    +response.request.path #=> "/sites/subdomain-mysite/accounts/code-benjamin"
    +response.request.body #=> None
    +
    + +

    This also works on Recurly::Resources::Empty responses:

    + +
    response = @client.remove_line_item(
    +  line_item_id: "a959576b2b10b012"
    +).get_response
    +
    + +

    And it can be captured on exceptions through the Recurly::APIError object:

    + +
    begin
    +   = client.(account_id: "code-benjamin")
    +rescue Recurly::Errors::NotFoundError => e
    +  response = e.get_response()
    +  puts "Give this request id to Recurly Support: #{response.request_id}"
    +end
    +
    + +

    Webhooks

    + +

    Recurly can send webhooks to any publicly accessible server. When an event in Recurly triggers a webhook (e.g., an account is opened), Recurly will attempt to send this notification to the endpoint(s) you specify. You can specify up to 10 endpoints through the application. All notifications will be sent to all configured endpoints for your site.

    + +

    See our product docs to learn more about webhooks and see our dev docs to learn about what payloads are available.

    + +

    Although our API is now JSON, our webhook payloads are still formatted as XML for the time being. This library is not yet responsible for handling webhooks. If you do need webhooks, we recommend using a simple XML to Hash parser.

    + +

    If you are using Rails, we'd recommend Hash.from_xml.

    + +
    notification = Hash.from_xml <<-XML
    +  <?xml version="1.0" encoding="UTF-8"?>
    +  <new_account_notification>
    +    <account>
    +      <account_code>1</account_code>
    +      <username nil="true"></username>
    +      <email>verena@example.com</email>
    +      <first_name>Verena</first_name>
    +      <last_name>Example</last_name>
    +      <company_name nil="true"></company_name>
    +    </account>
    +  </new_account_notification>
    +XML
    +
    +code = notification["new_account_notification"]["account"]["account_code"]
    +puts "New Account with code #{code} created."
    +
    + +

    If you are not using Rails, we recommend you use nokogiri; however, heed security warnings about parse options. Although the XML should only be coming from Recurly, you should parse it as untrusted to be safe. Read more about the security implications of parsing untrusted XML in this OWASP cheatsheet.

    +
    + + + +
    + + \ No newline at end of file diff --git a/js/app.js b/js/app.js new file mode 100644 index 000000000..8d067fe30 --- /dev/null +++ b/js/app.js @@ -0,0 +1,314 @@ +(function() { + +var localStorage = {}, sessionStorage = {}; +try { localStorage = window.localStorage; } catch (e) { } +try { sessionStorage = window.sessionStorage; } catch (e) { } + +function createSourceLinks() { + $('.method_details_list .source_code'). + before("[View source]"); + $('.toggleSource').toggle(function() { + $(this).parent().nextAll('.source_code').slideDown(100); + $(this).text("Hide source"); + }, + function() { + $(this).parent().nextAll('.source_code').slideUp(100); + $(this).text("View source"); + }); +} + +function createDefineLinks() { + var tHeight = 0; + $('.defines').after(" more..."); + $('.toggleDefines').toggle(function() { + tHeight = $(this).parent().prev().height(); + $(this).prev().css('display', 'inline'); + $(this).parent().prev().height($(this).parent().height()); + $(this).text("(less)"); + }, + function() { + $(this).prev().hide(); + $(this).parent().prev().height(tHeight); + $(this).text("more..."); + }); +} + +function createFullTreeLinks() { + var tHeight = 0; + $('.inheritanceTree').toggle(function() { + tHeight = $(this).parent().prev().height(); + $(this).parent().toggleClass('showAll'); + $(this).text("(hide)"); + $(this).parent().prev().height($(this).parent().height()); + }, + function() { + $(this).parent().toggleClass('showAll'); + $(this).parent().prev().height(tHeight); + $(this).text("show all"); + }); +} + +function searchFrameButtons() { + $('.full_list_link').click(function() { + toggleSearchFrame(this, $(this).attr('href')); + return false; + }); + window.addEventListener('message', function(e) { + if (e.data === 'navEscape') { + $('#nav').slideUp(100); + $('#search a').removeClass('active inactive'); + $(window).focus(); + } + }); + + $(window).resize(function() { + if ($('#search:visible').length === 0) { + $('#nav').removeAttr('style'); + $('#search a').removeClass('active inactive'); + $(window).focus(); + } + }); +} + +function toggleSearchFrame(id, link) { + var frame = $('#nav'); + $('#search a').removeClass('active').addClass('inactive'); + if (frame.attr('src') === link && frame.css('display') !== "none") { + frame.slideUp(100); + $('#search a').removeClass('active inactive'); + } + else { + $(id).addClass('active').removeClass('inactive'); + if (frame.attr('src') !== link) frame.attr('src', link); + frame.slideDown(100); + } +} + +function linkSummaries() { + $('.summary_signature').click(function() { + document.location = $(this).find('a').attr('href'); + }); +} + +function summaryToggle() { + $('.summary_toggle').click(function(e) { + e.preventDefault(); + localStorage.summaryCollapsed = $(this).text(); + $('.summary_toggle').each(function() { + $(this).text($(this).text() == "collapse" ? "expand" : "collapse"); + var next = $(this).parent().parent().nextAll('ul.summary').first(); + if (next.hasClass('compact')) { + next.toggle(); + next.nextAll('ul.summary').first().toggle(); + } + else if (next.hasClass('summary')) { + var list = $('
      '); + list.html(next.html()); + list.find('.summary_desc, .note').remove(); + list.find('a').each(function() { + $(this).html($(this).find('strong').html()); + $(this).parent().html($(this)[0].outerHTML); + }); + next.before(list); + next.toggle(); + } + }); + return false; + }); + if (localStorage.summaryCollapsed == "collapse") { + $('.summary_toggle').first().click(); + } else { localStorage.summaryCollapsed = "expand"; } +} + +function constantSummaryToggle() { + $('.constants_summary_toggle').click(function(e) { + e.preventDefault(); + localStorage.summaryCollapsed = $(this).text(); + $('.constants_summary_toggle').each(function() { + $(this).text($(this).text() == "collapse" ? "expand" : "collapse"); + var next = $(this).parent().parent().nextAll('dl.constants').first(); + if (next.hasClass('compact')) { + next.toggle(); + next.nextAll('dl.constants').first().toggle(); + } + else if (next.hasClass('constants')) { + var list = $('
      '); + list.html(next.html()); + list.find('dt').each(function() { + $(this).addClass('summary_signature'); + $(this).text( $(this).text().split('=')[0]); + if ($(this).has(".deprecated").length) { + $(this).addClass('deprecated'); + }; + }); + // Add the value of the constant as "Tooltip" to the summary object + list.find('pre.code').each(function() { + console.log($(this).parent()); + var dt_element = $(this).parent().prev(); + var tooltip = $(this).text(); + if (dt_element.hasClass("deprecated")) { + tooltip = 'Deprecated. ' + tooltip; + }; + dt_element.attr('title', tooltip); + }); + list.find('.docstring, .tags, dd').remove(); + next.before(list); + next.toggle(); + } + }); + return false; + }); + if (localStorage.summaryCollapsed == "collapse") { + $('.constants_summary_toggle').first().click(); + } else { localStorage.summaryCollapsed = "expand"; } +} + +function generateTOC() { + if ($('#filecontents').length === 0) return; + var _toc = $('
        '); + var show = false; + var toc = _toc; + var counter = 0; + var tags = ['h2', 'h3', 'h4', 'h5', 'h6']; + var i; + var curli; + if ($('#filecontents h1').length > 1) tags.unshift('h1'); + for (i = 0; i < tags.length; i++) { tags[i] = '#filecontents ' + tags[i]; } + var lastTag = parseInt(tags[0][1], 10); + $(tags.join(', ')).each(function() { + if ($(this).parents('.method_details .docstring').length != 0) return; + if (this.id == "filecontents") return; + show = true; + var thisTag = parseInt(this.tagName[1], 10); + if (this.id.length === 0) { + var proposedId = $(this).attr('toc-id'); + if (typeof(proposedId) != "undefined") this.id = proposedId; + else { + var proposedId = $(this).text().replace(/[^a-z0-9-]/ig, '_'); + if ($('#' + proposedId).length > 0) { proposedId += counter; counter++; } + this.id = proposedId; + } + } + if (thisTag > lastTag) { + for (i = 0; i < thisTag - lastTag; i++) { + if ( typeof(curli) == "undefined" ) { + curli = $('
      1. '); + toc.append(curli); + } + toc = $('
          '); + curli.append(toc); + curli = undefined; + } + } + if (thisTag < lastTag) { + for (i = 0; i < lastTag - thisTag; i++) { + toc = toc.parent(); + toc = toc.parent(); + } + } + var title = $(this).attr('toc-title'); + if (typeof(title) == "undefined") title = $(this).text(); + curli =$('
        1. ' + title + '
        2. '); + toc.append(curli); + lastTag = thisTag; + }); + if (!show) return; + html = ''; + $('#content').prepend(html); + $('#toc').append(_toc); + $('#toc .hide_toc').toggle(function() { + $('#toc .top').slideUp('fast'); + $('#toc').toggleClass('hidden'); + $('#toc .title small').toggle(); + }, function() { + $('#toc .top').slideDown('fast'); + $('#toc').toggleClass('hidden'); + $('#toc .title small').toggle(); + }); +} + +function navResizeFn(e) { + if (e.which !== 1) { + navResizeFnStop(); + return; + } + + sessionStorage.navWidth = e.pageX.toString(); + $('.nav_wrap').css('width', e.pageX); + $('.nav_wrap').css('-ms-flex', 'inherit'); +} + +function navResizeFnStop() { + $(window).unbind('mousemove', navResizeFn); + window.removeEventListener('message', navMessageFn, false); +} + +function navMessageFn(e) { + if (e.data.action === 'mousemove') navResizeFn(e.data.event); + if (e.data.action === 'mouseup') navResizeFnStop(); +} + +function navResizer() { + $('#resizer').mousedown(function(e) { + e.preventDefault(); + $(window).mousemove(navResizeFn); + window.addEventListener('message', navMessageFn, false); + }); + $(window).mouseup(navResizeFnStop); + + if (sessionStorage.navWidth) { + navResizeFn({which: 1, pageX: parseInt(sessionStorage.navWidth, 10)}); + } +} + +function navExpander() { + var done = false, timer = setTimeout(postMessage, 500); + function postMessage() { + if (done) return; + clearTimeout(timer); + var opts = { action: 'expand', path: pathId }; + document.getElementById('nav').contentWindow.postMessage(opts, '*'); + done = true; + } + + window.addEventListener('message', function(event) { + if (event.data === 'navReady') postMessage(); + return false; + }, false); +} + +function mainFocus() { + var hash = window.location.hash; + if (hash !== '' && $(hash)[0]) { + $(hash)[0].scrollIntoView(); + } + + setTimeout(function() { $('#main').focus(); }, 10); +} + +function navigationChange() { + // This works around the broken anchor navigation with the YARD template. + window.onpopstate = function() { + var hash = window.location.hash; + if (hash !== '' && $(hash)[0]) { + $(hash)[0].scrollIntoView(); + } + }; +} + +$(document).ready(function() { + navResizer(); + navExpander(); + createSourceLinks(); + createDefineLinks(); + createFullTreeLinks(); + searchFrameButtons(); + linkSummaries(); + summaryToggle(); + constantSummaryToggle(); + generateTOC(); + mainFocus(); + navigationChange(); +}); + +})(); diff --git a/js/full_list.js b/js/full_list.js new file mode 100644 index 000000000..59069c5e2 --- /dev/null +++ b/js/full_list.js @@ -0,0 +1,216 @@ +(function() { + +var $clicked = $(null); +var searchTimeout = null; +var searchCache = []; +var caseSensitiveMatch = false; +var ignoreKeyCodeMin = 8; +var ignoreKeyCodeMax = 46; +var commandKey = 91; + +RegExp.escape = function(text) { + return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); +} + +function escapeShortcut() { + $(document).keydown(function(evt) { + if (evt.which == 27) { + window.parent.postMessage('navEscape', '*'); + } + }); +} + +function navResizer() { + $(window).mousemove(function(e) { + window.parent.postMessage({ + action: 'mousemove', event: {pageX: e.pageX, which: e.which} + }, '*'); + }).mouseup(function(e) { + window.parent.postMessage({action: 'mouseup'}, '*'); + }); + window.parent.postMessage("navReady", "*"); +} + +function clearSearchTimeout() { + clearTimeout(searchTimeout); + searchTimeout = null; +} + +function enableLinks() { + // load the target page in the parent window + $('#full_list li').on('click', function(evt) { + $('#full_list li').removeClass('clicked'); + $clicked = $(this); + $clicked.addClass('clicked'); + evt.stopPropagation(); + + if (evt.target.tagName === 'A') return true; + + var elem = $clicked.find('> .item .object_link a')[0]; + var e = evt.originalEvent; + var newEvent = new MouseEvent(evt.originalEvent.type); + newEvent.initMouseEvent(e.type, e.canBubble, e.cancelable, e.view, e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget); + elem.dispatchEvent(newEvent); + evt.preventDefault(); + return false; + }); +} + +function enableToggles() { + // show/hide nested classes on toggle click + $('#full_list a.toggle').on('click', function(evt) { + evt.stopPropagation(); + evt.preventDefault(); + $(this).parent().parent().toggleClass('collapsed'); + highlight(); + }); +} + +function populateSearchCache() { + $('#full_list li .item').each(function() { + var $node = $(this); + var $link = $node.find('.object_link a'); + if ($link.length > 0) { + searchCache.push({ + node: $node, + link: $link, + name: $link.text(), + fullName: $link.attr('title').split(' ')[0] + }); + } + }); +} + +function enableSearch() { + $('#search input').keyup(function(event) { + if (ignoredKeyPress(event)) return; + if (this.value === "") { + clearSearch(); + } else { + performSearch(this.value); + } + }); + + $('#full_list').after(""); +} + +function ignoredKeyPress(event) { + if ( + (event.keyCode > ignoreKeyCodeMin && event.keyCode < ignoreKeyCodeMax) || + (event.keyCode == commandKey) + ) { + return true; + } else { + return false; + } +} + +function clearSearch() { + clearSearchTimeout(); + $('#full_list .found').removeClass('found').each(function() { + var $link = $(this).find('.object_link a'); + $link.text($link.text()); + }); + $('#full_list, #content').removeClass('insearch'); + $clicked.parents().removeClass('collapsed'); + highlight(); +} + +function performSearch(searchString) { + clearSearchTimeout(); + $('#full_list, #content').addClass('insearch'); + $('#noresults').text('').hide(); + partialSearch(searchString, 0); +} + +function partialSearch(searchString, offset) { + var lastRowClass = ''; + var i = null; + for (i = offset; i < Math.min(offset + 50, searchCache.length); i++) { + var item = searchCache[i]; + var searchName = (searchString.indexOf('::') != -1 ? item.fullName : item.name); + var matchString = buildMatchString(searchString); + var matchRegexp = new RegExp(matchString, caseSensitiveMatch ? "" : "i"); + if (searchName.match(matchRegexp) == null) { + item.node.removeClass('found'); + item.link.text(item.link.text()); + } + else { + item.node.addClass('found'); + item.node.removeClass(lastRowClass).addClass(lastRowClass == 'r1' ? 'r2' : 'r1'); + lastRowClass = item.node.hasClass('r1') ? 'r1' : 'r2'; + item.link.html(item.name.replace(matchRegexp, "$&")); + } + } + if(i == searchCache.length) { + searchDone(); + } else { + searchTimeout = setTimeout(function() { + partialSearch(searchString, i); + }, 0); + } +} + +function searchDone() { + searchTimeout = null; + highlight(); + if ($('#full_list li:visible').size() === 0) { + $('#noresults').text('No results were found.').hide().fadeIn(); + } else { + $('#noresults').text('').hide(); + } + $('#content').removeClass('insearch'); +} + +function buildMatchString(searchString, event) { + caseSensitiveMatch = searchString.match(/[A-Z]/) != null; + var regexSearchString = RegExp.escape(searchString); + if (caseSensitiveMatch) { + regexSearchString += "|" + + $.map(searchString.split(''), function(e) { return RegExp.escape(e); }). + join('.+?'); + } + return regexSearchString; +} + +function highlight() { + $('#full_list li:visible').each(function(n) { + $(this).removeClass('even odd').addClass(n % 2 == 0 ? 'odd' : 'even'); + }); +} + +/** + * Expands the tree to the target element and its immediate + * children. + */ +function expandTo(path) { + var $target = $(document.getElementById('object_' + path)); + $target.addClass('clicked'); + $target.removeClass('collapsed'); + $target.parentsUntil('#full_list', 'li').removeClass('collapsed'); + if($target[0]) { + window.scrollTo(window.scrollX, $target.offset().top - 250); + highlight(); + } +} + +function windowEvents(event) { + var msg = event.data; + if (msg.action === "expand") { + expandTo(msg.path); + } + return false; +} + +window.addEventListener("message", windowEvents, false); + +$(document).ready(function() { + escapeShortcut(); + navResizer(); + enableLinks(); + enableToggles(); + populateSearchCache(); + enableSearch(); +}); + +})(); diff --git a/js/jquery.js b/js/jquery.js new file mode 100644 index 000000000..198b3ff07 --- /dev/null +++ b/js/jquery.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.1 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"":"")+""),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;g=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
    a",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="
    "+""+"
    ",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="
    t
    ",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="
    ",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")}; +f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&i.push({elem:this,matches:d.slice(e)});for(j=0;j0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
    ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/",""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
    ","
    "]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function() +{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
    ").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/method_list.html b/method_list.html new file mode 100644 index 000000000..67c370ca4 --- /dev/null +++ b/method_list.html @@ -0,0 +1,13323 @@ + + + + + + + + + + + + + + + + + + Method List + + + +
    +
    +

    Method List

    + + + +
    + + +
    + + diff --git a/top-level-namespace.html b/top-level-namespace.html new file mode 100644 index 000000000..d3e1584a2 --- /dev/null +++ b/top-level-namespace.html @@ -0,0 +1,110 @@ + + + + + + + Top Level Namespace + + — Documentation by YARD 0.9.34 + + + + + + + + + + + + + + + + + + + +
    + + +

    Top Level Namespace + + + +

    +
    + + + + + + + + + + + +
    + +

    Defined Under Namespace

    +

    + + + Modules: Recurly + + + + +

    + + + + + + + + + +
    + + + +
    + + \ No newline at end of file