recurly 3.28.0 → 3.29.1

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.bumpversion.cfg +1 -1
  3. data/.github/workflows/ci.yml +3 -3
  4. data/.github/workflows/docs.yml +1 -1
  5. data/.github/workflows/pr-review.yml +27 -0
  6. data/CHANGELOG.md +22 -0
  7. data/GETTING_STARTED.md +1 -1
  8. data/lib/data/ca-certificates.crt +0 -40
  9. data/lib/recurly/client/operations.rb +92 -40
  10. data/lib/recurly/errors/api_errors.rb +0 -31
  11. data/lib/recurly/requests/account_create.rb +4 -0
  12. data/lib/recurly/requests/account_purchase.rb +4 -0
  13. data/lib/recurly/requests/account_update.rb +4 -0
  14. data/lib/recurly/requests/add_on_create.rb +1 -1
  15. data/lib/recurly/requests/add_on_update.rb +1 -1
  16. data/lib/recurly/requests/address.rb +4 -0
  17. data/lib/recurly/requests/billing_info_create.rb +13 -1
  18. data/lib/recurly/requests/billing_info_verify.rb +4 -0
  19. data/lib/recurly/requests/billing_info_verify_cvv.rb +26 -0
  20. data/lib/recurly/requests/credit_application_policy.rb +18 -0
  21. data/lib/recurly/requests/custom_field.rb +8 -0
  22. data/lib/recurly/requests/gateway_attributes.rb +1 -1
  23. data/lib/recurly/requests/invoice_address.rb +4 -0
  24. data/lib/recurly/requests/invoice_create.rb +9 -1
  25. data/lib/recurly/requests/item_create.rb +1 -1
  26. data/lib/recurly/requests/item_update.rb +1 -1
  27. data/lib/recurly/requests/line_item_create.rb +5 -1
  28. data/lib/recurly/requests/plan_create.rb +1 -1
  29. data/lib/recurly/requests/plan_update.rb +1 -1
  30. data/lib/recurly/requests/purchase_create.rb +8 -0
  31. data/lib/recurly/requests/shipping_address_create.rb +4 -0
  32. data/lib/recurly/requests/shipping_address_update.rb +4 -0
  33. data/lib/recurly/requests/subscription_create.rb +13 -1
  34. data/lib/recurly/requests/subscription_purchase.rb +21 -1
  35. data/lib/recurly/requests/subscription_update.rb +8 -0
  36. data/lib/recurly/resources/account.rb +4 -0
  37. data/lib/recurly/resources/add_on.rb +1 -1
  38. data/lib/recurly/resources/address.rb +4 -0
  39. data/lib/recurly/resources/credit_application_policy.rb +18 -0
  40. data/lib/recurly/resources/custom_field.rb +8 -0
  41. data/lib/recurly/resources/gateway_attributes.rb +1 -1
  42. data/lib/recurly/resources/invoice.rb +8 -0
  43. data/lib/recurly/resources/invoice_address.rb +4 -0
  44. data/lib/recurly/resources/item.rb +1 -1
  45. data/lib/recurly/resources/line_item.rb +6 -2
  46. data/lib/recurly/resources/payment_method.rb +4 -0
  47. data/lib/recurly/resources/plan.rb +1 -1
  48. data/lib/recurly/resources/shipping_address.rb +4 -0
  49. data/lib/recurly/resources/subscription.rb +8 -0
  50. data/lib/recurly/resources/subscription_ramp_interval_response.rb +8 -0
  51. data/lib/recurly/resources/tax_detail.rb +4 -4
  52. data/lib/recurly/resources/tax_info.rb +1 -1
  53. data/lib/recurly/version.rb +1 -1
  54. data/openapi/api.yaml +10784 -301
  55. metadata +11 -7
@@ -42,6 +42,10 @@ module Recurly
42
42
  # @return [String] 3-letter ISO 4217 currency code.
43
43
  define_attribute :currency, String
44
44
 
45
+ # @!attribute custom_fields
46
+ # @return [Array[CustomField]] A list of custom fields that were on the account at the time of invoice creation and were marked to be displayed on invoices. Read-only; cannot be set directly on the invoice.
47
+ define_attribute :custom_fields, Array, { :item_type => :CustomField }
48
+
45
49
  # @!attribute customer_notes
46
50
  # @return [String] This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes.
47
51
  define_attribute :customer_notes, String
@@ -114,6 +118,10 @@ module Recurly
114
118
  # @return [Float] The summation of charges and credits, before discounts and taxes.
