recurly 3.29.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.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/.bumpversion.cfg +1 -1
  3. data/.github/workflows/docs.yml +1 -1
  4. data/.github_changelog_generator +8 -0
  5. data/.travis.yml +13 -0
  6. data/CHANGELOG.md +202 -380
  7. data/CONTRIBUTING.md +0 -4
  8. data/GETTING_STARTED.md +20 -17
  9. data/README.md +0 -3
  10. data/lib/recurly/client/operations.rb +778 -662
  11. data/lib/recurly/client.rb +44 -28
  12. data/lib/recurly/errors/api_errors.rb +3 -2
  13. data/lib/recurly/errors.rb +5 -23
  14. data/lib/recurly/pager.rb +5 -15
  15. data/lib/recurly/requests/{account_acquisition_updatable.rb → account_acquisition_update.rb} +1 -1
  16. data/lib/recurly/requests/account_create.rb +2 -14
  17. data/lib/recurly/requests/account_purchase.rb +2 -14
  18. data/lib/recurly/requests/account_update.rb +0 -12
  19. data/lib/recurly/requests/add_on_create.rb +4 -4
  20. data/lib/recurly/requests/add_on_pricing.rb +5 -5
  21. data/lib/recurly/requests/add_on_update.rb +2 -2
  22. data/lib/recurly/requests/address.rb +1 -13
  23. data/lib/recurly/requests/billing_info_create.rb +3 -47
  24. data/lib/recurly/requests/coupon_create.rb +1 -1
  25. data/lib/recurly/requests/external_transaction.rb +1 -1
  26. data/lib/recurly/requests/invoice_address.rb +1 -5
  27. data/lib/recurly/requests/invoice_collect.rb +1 -1
  28. data/lib/recurly/requests/{invoice_updatable.rb → invoice_update.rb} +1 -1
  29. data/lib/recurly/requests/line_item_create.rb +2 -10
  30. data/lib/recurly/requests/line_item_refund.rb +0 -4
  31. data/lib/recurly/requests/plan_create.rb +0 -16
  32. data/lib/recurly/requests/plan_pricing.rb +1 -5
  33. data/lib/recurly/requests/plan_update.rb +0 -12
  34. data/lib/recurly/requests/pricing.rb +0 -4
  35. data/lib/recurly/requests/purchase_create.rb +1 -1
  36. data/lib/recurly/requests/shipping_address_create.rb +1 -5
  37. data/lib/recurly/requests/shipping_address_update.rb +1 -5
  38. data/lib/recurly/requests/subscription_add_on_create.rb +8 -4
  39. data/lib/recurly/requests/subscription_add_on_tier.rb +5 -1
  40. data/lib/recurly/requests/subscription_add_on_update.rb +6 -2
  41. data/lib/recurly/requests/subscription_change_create.rb +1 -13
  42. data/lib/recurly/requests/subscription_create.rb +5 -13
  43. data/lib/recurly/requests/subscription_pause.rb +1 -1
  44. data/lib/recurly/requests/subscription_purchase.rb +2 -10
  45. data/lib/recurly/requests/subscription_update.rb +1 -5
  46. data/lib/recurly/requests/tier.rb +2 -2
  47. data/lib/recurly/requests/{plan_ramp_pricing.rb → tier_pricing.rb} +6 -2
  48. data/lib/recurly/requests/usage_create.rb +1 -1
  49. data/lib/recurly/resources/account.rb +0 -12
  50. data/lib/recurly/resources/account_balance_amount.rb +0 -8
  51. data/lib/recurly/resources/account_mini.rb +0 -4
  52. data/lib/recurly/resources/add_on.rb +1 -1
  53. data/lib/recurly/resources/add_on_pricing.rb +5 -5
  54. data/lib/recurly/resources/address.rb +1 -13
  55. data/lib/recurly/resources/address_with_name.rb +46 -0
  56. data/lib/recurly/resources/billing_info.rb +1 -5
  57. data/lib/recurly/resources/billing_info_updated_by.rb +1 -1
  58. data/lib/recurly/resources/coupon.rb +5 -17
  59. data/lib/recurly/resources/custom_field_definition.rb +1 -1
  60. data/lib/recurly/resources/invoice.rb +8 -12
  61. data/lib/recurly/resources/invoice_address.rb +1 -5
  62. data/lib/recurly/resources/line_item.rb +7 -23
  63. data/lib/recurly/resources/payment_method.rb +0 -12
  64. data/lib/recurly/resources/plan.rb +1 -17
  65. data/lib/recurly/resources/plan_pricing.rb +1 -5
  66. data/lib/recurly/resources/pricing.rb +0 -4
  67. data/lib/recurly/resources/shipping_address.rb +1 -5
  68. data/lib/recurly/resources/subscription.rb +0 -12
  69. data/lib/recurly/resources/subscription_add_on.rb +6 -2
  70. data/lib/recurly/resources/subscription_add_on_tier.rb +5 -1
  71. data/lib/recurly/resources/subscription_change.rb +0 -16
  72. data/lib/recurly/resources/tax_info.rb +3 -7
  73. data/lib/recurly/resources/tier.rb +2 -2
  74. data/lib/recurly/resources/{plan_ramp_pricing.rb → tier_pricing.rb} +6 -2
  75. data/lib/recurly/resources/transaction.rb +3 -7
  76. data/lib/recurly/resources/unique_coupon_code_params.rb +26 -0
  77. data/lib/recurly/resources/usage.rb +6 -2
  78. data/lib/recurly/version.rb +1 -1
  79. data/openapi/api.yaml +2028 -3132
  80. data/scripts/build +2 -2
  81. data/scripts/bump +11 -0
  82. data/scripts/changelog +14 -0
  83. data/scripts/format +2 -2
  84. data/scripts/prepare-release +29 -43
  85. data/scripts/release +20 -5
  86. metadata +17 -33
  87. data/.changelog_config.yaml +0 -11
  88. data/.github/workflows/ci.yml +0 -29
  89. data/.github/workflows/pr-review.yml +0 -27
  90. data/CODE_OF_CONDUCT.md +0 -130
  91. data/lib/recurly/errors/network_errors.rb +0 -10
  92. data/lib/recurly/requests/billing_info_verify.rb +0 -14
  93. data/lib/recurly/requests/dunning_campaigns_bulk_update.rb +0 -18
  94. data/lib/recurly/requests/gateway_attributes.rb +0 -14
  95. data/lib/recurly/requests/plan_ramp_interval.rb +0 -18
  96. data/lib/recurly/requests/subscription_change_billing_info_create.rb +0 -14
  97. data/lib/recurly/requests/subscription_ramp_interval.rb +0 -18
  98. data/lib/recurly/resources/dunning_campaign.rb +0 -50
  99. data/lib/recurly/resources/dunning_campaigns_bulk_update_response.rb +0 -18
  100. data/lib/recurly/resources/dunning_cycle.rb +0 -58
  101. data/lib/recurly/resources/dunning_interval.rb +0 -18
  102. data/lib/recurly/resources/gateway_attributes.rb +0 -14
  103. data/lib/recurly/resources/line_item_list.rb +0 -26
  104. data/lib/recurly/resources/plan_ramp_interval.rb +0 -18
  105. data/lib/recurly/resources/subscription_change_billing_info.rb +0 -14
  106. data/lib/recurly/resources/subscription_change_preview.rb +0 -90
  107. data/lib/recurly/resources/subscription_ramp_interval_response.rb +0 -30
  108. 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.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-24 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,22 +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
