Skip to content

Commit

Permalink
Merge pull request #807 from recurly/v3-v2021-02-25-1667578832
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2021-02-25
  • Loading branch information
Patrick-Duvall authored Nov 4, 2022
2 parents a145684 + 8ae85fa commit f8e1485
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 34 deletions.
18 changes: 9 additions & 9 deletions lib/recurly/client/operations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def remove_a_billing_info(account_id:, billing_info_id:, **options)
delete(path, **options)
end

# Show the coupon redemptions for an account
# List the coupon redemptions for an account
#
# {https://developers.recurly.com/api/v2021-02-25#operation/list_account_coupon_redemptions list_account_coupon_redemptions api documentation}
#
Expand Down Expand Up @@ -636,7 +636,7 @@ def list_account_coupon_redemptions(account_id:, **options)
pager(path, **options)
end

# Show the coupon redemptions that are active on an account
# List the coupon redemptions that are active on an account
#
# {https://developers.recurly.com/api/v2021-02-25#operation/list_active_coupon_redemptions list_active_coupon_redemptions api documentation}
#
Expand Down Expand Up @@ -950,7 +950,7 @@ def create_line_item(account_id:, body:, **options)
post(path, body, Requests::LineItemCreate, **options)
end

# Fetch a list of an account's notes
# List an account's notes
#
# {https://developers.recurly.com/api/v2021-02-25#operation/list_account_notes list_account_notes api documentation}
#
Expand Down Expand Up @@ -2357,7 +2357,7 @@ def list_invoice_line_items(invoice_id:, **options)
pager(path, **options)
end

# Show the coupon redemptions applied to an invoice
# List the coupon redemptions applied to an invoice
#
# {https://developers.recurly.com/api/v2021-02-25#operation/list_invoice_coupon_redemptions list_invoice_coupon_redemptions api documentation}
#
Expand Down Expand Up @@ -3586,7 +3586,7 @@ def list_subscription_line_items(subscription_id:, **options)
pager(path, **options)
end

# Show the coupon redemptions for a subscription
# List the coupon redemptions for a subscription
#
# {https://developers.recurly.com/api/v2021-02-25#operation/list_subscription_coupon_redemptions list_subscription_coupon_redemptions api documentation}
#
Expand Down Expand Up @@ -4015,7 +4015,7 @@ def get_export_files(export_date:, **options)
get(path, **options)
end

# Show the dunning campaigns for a site
# List the dunning campaigns for a site
#
# {https://developers.recurly.com/api/v2021-02-25#operation/list_dunning_campaigns list_dunning_campaigns api documentation}
#
Expand All @@ -4032,7 +4032,7 @@ def list_dunning_campaigns(**options)
pager(path, **options)
end

# Show the settings for a dunning campaign
# Fetch a dunning campaign
#
# {https://developers.recurly.com/api/v2021-02-25#operation/get_dunning_campaign get_dunning_campaign api documentation}
#
Expand Down Expand Up @@ -4078,7 +4078,7 @@ def list_invoice_templates(**options)
pager(path, **options)
end

# Show the settings for an invoice template
# Fetch an invoice template
#
# {https://developers.recurly.com/api/v2021-02-25#operation/get_invoice_template get_invoice_template api documentation}
#
Expand All @@ -4092,7 +4092,7 @@ def get_invoice_template(invoice_template_id:, **options)
get(path, **options)
end

# Show all entitlements granted to an account
# List entitlements granted to an account
#
# {https://developers.recurly.com/api/v2021-02-25#operation/list_entitlements list_entitlements api documentation}
#
Expand Down
4 changes: 2 additions & 2 deletions lib/recurly/requests/add_on_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class AddOnCreate < Request
define_attribute :tax_code, String

# @!attribute tier_type
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
define_attribute :tier_type, String

# @!attribute tiers
Expand All @@ -95,7 +95,7 @@ class AddOnCreate < Request
define_attribute :usage_timeframe, String

