recurly 3.29.1 → 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.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/.bumpversion.cfg +1 -1
  3. data/.github/workflows/docs.yml +2 -2
  4. data/.github_changelog_generator +8 -0
  5. data/.travis.yml +13 -0
  6. data/CHANGELOG.md +202 -391
  7. data/CONTRIBUTING.md +0 -4
  8. data/GETTING_STARTED.md +20 -17
  9. data/README.md +0 -3
  10. data/lib/data/ca-certificates.crt +40 -0
  11. data/lib/recurly/client/operations.rb +815 -748
  12. data/lib/recurly/client.rb +44 -28
  13. data/lib/recurly/errors/api_errors.rb +33 -1
  14. data/lib/recurly/errors.rb +5 -23
  15. data/lib/recurly/pager.rb +5 -15
  16. data/lib/recurly/requests/{account_acquisition_updatable.rb → account_acquisition_update.rb} +1 -1
  17. data/lib/recurly/requests/account_create.rb +2 -14
  18. data/lib/recurly/requests/account_purchase.rb +2 -14
  19. data/lib/recurly/requests/account_update.rb +0 -12
  20. data/lib/recurly/requests/add_on_create.rb +5 -5
  21. data/lib/recurly/requests/add_on_pricing.rb +5 -5
  22. data/lib/recurly/requests/add_on_update.rb +3 -3
  23. data/lib/recurly/requests/address.rb +1 -13
  24. data/lib/recurly/requests/billing_info_create.rb +4 -52
  25. data/lib/recurly/requests/coupon_create.rb +1 -1
  26. data/lib/recurly/requests/custom_field.rb +0 -8
  27. data/lib/recurly/requests/external_transaction.rb +1 -1
  28. data/lib/recurly/requests/invoice_address.rb +1 -5
  29. data/lib/recurly/requests/invoice_collect.rb +1 -1
  30. data/lib/recurly/requests/invoice_create.rb +1 -9
  31. data/lib/recurly/requests/{invoice_updatable.rb → invoice_update.rb} +1 -1
  32. data/lib/recurly/requests/item_create.rb +1 -1
  33. data/lib/recurly/requests/item_update.rb +1 -1
  34. data/lib/recurly/requests/line_item_create.rb +3 -15
  35. data/lib/recurly/requests/line_item_refund.rb +0 -4
  36. data/lib/recurly/requests/plan_create.rb +1 -17
  37. data/lib/recurly/requests/plan_pricing.rb +1 -5
  38. data/lib/recurly/requests/plan_update.rb +1 -13
  39. data/lib/recurly/requests/pricing.rb +0 -4
  40. data/lib/recurly/requests/purchase_create.rb +1 -9
  41. data/lib/recurly/requests/shipping_address_create.rb +1 -5
  42. data/lib/recurly/requests/shipping_address_update.rb +1 -5
  43. data/lib/recurly/requests/subscription_add_on_create.rb +8 -4
  44. data/lib/recurly/requests/subscription_add_on_tier.rb +5 -1
  45. data/lib/recurly/requests/subscription_add_on_update.rb +6 -2
  46. data/lib/recurly/requests/subscription_change_create.rb +1 -13
  47. data/lib/recurly/requests/subscription_create.rb +6 -26
  48. data/lib/recurly/requests/subscription_pause.rb +1 -1
  49. data/lib/recurly/requests/subscription_purchase.rb +3 -31
  50. data/lib/recurly/requests/subscription_update.rb +1 -13
  51. data/lib/recurly/requests/tier.rb +2 -2
  52. data/lib/recurly/requests/{plan_ramp_pricing.rb → tier_pricing.rb} +6 -2
  53. data/lib/recurly/requests/usage_create.rb +1 -1
  54. data/lib/recurly/resources/account.rb +0 -12
  55. data/lib/recurly/resources/account_balance_amount.rb +0 -8
  56. data/lib/recurly/resources/account_mini.rb +0 -4
  57. data/lib/recurly/resources/add_on.rb +2 -2
  58. data/lib/recurly/resources/add_on_pricing.rb +5 -5
  59. data/lib/recurly/resources/address.rb +1 -13
  60. data/lib/recurly/resources/address_with_name.rb +46 -0
  61. data/lib/recurly/resources/billing_info.rb +1 -5
  62. data/lib/recurly/resources/billing_info_updated_by.rb +1 -1
  63. data/lib/recurly/resources/coupon.rb +5 -17
  64. data/lib/recurly/resources/custom_field.rb +0 -8
  65. data/lib/recurly/resources/custom_field_definition.rb +1 -1
  66. data/lib/recurly/resources/invoice.rb +8 -20
  67. data/lib/recurly/resources/invoice_address.rb +1 -5
  68. data/lib/recurly/resources/item.rb +1 -1
  69. data/lib/recurly/resources/line_item.rb +9 -29
  70. data/lib/recurly/resources/payment_method.rb +0 -12
  71. data/lib/recurly/resources/plan.rb +2 -18
  72. data/lib/recurly/resources/plan_pricing.rb +1 -5
  73. data/lib/recurly/resources/pricing.rb +0 -4
  74. data/lib/recurly/resources/shipping_address.rb +1 -5
  75. data/lib/recurly/resources/subscription.rb +0 -20
  76. data/lib/recurly/resources/subscription_add_on.rb +6 -2
  77. data/lib/recurly/resources/subscription_add_on_tier.rb +5 -1
  78. data/lib/recurly/resources/subscription_change.rb +0 -16
  79. data/lib/recurly/resources/tax_info.rb +3 -7
  80. data/lib/recurly/resources/tier.rb +2 -2
  81. data/lib/recurly/resources/{plan_ramp_pricing.rb → tier_pricing.rb} +6 -2
  82. data/lib/recurly/resources/transaction.rb +3 -7
  83. data/lib/recurly/resources/unique_coupon_code_params.rb +26 -0
  84. data/lib/recurly/resources/usage.rb +6 -2
  85. data/lib/recurly/version.rb +1 -1
  86. data/openapi/api.yaml +2308 -13819
  87. data/scripts/build +2 -2
  88. data/scripts/bump +11 -0
  89. data/scripts/changelog +14 -0
  90. data/scripts/format +2 -2
  91. data/scripts/prepare-release +29 -43
  92. data/scripts/release +20 -5
  93. metadata +14 -33
  94. data/.changelog_config.yaml +0 -11
  95. data/.github/workflows/ci.yml +0 -29
  96. data/.github/workflows/pr-review.yml +0 -27
  97. data/CODE_OF_CONDUCT.md +0 -130
  98. data/lib/recurly/errors/network_errors.rb +0 -10
  99. data/lib/recurly/requests/billing_info_verify.rb +0 -18
  100. data/lib/recurly/requests/billing_info_verify_cvv.rb +0 -26
  101. data/lib/recurly/requests/credit_application_policy.rb +0 -18
  102. data/lib/recurly/requests/dunning_campaigns_bulk_update.rb +0 -18
  103. data/lib/recurly/requests/gateway_attributes.rb +0 -14
  104. data/lib/recurly/requests/plan_ramp_interval.rb +0 -18
  105. data/lib/recurly/requests/subscription_change_billing_info_create.rb +0 -14
  106. data/lib/recurly/requests/subscription_ramp_interval.rb +0 -18
  107. data/lib/recurly/resources/credit_application_policy.rb +0 -18
  108. data/lib/recurly/resources/dunning_campaign.rb +0 -50
  109. data/lib/recurly/resources/dunning_campaigns_bulk_update_response.rb +0 -18
  110. data/lib/recurly/resources/dunning_cycle.rb +0 -58
  111. data/lib/recurly/resources/dunning_interval.rb +0 -18
  112. data/lib/recurly/resources/gateway_attributes.rb +0 -14
  113. data/lib/recurly/resources/line_item_list.rb +0 -26
  114. data/lib/recurly/resources/plan_ramp_interval.rb +0 -18
  115. data/lib/recurly/resources/subscription_change_billing_info.rb +0 -14
  116. data/lib/recurly/resources/subscription_change_preview.rb +0 -90
  117. data/lib/recurly/resources/subscription_ramp_interval_response.rb +0 -30
  118. data/lib/recurly/resources/tax_detail.rb +0 -38