156
  - lib/recurly/requests/coupon_bulk_create.rb
161
157
  - lib/recurly/requests/coupon_create.rb
162
158
  - lib/recurly/requests/coupon_pricing.rb
163
159
  - lib/recurly/requests/coupon_redemption_create.rb
164
160
  - lib/recurly/requests/coupon_update.rb
165
161
  - lib/recurly/requests/custom_field.rb
166
- - lib/recurly/requests/dunning_campaigns_bulk_update.rb
167
162
  - lib/recurly/requests/external_refund.rb
168
163
  - lib/recurly/requests/external_transaction.rb
169
- - lib/recurly/requests/gateway_attributes.rb
170
164
  - lib/recurly/requests/invoice_address.rb
171
165
  - lib/recurly/requests/invoice_collect.rb
172
166
  - lib/recurly/requests/invoice_create.rb
173
167
  - lib/recurly/requests/invoice_refund.rb
174
- - lib/recurly/requests/invoice_updatable.rb
168
+ - lib/recurly/requests/invoice_update.rb
175
169
  - lib/recurly/requests/item_create.rb
176
170
  - lib/recurly/requests/item_update.rb
177
171
  - lib/recurly/requests/line_item_create.rb
@@ -181,8 +175,6 @@ files:
181
175
  - lib/recurly/requests/plan_create.rb
