recurly 4.34.0 → 4.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/CHANGELOG.md +22 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/requests/billing_info_create.rb +4 -0
- data/lib/recurly/requests/gateway_attributes.rb +14 -0
- data/lib/recurly/resources/gateway_attributes.rb +14 -0
- data/lib/recurly/resources/payment_method.rb +4 -0
- data/lib/recurly/resources/tax_detail.rb +14 -2
- data/lib/recurly/resources/tax_info.rb +4 -4
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +59 -9
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63627cfe02c6b1f623b0ec942fbdfefcc602baab2ba76c210b5b3946610c6010
|
4
|
+
data.tar.gz: eab3fc22497332fec976abbfb79cd9c4a33a54c0755d701d445b4a54ac0fb34f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20999a85623503c5af9e2e7bd2097dc900729a01b96e9c9e758f409594f6b2130627cef2c49a06a750227359679f8bbed5a4c9e727401c6de528ebf1f19634dd
|
7
|
+
data.tar.gz: c042cf9edadd7293aea0550297a720c5ff212402c765d7a86e3c8c545d7c9023e162b6a08d94abd4576c66156ab5cd4cca6105003d2489a3474a24ad69c4874b
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.36.0](https://github.com/recurly/recurly-client-ruby/tree/4.36.0) (2023-05-23)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.35.0...4.36.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- Generated Latest Changes for v2021-02-25 (gateway_attributes on PaymentMethod) [#846](https://github.com/recurly/recurly-client-ruby/pull/846) ([recurly-integrations](https://github.com/recurly-integrations))
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [4.35.0](https://github.com/recurly/recurly-client-ruby/tree/4.35.0) (2023-05-03)
|
15
|
+
|
16
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.34.0...4.35.0)
|
17
|
+
|
18
|
+
|
19
|
+
**Merged Pull Requests**
|
20
|
+
|
21
|
+
- Generated Latest Changes for v2021-02-25 [#843](https://github.com/recurly/recurly-client-ruby/pull/843) ([recurly-integrations](https://github.com/recurly-integrations))
|
22
|
+
|
23
|
+
|
24
|
+
|
3
25
|
## [4.34.0](https://github.com/recurly/recurly-client-ruby/tree/4.34.0) (2023-04-26)
|
4
26
|
|
5
27
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.33.0...4.34.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.36'
|
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.
|
@@ -54,6 +54,10 @@ module Recurly
|
|
54
54
|
# @return [String] Fraud Session ID
|
55
55
|
define_attribute :fraud_session_id, String
|
56
56
|
|
57
|
+
# @!attribute gateway_attributes
|
58
|
+
# @return [GatewayAttributes] Additional attributes to send to the gateway.
|
59
|
+
define_attribute :gateway_attributes, :GatewayAttributes
|
60
|
+
|
57
61
|
# @!attribute gateway_code
|
58
62
|
# @return [String] An identifier for a specific payment gateway. Must be used in conjunction with `gateway_token`.
|
59
63
|
define_attribute :gateway_code, String
|
@@ -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 GatewayAttributes < Request
|
8
|
+
|
9
|
+
# @!attribute account_reference
|
10
|
+
# @return [String] Used by Adyen gateways. The Shopper Reference value used when the external token was created. Must be used in conjunction with gateway_token and gateway_code.
|
11
|
+
define_attribute :account_reference, String
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -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 Resources
|
7
|
+
class GatewayAttributes < Resource
|
8
|
+
|
9
|
+
# @!attribute account_reference
|
10
|
+
# @return [String] Used by Adyen gateways. The Shopper Reference value used when the external token was created.
|
11
|
+
define_attribute :account_reference, String
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -34,6 +34,10 @@ module Recurly
|
|
34
34
|
# @return [String] Credit card number's first six digits.
|
35
35
|
define_attribute :first_six, String
|
36
36
|
|
37
|
+
# @!attribute gateway_attributes
|
38
|
+
# @return [GatewayAttributes] Gateway specific attributes associated with this PaymentMethod
|
39
|
+
define_attribute :gateway_attributes, :GatewayAttributes
|
40
|
+
|
37
41
|
# @!attribute gateway_code
|
38
42
|
# @return [String] An identifier for a specific payment gateway.
|
39
43
|
define_attribute :gateway_code, String
|
@@ -6,12 +6,24 @@ module Recurly
|
|
6
6
|
module Resources
|
7
7
|
class TaxDetail < Resource
|
8
8
|
|
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.
|
11
|
+
define_attribute :billable, :Boolean
|
12
|
+
|
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.
|
15
|
+
define_attribute :level, String
|
16
|
+
|
17
|
+
# @!attribute name
|
18
|
+
# @return [String] Provides the name of the Communications tax applied. Present only when Avalara for Communications is enabled.
|
19
|
+
define_attribute :name, String
|
20
|
+
|
9
21
|
# @!attribute rate
|
10
22
|
# @return [Float] Provides the tax rate for the region.
|
11
23
|
define_attribute :rate, Float
|
12
24
|
|
13
25
|
# @!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.
|
26
|
+
# @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. Not present when Avalara for Communications is enabled.
|
15
27
|
define_attribute :region, String
|
16
28
|
|
17
29
|
# @!attribute tax
|
@@ -19,7 +31,7 @@ module Recurly
|
|
19
31
|
define_attribute :tax, Float
|
20
32
|
|
21
33
|
# @!attribute type
|
22
|
-
# @return [String] Provides the tax type for the region. 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 is enabled. For Canadian Sales Tax, this will be GST, HST, QST or PST.
|
23
35
|
define_attribute :type, String
|
24
36
|
end
|
25
37
|
end
|
@@ -7,19 +7,19 @@ module Recurly
|
|
7
7
|
class TaxInfo < Resource
|
8
8
|
|
9
9
|
# @!attribute rate
|
10
|
-
# @return [Float]
|
10
|
+
# @return [Float] The combined tax rate. Not present when Avalara for Communications is enabled.
|
11
11
|
define_attribute :rate, Float
|
12
12
|
|
13
13
|
# @!attribute region
|
14
|
-
# @return [String] Provides the tax region applied on an invoice. For U.S. Sales Tax, this will be the 2 letter state code. For EU VAT this will be the 2 letter country code. For all country level tax types, this will display the regional tax, like VAT, GST, or PST.
|
14
|
+
# @return [String] Provides the tax region applied on an invoice. For U.S. Sales Tax, this will be the 2 letter state code. For EU VAT this will be the 2 letter country code. For all country level tax types, this will display the regional tax, like VAT, GST, or PST. Not present when Avalara for Communications is enabled.
|
15
15
|
define_attribute :region, String
|
16
16
|
|
17
17
|
# @!attribute tax_details
|
18
|
-
# @return [Array[TaxDetail]] Provides additional tax details for 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 LineItem.
|
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.
|
19
19
|
define_attribute :tax_details, Array, { :item_type => :TaxDetail }
|
20
20
|
|
21
21
|
# @!attribute type
|
22
|
-
# @return [String] Provides the tax type as "vat" for EU VAT, "usst" for U.S. Sales Tax, or the 2 letter country code for country level tax types like Canada, Australia, New Zealand, Israel, and all non-EU European countries.
|
22
|
+
# @return [String] Provides the tax type as "vat" for EU VAT, "usst" for U.S. Sales Tax, or the 2 letter country code for country level tax types like Canada, Australia, New Zealand, Israel, and all non-EU European countries. Not present when Avalara for Communications is enabled.
|
23
23
|
define_attribute :type, String
|
24
24
|
end
|
25
25
|
end
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -199,11 +199,13 @@ x-tagGroups:
|
|
199
199
|
- purchase
|
200
200
|
- usage
|
201
201
|
- automated_exports
|
202
|
+
- gift_cards
|
203
|
+
- name: App Management
|
204
|
+
tags:
|
202
205
|
- external_subscriptions
|
203
206
|
- external_invoices
|
204
207
|
- external_products
|
205
208
|
- external_accounts
|
206
|
-
- gift_cards
|
207
209
|
- name: Products and Promotions
|
208
210
|
tags:
|
209
211
|
- item
|
@@ -349,7 +351,7 @@ tags:
|
|
349
351
|
Recurly platform and instead is managed by third-party platforms like Apple App
|
350
352
|
Store and Google Play Store.
|
351
353
|
- name: external_invoices
|
352
|
-
x-displayName: External
|
354
|
+
x-displayName: External Invoice
|
353
355
|
description: An invoice from an external resource that is not managed by the Recurly
|
354
356
|
platform and instead is managed by third-party platforms like Apple App Store
|
355
357
|
and Google Play Store.
|
@@ -363,7 +365,7 @@ tags:
|
|
363
365
|
description: Add gift card purchases to your checkout and allow gift card recipients
|
364
366
|
to redeem the gift card for credit towards any of your products.
|
365
367
|
- name: external_accounts
|
366
|
-
x-displayName: External
|
368
|
+
x-displayName: External Account
|
367
369
|
description: An account from an external resource that is not managed by the Recurly
|
368
370
|
platform and instead is managed by third-party platforms like Apple App Store
|
369
371
|
and Google Play Store.
|
@@ -17851,6 +17853,17 @@ components:
|
|
17851
17853
|
title: An identifier for a specific payment gateway. Must be used in conjunction
|
17852
17854
|
with `gateway_token`.
|
17853
17855
|
maxLength: 12
|
17856
|
+
gateway_attributes:
|
17857
|
+
type: object
|
17858
|
+
description: Additional attributes to send to the gateway.
|
17859
|
+
x-class-name: GatewayAttributes
|
17860
|
+
properties:
|
17861
|
+
account_reference:
|
17862
|
+
type: string
|
17863
|
+
description: Used by Adyen gateways. The Shopper Reference value used
|
17864
|
+
when the external token was created. Must be used in conjunction with
|
17865
|
+
gateway_token and gateway_code.
|
17866
|
+
maxLength: 264
|
17854
17867
|
amazon_billing_agreement_id:
|
17855
17868
|
type: string
|
17856
17869
|
title: Amazon billing agreement ID
|
@@ -22347,23 +22360,29 @@ components:
|
|
22347
22360
|
description: Provides the tax type as "vat" for EU VAT, "usst" for U.S.
|
22348
22361
|
Sales Tax, or the 2 letter country code for country level tax types like
|
22349
22362
|
Canada, Australia, New Zealand, Israel, and all non-EU European countries.
|
22363
|
+
Not present when Avalara for Communications is enabled.
|
22350
22364
|
region:
|
22351
22365
|
type: string
|
22352
22366
|
title: Region
|
22353
22367
|
description: Provides the tax region applied on an invoice. For U.S. Sales
|
22354
22368
|
Tax, this will be the 2 letter state code. For EU VAT this will be the
|
22355
22369
|
2 letter country code. For all country level tax types, this will display
|
22356
|
-
the regional tax, like VAT, GST, or PST.
|
22370
|
+
the regional tax, like VAT, GST, or PST. Not present when Avalara for
|
22371
|
+
Communications is enabled.
|
22357
22372
|
rate:
|
22358
22373
|
type: number
|
22359
22374
|
format: float
|
22360
22375
|
title: Rate
|
22376
|
+
description: The combined tax rate. Not present when Avalara for Communications
|
22377
|
+
is enabled.
|
22361
22378
|
tax_details:
|
22362
22379
|
type: array
|
22363
|
-
description: Provides additional tax details for
|
22364
|
-
|
22365
|
-
|
22366
|
-
|
22380
|
+
description: Provides additional tax details for Communications taxes when
|
22381
|
+
Avalara for Communications is enabled or Canadian Sales Tax when there
|
22382
|
+
is tax applied at both the country and province levels. This will only
|
22383
|
+
be populated for the Invoice response when fetching a single invoice and
|
22384
|
+
not for the InvoiceList or LineItemList. Only populated for a single LineItem
|
22385
|
+
fetch when Avalara for Communications is enabled.
|
22367
22386
|
items:
|
22368
22387
|
"$ref": "#/components/schemas/TaxDetail"
|
22369
22388
|
TaxDetail:
|
@@ -22373,13 +22392,15 @@ components:
|
|
22373
22392
|
type:
|
22374
22393
|
type: string
|
22375
22394
|
title: Type
|
22376
|
-
description: Provides the tax type for the region
|
22395
|
+
description: Provides the tax type for the region or type of Comminications
|
22396
|
+
tax when Avalara for Communications is enabled. For Canadian Sales Tax,
|
22377
22397
|
this will be GST, HST, QST or PST.
|
22378
22398
|
region:
|
22379
22399
|
type: string
|
22380
22400
|
title: Region
|
22381
22401
|
description: Provides the tax region applied on an invoice. For Canadian
|
22382
22402
|
Sales Tax, this will be either the 2 letter province code or country code.
|
22403
|
+
Not present when Avalara for Communications is enabled.
|
22383
22404
|
rate:
|
22384
22405
|
type: number
|
22385
22406
|
format: float
|
@@ -22390,6 +22411,22 @@ components:
|
|
22390
22411
|
format: float
|
22391
22412
|
title: Tax
|
22392
22413
|
description: The total tax applied for this tax type.
|
22414
|
+
name:
|
22415
|
+
type: string
|
22416
|
+
title: Name
|
22417
|
+
description: Provides the name of the Communications tax applied. Present
|
22418
|
+
only when Avalara for Communications is enabled.
|
22419
|
+
level:
|
22420
|
+
type: string
|
22421
|
+
title: Level
|
22422
|
+
description: Provides the jurisdiction level for the Communications tax
|
22423
|
+
applied. Example values include city, state and federal. Present only
|
22424
|
+
when Avalara for Communications is enabled.
|
22425
|
+
billable:
|
22426
|
+
type: boolean
|
22427
|
+
title: Billable
|
22428
|
+
description: Whether or not the line item is taxable. Only populated for
|
22429
|
+
a single LineItem fetch when Avalara for Communications is enabled.
|
22393
22430
|
Transaction:
|
22394
22431
|
type: object
|
22395
22432
|
properties:
|
@@ -23580,6 +23617,16 @@ components:
|
|
23580
23617
|
type: string
|
23581
23618
|
description: An identifier for a specific payment gateway.
|
23582
23619
|
maxLength: 13
|
23620
|
+
gateway_attributes:
|
23621
|
+
type: object
|
23622
|
+
description: Gateway specific attributes associated with this PaymentMethod
|
23623
|
+
x-class-name: GatewayAttributes
|
23624
|
+
properties:
|
23625
|
+
account_reference:
|
23626
|
+
type: string
|
23627
|
+
description: Used by Adyen gateways. The Shopper Reference value used
|
23628
|
+
when the external token was created.
|
23629
|
+
maxLength: 264
|
23583
23630
|
billing_agreement_id:
|
23584
23631
|
type: string
|
23585
23632
|
description: Billing Agreement identifier. Only present for Amazon or Paypal
|
@@ -24288,6 +24335,7 @@ components:
|
|
24288
24335
|
ExternalPaymentMethodEnum:
|
24289
24336
|
type: string
|
24290
24337
|
enum:
|
24338
|
+
- bacs
|
24291
24339
|
- ach
|
24292
24340
|
- amazon
|
24293
24341
|
- apple_pay
|
@@ -24408,6 +24456,7 @@ components:
|
|
24408
24456
|
enum:
|
24409
24457
|
- api
|
24410
24458
|
- chargeback
|
24459
|
+
- external_recovery
|
24411
24460
|
- force_collect
|
24412
24461
|
- hpp
|
24413
24462
|
- merchant
|
@@ -24477,6 +24526,7 @@ components:
|
|
24477
24526
|
PaymentMethodEnum:
|
24478
24527
|
type: string
|
24479
24528
|
enum:
|
24529
|
+
- bacs
|
24480
24530
|
- amazon
|
24481
24531
|
- amazon_billing_agreement
|
24482
24532
|
- apple_pay
|
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.36.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -170,6 +170,7 @@ files:
|
|
170
170
|
- lib/recurly/requests/external_account_update.rb
|
171
171
|
- lib/recurly/requests/external_refund.rb
|
172
172
|
- lib/recurly/requests/external_transaction.rb
|
173
|
+
- lib/recurly/requests/gateway_attributes.rb
|
173
174
|
- lib/recurly/requests/gift_card_create.rb
|
174
175
|
- lib/recurly/requests/gift_card_delivery_create.rb
|
175
176
|
- lib/recurly/requests/gift_card_redeem.rb
|
@@ -265,6 +266,7 @@ files:
|
|
265
266
|
- lib/recurly/resources/external_product_reference_mini.rb
|
266
267
|
- lib/recurly/resources/external_subscription.rb
|
267
268
|
- lib/recurly/resources/fraud_info.rb
|
269
|
+
- lib/recurly/resources/gateway_attributes.rb
|
268
270
|
- lib/recurly/resources/gift_card.rb
|
269
271
|
- lib/recurly/resources/gift_card_delivery.rb
|
270
272
|
- lib/recurly/resources/granted_by.rb
|
@@ -336,7 +338,7 @@ metadata:
|
|
336
338
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
337
339
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
338
340
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
339
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.
|
341
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.36.0
|
340
342
|
post_install_message:
|
341
343
|
rdoc_options: []
|
342
344
|
require_paths:
|