115
119
  define_attribute :subtotal, Float
116
120
 
121
+ # @!attribute subtotal_after_discount
122
+ # @return [Float] The summation of charges and credits, after discounts applied.
123
+ define_attribute :subtotal_after_discount, Float
124
+
117
125
  # @!attribute tax
118
126
  # @return [Float] The total tax on this invoice.
119
127
  define_attribute :tax, Float
@@ -22,6 +22,10 @@ module Recurly
22
22
  # @return [String] First name
23
23
  define_attribute :first_name, String
24
24
 
25
+ # @!attribute geo_code
26
+ # @return [String] Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
27
+ define_attribute :geo_code, String
28
+
25
29
  # @!attribute last_name
26
30
  # @return [String] Last name
27
31
  define_attribute :last_name, String
@@ -67,7 +67,7 @@ module Recurly
67
67
  define_attribute :state, String
68
68
 
69
69
  # @!attribute tax_code
70
- # @return [String] Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
70
+ # @return [String] Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes.
71
71
  define_attribute :tax_code, String
72
72
 
73
73
  # @!attribute tax_exempt
@@ -23,7 +23,7 @@ module Recurly
23
23
  define_attribute :add_on_id, String
24
24
 
25
25
  # @!attribute amount
26
- # @return [Float] `(quantity * unit_amount) - (discount + tax)`
26
+ # @return [Float] `(quantity * unit_amount) - discount + tax`
27
27
  define_attribute :amount, Float
28
28
 
29
29
  # @!attribute avalara_service_type
@@ -179,7 +179,7 @@ module Recurly
179
179
  define_attribute :tax, Float
180
180
 
181
181
  # @!attribute tax_code
182
- # @return [String] Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
182
+ # @return [String] Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes.
183
183
  define_attribute :tax_code, String
184
184
 
185
185
  # @!attribute tax_exempt
@@ -213,6 +213,10 @@ module Recurly
213
213
  # @!attribute uuid
214
214
  # @return [String] The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
215
215
  define_attribute :uuid, String
216
+
217
+ # @!attribute vertex_transaction_type
218
+ # @return [String] Used by Vertex for tax calculations. Possible values are sale, rental, lease.
219
+ define_attribute :vertex_transaction_type, String
216
220
  end
217
221
  end
218
222
  end
@@ -14,6 +14,10 @@ module Recurly
14
14
  # @return [String] Billing Agreement identifier. Only present for Amazon or Paypal payment methods.
15
15
  define_attribute :billing_agreement_id, String
16
16
 
17
+ # @!attribute card_network_preference
18
+ # @return [String] Represents the card network preference associated with the billing info for dual badged cards. Must be a supported card network.
19
+ define_attribute :card_network_preference, String
20
+
17
21
  # @!attribute card_type
18
22
  # @return [String] Visa, MasterCard, American Express, Discover, JCB, etc.
19
23
  define_attribute :card_type, String
@@ -103,7 +103,7 @@ module Recurly
103
103
  define_attribute :state, String
104
104
 
105
105
  # @!attribute tax_code
106
- # @return [String] Used by Avalara, Vertex, and Recurly’s EU VAT tax feature. The tax code values are specific to each tax system. If you are using Recurly’s EU VAT feature you can use `unknown`, `physical`, or `digital`.
106
+ # @return [String] Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine taxation rules. You can pass in specific tax codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes.
107
107
  define_attribute :tax_code, String
108
108
 
109
109
  # @!attribute tax_exempt
@@ -34,6 +34,10 @@ module Recurly
34
34
  # @return [String]
35
35
  define_attribute :first_name, String
36
36
 
37
+ # @!attribute geo_code
38
+ # @return [String] Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
39
+ define_attribute :geo_code, String
40
+
37
41
  # @!attribute id
38
42
  # @return [String] Shipping Address ID
39
43
  define_attribute :id, String
@@ -54,6 +54,10 @@ module Recurly
54
54
  # @return [DateTime] Created at
55
55
  define_attribute :created_at, DateTime
56
56
 
57
+ # @!attribute credit_application_policy
58
+ # @return [CreditApplicationPolicy] Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior. When mode is `all`, the optional `allowed_origins` array can restrict which credit invoice origins are applied. - `all`: All available credit invoices are applied (default) - `none`: No credit invoices are applied automatically
59
+ define_attribute :credit_application_policy, :CreditApplicationPolicy
60
+
57
61
  # @!attribute currency