182
176
  - lib/recurly/requests/plan_hosted_pages.rb
183
177
  - lib/recurly/requests/plan_pricing.rb
184
- - lib/recurly/requests/plan_ramp_interval.rb
185
- - lib/recurly/requests/plan_ramp_pricing.rb
186
178
  - lib/recurly/requests/plan_update.rb
187
179
  - lib/recurly/requests/pricing.rb
188
180
  - lib/recurly/requests/purchase_create.rb
@@ -196,18 +188,17 @@ files:
196
188
  - lib/recurly/requests/subscription_add_on_tier.rb
197
189
  - lib/recurly/requests/subscription_add_on_update.rb
198
190
  - lib/recurly/requests/subscription_cancel.rb
199
- - lib/recurly/requests/subscription_change_billing_info_create.rb
200
191
  - lib/recurly/requests/subscription_change_create.rb
201
192
  - lib/recurly/requests/subscription_change_shipping_create.rb
202
193
  - lib/recurly/requests/subscription_create.rb
203
194
  - lib/recurly/requests/subscription_pause.rb
204
195
  - lib/recurly/requests/subscription_purchase.rb
205
- - lib/recurly/requests/subscription_ramp_interval.rb
206
196
  - lib/recurly/requests/subscription_shipping_create.rb
207
197
  - lib/recurly/requests/subscription_shipping_purchase.rb
208
198
  - lib/recurly/requests/subscription_shipping_update.rb
209
199
  - lib/recurly/requests/subscription_update.rb
210
200
  - lib/recurly/requests/tier.rb
201
+ - lib/recurly/requests/tier_pricing.rb
211
202
  - lib/recurly/requests/usage_create.rb
212
203
  - lib/recurly/resource.rb
213
204
  - lib/recurly/resources.rb
@@ -222,6 +213,7 @@ files:
222
213
  - lib/recurly/resources/add_on_mini.rb
223
214
  - lib/recurly/resources/add_on_pricing.rb
224
215
  - lib/recurly/resources/address.rb
216
+ - lib/recurly/resources/address_with_name.rb
225
217
  - lib/recurly/resources/billing_info.rb
226
218
  - lib/recurly/resources/billing_info_updated_by.rb
227
219
  - lib/recurly/resources/binary_file.rb
@@ -235,17 +227,12 @@ files:
235
227
  - lib/recurly/resources/credit_payment.rb
236
228
  - lib/recurly/resources/custom_field.rb
237
229
  - lib/recurly/resources/custom_field_definition.rb
238
- - lib/recurly/resources/dunning_campaign.rb
239
- - lib/recurly/resources/dunning_campaigns_bulk_update_response.rb
240
- - lib/recurly/resources/dunning_cycle.rb
241
- - lib/recurly/resources/dunning_interval.rb
242
230
  - lib/recurly/resources/error.rb
243
231
  - lib/recurly/resources/error_may_have_transaction.rb
244
232
  - lib/recurly/resources/export_dates.rb
245
233
  - lib/recurly/resources/export_file.rb
246
234
  - lib/recurly/resources/export_files.rb
247
235
  - lib/recurly/resources/fraud_info.rb
248
- - lib/recurly/resources/gateway_attributes.rb
249
236
  - lib/recurly/resources/invoice.rb
250
237
  - lib/recurly/resources/invoice_address.rb
251
238
  - lib/recurly/resources/invoice_collection.rb
@@ -253,15 +240,12 @@ files:
253
240
  - lib/recurly/resources/item.rb
254
241
  - lib/recurly/resources/item_mini.rb
255
242
  - lib/recurly/resources/line_item.rb