data/scripts/build CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
2
  set -e
3
3
 
4
- bundle install --quiet
5
- bundle exec yard --quiet
4
+ bundle install --binstubs --quiet
5
+ ./bin/yard --quiet
data/scripts/bump ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ if [ "$1" == "--next-version" ]; then
5
+ shift
6
+ bump2version --dry-run --list "$@" | grep new_version | cut -d "=" -f 2
7
+ elif [ "$1" == "--this-version" ]; then
8
+ grep current_version .bumpversion.cfg | awk -F" = " '{print $2}'
9
+ else
10
+ bump2version "$@"
11
+ fi
data/scripts/changelog ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ if [ -z "$GITHUB_TOKEN" ]; then
5
+ echo "Environment variable GITHUB_TOKEN must be set"
6
+ else
7
+ if [ "$1" == "--pending" ]; then
8
+ github_changelog_generator -t $GITHUB_TOKEN --unreleased-only -o "$2"
9
+ elif [ "$1" == "--release-tag" ]; then
10
+ github_changelog_generator -t $GITHUB_TOKEN --unreleased true --future-release "$2"
11
+ else
12
+ github_changelog_generator -t $GITHUB_TOKEN
13
+ fi
14
+ fi
data/scripts/format CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  if [ "$1" == "--check" ]; then
4
- bundle exec rufo . --check
4
+ ./bin/rufo . --check
5
5
  RESULT=$?
