recurly 4.42.0 → 4.44.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/.github/codeql/codeql-config.yml +13 -0
- data/.github/workflows/codeql.yml +68 -0
- data/CHANGELOG.md +22 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/client/operations.rb +35 -0
- data/lib/recurly/requests/account_create.rb +1 -1
- data/lib/recurly/requests/account_purchase.rb +1 -1
- data/lib/recurly/requests/account_update.rb +1 -1
- data/lib/recurly/requests/address.rb +4 -0
- data/lib/recurly/requests/billing_info_create.rb +4 -0
- data/lib/recurly/requests/invoice_address.rb +4 -0
- data/lib/recurly/requests/shipping_address_create.rb +4 -0
- data/lib/recurly/requests/shipping_address_update.rb +4 -0
- data/lib/recurly/requests/subscription_create.rb +4 -0
- data/lib/recurly/resources/account.rb +1 -1
- data/lib/recurly/resources/address.rb +4 -0
- data/lib/recurly/resources/address_with_name.rb +4 -0
- data/lib/recurly/resources/external_payment_phase.rb +70 -0
- data/lib/recurly/resources/invoice.rb +1 -1
- data/lib/recurly/resources/invoice_address.rb +4 -0
- data/lib/recurly/resources/line_item.rb +1 -1
- data/lib/recurly/resources/shipping_address.rb +4 -0
- data/lib/recurly/resources/subscription.rb +2 -2
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +199 -6
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6f7b9520933bcb659ed347252df909d49e49ea5b44c05f62e4e63abe5b344ee
|
4
|
+
data.tar.gz: 83d581c701db2790bc9522357594f713f54a0616f94df81e16d8fc97dacbc49d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc77ed0330c88e1b883dd90052709f03e8bbf8445e5dae3465098a4e69ae48c2c3fdc7eca3ca6a1e48466815d1f635510983bf6b342e8284f4d441a76ab74837
|
7
|
+
data.tar.gz: 5408f63bce4954ec15b459d9d05fabfa6e4f50d4dcb419eddaee3dc0553f97f8399c23d27b2de20582505fff54220a94468475f7e7559e0bd6a3d0f04a38942c
|
data/.bumpversion.cfg
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Recurly Security and Quality checks
|
2
|
+
#
|
3
|
+
# Customize this file for your project.
|
4
|
+
# Contact the application security team in slack/security channel for assistance.
|
5
|
+
# https://coda.io/d/Information-Security_dDTWpZde3Uu/GitHub-Advanced-Security_suXj4#_lu8Xf
|
6
|
+
# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#specifying-directories-to-scan
|
7
|
+
name: "Recurly Security Tests"
|
8
|
+
query-filters:
|
9
|
+
# - exclude:
|
10
|
+
# id: js/redundant-query
|
11
|
+
paths-ignore:
|
12
|
+
- '**/node_modules'
|
13
|
+
- '**/*test*'
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# Managed by Security
|
2
|
+
# Documentation: https://coda.io/d/Information-Security_dDTWpZde3Uu/GitHub-Advanced-Security_suXj4#_lu8Xf
|
3
|
+
# Contact us in the security slack channel for concerns
|
4
|
+
name: "Security check - CodeQL"
|
5
|
+
|
6
|
+
on:
|
7
|
+
pull_request:
|
8
|
+
workflow_dispatch:
|
9
|
+
push:
|
10
|
+
branches:
|
11
|
+
- staging
|
12
|
+
- main
|
13
|
+
- master
|
14
|
+
|
15
|
+
jobs:
|
16
|
+
analyze:
|
17
|
+
name: Analyze
|
18
|
+
runs-on: ubuntu-latest
|
19
|
+
permissions:
|
20
|
+
actions: read
|
21
|
+
contents: read
|
22
|
+
security-events: write
|
23
|
+
|
24
|
+
strategy:
|
25
|
+
fail-fast: false
|
26
|
+
matrix:
|
27
|
+
language: [ 'ruby', 'javascript' ]
|
28
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
29
|
+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
30
|
+
|
31
|
+
steps:
|
32
|
+
- name: Checkout repository
|
33
|
+
uses: actions/checkout@v3
|
34
|
+
|
35
|
+
# Initializes the CodeQL tools for scanning.
|
36
|
+
- name: Initialize CodeQL
|
37
|
+
uses: github/codeql-action/init@v2
|
38
|
+
with:
|
39
|
+
languages: ${{ matrix.language }}
|
40
|
+
config-file: ./.github/codeql/codeql-config.yml
|
41
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
42
|
+
# By default, queries listed here will override any specified in a config file.
|
43
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
44
|
+
|
45
|
+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
46
|
+
queries: + security-and-quality
|
47
|
+
|
48
|
+
|
49
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
50
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
51
|
+
- name: Autobuild
|
52
|
+
uses: github/codeql-action/autobuild@v2
|
53
|
+
|
54
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
55
|
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
56
|
+
|
57
|
+
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
58
|
+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
59
|
+
|
60
|
+
# - run: |
|
61
|
+
# echo "Run, Build Application using script"
|
62
|
+
# ./location_of_script_within_repo/buildscript.sh
|
63
|
+
|
64
|
+
- name: Perform CodeQL Analysis
|
65
|
+
uses: github/codeql-action/analyze@v2
|
66
|
+
continue-on-error: true
|
67
|
+
with:
|
68
|
+
category: "/language:${{matrix.language}}"
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.44.0](https://github.com/recurly/recurly-client-ruby/tree/4.44.0) (2023-12-06)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.43.0...4.44.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- Generated Latest Changes for v2021-02-25 (External Payment Phases) [#869](https://github.com/recurly/recurly-client-ruby/pull/869) ([recurly-integrations](https://github.com/recurly-integrations))
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [4.43.0](https://github.com/recurly/recurly-client-ruby/tree/4.43.0) (2023-11-07)
|
15
|
+
|
16
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.42.0...4.43.0)
|
17
|
+
|
18
|
+
|
19
|
+
**Merged Pull Requests**
|
20
|
+
|
21
|
+
- Generated Latest Changes for v2021-02-25 [#867](https://github.com/recurly/recurly-client-ruby/pull/867) ([recurly-integrations](https://github.com/recurly-integrations))
|
22
|
+
|
23
|
+
|
24
|
+
|
3
25
|
## [4.42.0](https://github.com/recurly/recurly-client-ruby/tree/4.42.0) (2023-08-29)
|
4
26
|
|
5
27
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.41.0...4.42.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.44'
|
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.
|
@@ -4433,6 +4433,41 @@ module Recurly
|
|
4433
4433
|
get(path, **options)
|
4434
4434
|
end
|
4435
4435
|
|
4436
|
+
# List the external payment phases on an external subscription
|
4437
|
+
#
|
4438
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/list_external_subscription_external_payment_phases list_external_subscription_external_payment_phases api documentation}
|
4439
|
+
#
|
4440
|
+
# @param external_subscription_id [String] External subscription id
|
4441
|
+
# @param params [Hash] Optional query string parameters:
|
4442
|
+
# :sort [String] Sort field. You *really* only want to sort by +updated_at+ in ascending
|
4443
|
+
# order. In descending order updated records will move behind the cursor and could
|
4444
|
+
# prevent some records from being returned.
|
4445
|
+
#
|
4446
|
+
# :limit [Integer] Limit number of records 1-200.
|
4447
|
+
# :order [String] Sort order.
|
4448
|
+
#
|
4449
|
+
# @return [Pager<Resources::ExternalPaymentPhase>] A list of the the external_payment_phases on a site.
|
4450
|
+
#
|
4451
|
+
def list_external_subscription_external_payment_phases(external_subscription_id:, **options)
|
4452
|
+
path = interpolate_path("/external_subscriptions/{external_subscription_id}/external_payment_phases", external_subscription_id: external_subscription_id)
|
4453
|
+
pager(path, **options)
|
4454
|
+
end
|
4455
|
+
|
4456
|
+
# Fetch an external payment_phase
|
4457
|
+
#
|
4458
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/get_external_subscription_external_payment_phase get_external_subscription_external_payment_phase api documentation}
|
4459
|
+
#
|
4460
|
+
# @param external_subscription_id [String] External subscription id
|
4461
|
+
# @param external_payment_phase_id [String] External payment phase ID, e.g. +a34ypb2ef9w1+.
|
4462
|
+
# @param params [Hash] Optional query string parameters:
|
4463
|
+
#
|
4464
|
+
# @return [Resources::ExternalPaymentPhase] Details for an external payment_phase.
|
4465
|
+
#
|
4466
|
+
def get_external_subscription_external_payment_phase(external_subscription_id:, external_payment_phase_id:, **options)
|
4467
|
+
path = interpolate_path("/external_subscriptions/{external_subscription_id}/external_payment_phases/{external_payment_phase_id}", external_subscription_id: external_subscription_id, external_payment_phase_id: external_payment_phase_id)
|
4468
|
+
get(path, **options)
|
4469
|
+
end
|
4470
|
+
|
4436
4471
|
# List entitlements granted to an account
|
4437
4472
|
#
|
4438
4473
|
# {https://developers.recurly.com/api/v2021-02-25#operation/list_entitlements list_entitlements api documentation}
|
@@ -59,7 +59,7 @@ module Recurly
|
|
59
59
|
define_attribute :first_name, String
|
60
60
|
|
61
61
|
# @!attribute invoice_template_id
|
62
|
-
# @return [String] Unique ID to identify an invoice template. Available when the site is on a Pro or
|
62
|
+
# @return [String] Unique ID to identify an invoice template. Available when the site is on a Pro or Elite plan. Used to specify which invoice template, if any, should be used to generate invoices for the account.
|
63
63
|
define_attribute :invoice_template_id, String
|
64
64
|
|
65
65
|
# @!attribute last_name
|
@@ -59,7 +59,7 @@ module Recurly
|
|
59
59
|
define_attribute :id, String
|
60
60
|
|
61
61
|
# @!attribute invoice_template_id
|
62
|
-
# @return [String] Unique ID to identify an invoice template. Available when the site is on a Pro or
|
62
|
+
# @return [String] Unique ID to identify an invoice template. Available when the site is on a Pro or Elite plan. Used to specify which invoice template, if any, should be used to generate invoices for the account.
|
63
63
|
define_attribute :invoice_template_id, String
|
64
64
|
|
65
65
|
# @!attribute last_name
|
@@ -47,7 +47,7 @@ module Recurly
|
|
47
47
|
define_attribute :first_name, String
|
48
48
|
|
49
49
|
# @!attribute invoice_template_id
|
50
|
-
# @return [String] Unique ID to identify an invoice template. Available when the site is on a Pro or
|
50
|
+
# @return [String] Unique ID to identify an invoice template. Available when the site is on a Pro or Elite plan. Used to specify which invoice template, if any, should be used to generate invoices for the account.
|
51
51
|
define_attribute :invoice_template_id, String
|
52
52
|
|
53
53
|
# @!attribute last_name
|
@@ -14,6 +14,10 @@ module Recurly
|
|
14
14
|
# @return [String] Country, 2-letter ISO 3166-1 alpha-2 code.
|
15
15
|
define_attribute :country, String
|
16
16
|
|
17
|
+
# @!attribute geo_code
|
18
|
+
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
|
19
|
+
define_attribute :geo_code, String
|
20
|
+
|
17
21
|
# @!attribute phone
|
18
22
|
# @return [String] Phone number
|
19
23
|
define_attribute :phone, String
|
@@ -102,6 +102,10 @@ module Recurly
|
|
102
102
|
# @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.
|
103
103
|
define_attribute :primary_payment_method, :Boolean
|
104
104
|
|
105
|
+
# @!attribute roku_billing_agreement_id
|
106
|
+
# @return [String] Roku's CIB if billing through Roku
|
107
|
+
define_attribute :roku_billing_agreement_id, String
|
108
|
+
|
105
109
|
# @!attribute routing_number
|
106
110
|
# @return [String] The bank's rounting number. (ACH only)
|
107
111
|
define_attribute :routing_number, String
|
@@ -22,6 +22,10 @@ module Recurly
|
|
22
22
|
# @return [String] First name
|
23
23
|
define_attribute :first_name, String
|
24
24
|
|
25
|
+
# @!attribute geo_code
|
26
|
+
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
|
27
|
+
define_attribute :geo_code, String
|
28
|
+
|
25
29
|
# @!attribute last_name
|
26
30
|
# @return [String] Last name
|
27
31
|
define_attribute :last_name, String
|
@@ -26,6 +26,10 @@ module Recurly
|
|
26
26
|
# @return [String]
|
27
27
|
define_attribute :first_name, String
|
28
28
|
|
29
|
+
# @!attribute geo_code
|
30
|
+
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
|
31
|
+
define_attribute :geo_code, String
|
32
|
+
|
29
33
|
# @!attribute last_name
|
30
34
|
# @return [String]
|
31
35
|
define_attribute :last_name, String
|
@@ -26,6 +26,10 @@ module Recurly
|
|
26
26
|
# @return [String]
|
27
27
|
define_attribute :first_name, String
|
28
28
|
|
29
|
+
# @!attribute geo_code
|
30
|
+
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
|
31
|
+
define_attribute :geo_code, String
|
32
|
+
|
29
33
|
# @!attribute id
|
30
34
|
# @return [String] Shipping Address ID
|
31
35
|
define_attribute :id, String
|
@@ -46,6 +46,10 @@ module Recurly
|
|
46
46
|
# @return [String] This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes. Custom notes will stay with a subscription on all renewals.
|
47
47
|
define_attribute :customer_notes, String
|
48
48
|
|
49
|
+
# @!attribute gateway_code
|
50
|
+
# @return [String] If present, this subscription's transactions will use the payment gateway with this code.
|
51
|
+
define_attribute :gateway_code, String
|
52
|
+
|
49
53
|
# @!attribute gift_card_redemption_code
|
50
54
|
# @return [String] A gift card redemption code to be redeemed on the purchase invoice.
|
51
55
|
define_attribute :gift_card_redemption_code, String
|
@@ -95,7 +95,7 @@ module Recurly
|
|
95
95
|
define_attribute :id, String
|
96
96
|
|
97
97
|
# @!attribute invoice_template_id
|
98
|
-
# @return [String] Unique ID to identify an invoice template. Available when the site is on a Pro or
|
98
|
+
# @return [String] Unique ID to identify an invoice template. Available when the site is on a Pro or Elite plan. Used to specify if a non-default invoice template will be used to generate invoices for the account. For sites without multiple invoice templates enabled, the default template will always be used.
|
99
99
|
define_attribute :invoice_template_id, String
|
100
100
|
|
101
101
|
# @!attribute last_name
|
@@ -14,6 +14,10 @@ module Recurly
|
|
14
14
|
# @return [String] Country, 2-letter ISO 3166-1 alpha-2 code.
|
15
15
|
define_attribute :country, String
|
16
16
|
|
17
|
+
# @!attribute geo_code
|
18
|
+
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
|
19
|
+
define_attribute :geo_code, String
|
20
|
+
|
17
21
|
# @!attribute phone
|
18
22
|
# @return [String] Phone number
|
19
23
|
define_attribute :phone, String
|
@@ -18,6 +18,10 @@ module Recurly
|
|
18
18
|
# @return [String] First name
|
19
19
|
define_attribute :first_name, String
|
20
20
|
|
21
|
+
# @!attribute geo_code
|
22
|
+
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
|
23
|
+
define_attribute :geo_code, String
|
24
|
+
|
21
25
|
# @!attribute last_name
|
22
26
|
# @return [String] Last name
|
23
27
|
define_attribute :last_name, String
|
@@ -0,0 +1,70 @@
|
|
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 ExternalPaymentPhase < Resource
|
8
|
+
|
9
|
+
# @!attribute amount
|
10
|
+
# @return [String] Allows up to 9 decimal places
|
11
|
+
define_attribute :amount, String
|
12
|
+
|
13
|
+
# @!attribute created_at
|
14
|
+
# @return [DateTime] When the external subscription was created in Recurly.
|
15
|
+
define_attribute :created_at, DateTime
|
16
|
+
|
17
|
+
# @!attribute currency
|
18
|
+
# @return [String] 3-letter ISO 4217 currency code.
|
19
|
+
define_attribute :currency, String
|
20
|
+
|
21
|
+
# @!attribute ending_billing_period_index
|
22
|
+
# @return [Integer] Ending Billing Period Index
|
23
|
+
define_attribute :ending_billing_period_index, Integer
|
24
|
+
|
25
|
+
# @!attribute ends_at
|
26
|
+
# @return [DateTime] Ends At
|
27
|
+
define_attribute :ends_at, DateTime
|
28
|
+
|
29
|
+
# @!attribute external_subscription
|
30
|
+
# @return [ExternalSubscription] Subscription from an external resource such as Apple App Store or Google Play Store.
|
31
|
+
define_attribute :external_subscription, :ExternalSubscription
|
32
|
+
|
33
|
+
# @!attribute id
|
34
|
+
# @return [String] System-generated unique identifier for an external payment phase ID, e.g. `e28zov4fw0v2`.
|
35
|
+
define_attribute :id, String
|
36
|
+
|
37
|
+
# @!attribute object
|
38
|
+
# @return [String] Object type
|
39
|
+
define_attribute :object, String
|
40
|
+
|
41
|
+
# @!attribute offer_name
|
42
|
+
# @return [String] Name of the discount offer given, e.g. "introductory"
|
43
|
+
define_attribute :offer_name, String
|
44
|
+
|
45
|
+
# @!attribute offer_type
|
46
|
+
# @return [String] Type of discount offer given, e.g. "FREE_TRIAL"
|
47
|
+
define_attribute :offer_type, String
|
48
|
+
|
49
|
+
# @!attribute period_count
|
50
|
+
# @return [Integer] Number of billing periods
|
51
|
+
define_attribute :period_count, Integer
|
52
|
+
|
53
|
+
# @!attribute period_length
|
54
|
+
# @return [String] Billing cycle length
|
55
|
+
define_attribute :period_length, String
|
56
|
+
|
57
|
+
# @!attribute started_at
|
58
|
+
# @return [DateTime] Started At
|
59
|
+
define_attribute :started_at, DateTime
|
60
|
+
|
61
|
+
# @!attribute starting_billing_period_index
|
62
|
+
# @return [Integer] Starting Billing Period Index
|
63
|
+
define_attribute :starting_billing_period_index, Integer
|
64
|
+
|
65
|
+
# @!attribute updated_at
|
66
|
+
# @return [DateTime] When the external subscription was updated in Recurly.
|
67
|
+
define_attribute :updated_at, DateTime
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -139,7 +139,7 @@ module Recurly
|
|
139
139
|
define_attribute :tax, Float
|
140
140
|
|
141
141
|
# @!attribute tax_info
|
142
|
-
# @return [TaxInfo]
|
142
|
+
# @return [TaxInfo] Only for merchants using Recurly's In-The-Box taxes.
|
143
143
|
define_attribute :tax_info, :TaxInfo
|
144
144
|
|
145
145
|
# @!attribute terms_and_conditions
|
@@ -22,6 +22,10 @@ module Recurly
|
|
22
22
|
# @return [String] First name
|
23
23
|
define_attribute :first_name, String
|
24
24
|
|
25
|
+
# @!attribute geo_code
|
26
|
+
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
|
27
|
+
define_attribute :geo_code, String
|
28
|
+
|
25
29
|
# @!attribute last_name
|
26
30
|
# @return [String] Last name
|
27
31
|
define_attribute :last_name, String
|
@@ -191,7 +191,7 @@ module Recurly
|
|
191
191
|
define_attribute :tax_inclusive, :Boolean
|
192
192
|
|
193
193
|
# @!attribute tax_info
|
194
|
-
# @return [TaxInfo]
|
194
|
+
# @return [TaxInfo] Only for merchants using Recurly's In-The-Box taxes.
|
195
195
|
define_attribute :tax_info, :TaxInfo
|
196
196
|
|
197
197
|
# @!attribute taxable
|
@@ -34,6 +34,10 @@ module Recurly
|
|
34
34
|
# @return [String]
|
35
35
|
define_attribute :first_name, String
|
36
36
|
|
37
|
+
# @!attribute geo_code
|
38
|
+
# @return [String] Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
|
39
|
+
define_attribute :geo_code, String
|
40
|
+
|
37
41
|
# @!attribute id
|
38
42
|
# @return [String] Shipping Address ID
|
39
43
|
define_attribute :id, String
|
@@ -175,7 +175,7 @@ module Recurly
|
|
175
175
|
define_attribute :subtotal, Float
|
176
176
|
|
177
177
|
# @!attribute tax
|
178
|
-
# @return [Float]
|
178
|
+
# @return [Float] Only for merchants using Recurly's In-The-Box taxes.
|
179
179
|
define_attribute :tax, Float
|
180
180
|
|
181
181
|
# @!attribute tax_inclusive
|
@@ -183,7 +183,7 @@ module Recurly
|
|
183
183
|
define_attribute :tax_inclusive, :Boolean
|
184
184
|
|
185
185
|
# @!attribute tax_info
|
186
|
-
# @return [TaxInfo]
|
186
|
+
# @return [TaxInfo] Only for merchants using Recurly's In-The-Box taxes.
|
187
187
|
define_attribute :tax_info, :TaxInfo
|
188
188
|
|
189
189
|
# @!attribute terms_and_conditions
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -207,6 +207,7 @@ x-tagGroups:
|
|
207
207
|
- external_products
|
208
208
|
- external_accounts
|
209
209
|
- external_product_references
|
210
|
+
- external_payment_phases
|
210
211
|
- name: Products and Promotions
|
211
212
|
tags:
|
212
213
|
- item
|
@@ -366,6 +367,11 @@ tags:
|
|
366
367
|
x-displayName: External Product Reference
|
367
368
|
description: Associates an external product to a corresponding resource on an external
|
368
369
|
platform like the Apple App Store or Google Play Store.
|
370
|
+
- name: external_payment_phases
|
371
|
+
x-displayName: External Payment Phase
|
372
|
+
description: Details of payments in the lifecycle of a subscription from an external
|
373
|
+
resource that is not managed by the Recurly platform, e.g. App Store or Google
|
374
|
+
Play Store.
|
369
375
|
- name: gift_cards
|
370
376
|
x-displayName: Gift Cards
|
371
377
|
description: Add gift card purchases to your checkout and allow gift card recipients
|
@@ -15918,6 +15924,69 @@ paths:
|
|
15918
15924
|
schema:
|
15919
15925
|
"$ref": "#/components/schemas/Error"
|
15920
15926
|
x-code-samples: []
|
15927
|
+
"/external_subscriptions/{external_subscription_id}/external_payment_phases":
|
15928
|
+
parameters:
|
15929
|
+
- "$ref": "#/components/parameters/external_subscription_id"
|
15930
|
+
get:
|
15931
|
+
tags:
|
15932
|
+
- external_subscriptions
|
15933
|
+
operationId: list_external_subscription_external_payment_phases
|
15934
|
+
summary: List the external payment phases on an external subscription
|
15935
|
+
description: See the [Pagination Guide](/developers/guides/pagination.html)
|
15936
|
+
to learn how to use pagination in the API and Client Libraries.
|
15937
|
+
parameters:
|
15938
|
+
- "$ref": "#/components/parameters/sort_dates"
|
15939
|
+
- "$ref": "#/components/parameters/limit"
|
15940
|
+
- "$ref": "#/components/parameters/order"
|
15941
|
+
responses:
|
15942
|
+
'200':
|
15943
|
+
description: A list of the the external_payment_phases on a site.
|
15944
|
+
content:
|
15945
|
+
application/json:
|
15946
|
+
schema:
|
15947
|
+
"$ref": "#/components/schemas/ExternalPaymentPhaseList"
|
15948
|
+
'404':
|
15949
|
+
description: Incorrect site.
|
15950
|
+
content:
|
15951
|
+
application/json:
|
15952
|
+
schema:
|
15953
|
+
"$ref": "#/components/schemas/Error"
|
15954
|
+
default:
|
15955
|
+
description: Unexpected error.
|
15956
|
+
content:
|
15957
|
+
application/json:
|
15958
|
+
schema:
|
15959
|
+
"$ref": "#/components/schemas/Error"
|
15960
|
+
x-code-samples: []
|
15961
|
+
"/external_subscriptions/{external_subscription_id}/external_payment_phases/{external_payment_phase_id}":
|
15962
|
+
parameters:
|
15963
|
+
- "$ref": "#/components/parameters/external_subscription_id"
|
15964
|
+
- "$ref": "#/components/parameters/external_payment_phase_id"
|
15965
|
+
get:
|
15966
|
+
tags:
|
15967
|
+
- external_payment_phases
|
15968
|
+
operationId: get_external_subscription_external_payment_phase
|
15969
|
+
summary: Fetch an external payment_phase
|
15970
|
+
responses:
|
15971
|
+
'200':
|
15972
|
+
description: Details for an external payment_phase.
|
15973
|
+
content:
|
15974
|
+
application/json:
|
15975
|
+
schema:
|
15976
|
+
"$ref": "#/components/schemas/ExternalPaymentPhase"
|
15977
|
+
'404':
|
15978
|
+
description: Incorrect site or external subscription ID.
|
15979
|
+
content:
|
15980
|
+
application/json:
|
15981
|
+
schema:
|
15982
|
+
"$ref": "#/components/schemas/Error"
|
15983
|
+
default:
|
15984
|
+
description: Unexpected error.
|
15985
|
+
content:
|
15986
|
+
application/json:
|
15987
|
+
schema:
|
15988
|
+
"$ref": "#/components/schemas/Error"
|
15989
|
+
x-code-samples: []
|
15921
15990
|
"/accounts/{account_id}/entitlements":
|
15922
15991
|
parameters:
|
15923
15992
|
- "$ref": "#/components/parameters/account_id"
|
@@ -16355,6 +16424,13 @@ components:
|
|
16355
16424
|
required: true
|
16356
16425
|
schema:
|
16357
16426
|
type: string
|
16427
|
+
external_payment_phase_id:
|
16428
|
+
name: external_payment_phase_id
|
16429
|
+
in: path
|
16430
|
+
description: External payment phase ID, e.g. `a34ypb2ef9w1`.
|
16431
|
+
required: true
|
16432
|
+
schema:
|
16433
|
+
type: string
|
16358
16434
|
invoice_template_id:
|
16359
16435
|
name: invoice_template_id
|
16360
16436
|
in: path
|
@@ -17256,8 +17332,8 @@ components:
|
|
17256
17332
|
type: string
|
17257
17333
|
title: Invoice Template ID
|
17258
17334
|
description: Unique ID to identify an invoice template. Available when
|
17259
|
-
the site is on a Pro or
|
17260
|
-
|
17335
|
+
the site is on a Pro or Elite plan. Used to specify which invoice template,
|
17336
|
+
if any, should be used to generate invoices for the account.
|
17261
17337
|
address:
|
17262
17338
|
"$ref": "#/components/schemas/Address"
|
17263
17339
|
billing_info:
|
@@ -17355,10 +17431,10 @@ components:
|
|
17355
17431
|
type: string
|
17356
17432
|
title: Invoice Template ID
|
17357
17433
|
description: Unique ID to identify an invoice template. Available when the
|
17358
|
-
site is on a Pro or
|
17359
|
-
|
17360
|
-
|
17361
|
-
|
17434
|
+
site is on a Pro or Elite plan. Used to specify if a non-default invoice
|
17435
|
+
template will be used to generate invoices for the account. For sites
|
17436
|
+
without multiple invoice templates enabled, the default template will
|
17437
|
+
always be used.
|
17362
17438
|
address:
|
17363
17439
|
"$ref": "#/components/schemas/Address"
|
17364
17440
|
billing_info:
|
@@ -17511,6 +17587,11 @@ components:
|
|
17511
17587
|
type: string
|
17512
17588
|
title: Country
|
17513
17589
|
description: Country, 2-letter ISO 3166-1 alpha-2 code.
|
17590
|
+
geo_code:
|
17591
|
+
type: string
|
17592
|
+
maxLength: 20
|
17593
|
+
description: Code that represents a geographic entity (location or object).
|
17594
|
+
Only returned for Sling Vertex Integration
|
17514
17595
|
AddressWithName:
|
17515
17596
|
allOf:
|
17516
17597
|
- "$ref": "#/components/schemas/Address"
|
@@ -18215,6 +18296,9 @@ components:
|
|
18215
18296
|
paypal_billing_agreement_id:
|
18216
18297
|
type: string
|
18217
18298
|
title: PayPal billing agreement ID
|
18299
|
+
roku_billing_agreement_id:
|
18300
|
+
type: string
|
18301
|
+
title: Roku's CIB if billing through Roku
|
18218
18302
|
fraud_session_id:
|
18219
18303
|
type: string
|
18220
18304
|
title: Fraud Session ID
|
@@ -21107,6 +21191,11 @@ components:
|
|
21107
21191
|
type: string
|
21108
21192
|
maxLength: 50
|
21109
21193
|
description: Country, 2-letter ISO 3166-1 alpha-2 code.
|
21194
|
+
geo_code:
|
21195
|
+
type: string
|
21196
|
+
maxLength: 20
|
21197
|
+
description: Code that represents a geographic entity (location or object).
|
21198
|
+
Only returned for Sling Vertex Integration
|
21110
21199
|
created_at:
|
21111
21200
|
type: string
|
21112
21201
|
title: Created at
|
@@ -21158,6 +21247,11 @@ components:
|
|
21158
21247
|
type: string
|
21159
21248
|
maxLength: 20
|
21160
21249
|
description: Zip or postal code.
|
21250
|
+
geo_code:
|
21251
|
+
type: string
|
21252
|
+
maxLength: 20
|
21253
|
+
description: Code that represents a geographic entity (location or object).
|
21254
|
+
Only returned for Sling Vertex Integration
|
21161
21255
|
country:
|
21162
21256
|
type: string
|
21163
21257
|
maxLength: 50
|
@@ -21412,6 +21506,11 @@ components:
|
|
21412
21506
|
type: string
|
21413
21507
|
maxLength: 50
|
21414
21508
|
description: Country, 2-letter ISO 3166-1 alpha-2 code.
|
21509
|
+
geo_code:
|
21510
|
+
type: string
|
21511
|
+
maxLength: 20
|
21512
|
+
description: Code that represents a geographic entity (location or object).
|
21513
|
+
Only returned for Sling Vertex Integration
|
21415
21514
|
Site:
|
21416
21515
|
type: object
|
21417
21516
|
properties:
|
@@ -21610,6 +21709,7 @@ components:
|
|
21610
21709
|
type: number
|
21611
21710
|
format: float
|
21612
21711
|
title: Estimated tax
|
21712
|
+
description: Only for merchants using Recurly's In-The-Box taxes.
|
21613
21713
|
tax_info:
|
21614
21714
|
"$ref": "#/components/schemas/TaxInfo"
|
21615
21715
|
total:
|
@@ -22441,6 +22541,12 @@ components:
|
|
22441
22541
|
default: 0
|
22442
22542
|
net_terms_type:
|
22443
22543
|
"$ref": "#/components/schemas/NetTermsTypeEnum"
|
22544
|
+
gateway_code:
|
22545
|
+
type: string
|
22546
|
+
title: Gateway Code
|
22547
|
+
description: If present, this subscription's transactions will use the payment
|
22548
|
+
gateway with this code.
|
22549
|
+
maxLength: 13
|
22444
22550
|
transaction_type:
|
22445
22551
|
description: An optional type designation for the payment gateway transaction
|
22446
22552
|
created by this request. Supports 'moto' value, which is the acronym for
|
@@ -22782,6 +22888,7 @@ components:
|
|
22782
22888
|
TaxInfo:
|
22783
22889
|
type: object
|
22784
22890
|
title: Tax info
|
22891
|
+
description: Only for merchants using Recurly's In-The-Box taxes.
|
22785
22892
|
properties:
|
22786
22893
|
type:
|
22787
22894
|
type: string
|
@@ -23623,6 +23730,90 @@ components:
|
|
23623
23730
|
type: string
|
23624
23731
|
format: date-time
|
23625
23732
|
description: Time the object was last updated
|
23733
|
+
ExternalPaymentPhase:
|
23734
|
+
type: object
|
23735
|
+
description: Details of payments in the lifecycle of a subscription from an
|
23736
|
+
external resource that is not managed by the Recurly platform, e.g. App Store
|
23737
|
+
or Google Play Store.
|
23738
|
+
properties:
|
23739
|
+
id:
|
23740
|
+
type: string
|
23741
|
+
title: External payment phase ID
|
23742
|
+
description: System-generated unique identifier for an external payment
|
23743
|
+
phase ID, e.g. `e28zov4fw0v2`.
|
23744
|
+
object:
|
23745
|
+
type: string
|
23746
|
+
title: Object type
|
23747
|
+
external_subscription:
|
23748
|
+
"$ref": "#/components/schemas/ExternalSubscription"
|
23749
|
+
started_at:
|
23750
|
+
type: string
|
23751
|
+
format: date-time
|
23752
|
+
title: Started At
|
23753
|
+
ends_at:
|
23754
|
+
type: string
|
23755
|
+
format: date-time
|
23756
|
+
title: Ends At
|
23757
|
+
starting_billing_period_index:
|
23758
|
+
type: integer
|
23759
|
+
title: Starting Billing Period Index
|
23760
|
+
ending_billing_period_index:
|
23761
|
+
type: integer
|
23762
|
+
title: Ending Billing Period Index
|
23763
|
+
offer_type:
|
23764
|
+
type: string
|
23765
|
+
title: Offer Type
|
23766
|
+
description: Type of discount offer given, e.g. "FREE_TRIAL"
|
23767
|
+
offer_name:
|
23768
|
+
type: string
|
23769
|
+
title: Offer Name
|
23770
|
+
description: Name of the discount offer given, e.g. "introductory"
|
23771
|
+
period_count:
|
23772
|
+
type: integer
|
23773
|
+
title: Period Count
|
23774
|
+
description: Number of billing periods
|
23775
|
+
period_length:
|
23776
|
+
type: string
|
23777
|
+
title: Period Length
|
23778
|
+
description: Billing cycle length
|
23779
|
+
amount:
|
23780
|
+
type: string
|
23781
|
+
format: decimal
|
23782
|
+
title: Amount
|
23783
|
+
minimum: 0
|
23784
|
+
description: Allows up to 9 decimal places
|
23785
|
+
currency:
|
23786
|
+
type: string
|
23787
|
+
title: Currency
|
23788
|
+
description: 3-letter ISO 4217 currency code.
|
23789
|
+
maxLength: 3
|
23790
|
+
created_at:
|
23791
|
+
type: string
|
23792
|
+
format: date-time
|
23793
|
+
title: Created at
|
23794
|
+
description: When the external subscription was created in Recurly.
|
23795
|
+
updated_at:
|
23796
|
+
type: string
|
23797
|
+
format: date-time
|
23798
|
+
title: Updated at
|
23799
|
+
description: When the external subscription was updated in Recurly.
|
23800
|
+
ExternalPaymentPhaseList:
|
23801
|
+
type: object
|
23802
|
+
properties:
|
23803
|
+
object:
|
23804
|
+
type: string
|
23805
|
+
title: Object type
|
23806
|
+
description: Will always be List.
|
23807
|
+
has_more:
|
23808
|
+
type: boolean
|
23809
|
+
description: Indicates there are more results on subsequent pages.
|
23810
|
+
next:
|
23811
|
+
type: string
|
23812
|
+
description: Path to subsequent page of results.
|
23813
|
+
data:
|
23814
|
+
type: array
|
23815
|
+
items:
|
23816
|
+
"$ref": "#/components/schemas/ExternalPaymentPhase"
|
23626
23817
|
ExternalProduct:
|
23627
23818
|
type: object
|
23628
23819
|
description: Product from an external resource such as Apple App Store or Google
|
@@ -24979,6 +25170,7 @@ components:
|
|
24979
25170
|
- check
|
24980
25171
|
- credit_card
|
24981
25172
|
- eft
|
25173
|
+
- google_pay
|
24982
25174
|
- money_order
|
24983
25175
|
- other
|
24984
25176
|
- paypal
|
@@ -25172,6 +25364,7 @@ components:
|
|
25172
25364
|
- credit_card
|
25173
25365
|
- eft
|
25174
25366
|
- gateway_token
|
25367
|
+
- google_pay
|
25175
25368
|
- iban_bank_account
|
25176
25369
|
- money_order
|
25177
25370
|
- other
|
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.44.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: 2023-
|
11
|
+
date: 2023-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -119,7 +119,9 @@ files:
|
|
119
119
|
- ".changelog_config.yaml"
|
120
120
|
- ".github/ISSUE_TEMPLATE/bug-report.md"
|
121
121
|
- ".github/ISSUE_TEMPLATE/question-or-other.md"
|
122
|
+
- ".github/codeql/codeql-config.yml"
|
122
123
|
- ".github/workflows/ci.yml"
|
124
|
+
- ".github/workflows/codeql.yml"
|
123
125
|
- ".github/workflows/docs.yml"
|
124
126
|
- ".github/workflows/pr-review.yml"
|
125
127
|
- ".gitignore"
|
@@ -268,6 +270,7 @@ files:
|
|
268
270
|
- lib/recurly/resources/external_account.rb
|
269
271
|
- lib/recurly/resources/external_charge.rb
|
270
272
|
- lib/recurly/resources/external_invoice.rb
|
273
|
+
- lib/recurly/resources/external_payment_phase.rb
|
271
274
|
- lib/recurly/resources/external_product.rb
|
272
275
|
- lib/recurly/resources/external_product_reference_collection.rb
|
273
276
|
- lib/recurly/resources/external_product_reference_mini.rb
|
@@ -345,8 +348,8 @@ metadata:
|
|
345
348
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
346
349
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
347
350
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
348
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.
|
349
|
-
post_install_message:
|
351
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.44.0
|
352
|
+
post_install_message:
|
350
353
|
rdoc_options: []
|
351
354
|
require_paths:
|
352
355
|
- lib
|
@@ -361,8 +364,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
361
364
|
- !ruby/object:Gem::Version
|
362
365
|
version: '0'
|
363
366
|
requirements: []
|
364
|
-
rubygems_version: 3.
|
365
|
-
signing_key:
|
367
|
+
rubygems_version: 3.4.6
|
368
|
+
signing_key:
|
366
369
|
specification_version: 4
|
367
370
|
summary: The ruby client for Recurly's V3 API
|
368
371
|
test_files: []
|