256
- - lib/recurly/resources/line_item_list.rb
257
243
  - lib/recurly/resources/measured_unit.rb
258
244
  - lib/recurly/resources/payment_method.rb
259
245
  - lib/recurly/resources/plan.rb
260
246
  - lib/recurly/resources/plan_hosted_pages.rb
261
247
  - lib/recurly/resources/plan_mini.rb
262
248
  - lib/recurly/resources/plan_pricing.rb
263
- - lib/recurly/resources/plan_ramp_interval.rb
264
- - lib/recurly/resources/plan_ramp_pricing.rb
265
249
  - lib/recurly/resources/pricing.rb
266
250
  - lib/recurly/resources/settings.rb
267
251
  - lib/recurly/resources/shipping_address.rb
@@ -272,17 +256,15 @@ files:
272
256
  - lib/recurly/resources/subscription_add_on.rb
273
257
  - lib/recurly/resources/subscription_add_on_tier.rb
274
258
  - lib/recurly/resources/subscription_change.rb
275
- - lib/recurly/resources/subscription_change_billing_info.rb
276
- - lib/recurly/resources/subscription_change_preview.rb
277
- - lib/recurly/resources/subscription_ramp_interval_response.rb
278
259
  - lib/recurly/resources/subscription_shipping.rb
279
- - lib/recurly/resources/tax_detail.rb
280
260
  - lib/recurly/resources/tax_info.rb
281
261
  - lib/recurly/resources/tier.rb
262
+ - lib/recurly/resources/tier_pricing.rb
282
263
  - lib/recurly/resources/transaction.rb
283
264
  - lib/recurly/resources/transaction_error.rb
284
265
  - lib/recurly/resources/transaction_payment_gateway.rb
285
266
  - lib/recurly/resources/unique_coupon_code.rb
267
+ - lib/recurly/resources/unique_coupon_code_params.rb
286
268
  - lib/recurly/resources/usage.rb
287
269
  - lib/recurly/resources/user.rb
288
270
  - lib/recurly/schema.rb
@@ -296,6 +278,8 @@ files:
296
278
  - openapi/api.yaml
297
279
  - recurly.gemspec
298
280
  - scripts/build
281
+ - scripts/bump
282
+ - scripts/changelog
299
283
  - scripts/clean
300
284
  - scripts/format
301
285
  - scripts/prepare-release
@@ -309,8 +293,8 @@ metadata:
309
293
  changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
310
294
  documentation_uri: https://recurly.github.io/recurly-client-ruby/
311
295
  homepage_uri: https://github.com/recurly/recurly-client-ruby
312
- source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/3.29.0
313
- post_install_message:
296
+ source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.0.0
297
+ post_install_message:
314
298
  rdoc_options: []
315
299
  require_paths:
316
300
  - lib
@@ -325,8 +309,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
325
309
  - !ruby/object:Gem::Version
326
310
  version: '0'
327
311
  requirements: []
328
- rubygems_version: 3.0.3.1
329
- signing_key:
312
+ rubygems_version: 3.0.3
313
+ signing_key:
330
314
  specification_version: 4
331
315
  summary: The ruby client for Recurly's V3 API
332
316
  test_files: []
@@ -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-latest
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-latest
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,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 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
- end
13
- end
14
- 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
@@ -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 Requests
7
- class GatewayAttributes < Request
8
-
9
- # @!attribute account_reference
10
- # @return [String] Used by Adyen and Braintree gateways. For Adyen The Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code. For Braintree the PayPal PayerID is populated in the response.
11
- define_attribute :account_reference, String
12
- end
13
- end
14
- 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 PlanRampInterval < Request
8
-
9
- # @!attribute currencies
10
- # @return [Array[PlanRampPricing]] Represents the price for the ramp interval.
11
- define_attribute :currencies, Array, { :item_type => :PlanRampPricing }
12
-
13
- # @!attribute starting_billing_cycle
14
- # @return [Integer] Represents the billing cycle where a ramp interval starts.
15
- define_attribute :starting_billing_cycle, Integer
16
- end
17
- end
18
- 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 Requests
7
- class SubscriptionChangeBillingInfoCreate < Request
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