6
6
  if [ $RESULT != 0 ]; then
7
7
  echo "Code is not properly formatted. Please execute ./scripts/format to autoformat the code."
8
8
  exit $RESULT
9
9
  fi
10
10
  else
11
- bundle exec rufo . -x
11
+ ./bin/rufo . -x
12
12
  fi
@@ -1,50 +1,36 @@
1
1
  #!/usr/bin/env bash
2
+ set -e
2
3
 
3
- # Usage
4
- #
5
- # ./prepare-release major|minor|patch [--notes-out <path>] [--tag-out <path>]
6
- #
4
+ # major,minor,patch
5
+ PART=${1}
6
+ NEXT_VERSION=$(./scripts/bump --next-version "$PART")
7
+ UNRELEASED_LOG="/tmp/ruby-pending-changes.md"
7
8
 
8
- set -e
9
+ if [ -z "$NEXT_VERSION" ]; then
10
+ echo "Failed to get next version"
11
+ else
12
+ # Generate pending changes in tmpfile
13
+ ./scripts/changelog --pending $UNRELEASED_LOG
14
+ # Add a git message header of Release X.Y.Z
15
+ printf "Release %s\n\n$(cat $UNRELEASED_LOG)" "$NEXT_VERSION" > $UNRELEASED_LOG
16
+ # Delete credit line
17
+ sed -i '' -e '$ d' $UNRELEASED_LOG
9
18
 
10
- if [ -n "$(git status --porcelain)" ]; then
11
- echo "Working directory is not clean. Aborting."
12
- exit 1
13
- fi
19
+ git checkout -b "release-$NEXT_VERSION"
14
20
 
15
- if [ -z "$GITHUB_TOKEN" ]; then
16
- echo "GITHUB_TOKEN must be set. Aborting."
17
- exit 1
18
- fi
21
+ # Actually bump the version
22
+ ./scripts/bump "$PART"
23
+
24
+ # Rebuild docs
25
+ ./scripts/build
26
+
27
+ # Make the commit
28
+ git add . --all
29
+ git commit -F "$UNRELEASED_LOG"
30
+
31
+ # Push up this branch for PR
32
+ git push origin "release-$NEXT_VERSION"
19
33
 
20
- # Bump version
21
- # major|minor|patch
22
- part=${1}
23
- if [ "$part" != "patch" ] && [ "$part" != "minor" ] && [ "$part" != "major" ]; then
24
- echo "'$part' is not a valid option: major|minor|patch"
25
- exit 1
34
+ # Create PR
35
+ hub pull-request -c -F "$UNRELEASED_LOG"
26
36
  fi
27
- new_version=$(bump2version --list "$part" | grep new_version | cut -d "=" -f 2)
28
-
29
- # Generate Changelog
30
- changelogly --future-release "$new_version"
31
-
32
- while [[ "$#" -gt 0 ]]; do
33
- case $1 in
34
- # Create release notes artifact
35
- -n|--notes-out)
36
- echo "$new_version
37
-
38
- $(
39
- cat CHANGELOG.md | sed -n "/^## \[$new_version\]/,/^##/p" | sed '$d;1d'
40
- )" | awk '{$1=$1};1' > $2
41
- shift
42
- ;;
43
-
44
- # Create release notes artifact
45
- -t|--tag-out)
46
- echo "$new_version" > $2
47
- ;;
48
- esac
49
- shift
50
- done
data/scripts/release CHANGED
@@ -1,11 +1,15 @@
1
1
  #!/usr/bin/env bash
