recurly 3.19.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/.github/workflows/docs.yml +1 -1
- data/.github_changelog_generator +8 -0
- data/.travis.yml +0 -3
- data/CHANGELOG.md +202 -268
- data/CONTRIBUTING.md +0 -4
- data/GETTING_STARTED.md +20 -17
- data/README.md +0 -3
- data/lib/recurly/client/operations.rb +774 -630
- data/lib/recurly/client.rb +44 -28
- data/lib/recurly/errors/api_errors.rb +3 -2
- data/lib/recurly/errors.rb +5 -23
- data/lib/recurly/pager.rb +5 -15
- data/lib/recurly/requests/{account_acquisition_updatable.rb → account_acquisition_update.rb} +1 -1
- data/lib/recurly/requests/account_create.rb +2 -6
- data/lib/recurly/requests/account_purchase.rb +2 -6
- data/lib/recurly/requests/account_update.rb +0 -4
- data/lib/recurly/requests/add_on_create.rb +2 -2
- data/lib/recurly/requests/add_on_pricing.rb +5 -5
- data/lib/recurly/requests/add_on_update.rb +2 -2
- data/lib/recurly/requests/address.rb +1 -9
- data/lib/recurly/requests/billing_info_create.rb +2 -30
- data/lib/recurly/requests/coupon_create.rb +1 -1
- data/lib/recurly/requests/external_transaction.rb +1 -1
- data/lib/recurly/requests/invoice_address.rb +1 -1
- data/lib/recurly/requests/invoice_collect.rb +1 -1
- data/lib/recurly/requests/{invoice_updatable.rb → invoice_update.rb} +1 -1
- data/lib/recurly/requests/line_item_create.rb +2 -6
- data/lib/recurly/requests/plan_create.rb +0 -4
- data/lib/recurly/requests/plan_pricing.rb +0 -4
- data/lib/recurly/requests/plan_update.rb +0 -4
- data/lib/recurly/requests/pricing.rb +0 -4
- data/lib/recurly/requests/purchase_create.rb +1 -1
- data/lib/recurly/requests/shipping_address_create.rb +1 -1
- data/lib/recurly/requests/shipping_address_update.rb +1 -1
- data/lib/recurly/requests/subscription_add_on_create.rb +6 -2
- data/lib/recurly/requests/subscription_add_on_tier.rb +5 -1
- data/lib/recurly/requests/subscription_add_on_update.rb +6 -2
- data/lib/recurly/requests/subscription_change_create.rb +1 -9
- data/lib/recurly/requests/subscription_create.rb +5 -9
- data/lib/recurly/requests/subscription_pause.rb +1 -1
- data/lib/recurly/requests/subscription_purchase.rb +2 -6
- data/lib/recurly/requests/subscription_update.rb +1 -5
- data/lib/recurly/requests/tier.rb +2 -2
- data/lib/recurly/requests/tier_pricing.rb +22 -0
- data/lib/recurly/resources/account.rb +0 -4
- data/lib/recurly/resources/account_mini.rb +0 -4
- data/lib/recurly/resources/add_on.rb +1 -1
- data/lib/recurly/resources/add_on_pricing.rb +5 -5
- data/lib/recurly/resources/address.rb +1 -9
- data/lib/recurly/resources/address_with_name.rb +46 -0
- data/lib/recurly/resources/billing_info.rb +1 -5
- data/lib/recurly/resources/billing_info_updated_by.rb +1 -1
- data/lib/recurly/resources/coupon.rb +5 -17
- data/lib/recurly/resources/invoice.rb +7 -7
- data/lib/recurly/resources/invoice_address.rb +1 -1
- data/lib/recurly/resources/line_item.rb +7 -7
- data/lib/recurly/resources/payment_method.rb +0 -4
- data/lib/recurly/resources/plan.rb +1 -5
- data/lib/recurly/resources/plan_pricing.rb +0 -4
- data/lib/recurly/resources/pricing.rb +0 -4
- data/lib/recurly/resources/shipping_address.rb +1 -1
- data/lib/recurly/resources/subscription.rb +0 -4
- data/lib/recurly/resources/subscription_add_on.rb +6 -2
- data/lib/recurly/resources/subscription_add_on_tier.rb +5 -1
- data/lib/recurly/resources/subscription_change.rb +0 -12
- data/lib/recurly/resources/tax_info.rb +0 -4
- data/lib/recurly/resources/tier.rb +2 -2
- data/lib/recurly/resources/tier_pricing.rb +22 -0
- data/lib/recurly/resources/transaction.rb +3 -7
- data/lib/recurly/resources/unique_coupon_code_params.rb +26 -0
- data/lib/recurly/resources/usage.rb +5 -1
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +1949 -2573
- data/scripts/build +2 -2
- data/scripts/bump +11 -0
- data/scripts/changelog +14 -0
- data/scripts/format +2 -2
- data/scripts/prepare-release +29 -43
- data/scripts/release +20 -5
- metadata +15 -22
- data/.changelog_config.yaml +0 -11
- data/CODE_OF_CONDUCT.md +0 -130
- data/lib/recurly/errors/network_errors.rb +0 -10
- data/lib/recurly/requests/billing_info_verify.rb +0 -14
- data/lib/recurly/requests/dunning_campaigns_bulk_update.rb +0 -18
- data/lib/recurly/requests/subscription_change_billing_info_create.rb +0 -14
- data/lib/recurly/resources/dunning_campaign.rb +0 -50
- data/lib/recurly/resources/dunning_campaigns_bulk_update_response.rb +0 -18
- data/lib/recurly/resources/dunning_cycle.rb +0 -58
- data/lib/recurly/resources/dunning_interval.rb +0 -18
- data/lib/recurly/resources/line_item_list.rb +0 -26
- data/lib/recurly/resources/subscription_change_billing_info.rb +0 -14
- data/lib/recurly/resources/subscription_change_preview.rb +0 -86
- data/lib/recurly/resources/tax_detail.rb +0 -26
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
-
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
-
# change to this file, please create a Github issue explaining the changes you
|
4
|
-
# need and we will usher them to the appropriate places.
|
5
|
-
module Recurly
|
6
|
-
module Resources
|
7
|
-
class DunningInterval < Resource
|
8
|
-
|
9
|
-
# @!attribute days
|
10
|
-
# @return [Integer] Number of days before sending the next email.
|
11
|
-
define_attribute :days, Integer
|
12
|
-
|
13
|
-
# @!attribute email_template
|
14
|
-
# @return [String] Email template being used.
|
15
|
-
define_attribute :email_template, String
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
-
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
-
# change to this file, please create a Github issue explaining the changes you
|
4
|
-
# need and we will usher them to the appropriate places.
|
5
|
-
module Recurly
|
6
|
-
module Resources
|
7
|
-
class LineItemList < Resource
|
8
|
-
|
9
|
-
# @!attribute data
|
10
|
-
# @return [Array[LineItem]]
|
11
|
-
define_attribute :data, Array, { :item_type => :LineItem }
|
12
|
-
|
13
|
-
# @!attribute has_more
|
14
|
-
# @return [Boolean] Indicates there are more results on subsequent pages.
|
15
|
-
define_attribute :has_more, :Boolean
|
16
|
-
|
17
|
-
# @!attribute next
|
18
|
-
# @return [String] Path to subsequent page of results.
|
19
|
-
define_attribute :next, String
|
20
|
-
|
21
|
-
# @!attribute object
|
22
|
-
# @return [String] Will always be List.
|
23
|
-
define_attribute :object, String
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
-
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
-
# change to this file, please create a Github issue explaining the changes you
|
4
|
-
# need and we will usher them to the appropriate places.
|
5
|
-
module Recurly
|
6
|
-
module Resources
|
7
|
-
class SubscriptionChangeBillingInfo < Resource
|
8
|
-
|
9
|
-
# @!attribute three_d_secure_action_result_token_id
|
10
|
-
# @return [String] A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.
|
11
|
-
define_attribute :three_d_secure_action_result_token_id, String
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,86 +0,0 @@
|
|
1
|
-
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
-
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
-
# change to this file, please create a Github issue explaining the changes you
|
4
|
-
# need and we will usher them to the appropriate places.
|
5
|
-
module Recurly
|
6
|
-
module Resources
|
7
|
-
class SubscriptionChangePreview < Resource
|
8
|
-
|
9
|
-
# @!attribute activate_at
|
10
|
-
# @return [DateTime] Activated at
|
11
|
-
define_attribute :activate_at, DateTime
|
12
|
-
|
13
|
-
# @!attribute activated
|
14
|
-
# @return [Boolean] Returns `true` if the subscription change is activated.
|
15
|
-
define_attribute :activated, :Boolean
|
16
|
-
|
17
|
-
# @!attribute add_ons
|
18
|
-
# @return [Array[SubscriptionAddOn]] These add-ons will be used when the subscription renews.
|
19
|
-
define_attribute :add_ons, Array, { :item_type => :SubscriptionAddOn }
|
20
|
-
|
21
|
-
# @!attribute billing_info
|
22
|
-
# @return [SubscriptionChangeBillingInfo] Accept nested attributes for three_d_secure_action_result_token_id
|
23
|
-
define_attribute :billing_info, :SubscriptionChangeBillingInfo
|
24
|
-
|
25
|
-
# @!attribute created_at
|
26
|
-
# @return [DateTime] Created at
|
27
|
-
define_attribute :created_at, DateTime
|
28
|
-
|
29
|
-
# @!attribute custom_fields
|
30
|
-
# @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.
|
31
|
-
define_attribute :custom_fields, Array, { :item_type => :CustomField }
|
32
|
-
|
33
|
-
# @!attribute deleted_at
|
34
|
-
# @return [DateTime] Deleted at
|
35
|
-
define_attribute :deleted_at, DateTime
|
36
|
-
|
37
|
-
# @!attribute id
|
38
|
-
# @return [String] The ID of the Subscription Change.
|
39
|
-
define_attribute :id, String
|
40
|
-
|
41
|
-
# @!attribute invoice_collection
|
42
|
-
# @return [InvoiceCollection] Invoice Collection
|
43
|
-
define_attribute :invoice_collection, :InvoiceCollection
|
44
|
-
|
45
|
-
# @!attribute object
|
46
|
-
# @return [String] Object type
|
47
|
-
define_attribute :object, String
|
48
|
-
|
49
|
-
# @!attribute plan
|
50
|
-
# @return [PlanMini] Just the important parts.
|
51
|
-
define_attribute :plan, :PlanMini
|
52
|
-
|
53
|
-
# @!attribute quantity
|
54
|
-
# @return [Integer] Subscription quantity
|
55
|
-
define_attribute :quantity, Integer
|
56
|
-
|
57
|
-
# @!attribute revenue_schedule_type
|
58
|
-
# @return [String] Revenue schedule type
|
59
|
-
define_attribute :revenue_schedule_type, String
|
60
|
-
|
61
|
-
# @!attribute setup_fee_revenue_schedule_type
|
62
|
-
# @return [String] Setup fee revenue schedule type
|
63
|
-
define_attribute :setup_fee_revenue_schedule_type, String
|
64
|
-
|
65
|
-
# @!attribute shipping
|
66
|
-
# @return [SubscriptionShipping] Subscription shipping details
|
67
|
-
define_attribute :shipping, :SubscriptionShipping
|
68
|
-
|
69
|
-
# @!attribute subscription_id
|
70
|
-
# @return [String] The ID of the subscription that is going to be changed.
|
71
|
-
define_attribute :subscription_id, String
|
72
|
-
|
73
|
-
# @!attribute tax_inclusive
|
74
|
-
# @return [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.
|
75
|
-
define_attribute :tax_inclusive, :Boolean
|
76
|
-
|
77
|
-
# @!attribute unit_amount
|
78
|
-
# @return [Float] Unit amount
|
79
|
-
define_attribute :unit_amount, Float
|
80
|
-
|
81
|
-
# @!attribute updated_at
|
82
|
-
# @return [DateTime] Updated at
|
83
|
-
define_attribute :updated_at, DateTime
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file is automatically created by Recurly's OpenAPI generation process
|
2
|
-
# and thus any edits you make by hand will be lost. If you wish to make a
|
3
|
-
# change to this file, please create a Github issue explaining the changes you
|
4
|
-
# need and we will usher them to the appropriate places.
|
5
|
-
module Recurly
|
6
|
-
module Resources
|
7
|
-
class TaxDetail < Resource
|
8
|
-
|
9
|
-
# @!attribute rate
|
10
|
-
# @return [Float] Provides the tax rate for the region.
|
11
|
-
define_attribute :rate, Float
|
12
|
-
|
13
|
-
# @!attribute region
|
14
|
-
# @return [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
|
-
define_attribute :region, String
|
16
|
-
|
17
|
-
# @!attribute tax
|
18
|
-
# @return [Float] The total tax applied for this tax type.
|
19
|
-
define_attribute :tax, Float
|
20
|
-
|
21
|
-
# @!attribute type
|
22
|
-
# @return [String] Provides the tax type for the region. For Canadian Sales Tax, this will be GST, HST, QST or PST.
|
23
|
-
define_attribute :type, String
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|