recurly 4.20.0 → 4.21.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/CHANGELOG.md +12 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/client/operations.rb +18 -2
- data/lib/recurly/requests/billing_info_verify_cvv.rb +14 -0
- data/lib/recurly/requests/plan_ramp_interval.rb +1 -1
- data/lib/recurly/requests/subscription_ramp_interval.rb +1 -1
- data/lib/recurly/resources/plan_ramp_interval.rb +1 -1
- data/lib/recurly/resources/subscription_ramp_interval_response.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +53 -4
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 461956ea7d4159327c37b2b54ce98540652bd173e3a5c8d96eebb97377090b98
|
4
|
+
data.tar.gz: adf5d47eb201904c78973318eb3b4ebba0843e5c68607c3a929656fc2b505bf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90d0d1aaec37a2bd5324560324eed493e4e7d3bbb5ea657e941a7d7a2e793b3cb442fd97398ad7afb49026def3928c5daaac028f90df230d9104f300d061b734
|
7
|
+
data.tar.gz: '069b0be5d31e2a32eddc35e72d5342912bce1a1b95e00d718c49b7a49a654d98a8c24a78669d37d6fddf8f0b015a19abad79f3a88da22adf8d55130d6d07fdac'
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.21.0](https://github.com/recurly/recurly-client-ruby/tree/4.21.0) (2022-09-07)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.20.0...4.21.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- Generated Latest Changes for v2021-02-25 [#790](https://github.com/recurly/recurly-client-ruby/pull/790) ([recurly-integrations](https://github.com/recurly-integrations))
|
11
|
+
- Fixes bug with put_dunning_campaign_bulk_update [#788](https://github.com/recurly/recurly-client-ruby/pull/788) ([recurly-integrations](https://github.com/recurly-integrations))
|
12
|
+
|
13
|
+
|
14
|
+
|
3
15
|
## [4.20.0](https://github.com/recurly/recurly-client-ruby/tree/4.20.0) (2022-08-03)
|
4
16
|
|
5
17
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.19.0...4.20.0)
|
data/GETTING_STARTED.md
CHANGED
@@ -5,7 +5,7 @@ This repository houses the official ruby client for Recurly's V3 API.
|
|
5
5
|
In your Gemfile, add `recurly` as a dependency.
|
6
6
|
|
7
7
|
```ruby
|
8
|
-
gem 'recurly', '~> 4.
|
8
|
+
gem 'recurly', '~> 4.21'
|
9
9
|
```
|
10
10
|
|
11
11
|
> *Note*: We try to follow [semantic versioning](https://semver.org/) and will only apply breaking changes to major versions.
|
@@ -476,6 +476,21 @@ module Recurly
|
|
476
476
|
post(path, options[:body], Requests::BillingInfoVerify, **options)
|
477
477
|
end
|
478
478
|
|
479
|
+
# Verify an account's credit card billing cvv
|
480
|
+
#
|
481
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/verify_billing_info_cvv verify_billing_info_cvv api documentation}
|
482
|
+
#
|
483
|
+
# @param account_id [String] Account ID or code. For ID no prefix is used e.g. +e28zov4fw0v2+. For code use prefix +code-+, e.g. +code-bob+.
|
484
|
+
# @param body [Requests::BillingInfoVerifyCVV] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::BillingInfoVerifyCVV}
|
485
|
+
# @param params [Hash] Optional query string parameters:
|
486
|
+
#
|
487
|
+
# @return [Resources::Transaction] Transaction information from verify.
|
488
|
+
#
|
489
|
+
def verify_billing_info_cvv(account_id:, body:, **options)
|
490
|
+
path = interpolate_path("/accounts/{account_id}/billing_info/verify_cvv", account_id: account_id)
|
491
|
+
post(path, body, Requests::BillingInfoVerifyCVV, **options)
|
492
|
+
end
|
493
|
+
|
479
494
|
# Get the list of billing information associated with an account
|
480
495
|
#
|
481
496
|
# {https://developers.recurly.com/api/v2021-02-25#operation/list_billing_infos list_billing_infos api documentation}
|
@@ -4035,13 +4050,14 @@ module Recurly
|
|
4035
4050
|
#
|
4036
4051
|
# {https://developers.recurly.com/api/v2021-02-25#operation/put_dunning_campaign_bulk_update put_dunning_campaign_bulk_update api documentation}
|
4037
4052
|
#
|
4053
|
+
# @param dunning_campaign_id [String] Dunning Campaign ID, e.g. +e28zov4fw0v2+.
|
4038
4054
|
# @param body [Requests::DunningCampaignsBulkUpdate] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::DunningCampaignsBulkUpdate}
|
4039
4055
|
# @param params [Hash] Optional query string parameters:
|
4040
4056
|
#
|
4041
4057
|
# @return [Resources::DunningCampaignsBulkUpdateResponse] A list of updated plans.
|
4042
4058
|
#
|
4043
|
-
def put_dunning_campaign_bulk_update(body:, **options)
|
4044
|
-
path = "/dunning_campaigns/{dunning_campaign_id}/bulk_update"
|
4059
|
+
def put_dunning_campaign_bulk_update(dunning_campaign_id:, body:, **options)
|
4060
|
+
path = interpolate_path("/dunning_campaigns/{dunning_campaign_id}/bulk_update", dunning_campaign_id: dunning_campaign_id)
|
4045
4061
|
put(path, body, Requests::DunningCampaignsBulkUpdate, **options)
|
4046
4062
|
end
|
4047
4063
|
|
@@ -0,0 +1,14 @@
|
|
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 verification_value
|
10
|
+
# @return [String] Unique security code for a credit card.
|
11
|
+
define_attribute :verification_value, String
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -11,7 +11,7 @@ module Recurly
|
|
11
11
|
define_attribute :currencies, Array, { :item_type => :PlanRampPricing }
|
12
12
|
|
13
13
|
# @!attribute starting_billing_cycle
|
14
|
-
# @return [Integer] Represents the
|
14
|
+
# @return [Integer] Represents the billing cycle where a ramp interval starts.
|
15
15
|
define_attribute :starting_billing_cycle, Integer
|
16
16
|
end
|
17
17
|
end
|
@@ -7,7 +7,7 @@ module Recurly
|
|
7
7
|
class SubscriptionRampInterval < Request
|
8
8
|
|
9
9
|
# @!attribute starting_billing_cycle
|
10
|
-
# @return [Integer] Represents
|
10
|
+
# @return [Integer] Represents the billing cycle where a ramp interval starts.
|
11
11
|
define_attribute :starting_billing_cycle, Integer
|
12
12
|
|
13
13
|
# @!attribute unit_amount
|
@@ -11,7 +11,7 @@ module Recurly
|
|
11
11
|
define_attribute :currencies, Array, { :item_type => :PlanRampPricing }
|
12
12
|
|
13
13
|
# @!attribute starting_billing_cycle
|
14
|
-
# @return [Integer] Represents the
|
14
|
+
# @return [Integer] Represents the billing cycle where a ramp interval starts.
|
15
15
|
define_attribute :starting_billing_cycle, Integer
|
16
16
|
end
|
17
17
|
end
|
@@ -11,7 +11,7 @@ module Recurly
|
|
11
11
|
define_attribute :remaining_billing_cycles, Integer
|
12
12
|
|
13
13
|
# @!attribute starting_billing_cycle
|
14
|
-
# @return [Integer] Represents
|
14
|
+
# @return [Integer] Represents the billing cycle where a ramp interval starts.
|
15
15
|
define_attribute :starting_billing_cycle, Integer
|
16
16
|
|
17
17
|
# @!attribute unit_amount
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -2441,6 +2441,47 @@ paths:
|
|
2441
2441
|
{\n\t\tfmt.Printf(\"Resource not found: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
|
2442
2442
|
Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfmt.Printf(\"Fetched Transaction:
|
2443
2443
|
%v\", transaction)"
|
2444
|
+
"/accounts/{account_id}/billing_info/verify_cvv":
|
2445
|
+
post:
|
2446
|
+
tags:
|
2447
|
+
- billing_info
|
2448
|
+
operationId: verify_billing_info_cvv
|
2449
|
+
summary: Verify an account's credit card billing cvv
|
2450
|
+
parameters:
|
2451
|
+
- "$ref": "#/components/parameters/account_id"
|
2452
|
+
requestBody:
|
2453
|
+
content:
|
2454
|
+
application/json:
|
2455
|
+
schema:
|
2456
|
+
"$ref": "#/components/schemas/BillingInfoVerifyCVV"
|
2457
|
+
responses:
|
2458
|
+
'200':
|
2459
|
+
description: Transaction information from verify.
|
2460
|
+
content:
|
2461
|
+
application/json:
|
2462
|
+
schema:
|
2463
|
+
"$ref": "#/components/schemas/Transaction"
|
2464
|
+
'429':
|
2465
|
+
description: Over limit error. A credit card can only be checked 3 times
|
2466
|
+
in 24 hours.
|
2467
|
+
content:
|
2468
|
+
application/json:
|
2469
|
+
schema:
|
2470
|
+
"$ref": "#/components/schemas/Error"
|
2471
|
+
'422':
|
2472
|
+
description: Invalid billing information, or error running the verification
|
2473
|
+
transaction.
|
2474
|
+
content:
|
2475
|
+
application/json:
|
2476
|
+
schema:
|
2477
|
+
"$ref": "#/components/schemas/ErrorMayHaveTransaction"
|
2478
|
+
default:
|
2479
|
+
description: Unexpected error.
|
2480
|
+
content:
|
2481
|
+
application/json:
|
2482
|
+
schema:
|
2483
|
+
"$ref": "#/components/schemas/Error"
|
2484
|
+
x-code-samples: []
|
2444
2485
|
"/accounts/{account_id}/billing_infos":
|
2445
2486
|
get:
|
2446
2487
|
tags:
|
@@ -14922,6 +14963,8 @@ paths:
|
|
14922
14963
|
"$ref": "#/components/schemas/Error"
|
14923
14964
|
x-code-samples: []
|
14924
14965
|
"/dunning_campaigns/{dunning_campaign_id}/bulk_update":
|
14966
|
+
parameters:
|
14967
|
+
- "$ref": "#/components/parameters/dunning_campaign_id"
|
14925
14968
|
put:
|
14926
14969
|
tags:
|
14927
14970
|
- dunning_campaigns
|
@@ -16940,6 +16983,12 @@ components:
|
|
16940
16983
|
type: string
|
16941
16984
|
description: An identifier for a specific payment gateway.
|
16942
16985
|
maxLength: 13
|
16986
|
+
BillingInfoVerifyCVV:
|
16987
|
+
type: object
|
16988
|
+
properties:
|
16989
|
+
verification_value:
|
16990
|
+
type: string
|
16991
|
+
description: Unique security code for a credit card.
|
16943
16992
|
Coupon:
|
16944
16993
|
type: object
|
16945
16994
|
properties:
|
@@ -19273,7 +19322,7 @@ components:
|
|
19273
19322
|
properties:
|
19274
19323
|
starting_billing_cycle:
|
19275
19324
|
type: integer
|
19276
|
-
description: Represents the
|
19325
|
+
description: Represents the billing cycle where a ramp interval starts.
|
19277
19326
|
default: 1
|
19278
19327
|
currencies:
|
19279
19328
|
type: array
|
@@ -20774,7 +20823,7 @@ components:
|
|
20774
20823
|
zero then a `method_id` or `method_code` is required.
|
20775
20824
|
address_id:
|
20776
20825
|
type: string
|
20777
|
-
|
20826
|
+
title: Shipping address ID
|
20778
20827
|
description: Assign a shipping address from the account's existing shipping
|
20779
20828
|
addresses. If this and address are both present, address will take precedence.
|
20780
20829
|
address:
|
@@ -21237,7 +21286,7 @@ components:
|
|
21237
21286
|
properties:
|
21238
21287
|
starting_billing_cycle:
|
21239
21288
|
type: integer
|
21240
|
-
description: Represents
|
21289
|
+
description: Represents the billing cycle where a ramp interval starts.
|
21241
21290
|
default: 1
|
21242
21291
|
unit_amount:
|
21243
21292
|
type: integer
|
@@ -21248,7 +21297,7 @@ components:
|
|
21248
21297
|
properties:
|
21249
21298
|
starting_billing_cycle:
|
21250
21299
|
type: integer
|
21251
|
-
description: Represents
|
21300
|
+
description: Represents the billing cycle where a ramp interval starts.
|
21252
21301
|
remaining_billing_cycles:
|
21253
21302
|
type: integer
|
21254
21303
|
description: Represents how many billing cycles are left in a ramp interval.
|
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: 4.
|
4
|
+
version: 4.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -156,6 +156,7 @@ files:
|
|
156
156
|
- lib/recurly/requests/address.rb
|
157
157
|
- lib/recurly/requests/billing_info_create.rb
|
158
158
|
- lib/recurly/requests/billing_info_verify.rb
|
159
|
+
- lib/recurly/requests/billing_info_verify_cvv.rb
|
159
160
|
- lib/recurly/requests/coupon_bulk_create.rb
|
160
161
|
- lib/recurly/requests/coupon_create.rb
|
161
162
|
- lib/recurly/requests/coupon_pricing.rb
|
@@ -315,7 +316,7 @@ metadata:
|
|
315
316
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
316
317
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
317
318
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
318
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.
|
319
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.21.0
|
319
320
|
post_install_message:
|
320
321
|
rdoc_options: []
|
321
322
|
require_paths:
|