58
62
  # @return [String] 3-letter ISO 4217 currency code.
59
63
  define_attribute :currency, String
@@ -138,6 +142,10 @@ module Recurly
138
142
  # @return [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`.
139
143
  define_attribute :renewal_billing_cycles, Integer
140
144
 
145
+ # @!attribute resume_at
146
+ # @return [DateTime] The date the subscription billing resumes following a pause. Null unless the subscription is paused or scheduled to be paused.
147
+ define_attribute :resume_at, DateTime
148
+
141
149
  # @!attribute revenue_schedule_type
142
150
  # @return [String] Revenue schedule type
143
151
  define_attribute :revenue_schedule_type, String
@@ -6,6 +6,10 @@ module Recurly
6
6
  module Resources
7
7
  class SubscriptionRampIntervalResponse < Resource
8
8
 
9
+ # @!attribute ending_on
10
+ # @return [DateTime] Date the ramp interval ends
11
+ define_attribute :ending_on, DateTime
12
+
9
13
  # @!attribute remaining_billing_cycles
10
14
  # @return [Integer] Represents how many billing cycles are left in a ramp interval.
11
15
  define_attribute :remaining_billing_cycles, Integer
@@ -14,6 +18,10 @@ module Recurly
14
18
  # @return [Integer] Represents the billing cycle where a ramp interval starts.
15
19
  define_attribute :starting_billing_cycle, Integer
16
20
 
21
+ # @!attribute starting_on
22
+ # @return [DateTime] Date the ramp interval starts
23
+ define_attribute :starting_on, DateTime
24
+
17
25
  # @!attribute unit_amount
18
26
  # @return [Integer] Represents the price for the ramp interval.
19
27
  define_attribute :unit_amount, Integer
@@ -7,15 +7,15 @@ module Recurly
7
7
  class TaxDetail < Resource
8
8
 
9
9
  # @!attribute billable
10
- # @return [Boolean] Whether or not the line item is taxable. Only populated for a single LineItem fetch when Avalara for Communications is enabled.
10
+ # @return [Boolean] Whether or not the line item is taxable. Only populated for a single LineItem fetch when Avalara for Communications or Vertex is enabled.
11
11
  define_attribute :billable, :Boolean
12
12
 
13
13
  # @!attribute level
14
- # @return [String] Provides the jurisdiction level for the Communications tax applied. Example values include city, state and federal. Present only when Avalara for Communications is enabled.
14
+ # @return [String] Provides the jurisdiction level for the Communications tax applied. Example values include city, state and federal. Present only when Avalara for Communications or Vertex is enabled.
15
15
  define_attribute :level, String
16
16
 
17
17
  # @!attribute name
18
- # @return [String] Provides the name of the Communications tax applied. Present only when Avalara for Communications is enabled.
18
+ # @return [String] Provides the name of the Communications tax applied. Present only when Avalara for Communications or Vertex is enabled.
19
19
  define_attribute :name, String
20
20
 
21
21
  # @!attribute rate
@@ -31,7 +31,7 @@ module Recurly
31
31
  define_attribute :tax, Float
32
32
 
33
33
  # @!attribute type
34
- # @return [String] Provides the tax type for the region or type of Comminications tax when Avalara for Communications is enabled. For Canadian Sales Tax, this will be GST, HST, QST or PST.
34
+ # @return [String] Provides the tax type for the region or type of Comminications tax when Avalara for Communications or Vertex is enabled. For Canadian Sales Tax, this will be GST, HST, QST or PST.
35
35
  define_attribute :type, String
36
36
  end
37
37
  end
@@ -15,7 +15,7 @@ module Recurly
15
15
  define_attribute :region, String
16
16
 
17
17
  # @!attribute tax_details
18
- # @return [Array[TaxDetail]] Provides additional tax details for Communications taxes when Avalara for Communications is enabled or 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 LineItemList. Only populated for a single LineItem fetch when Avalara for Communications is enabled.
18
+ # @return [Array[TaxDetail]] Provides additional tax details for Communications taxes when Avalara for Communications or Vertex Tax Breakdown is enabled or Canadian Sales Tax. Tax details will only be populated for the Invoice response when fetching a single invoice and not for the InvoiceList or LineItemList. Only populated for a single LineItem fetch when Avalara for Communications is enabled.
19
19
  define_attribute :tax_details, Array, { :item_type => :TaxDetail }
20
20
 
21
21
  # @!attribute type
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "3.28.0"
2
+ VERSION = "3.29.1"
3
3
  end