2
-
3
2
  set -e
4
3
 
5
- # Usage
6
- #
7
- # ./release
8
- #
4
+ # TODO this file could be gone
5
+ RELEASED_LOG="/tmp/ruby-pending-changes.md"
6
+ THIS_VERSION=$(./scripts/bump --this-version)
7
+
8
+ # Generate the changelog with changes in this release
9
+ ./scripts/changelog --release-tag "$THIS_VERSION"
10
+ git add CHANGELOG.md
11
+ git commit -m "Update Changelog for Release $THIS_VERSION"
12
+ git push origin master
9
13
 
10
14
  # publish
11
15
  # Clean up any leftover gems
@@ -15,3 +19,14 @@ gem build recurly.gemspec
15
19
  # Push what should be the only gem present
16
20
  gem push ./*.gem
17
21
 
22
+ # create release
23
+ hub release create -c -F "$RELEASED_LOG" "$THIS_VERSION"
24
+
25
+ # Copy-pasteable messages for announcments
26
+ echo ":ruby: Ruby $THIS_VERSION Released :ruby:"
27
+ echo ":rubygems: Rubygems: https://rubygems.org/gems/recurly/versions/$THIS_VERSION"
28
+ echo "Release: https://github.com/recurly/recurly-client-ruby/releases/tag/$THIS_VERSION"
29
+ echo "Changelog:"
30
+ echo "\`\`\`"
31
+ cat "$RELEASED_LOG"
32
+ echo "\`\`\`"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.29.1
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-23 00:00:00.000000000 Z
11
+ date: 2021-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,17 +116,15 @@ extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
118
  - ".bumpversion.cfg"
119
- - ".changelog_config.yaml"
120
119
  - ".github/ISSUE_TEMPLATE/bug-report.md"
121
120
  - ".github/ISSUE_TEMPLATE/question-or-other.md"
122
- - ".github/workflows/ci.yml"
123
121
  - ".github/workflows/docs.yml"
124
- - ".github/workflows/pr-review.yml"
122
+ - ".github_changelog_generator"
125
123
  - ".gitignore"
126
124
  - ".rspec"
125
+ - ".travis.yml"
127
126
  - ".yardopts"
128
127
  - CHANGELOG.md
129
- - CODE_OF_CONDUCT.md
130
128
  - CONTRIBUTING.md
131
129
  - GETTING_STARTED.md
132
130
  - Gemfile
@@ -141,13 +139,12 @@ files:
141
139
  - lib/recurly/connection_pool.rb
142
140
  - lib/recurly/errors.rb
143
141
  - lib/recurly/errors/api_errors.rb
144
- - lib/recurly/errors/network_errors.rb
145
142
  - lib/recurly/http.rb
146
143
  - lib/recurly/pager.rb
147
144
  - lib/recurly/request.rb
148
145
  - lib/recurly/requests.rb
149
146
  - lib/recurly/requests/account_acquisition_cost.rb
150
- - lib/recurly/requests/account_acquisition_updatable.rb
147
+ - lib/recurly/requests/account_acquisition_update.rb
151
148
  - lib/recurly/requests/account_create.rb
152
149
  - lib/recurly/requests/account_purchase.rb
153
150
  - lib/recurly/requests/account_update.rb
@@ -156,24 +153,19 @@ files:
156
153
  - lib/recurly/requests/add_on_update.rb
157
154
  - lib/recurly/requests/address.rb
158
155
  - lib/recurly/requests/billing_info_create.rb
159
- - lib/recurly/requests/billing_info_verify.rb
160
- - lib/recurly/requests/billing_info_verify_cvv.rb
161
156
  - lib/recurly/requests/coupon_bulk_create.rb
162
157
  - lib/recurly/requests/coupon_create.rb
163
158
  - lib/recurly/requests/coupon_pricing.rb
164
159
  - lib/recurly/requests/coupon_redemption_create.rb
165
160
  - lib/recurly/requests/coupon_update.rb
166
- - lib/recurly/requests/credit_application_policy.rb
167
161
  - lib/recurly/requests/custom_field.rb
168
- - lib/recurly/requests/dunning_campaigns_bulk_update.rb
169
162
  - lib/recurly/requests/external_refund.rb
170
163
  - lib/recurly/requests/external_transaction.rb
171
- - lib/recurly/requests/gateway_attributes.rb
172
164
  - lib/recurly/requests/invoice_address.rb
173
165
  - lib/recurly/requests/invoice_collect.rb
174
166
  - lib/recurly/requests/invoice_create.rb
175
167
  - lib/recurly/requests/invoice_refund.rb
176
- - lib/recurly/requests/invoice_updatable.rb
168
+ - lib/recurly/requests/invoice_update.rb
177
169
  - lib/recurly/requests/item_create.rb
178
170
  - lib/recurly/requests/item_update.rb
179
171
  - lib/recurly/requests/line_item_create.rb
@@ -183,8 +175,6 @@ files:
183
175
  - lib/recurly/requests/plan_create.rb
184
176
  - lib/recurly/requests/plan_hosted_pages.rb
185
177
  - lib/recurly/requests/plan_pricing.rb
186
- - lib/recurly/requests/plan_ramp_interval.rb
187
- - lib/recurly/requests/plan_ramp_pricing.rb
188
178
  - lib/recurly/requests/plan_update.rb
189
179
  - lib/recurly/requests/pricing.rb
190
180
  - lib/recurly/requests/purchase_create.rb
@@ -198,18 +188,17 @@ files:
198
188
  - lib/recurly/requests/subscription_add_on_tier.rb
199
189
  - lib/recurly/requests/subscription_add_on_update.rb
200
190
  - lib/recurly/requests/subscription_cancel.rb
201
- - lib/recurly/requests/subscription_change_billing_info_create.rb
202
191
  - lib/recurly/requests/subscription_change_create.rb
203
192
  - lib/recurly/requests/subscription_change_shipping_create.rb
204
193
  - lib/recurly/requests/subscription_create.rb
205
194
  - lib/recurly/requests/subscription_pause.rb
206
195
  - lib/recurly/requests/subscription_purchase.rb
207
- - lib/recurly/requests/subscription_ramp_interval.rb
208
196
  - lib/recurly/requests/subscription_shipping_create.rb
209
197
  - lib/recurly/requests/subscription_shipping_purchase.rb
210
198
  - lib/recurly/requests/subscription_shipping_update.rb
211
199
  - lib/recurly/requests/subscription_update.rb
212
200
  - lib/recurly/requests/tier.rb
201
+ - lib/recurly/requests/tier_pricing.rb
213
202
  - lib/recurly/requests/usage_create.rb
214
203
  - lib/recurly/resource.rb
215
204
  - lib/recurly/resources.rb
@@ -224,6 +213,7 @@ files:
224
213
  - lib/recurly/resources/add_on_mini.rb
225
214
  - lib/recurly/resources/add_on_pricing.rb
226
215
  - lib/recurly/resources/address.rb
216
+ - lib/recurly/resources/address_with_name.rb
227
217
  - lib/recurly/resources/billing_info.rb
228
218
  - lib/recurly/resources/billing_info_updated_by.rb
229
219
  - lib/recurly/resources/binary_file.rb
@@ -234,21 +224,15 @@ files:
234
224
  - lib/recurly/resources/coupon_mini.rb
235
225
  - lib/recurly/resources/coupon_redemption.rb
236
226
  - lib/recurly/resources/coupon_redemption_mini.rb
237
- - lib/recurly/resources/credit_application_policy.rb
238
227
  - lib/recurly/resources/credit_payment.rb
239
228
  - lib/recurly/resources/custom_field.rb
240
229
  - lib/recurly/resources/custom_field_definition.rb
241
- - lib/recurly/resources/dunning_campaign.rb
242
- - lib/recurly/resources/dunning_campaigns_bulk_update_response.rb
243
- - lib/recurly/resources/dunning_cycle.rb
244
- - lib/recurly/resources/dunning_interval.rb
245
230
  - lib/recurly/resources/error.rb
246
231
  - lib/recurly/resources/error_may_have_transaction.rb
247
232
  - lib/recurly/resources/export_dates.rb
248
233
  - lib/recurly/resources/export_file.rb
249
234
  - lib/recurly/resources/export_files.rb
250
235
  - lib/recurly/resources/fraud_info.rb
251
- - lib/recurly/resources/gateway_attributes.rb
252
236
  - lib/recurly/resources/invoice.rb
253
237
  - lib/recurly/resources/invoice_address.rb
254
238
  - lib/recurly/resources/invoice_collection.rb
@@ -256,15 +240,12 @@ files:
256
240
  - lib/recurly/resources/item.rb
257
241
  - lib/recurly/resources/item_mini.rb
258
242
  - lib/recurly/resources/line_item.rb
259
- - lib/recurly/resources/line_item_list.rb
260
243
  - lib/recurly/resources/measured_unit.rb
261
244
  - lib/recurly/resources/payment_method.rb
262
245
  - lib/recurly/resources/plan.rb
263
246
  - lib/recurly/resources/plan_hosted_pages.rb
264
247
  - lib/recurly/resources/plan_mini.rb
265
248
  - lib/recurly/resources/plan_pricing.rb
266
- - lib/recurly/resources/plan_ramp_interval.rb
267
- - lib/recurly/resources/plan_ramp_pricing.rb
268
249
  - lib/recurly/resources/pricing.rb
269
250
  - lib/recurly/resources/settings.rb
270
251
  - lib/recurly/resources/shipping_address.rb
@@ -275,17 +256,15 @@ files:
275
256
  - lib/recurly/resources/subscription_add_on.rb
276
257
  - lib/recurly/resources/subscription_add_on_tier.rb
277
258
  - lib/recurly/resources/subscription_change.rb
278
- - lib/recurly/resources/subscription_change_billing_info.rb
279
- - lib/recurly/resources/subscription_change_preview.rb
280
- - lib/recurly/resources/subscription_ramp_interval_response.rb
281
259
  - lib/recurly/resources/subscription_shipping.rb
282
- - lib/recurly/resources/tax_detail.rb
283
260
  - lib/recurly/resources/tax_info.rb
284
261
  - lib/recurly/resources/tier.rb
262
+ - lib/recurly/resources/tier_pricing.rb
285
263
  - lib/recurly/resources/transaction.rb
286
264
  - lib/recurly/resources/transaction_error.rb
287
265
  - lib/recurly/resources/transaction_payment_gateway.rb
288
266
  - lib/recurly/resources/unique_coupon_code.rb
267
+ - lib/recurly/resources/unique_coupon_code_params.rb
289
268
  - lib/recurly/resources/usage.rb
290
269
  - lib/recurly/resources/user.rb
291
270
  - lib/recurly/schema.rb
@@ -299,6 +278,8 @@ files:
299
278
  - openapi/api.yaml
300
279
  - recurly.gemspec
301
280
  - scripts/build
281
+ - scripts/bump
282
+ - scripts/changelog
302
283
  - scripts/clean
303
284
  - scripts/format
304
285
  - scripts/prepare-release
@@ -312,7 +293,7 @@ metadata:
312
293
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
313
294
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
314
295
  homepage_uri: https://github.com/recurly/recurly-client-ruby
315
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.29.1
296
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.0.0
316
297
  post_install_message:
317
298
  rdoc_options: []
318
299
  require_paths:
@@ -328,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
309
  - !ruby/object:Gem::Version
329
310
  version: '0'
330
311
  requirements: []
331
- rubygems_version: 3.0.3.1
312
+ rubygems_version: 3.0.3
332
313
  signing_key:
333
314
  specification_version: 4
334
315
  summary: The ruby client for Recurly's V3 API
@@ -1,11 +0,0 @@
1
- ---
2
- owner: recurly
3
- repo: recurly-client-ruby
4
- tag_matcher: ^3\..*
5
- required_issue_labels:
6
- - V3
7
- exclude_labels:
8
- - bug?
9
- - internal
10
- - duplicate
11
- - question
@@ -1,29 +0,0 @@
1
- name: CI
2
- on: [push]
3
- concurrency:
4
- group: ${{ github.ref }}
5
- cancel-in-progress: true
6
- jobs:
7
- build:
8
- runs-on: ubuntu-24.04
9
- name: Ruby ${{ matrix.ruby }} tests
10
- strategy:
11
- matrix:
12
- ruby: ['2.4', '2.5', '2.6', '2.7', '3.0']
13
- steps:
14
- - uses: actions/checkout@v3
15
- - name: Setup ruby
16
- uses: ruby/setup-ruby@v1
17
- with:
18
- ruby-version: ${{ matrix.ruby }}
19
- - run: ./scripts/build
20
- - run: ./scripts/test
21
- buildall:
22
- if: ${{ always() }}
23
- runs-on: ubuntu-24.04
24
- name: Build (matrix)
25
- needs: build
26
- steps:
27
- - name: Check build matrix status
28
- if: ${{ needs.build.result != 'success' }}
29
- run: exit 1
@@ -1,27 +0,0 @@
1
- name: PR Review
2
-
3
- on:
4
- pull_request:
5
- types:
6
- - opened
7
- - repoened
8
- - edited
9
- - synchronize
10
- - labeled
11
- - unlabeled
12
-
13
- concurrency:
14
- group: ${{ github.workflow }} - ${{ github.ref }}
15
- cancel-in-progress: true
16
-
17
- jobs:
18
- label-checker:
19
- runs-on: ubuntu-latest
20
- name: Label Checker
21
- steps:
22
- - name: Check Labels
23
- uses: docker://agilepathway/pull-request-label-checker:latest
24
- with:
25
- one_of: V3
26
- repo_token: ${{ secrets.GITHUB_TOKEN }}
27
-
data/CODE_OF_CONDUCT.md DELETED
@@ -1,130 +0,0 @@
1
-
2
- # Contributor Covenant Code of Conduct
3
-
4
- ## Our Pledge
5
-
6
- We as members, contributors, and leaders pledge to make participation in our
7
- community a harassment-free experience for everyone, regardless of age, body
8
- size, visible or invisible disability, ethnicity, sex characteristics, gender
9
- identity and expression, level of experience, education, socio-economic status,
10
- nationality, personal appearance, race, religion, or sexual identity
11
- and orientation.
12
-
13
- We pledge to act and interact in ways that contribute to an open, welcoming,
14
- diverse, inclusive, and healthy community.
15
-
16
- ## Our Standards
17
-
18
- Examples of behavior that contributes to a positive environment for our
19
- community include:
20
-
21
- * Demonstrating empathy and kindness toward other people
22
- * Being respectful of differing opinions, viewpoints, and experiences
23
- * Giving and gracefully accepting constructive feedback
24
- * Accepting responsibility and apologizing to those affected by our mistakes,
25
- and learning from the experience
26
- * Focusing on what is best not just for us as individuals, but for the
27
- overall community
28
-
29
- Examples of unacceptable behavior include:
30
-
31
- * The use of sexualized language or imagery, and sexual attention or
32
- advances of any kind
33
- * Trolling, insulting or derogatory comments, and personal or political attacks
34
- * Public or private harassment
35
- * Publishing others' private information, such as a physical or email
36
- address, without their explicit permission
37
- * Other conduct which could reasonably be considered inappropriate in a
38
- professional setting
39
-
40
- ## Enforcement Responsibilities
41
-
42
- Community leaders are responsible for clarifying and enforcing our standards of
43
- acceptable behavior and will take appropriate and fair corrective action in
44
- response to any behavior that they deem inappropriate, threatening, offensive,
45
- or harmful.
46
-
47
- Community leaders have the right and responsibility to remove, edit, or reject
48
- comments, commits, code, wiki edits, issues, and other contributions that are
49
- not aligned to this Code of Conduct, and will communicate reasons for moderation
50
- decisions when appropriate.
51
-
52
- ## Scope
53
-
54
- This Code of Conduct applies within all community spaces, and also applies when
55
- an individual is officially representing the community in public spaces.
56
- Examples of representing our community include using an official e-mail address,
57
- posting via an official social media account, or acting as an appointed
58
- representative at an online or offline event.
59
-
60
- ## Enforcement
61
-
62
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
- reported to the community leaders responsible for enforcement at
64
- dx@recurly.com.
65
- All complaints will be reviewed and investigated promptly and fairly.
66
-
67
- All community leaders are obligated to respect the privacy and security of the
68
- reporter of any incident.
69
-
70
- ## Enforcement Guidelines
71
-
72
- Community leaders will follow these Community Impact Guidelines in determining
73
- the consequences for any action they deem in violation of this Code of Conduct:
74
-
75
- ### 1. Correction
76
-
77
- **Community Impact**: Use of inappropriate language or other behavior deemed
78
- unprofessional or unwelcome in the community.
79
-
80
- **Consequence**: A private, written warning from community leaders, providing
81
- clarity around the nature of the violation and an explanation of why the
82
- behavior was inappropriate. A public apology may be requested.
83
-
84
- ### 2. Warning
85
-
86
- **Community Impact**: A violation through a single incident or series
87
- of actions.
88
-
89
- **Consequence**: A warning with consequences for continued behavior. No
90
- interaction with the people involved, including unsolicited interaction with
91
- those enforcing the Code of Conduct, for a specified period of time. This
92
- includes avoiding interactions in community spaces as well as external channels
93
- like social media. Violating these terms may lead to a temporary or
94
- permanent ban.
95
-
96
- ### 3. Temporary Ban
97
-
98
- **Community Impact**: A serious violation of community standards, including
99
- sustained inappropriate behavior.
100
-
101
- **Consequence**: A temporary ban from any sort of interaction or public
102
- communication with the community for a specified period of time. No public or
103
- private interaction with the people involved, including unsolicited interaction
104
- with those enforcing the Code of Conduct, is allowed during this period.
105
- Violating these terms may lead to a permanent ban.
106
-
107
- ### 4. Permanent Ban
108
-
109
- **Community Impact**: Demonstrating a pattern of violation of community
110
- standards, including sustained inappropriate behavior, harassment of an
111
- individual, or aggression toward or disparagement of classes of individuals.
112
-
113
- **Consequence**: A permanent ban from any sort of public interaction within
114
- the community.
115
-
116
- ## Attribution
117
-
118
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
- version 2.0, available at
120
- https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
121
-
122
- Community Impact Guidelines were inspired by [Mozilla's code of conduct
123
- enforcement ladder](https://github.com/mozilla/diversity).
124
-
125
- [homepage]: https://www.contributor-covenant.org
126
-
127
- For answers to common questions about this code of conduct, see the FAQ at
128
- https://www.contributor-covenant.org/faq. Translations are available at
129
- https://www.contributor-covenant.org/translations.
130
-
@@ -1,10 +0,0 @@
1
- module Recurly
2
- module Errors
3
- class NetworkError < StandardError; end
4
- class InvalidResponseError < NetworkError; end
5
- class TimeoutError < NetworkError; end
6
- class ConnectionFailedError < NetworkError; end
7
- class SSLError < NetworkError; end
8
- class UnavailableError < NetworkError; end
9
- end
10
- end
@@ -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 Requests
7
- class BillingInfoVerify < Request
8
-
9
- # @!attribute gateway_code
10
- # @return [String] An identifier for a specific payment gateway.
11
- define_attribute :gateway_code, String
12
-
13
- # @!attribute three_d_secure_action_result_token_id
14
- # @return [String] A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.
15
- define_attribute :three_d_secure_action_result_token_id, 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 Requests
7
- class BillingInfoVerifyCVV < Request
8
-
9
- # @!attribute gateway_code
10
- # @return [String] An identifier for a specific payment gateway.
11
- define_attribute :gateway_code, String
12
-
13
- # @!attribute three_d_secure_action_result_token_id
14
- # @return [String] A token generated by Recurly.js after completing a 3-D Secure device fingerprinting or authentication challenge.
15
- define_attribute :three_d_secure_action_result_token_id, String
16
-
17
- # @!attribute token_id
18
- # @return [String] A token [generated by Recurly.js](https://recurly.com/developers/reference/recurly-js/#getting-a-token).
19
- define_attribute :token_id, String
20
-
21
- # @!attribute verification_value
22
- # @return [String] Unique security code for a credit card.
23
- define_attribute :verification_value, String
24
- end
25
- end
26
- end
@@ -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 Requests
7
- class CreditApplicationPolicy < Request
8
-
9
- # @!attribute allowed_origins
10
- # @return [Array[String]] Optional array of credit invoice origin types to allow when mode is `all`. If not specified when mode is `all`, credits from all origins are applied. Only valid when mode is `all`.
11
- define_attribute :allowed_origins, Array, { :item_type => String }
12
-
13
- # @!attribute mode
14
- # @return [String]
15
- define_attribute :mode, String
16
- end
17
- end
18
- end
@@ -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 Requests
7
- class DunningCampaignsBulkUpdate < Request
8
-
9
- # @!attribute plan_codes
10
- # @return [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
- define_attribute :plan_codes, Array, { :item_type => String }
12
-
13
- # @!attribute plan_ids
14
- # @return [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
- define_attribute :plan_ids, Array, { :item_type => String }
16
- end
17
- end
18
- end