# @!attribute usage_type
# @return [String] Type of usage, required if `add_on_type` is `usage`. See our [Guide](https://developers.recurly.com/guides/usage-based-billing-guide.html) for an overview of how to configure usage add-ons.
# @return [String] Type of usage, required if `add_on_type` is `usage`. See our [Guide](https://recurly.com/developers/guides/usage-based-billing-guide.html) for an overview of how to configure usage add-ons.
define_attribute :usage_type, String
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/requests/billing_info_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class BillingInfoCreate < Request
define_attribute :three_d_secure_action_result_token_id, String

# @!attribute token_id
# @return [String] A token [generated by Recurly.js](https://developers.recurly.com/reference/recurly-js/#getting-a-token).
# @return [String] A token [generated by Recurly.js](https://recurly.com/developers/reference/recurly-js/#getting-a-token).
define_attribute :token_id, String

# @!attribute transaction_type
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/requests/plan_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ class PlanCreate < Request
# @return [Array[PlanPricing]] Pricing
define_attribute :currencies, Array, { :item_type => :PlanPricing }

# @!attribute custom_fields
# @return [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.
define_attribute :custom_fields, Array, { :item_type => :CustomField }

# @!attribute description
# @return [String] Optional description, not displayed.
define_attribute :description, String
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/requests/plan_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class PlanUpdate < Request
# @return [Array[PlanPricing]] Optional when the pricing model is 'ramp'.
define_attribute :currencies, Array, { :item_type => :PlanPricing }

# @!attribute custom_fields
# @return [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.
define_attribute :custom_fields, Array, { :item_type => :CustomField }

# @!attribute description
# @return [String] Optional description, not displayed.
define_attribute :description, String
Expand Down
4 changes: 2 additions & 2 deletions lib/recurly/requests/subscription_add_on_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SubscriptionAddOnCreate < Request
define_attribute :revenue_schedule_type, String

# @!attribute tiers
# @return [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](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
# @return [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](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
define_attribute :tiers, Array, { :item_type => :SubscriptionAddOnTier }

# @!attribute unit_amount
Expand All @@ -39,7 +39,7 @@ class SubscriptionAddOnCreate < Request
define_attribute :unit_amount_decimal, String

# @!attribute usage_percentage
# @return [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](https://developers.recurly.com/guides/usage-based-billing-guide.html) for an overview of how to configure usage add-ons.
# @return [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](https://recurly.com/developers/guides/usage-based-billing-guide.html) for an overview of how to configure usage add-ons.
define_attribute :usage_percentage, Float
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/add_on.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class AddOn < Resource
define_attribute :tax_code, String

# @!attribute tier_type
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
define_attribute :tier_type, String

# @!attribute tiers
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/resources/plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ class Plan < Resource
# @return [Array[PlanPricing]] Pricing
define_attribute :currencies, Array, { :item_type => :PlanPricing }

# @!attribute custom_fields
# @return [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.
define_attribute :custom_fields, Array, { :item_type => :CustomField }

# @!attribute deleted_at
# @return [DateTime] Deleted at
define_attribute :deleted_at, DateTime
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/subscription_add_on.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class SubscriptionAddOn < Resource
define_attribute :subscription_id, String

# @!attribute tier_type
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
define_attribute :tier_type, String

# @!attribute tiers
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/usage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Usage < Resource
define_attribute :recording_timestamp, DateTime

# @!attribute tier_type
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://developers.recurly.com/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
# @return [String] The pricing model for the add-on. For more information, [click here](https://docs.recurly.com/docs/billing-models#section-quantity-based). See our [Guide](https://recurly.com/developers/guides/item-addon-guide.html) for an overview of how to configure quantity-based pricing models.
define_attribute :tier_type, String

# @!attribute tiers
Expand Down
Loading

0 comments on commit f8e1485

Please sign in to comment.