recurly 4.61.0 → 4.62.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 +15 -0
- data/lib/recurly/requests/billing_info_create.rb +4 -0
- data/lib/recurly/requests/external_charge_create.rb +30 -0
- data/lib/recurly/requests/external_invoice_create.rb +42 -0
- data/lib/recurly/requests/external_payment_phase_base.rb +50 -0
- data/lib/recurly/requests/payment_gateway_references.rb +2 -2
- data/lib/recurly/requests/subscription_create.rb +1 -1
- data/lib/recurly/requests/subscription_purchase.rb +1 -1
- data/lib/recurly/resources/payment_gateway_references.rb +2 -2
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +50 -5
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41a9b56094ce43db43642988272dc0177597ed7985883a934061a10cfcd16088
|
4
|
+
data.tar.gz: 4be1a63d519b8901ea44fdf0f888f383b4d0d6e4550aabed50500cd6d1e6d0c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8104a2fcfebe0f66a31b07eb916446dce62fe8ac710a53d610063df7d69d7e2b7e098e9fb05b6568f2a63dbf212e18fc25b8591ae851bf55da39fe32d64b750c
|
7
|
+
data.tar.gz: f6f3eb51d8bc7b19344a8399c3e12ddc72938d9d2bbc2c1baea6dee963afbd7ff2c225d23136fa55b7af2881a5a1a122a3b42d99a1b23b84ff8ffb5540a4a0e2
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.62.0](https://github.com/recurly/recurly-client-ruby/tree/4.62.0) (2025-04-10)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.61.0...4.62.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- Generated Latest Changes for v2021-02-25: Create External Invoices [#926](https://github.com/recurly/recurly-client-ruby/pull/926) ([recurly-integrations](https://github.com/recurly-integrations))
|
11
|
+
- Generated Latest Changes for v2021-02-25 [#924](https://github.com/recurly/recurly-client-ruby/pull/924) ([recurly-integrations](https://github.com/recurly-integrations))
|
12
|
+
|
13
|
+
|
14
|
+
|
3
15
|
## [4.61.0](https://github.com/recurly/recurly-client-ruby/tree/4.61.0) (2025-03-15)
|
4
16
|
|
5
17
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.60.0...4.61.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.62'
|
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.
|
@@ -2463,6 +2463,21 @@ module Recurly
|
|
2463
2463
|
pager(path, **options)
|
2464
2464
|
end
|
2465
2465
|
|
2466
|
+
# Create an external invoice
|
2467
|
+
#
|
2468
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/create_external_invoice create_external_invoice api documentation}
|
2469
|
+
#
|
2470
|
+
# @param external_subscription_id [String] External subscription id
|
2471
|
+
# @param body [Requests::ExternalInvoiceCreate] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::ExternalInvoiceCreate}
|
2472
|
+
# @param params [Hash] Optional query string parameters:
|
2473
|
+
#
|
2474
|
+
# @return [Resources::ExternalInvoice] Returns the external invoice
|
2475
|
+
#
|
2476
|
+
def create_external_invoice(external_subscription_id:, body:, **options)
|
2477
|
+
path = interpolate_path("/external_subscriptions/{external_subscription_id}/external_invoices", external_subscription_id: external_subscription_id)
|
2478
|
+
post(path, body, Requests::ExternalInvoiceCreate, **options)
|
2479
|
+
end
|
2480
|
+
|
2466
2481
|
# List a site's invoices
|
2467
2482
|
#
|
2468
2483
|
# {https://developers.recurly.com/api/v2021-02-25#operation/list_invoices list_invoices api documentation}
|
@@ -110,6 +110,10 @@ module Recurly
|
|
110
110
|
# @return [Boolean] The `primary_payment_method` field is used to designate the primary billing info on the account. The first billing info created on an account will always become primary. Adding additional billing infos provides the flexibility to mark another billing info as primary, or adding additional non-primary billing infos. This can be accomplished by passing the `primary_payment_method` with a value of `true`. When adding billing infos via the billing_info and /accounts endpoints, this value is not permitted, and will return an error if provided.
|
111
111
|
define_attribute :primary_payment_method, :Boolean
|
112
112
|
|
113
|
+
# @!attribute return_url
|
114
|
+
# @return [String] Specifies a URL to which a consumer will be redirected upon completion of a redirect payment flow. Only redirect payment flows operating through Adyen Components will utilize this return URL.
|
115
|
+
define_attribute :return_url, String
|
116
|
+
|
113
117
|
# @!attribute roku_billing_agreement_id
|
114
118
|
# @return [String] Roku's CIB if billing through Roku
|
115
119
|
define_attribute :roku_billing_agreement_id, String
|
@@ -0,0 +1,30 @@
|
|
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 ExternalChargeCreate < Request
|
8
|
+
|
9
|
+
# @!attribute currency
|
10
|
+
# @return [String] 3-letter ISO 4217 currency code.
|
11
|
+
define_attribute :currency, String
|
12
|
+
|
13
|
+
# @!attribute description
|
14
|
+
# @return [String]
|
15
|
+
define_attribute :description, String
|
16
|
+
|
17
|
+
# @!attribute external_product_reference
|
18
|
+
# @return [ExternalProductReferenceCreate]
|
19
|
+
define_attribute :external_product_reference, :ExternalProductReferenceCreate
|
20
|
+
|
21
|
+
# @!attribute quantity
|
22
|
+
# @return [Integer]
|
23
|
+
define_attribute :quantity, Integer
|
24
|
+
|
25
|
+
# @!attribute unit_amount
|
26
|
+
# @return [String]
|
27
|
+
define_attribute :unit_amount, String
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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 ExternalInvoiceCreate < Request
|
8
|
+
|
9
|
+
# @!attribute currency
|
10
|
+
# @return [String] 3-letter ISO 4217 currency code.
|
11
|
+
define_attribute :currency, String
|
12
|
+
|
13
|
+
# @!attribute external_id
|
14
|
+
# @return [String] An identifier which associates the external invoice to a corresponding object in an external platform.
|
15
|
+
define_attribute :external_id, String
|
16
|
+
|
17
|
+
# @!attribute external_payment_phase
|
18
|
+
# @return [ExternalPaymentPhaseBase]
|
19
|
+
define_attribute :external_payment_phase, :ExternalPaymentPhaseBase
|
20
|
+
|
21
|
+
# @!attribute external_payment_phase_id
|
22
|
+
# @return [String] External payment phase ID, e.g. `a34ypb2ef9w1`.
|
23
|
+
define_attribute :external_payment_phase_id, String
|
24
|
+
|
25
|
+
# @!attribute line_items
|
26
|
+
# @return [Array[ExternalChargeCreate]]
|
27
|
+
define_attribute :line_items, Array, { :item_type => :ExternalChargeCreate }
|
28
|
+
|
29
|
+
# @!attribute purchased_at
|
30
|
+
# @return [DateTime] When the invoice was created in the external platform.
|
31
|
+
define_attribute :purchased_at, DateTime
|
32
|
+
|
33
|
+
# @!attribute state
|
34
|
+
# @return [String]
|
35
|
+
define_attribute :state, String
|
36
|
+
|
37
|
+
# @!attribute total
|
38
|
+
# @return [String]
|
39
|
+
define_attribute :total, String
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,50 @@
|
|
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 ExternalPaymentPhaseBase < Request
|
8
|
+
|
9
|
+
# @!attribute amount
|
10
|
+
# @return [String] Allows up to 9 decimal places
|
11
|
+
define_attribute :amount, String
|
12
|
+
|
13
|
+
# @!attribute currency
|
14
|
+
# @return [String] 3-letter ISO 4217 currency code.
|
15
|
+
define_attribute :currency, String
|
16
|
+
|
17
|
+
# @!attribute ending_billing_period_index
|
18
|
+
# @return [Integer] Ending Billing Period Index
|
19
|
+
define_attribute :ending_billing_period_index, Integer
|
20
|
+
|
21
|
+
# @!attribute ends_at
|
22
|
+
# @return [DateTime] Ends At
|
23
|
+
define_attribute :ends_at, DateTime
|
24
|
+
|
25
|
+
# @!attribute offer_name
|
26
|
+
# @return [String] Name of the discount offer given, e.g. "introductory"
|
27
|
+
define_attribute :offer_name, String
|
28
|
+
|
29
|
+
# @!attribute offer_type
|
30
|
+
# @return [String] Type of discount offer given, e.g. "FREE_TRIAL"
|
31
|
+
define_attribute :offer_type, String
|
32
|
+
|
33
|
+
# @!attribute period_count
|
34
|
+
# @return [Integer] Number of billing periods
|
35
|
+
define_attribute :period_count, Integer
|
36
|
+
|
37
|
+
# @!attribute period_length
|
38
|
+
# @return [String] Billing cycle length
|
39
|
+
define_attribute :period_length, String
|
40
|
+
|
41
|
+
# @!attribute started_at
|
42
|
+
# @return [DateTime] Started At
|
43
|
+
define_attribute :started_at, DateTime
|
44
|
+
|
45
|
+
# @!attribute starting_billing_period_index
|
46
|
+
# @return [Integer] Starting Billing Period Index
|
47
|
+
define_attribute :starting_billing_period_index, Integer
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -7,11 +7,11 @@ module Recurly
|
|
7
7
|
class PaymentGatewayReferences < Request
|
8
8
|
|
9
9
|
# @!attribute reference_type
|
10
|
-
# @return [String] The type of reference token. Required if token is passed in for Stripe Gateway.
|
10
|
+
# @return [String] The type of reference token. Required if token is passed in for Stripe Gateway or Ebanx UPI.
|
11
11
|
define_attribute :reference_type, String
|
12
12
|
|
13
13
|
# @!attribute token
|
14
|
-
# @return [String] Reference value used when the external token was created. If Stripe gateway is used, this value will need to be accompanied by its reference_type.
|
14
|
+
# @return [String] Reference value used when the external token was created. If a Stripe gateway or Ebanx gateway is used, this value will need to be accompanied by its reference_type.
|
15
15
|
define_attribute :token, String
|
16
16
|
end
|
17
17
|
end
|
@@ -111,7 +111,7 @@ module Recurly
|
|
111
111
|
define_attribute :shipping, :SubscriptionShippingCreate
|
112
112
|
|
113
113
|
# @!attribute starts_at
|
114
|
-
# @return [DateTime] If set, the subscription will begin
|
114
|
+
# @return [DateTime] If set, the subscription will begin on this specified date. The subscription will apply the setup fee and trial period, unless the plan has no trial.
|
115
115
|
define_attribute :starts_at, DateTime
|
116
116
|
|
117
117
|
# @!attribute tax_inclusive
|
@@ -55,7 +55,7 @@ module Recurly
|
|
55
55
|
define_attribute :shipping, :SubscriptionShippingPurchase
|
56
56
|
|
57
57
|
# @!attribute starts_at
|
58
|
-
# @return [DateTime] If set, the subscription will begin
|
58
|
+
# @return [DateTime] If set, the subscription will begin on this specified date. The subscription will apply the setup fee and trial period, unless the plan has no trial.
|
59
59
|
define_attribute :starts_at, DateTime
|
60
60
|
|
61
61
|
# @!attribute tax_inclusive
|
@@ -7,11 +7,11 @@ module Recurly
|
|
7
7
|
class PaymentGatewayReferences < Resource
|
8
8
|
|
9
9
|
# @!attribute reference_type
|
10
|
-
# @return [String] The type of reference token. Required if token is passed in for Stripe Gateway.
|
10
|
+
# @return [String] The type of reference token. Required if token is passed in for Stripe Gateway or Ebanx UPI.
|
11
11
|
define_attribute :reference_type, String
|
12
12
|
|
13
13
|
# @!attribute token
|
14
|
-
# @return [String] Reference value used when the external token was created. If Stripe gateway is used, this value will need to be accompanied by its reference_type.
|
14
|
+
# @return [String] Reference value used when the external token was created. If a Stripe gateway or Ebanx gateway is used, this value will need to be accompanied by its reference_type.
|
15
15
|
define_attribute :token, String
|
16
16
|
end
|
17
17
|
end
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -8380,6 +8380,44 @@ paths:
|
|
8380
8380
|
schema:
|
8381
8381
|
"$ref": "#/components/schemas/Error"
|
8382
8382
|
x-code-samples: []
|
8383
|
+
post:
|
8384
|
+
tags:
|
8385
|
+
- external_invoices
|
8386
|
+
operationId: create_external_invoice
|
8387
|
+
summary: Create an external invoice
|
8388
|
+
requestBody:
|
8389
|
+
content:
|
8390
|
+
application/json:
|
8391
|
+
schema:
|
8392
|
+
"$ref": "#/components/schemas/ExternalInvoiceCreate"
|
8393
|
+
required: true
|
8394
|
+
responses:
|
8395
|
+
'201':
|
8396
|
+
description: Returns the external invoice
|
8397
|
+
content:
|
8398
|
+
application/json:
|
8399
|
+
schema:
|
8400
|
+
"$ref": "#/components/schemas/ExternalInvoice"
|
8401
|
+
'400':
|
8402
|
+
description: Bad request; perhaps missing or invalid parameters.
|
8403
|
+
content:
|
8404
|
+
application/json:
|
8405
|
+
schema:
|
8406
|
+
"$ref": "#/components/schemas/Error"
|
8407
|
+
'404':
|
8408
|
+
description: External subscription cannot be completed for the specified
|
8409
|
+
reason.
|
8410
|
+
content:
|
8411
|
+
application/json:
|
8412
|
+
schema:
|
8413
|
+
"$ref": "#/components/schemas/Error"
|
8414
|
+
default:
|
8415
|
+
description: Unexpected error.
|
8416
|
+
content:
|
8417
|
+
application/json:
|
8418
|
+
schema:
|
8419
|
+
"$ref": "#/components/schemas/Error"
|
8420
|
+
x-code-samples: []
|
8383
8421
|
"/invoices":
|
8384
8422
|
get:
|
8385
8423
|
tags:
|
@@ -18948,6 +18986,12 @@ components:
|
|
18948
18986
|
description: Represents the card network preference associated with the
|
18949
18987
|
billing info for dual badged cards. Must be a supported card network.
|
18950
18988
|
"$ref": "#/components/schemas/CardNetworkEnum"
|
18989
|
+
return_url:
|
18990
|
+
type: string
|
18991
|
+
title: Return URL
|
18992
|
+
description: Specifies a URL to which a consumer will be redirected upon
|
18993
|
+
completion of a redirect payment flow. Only redirect payment flows operating
|
18994
|
+
through Adyen Components will utilize this return URL.
|
18951
18995
|
BillingInfoVerify:
|
18952
18996
|
type: object
|
18953
18997
|
properties:
|
@@ -21322,8 +21366,8 @@ components:
|
|
21322
21366
|
type: string
|
21323
21367
|
title: Token
|
21324
21368
|
description: Reference value used when the external token was created. If
|
21325
|
-
Stripe gateway is used, this value will need to be
|
21326
|
-
reference_type.
|
21369
|
+
a Stripe gateway or Ebanx gateway is used, this value will need to be
|
21370
|
+
accompanied by its reference_type.
|
21327
21371
|
reference_type:
|
21328
21372
|
type: string
|
21329
21373
|
title: Reference Type
|
@@ -23682,7 +23726,7 @@ components:
|
|
23682
23726
|
type: string
|
23683
23727
|
format: date-time
|
23684
23728
|
title: Start date
|
23685
|
-
description: If set, the subscription will begin
|
23729
|
+
description: If set, the subscription will begin on this specified date.
|
23686
23730
|
The subscription will apply the setup fee and trial period, unless the
|
23687
23731
|
plan has no trial.
|
23688
23732
|
next_bill_date:
|
@@ -23855,7 +23899,7 @@ components:
|
|
23855
23899
|
type: string
|
23856
23900
|
format: date-time
|
23857
23901
|
title: Start date
|
23858
|
-
description: If set, the subscription will begin
|
23902
|
+
description: If set, the subscription will begin on this specified date.
|
23859
23903
|
The subscription will apply the setup fee and trial period, unless the
|
23860
23904
|
plan has no trial.
|
23861
23905
|
next_bill_date:
|
@@ -26564,11 +26608,12 @@ components:
|
|
26564
26608
|
PaymentGatewayReferencesEnum:
|
26565
26609
|
type: string
|
26566
26610
|
description: The type of reference token. Required if token is passed in for
|
26567
|
-
Stripe Gateway.
|
26611
|
+
Stripe Gateway or Ebanx UPI.
|
26568
26612
|
enum:
|
26569
26613
|
- stripe_confirmation_token
|
26570
26614
|
- stripe_customer
|
26571
26615
|
- stripe_payment_method
|
26616
|
+
- upi_vpa
|
26572
26617
|
GatewayTransactionTypeEnum:
|
26573
26618
|
type: string
|
26574
26619
|
enum:
|
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.62.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|
@@ -186,6 +186,9 @@ files:
|
|
186
186
|
- lib/recurly/requests/dunning_campaigns_bulk_update.rb
|
187
187
|
- lib/recurly/requests/external_account_create.rb
|
188
188
|
- lib/recurly/requests/external_account_update.rb
|
189
|
+
- lib/recurly/requests/external_charge_create.rb
|
190
|
+
- lib/recurly/requests/external_invoice_create.rb
|
191
|
+
- lib/recurly/requests/external_payment_phase_base.rb
|
189
192
|
- lib/recurly/requests/external_product_create.rb
|
190
193
|
- lib/recurly/requests/external_product_reference_base.rb
|
191
194
|
- lib/recurly/requests/external_product_reference_connection_type.rb
|
@@ -378,7 +381,7 @@ metadata:
|
|
378
381
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
379
382
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
380
383
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
381
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.
|
384
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.62.0
|
382
385
|
post_install_message:
|
383
386
|
rdoc_options: []
|
384
387
|
require_paths:
|