recurly 4.31.0 → 4.33.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/client/operations.rb +75 -0
- data/lib/recurly/requests/account_create.rb +4 -0
- data/lib/recurly/requests/billing_info_create.rb +4 -0
- data/lib/recurly/requests/external_account_create.rb +18 -0
- data/lib/recurly/requests/external_account_update.rb +18 -0
- data/lib/recurly/resources/account.rb +4 -0
- data/lib/recurly/resources/external_account.rb +34 -0
- data/lib/recurly/resources/external_charge.rb +2 -2
- data/lib/recurly/resources/external_invoice.rb +2 -2
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +296 -4
- 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: 37670f0323bda5789149a45daa009f4754b92ea72f9267e2f43d3a59c0abb42f
|
4
|
+
data.tar.gz: 7cbbeda88d39250d5512098551605315628fd9304a14c713a31e0f23496d1f5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c67616be142641fc0f45b694d8d52fa563f84e98181f9389923f3c1249d6b68700b53fd2e301c731cb31dcd50537c023e0f736592a75135bb4bd6f9fec80baa
|
7
|
+
data.tar.gz: 4e605e1fb22679183778da14af2a4745991250f490839abcd606b510cc28722ab1fc4a0fa2a62c78de5d96cb7b9915a15c919e3a4e3b2aa2120b1e8f8a858c27
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.33.0](https://github.com/recurly/recurly-client-ruby/tree/4.33.0) (2023-04-13)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.32.0...4.33.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- Generated Latest Changes for v2021-02-25 (External Accounts) [#836](https://github.com/recurly/recurly-client-ruby/pull/836) ([recurly-integrations](https://github.com/recurly-integrations))
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [4.32.0](https://github.com/recurly/recurly-client-ruby/tree/4.32.0) (2023-04-05)
|
15
|
+
|
16
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.31.0...4.32.0)
|
17
|
+
|
18
|
+
|
19
|
+
**Merged Pull Requests**
|
20
|
+
|
21
|
+
- Generated Latest Changes for v2021-02-25 [#833](https://github.com/recurly/recurly-client-ruby/pull/833) ([recurly-integrations](https://github.com/recurly-integrations))
|
22
|
+
|
23
|
+
|
24
|
+
|
3
25
|
## [4.31.0](https://github.com/recurly/recurly-client-ruby/tree/4.31.0) (2023-03-29)
|
4
26
|
|
5
27
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.30.0...4.31.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.33'
|
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.
|
@@ -750,6 +750,81 @@ module Recurly
|
|
750
750
|
pager(path, **options)
|
751
751
|
end
|
752
752
|
|
753
|
+
# List external accounts for an account
|
754
|
+
#
|
755
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/list_account_external_account list_account_external_account api documentation}
|
756
|
+
#
|
757
|
+
# @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+.
|
758
|
+
# @param params [Hash] Optional query string parameters:
|
759
|
+
#
|
760
|
+
# @return [Pager<Resources::ExternalAccount>] A list of external accounts on an account.
|
761
|
+
#
|
762
|
+
def list_account_external_account(account_id:, **options)
|
763
|
+
path = interpolate_path("/accounts/{account_id}/external_accounts", account_id: account_id)
|
764
|
+
pager(path, **options)
|
765
|
+
end
|
766
|
+
|
767
|
+
# Create an external account
|
768
|
+
#
|
769
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/create_account_external_account create_account_external_account api documentation}
|
770
|
+
#
|
771
|
+
# @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+.
|
772
|
+
# @param body [Requests::ExternalAccountCreate] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::ExternalAccountCreate}
|
773
|
+
# @param params [Hash] Optional query string parameters:
|
774
|
+
#
|
775
|
+
# @return [Resources::ExternalAccount] A representation of the created external_account.
|
776
|
+
#
|
777
|
+
def create_account_external_account(account_id:, body:, **options)
|
778
|
+
path = interpolate_path("/accounts/{account_id}/external_accounts", account_id: account_id)
|
779
|
+
post(path, body, Requests::ExternalAccountCreate, **options)
|
780
|
+
end
|
781
|
+
|
782
|
+
# Get an external account for an account
|
783
|
+
#
|
784
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/get_account_external_account get_account_external_account api documentation}
|
785
|
+
#
|
786
|
+
# @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+.
|
787
|
+
# @param external_account_id [String] External account ID, e.g. +s28zov4fw0cb+.
|
788
|
+
# @param params [Hash] Optional query string parameters:
|
789
|
+
#
|
790
|
+
# @return [Resources::ExternalAccount] A external account on an account.
|
791
|
+
#
|
792
|
+
def get_account_external_account(account_id:, external_account_id:, **options)
|
793
|
+
path = interpolate_path("/accounts/{account_id}/external_accounts/{external_account_id}", account_id: account_id, external_account_id: external_account_id)
|
794
|
+
get(path, **options)
|
795
|
+
end
|
796
|
+
|
797
|
+
# Update an external account
|
798
|
+
#
|
799
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/update_account_external_account update_account_external_account api documentation}
|
800
|
+
#
|
801
|
+
# @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+.
|
802
|
+
# @param external_account_id [String] External account ID, e.g. +s28zov4fw0cb+.
|
803
|
+
# @param body [Requests::ExternalAccountUpdate] The Hash representing the JSON request to send to the server. It should conform to the schema of {Requests::ExternalAccountUpdate}
|
804
|
+
# @param params [Hash] Optional query string parameters:
|
805
|
+
#
|
806
|
+
# @return [Resources::ExternalAccount] A representation of the updated external_account.
|
807
|
+
#
|
808
|
+
def update_account_external_account(account_id:, external_account_id:, body:, **options)
|
809
|
+
path = interpolate_path("/accounts/{account_id}/external_accounts/{external_account_id}", account_id: account_id, external_account_id: external_account_id)
|
810
|
+
put(path, body, Requests::ExternalAccountUpdate, **options)
|
811
|
+
end
|
812
|
+
|
813
|
+
# Delete an external account for an account
|
814
|
+
#
|
815
|
+
# {https://developers.recurly.com/api/v2021-02-25#operation/delete_account_external_account delete_account_external_account api documentation}
|
816
|
+
#
|
817
|
+
# @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+.
|
818
|
+
# @param external_account_id [String] External account ID, e.g. +s28zov4fw0cb+.
|
819
|
+
# @param params [Hash] Optional query string parameters:
|
820
|
+
#
|
821
|
+
# @return [Resources::ExternalAccount] Successful Delete
|
822
|
+
#
|
823
|
+
def delete_account_external_account(account_id:, external_account_id:, **options)
|
824
|
+
path = interpolate_path("/accounts/{account_id}/external_accounts/{external_account_id}", account_id: account_id, external_account_id: external_account_id)
|
825
|
+
delete(path, **options)
|
826
|
+
end
|
827
|
+
|
753
828
|
# List the external invoices on an account
|
754
829
|
#
|
755
830
|
# {https://developers.recurly.com/api/v2021-02-25#operation/list_account_external_invoices list_account_external_invoices api documentation}
|
@@ -50,6 +50,10 @@ module Recurly
|
|
50
50
|
# @return [String] The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.
|
51
51
|
define_attribute :exemption_certificate, String
|
52
52
|
|
53
|
+
# @!attribute external_accounts
|
54
|
+
# @return [Array[ExternalAccountCreate]] External Accounts
|
55
|
+
define_attribute :external_accounts, Array, { :item_type => :ExternalAccountCreate }
|
56
|
+
|
53
57
|
# @!attribute first_name
|
54
58
|
# @return [String]
|
55
59
|
define_attribute :first_name, String
|
@@ -34,6 +34,10 @@ module Recurly
|
|
34
34
|
# @return [String] Company name
|
35
35
|
define_attribute :company, String
|
36
36
|
|
37
|
+
# @!attribute currency
|
38
|
+
# @return [String] 3-letter ISO 4217 currency code.
|
39
|
+
define_attribute :currency, String
|
40
|
+
|
37
41
|
# @!attribute cvv
|
38
42
|
# @return [String] *STRONGLY RECOMMENDED*
|
39
43
|
define_attribute :cvv, String
|
@@ -0,0 +1,18 @@
|
|
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 ExternalAccountCreate < Request
|
8
|
+
|
9
|
+
# @!attribute external_account_code
|
10
|
+
# @return [String] Represents the account code for the external account.
|
11
|
+
define_attribute :external_account_code, String
|
12
|
+
|
13
|
+
# @!attribute external_connection_type
|
14
|
+
# @return [String] Represents the connection type. `AppleAppStore` or `GooglePlayStore`
|
15
|
+
define_attribute :external_connection_type, String
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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 ExternalAccountUpdate < Request
|
8
|
+
|
9
|
+
# @!attribute external_account_code
|
10
|
+
# @return [String] Represents the account code for the external account.
|
11
|
+
define_attribute :external_account_code, String
|
12
|
+
|
13
|
+
# @!attribute external_connection_type
|
14
|
+
# @return [String] Represents the connection type. `AppleAppStore` or `GooglePlayStore`
|
15
|
+
define_attribute :external_connection_type, String
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -54,6 +54,10 @@ module Recurly
|
|
54
54
|
# @return [String] The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.
|
55
55
|
define_attribute :exemption_certificate, String
|
56
56
|
|
57
|
+
# @!attribute external_accounts
|
58
|
+
# @return [Array[ExternalAccount]] The external accounts belonging to this account
|
59
|
+
define_attribute :external_accounts, Array, { :item_type => :ExternalAccount }
|
60
|
+
|
57
61
|
# @!attribute first_name
|
58
62
|
# @return [String]
|
59
63
|
define_attribute :first_name, String
|
@@ -0,0 +1,34 @@
|
|
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 ExternalAccount < Resource
|
8
|
+
|
9
|
+
# @!attribute created_at
|
10
|
+
# @return [DateTime] Created at
|
11
|
+
define_attribute :created_at, DateTime
|
12
|
+
|
13
|
+
# @!attribute external_account_code
|
14
|
+
# @return [String] Represents the account code for the external account.
|
15
|
+
define_attribute :external_account_code, String
|
16
|
+
|
17
|
+
# @!attribute external_connection_type
|
18
|
+
# @return [String] Represents the connection type. `AppleAppStore` or `GooglePlayStore`
|
19
|
+
define_attribute :external_connection_type, String
|
20
|
+
|
21
|
+
# @!attribute id
|
22
|
+
# @return [String] UUID of the external_account .
|
23
|
+
define_attribute :id, String
|
24
|
+
|
25
|
+
# @!attribute object
|
26
|
+
# @return [String]
|
27
|
+
define_attribute :object, String
|
28
|
+
|
29
|
+
# @!attribute updated_at
|
30
|
+
# @return [DateTime] Last updated at
|
31
|
+
define_attribute :updated_at, DateTime
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -39,8 +39,8 @@ module Recurly
|
|
39
39
|
define_attribute :quantity, Integer
|
40
40
|
|
41
41
|
# @!attribute unit_amount
|
42
|
-
# @return [
|
43
|
-
define_attribute :unit_amount,
|
42
|
+
# @return [String] Unit Amount
|
43
|
+
define_attribute :unit_amount, String
|
44
44
|
|
45
45
|
# @!attribute updated_at
|
46
46
|
# @return [DateTime] When the external charge was updated in Recurly.
|
@@ -47,8 +47,8 @@ module Recurly
|
|
47
47
|
define_attribute :state, String
|
48
48
|
|
49
49
|
# @!attribute total
|
50
|
-
# @return [
|
51
|
-
define_attribute :total,
|
50
|
+
# @return [String] Total
|
51
|
+
define_attribute :total, String
|
52
52
|
|
53
53
|
# @!attribute updated_at
|
54
54
|
# @return [DateTime] When the external invoice was updated in Recurly.
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -202,6 +202,7 @@ x-tagGroups:
|
|
202
202
|
- external_subscriptions
|
203
203
|
- external_invoices
|
204
204
|
- external_products
|
205
|
+
- external_accounts
|
205
206
|
- gift_cards
|
206
207
|
- name: Products and Promotions
|
207
208
|
tags:
|
@@ -361,6 +362,11 @@ tags:
|
|
361
362
|
x-displayName: Gift Cards
|
362
363
|
description: Add gift card purchases to your checkout and allow gift card recipients
|
363
364
|
to redeem the gift card for credit towards any of your products.
|
365
|
+
- name: external_accounts
|
366
|
+
x-displayName: External Accounts
|
367
|
+
description: An account from an external resource that is not managed by the Recurly
|
368
|
+
platform and instead is managed by third-party platforms like Apple App Store
|
369
|
+
and Google Play Store.
|
364
370
|
paths:
|
365
371
|
"/sites":
|
366
372
|
get:
|
@@ -3250,6 +3256,208 @@ paths:
|
|
3250
3256
|
:= err.(*recurly.Error); ok {\n\t\tfmt.Printf(\"Failed to retrieve next
|
3251
3257
|
page: %v\", e)\n\t\tbreak\n\t}\n\tfor i, creditPayment := range creditPayments.Data()
|
3252
3258
|
{\n\t\tfmt.Printf(\"Account Credit Payment %3d: %s\\n\",\n\t\t\ti,\n\t\t\tcreditPayment.Id,\n\t\t)\n\t}\n}"
|
3259
|
+
"/accounts/{account_id}/external_accounts":
|
3260
|
+
parameters:
|
3261
|
+
- "$ref": "#/components/parameters/account_id"
|
3262
|
+
get:
|
3263
|
+
tags:
|
3264
|
+
- external_accounts
|
3265
|
+
operationId: list_account_external_account
|
3266
|
+
summary: List external accounts for an account
|
3267
|
+
responses:
|
3268
|
+
'200':
|
3269
|
+
description: A list of external accounts on an account.
|
3270
|
+
content:
|
3271
|
+
application/json:
|
3272
|
+
schema:
|
3273
|
+
"$ref": "#/components/schemas/ExternalAccountList"
|
3274
|
+
'404':
|
3275
|
+
description: Incorrect account or external_account ID.
|
3276
|
+
content:
|
3277
|
+
application/json:
|
3278
|
+
schema:
|
3279
|
+
"$ref": "#/components/schemas/Error"
|
3280
|
+
'406':
|
3281
|
+
description: Unavailable API version
|
3282
|
+
content:
|
3283
|
+
application/json:
|
3284
|
+
schema:
|
3285
|
+
"$ref": "#/components/schemas/Error"
|
3286
|
+
'422':
|
3287
|
+
description: Feature not enabled on site
|
3288
|
+
content:
|
3289
|
+
application/json:
|
3290
|
+
schema:
|
3291
|
+
"$ref": "#/components/schemas/Error"
|
3292
|
+
default:
|
3293
|
+
description: Unexpected error.
|
3294
|
+
content:
|
3295
|
+
application/json:
|
3296
|
+
schema:
|
3297
|
+
"$ref": "#/components/schemas/Error"
|
3298
|
+
x-code-samples: []
|
3299
|
+
post:
|
3300
|
+
tags:
|
3301
|
+
- external_accounts
|
3302
|
+
operationId: create_account_external_account
|
3303
|
+
summary: Create an external account
|
3304
|
+
requestBody:
|
3305
|
+
content:
|
3306
|
+
application/json:
|
3307
|
+
schema:
|
3308
|
+
"$ref": "#/components/schemas/ExternalAccountCreate"
|
3309
|
+
responses:
|
3310
|
+
'200':
|
3311
|
+
description: A representation of the created external_account.
|
3312
|
+
content:
|
3313
|
+
application/json:
|
3314
|
+
schema:
|
3315
|
+
"$ref": "#/components/schemas/ExternalAccount"
|
3316
|
+
'404':
|
3317
|
+
description: Incorrect account or external_account ID.
|
3318
|
+
content:
|
3319
|
+
application/json:
|
3320
|
+
schema:
|
3321
|
+
"$ref": "#/components/schemas/Error"
|
3322
|
+
'406':
|
3323
|
+
description: Unavailable API version
|
3324
|
+
content:
|
3325
|
+
application/json:
|
3326
|
+
schema:
|
3327
|
+
"$ref": "#/components/schemas/Error"
|
3328
|
+
'422':
|
3329
|
+
description: Feature not enabled on site
|
3330
|
+
content:
|
3331
|
+
application/json:
|
3332
|
+
schema:
|
3333
|
+
"$ref": "#/components/schemas/Error"
|
3334
|
+
default:
|
3335
|
+
description: Unexpected error.
|
3336
|
+
content:
|
3337
|
+
application/json:
|
3338
|
+
schema:
|
3339
|
+
"$ref": "#/components/schemas/Error"
|
3340
|
+
x-code-samples: []
|
3341
|
+
"/accounts/{account_id}/external_accounts/{external_account_id}":
|
3342
|
+
parameters:
|
3343
|
+
- "$ref": "#/components/parameters/account_id"
|
3344
|
+
- "$ref": "#/components/parameters/external_account_id"
|
3345
|
+
get:
|
3346
|
+
tags:
|
3347
|
+
- external_accounts
|
3348
|
+
operationId: get_account_external_account
|
3349
|
+
summary: Get an external account for an account
|
3350
|
+
responses:
|
3351
|
+
'200':
|
3352
|
+
description: A external account on an account.
|
3353
|
+
content:
|
3354
|
+
application/json:
|
3355
|
+
schema:
|
3356
|
+
"$ref": "#/components/schemas/ExternalAccount"
|
3357
|
+
'404':
|
3358
|
+
description: Incorrect account or external_account ID.
|
3359
|
+
content:
|
3360
|
+
application/json:
|
3361
|
+
schema:
|
3362
|
+
"$ref": "#/components/schemas/Error"
|
3363
|
+
'406':
|
3364
|
+
description: Unavailable API version
|
3365
|
+
content:
|
3366
|
+
application/json:
|
3367
|
+
schema:
|
3368
|
+
"$ref": "#/components/schemas/Error"
|
3369
|
+
'422':
|
3370
|
+
description: Feature not enabled on site
|
3371
|
+
content:
|
3372
|
+
application/json:
|
3373
|
+
schema:
|
3374
|
+
"$ref": "#/components/schemas/Error"
|
3375
|
+
default:
|
3376
|
+
description: Unexpected error.
|
3377
|
+
content:
|
3378
|
+
application/json:
|
3379
|
+
schema:
|
3380
|
+
"$ref": "#/components/schemas/Error"
|
3381
|
+
x-code-samples: []
|
3382
|
+
put:
|
3383
|
+
tags:
|
3384
|
+
- external_accounts
|
3385
|
+
operationId: update_account_external_account
|
3386
|
+
summary: Update an external account
|
3387
|
+
requestBody:
|
3388
|
+
content:
|
3389
|
+
application/json:
|
3390
|
+
schema:
|
3391
|
+
"$ref": "#/components/schemas/ExternalAccountUpdate"
|
3392
|
+
responses:
|
3393
|
+
'200':
|
3394
|
+
description: A representation of the updated external_account.
|
3395
|
+
content:
|
3396
|
+
application/json:
|
3397
|
+
schema:
|
3398
|
+
"$ref": "#/components/schemas/ExternalAccount"
|
3399
|
+
'404':
|
3400
|
+
description: Incorrect account or external_account ID.
|
3401
|
+
content:
|
3402
|
+
application/json:
|
3403
|
+
schema:
|
3404
|
+
"$ref": "#/components/schemas/Error"
|
3405
|
+
'406':
|
3406
|
+
description: Unavailable API version
|
3407
|
+
content:
|
3408
|
+
application/json:
|
3409
|
+
schema:
|
3410
|
+
"$ref": "#/components/schemas/Error"
|
3411
|
+
'422':
|
3412
|
+
description: Feature not enabled on site
|
3413
|
+
content:
|
3414
|
+
application/json:
|
3415
|
+
schema:
|
3416
|
+
"$ref": "#/components/schemas/Error"
|
3417
|
+
default:
|
3418
|
+
description: Unexpected error.
|
3419
|
+
content:
|
3420
|
+
application/json:
|
3421
|
+
schema:
|
3422
|
+
"$ref": "#/components/schemas/Error"
|
3423
|
+
x-code-samples: []
|
3424
|
+
delete:
|
3425
|
+
tags:
|
3426
|
+
- external_accounts
|
3427
|
+
operationId: delete_account_external_account
|
3428
|
+
summary: Delete an external account for an account
|
3429
|
+
responses:
|
3430
|
+
'200':
|
3431
|
+
description: Successful Delete
|
3432
|
+
content:
|
3433
|
+
application/json:
|
3434
|
+
schema:
|
3435
|
+
"$ref": "#/components/schemas/ExternalAccount"
|
3436
|
+
'404':
|
3437
|
+
description: External Account not found
|
3438
|
+
content:
|
3439
|
+
application/json:
|
3440
|
+
schema:
|
3441
|
+
"$ref": "#/components/schemas/Error"
|
3442
|
+
'406':
|
3443
|
+
description: Unavailable API version
|
3444
|
+
content:
|
3445
|
+
application/json:
|
3446
|
+
schema:
|
3447
|
+
"$ref": "#/components/schemas/Error"
|
3448
|
+
'422':
|
3449
|
+
description: Feature not enabled on site
|
3450
|
+
content:
|
3451
|
+
application/json:
|
3452
|
+
schema:
|
3453
|
+
"$ref": "#/components/schemas/Error"
|
3454
|
+
default:
|
3455
|
+
description: Unexpected error.
|
3456
|
+
content:
|
3457
|
+
application/json:
|
3458
|
+
schema:
|
3459
|
+
"$ref": "#/components/schemas/Error"
|
3460
|
+
x-code-samples: []
|
3253
3461
|
"/accounts/{account_id}/external_invoices":
|
3254
3462
|
parameters:
|
3255
3463
|
- "$ref": "#/components/parameters/account_id"
|
@@ -15783,6 +15991,13 @@ components:
|
|
15783
15991
|
required: true
|
15784
15992
|
schema:
|
15785
15993
|
type: string
|
15994
|
+
external_account_id:
|
15995
|
+
name: external_account_id
|
15996
|
+
in: path
|
15997
|
+
description: External account ID, e.g. `s28zov4fw0cb`.
|
15998
|
+
required: true
|
15999
|
+
schema:
|
16000
|
+
type: string
|
15786
16001
|
external_invoice_id:
|
15787
16002
|
name: external_invoice_id
|
15788
16003
|
in: path
|
@@ -16566,6 +16781,11 @@ components:
|
|
16566
16781
|
maxLength: 50
|
16567
16782
|
acquisition:
|
16568
16783
|
"$ref": "#/components/schemas/AccountAcquisitionUpdate"
|
16784
|
+
external_accounts:
|
16785
|
+
type: array
|
16786
|
+
title: External Accounts
|
16787
|
+
items:
|
16788
|
+
"$ref": "#/components/schemas/ExternalAccountCreate"
|
16569
16789
|
shipping_addresses:
|
16570
16790
|
type: array
|
16571
16791
|
items:
|
@@ -16763,6 +16983,11 @@ components:
|
|
16763
16983
|
merchant has an integration for the Vertex tax provider, this optional
|
16764
16984
|
value will be sent in any tax calculation requests for the account.
|
16765
16985
|
maxLength: 30
|
16986
|
+
external_accounts:
|
16987
|
+
type: array
|
16988
|
+
description: The external accounts belonging to this account
|
16989
|
+
items:
|
16990
|
+
"$ref": "#/components/schemas/ExternalAccount"
|
16766
16991
|
parent_account_id:
|
16767
16992
|
type: string
|
16768
16993
|
maxLength: 13
|
@@ -17604,6 +17829,9 @@ components:
|
|
17604
17829
|
title: Security code or CVV
|
17605
17830
|
description: "*STRONGLY RECOMMENDED*"
|
17606
17831
|
maxLength: 4
|
17832
|
+
currency:
|
17833
|
+
type: string
|
17834
|
+
description: 3-letter ISO 4217 currency code.
|
17607
17835
|
vat_number:
|
17608
17836
|
type: string
|
17609
17837
|
title: VAT number
|
@@ -22948,6 +23176,70 @@ components:
|
|
22948
23176
|
type: array
|
22949
23177
|
items:
|
22950
23178
|
"$ref": "#/components/schemas/ExternalProduct"
|
23179
|
+
ExternalAccountList:
|
23180
|
+
type: object
|
23181
|
+
properties:
|
23182
|
+
object:
|
23183
|
+
type: string
|
23184
|
+
title: Object type
|
23185
|
+
description: Will always be List.
|
23186
|
+
has_more:
|
23187
|
+
type: boolean
|
23188
|
+
description: Indicates there are more results on subsequent pages.
|
23189
|
+
next:
|
23190
|
+
type: string
|
23191
|
+
description: Path to subsequent page of results.
|
23192
|
+
data:
|
23193
|
+
type: array
|
23194
|
+
items:
|
23195
|
+
"$ref": "#/components/schemas/ExternalAccount"
|
23196
|
+
ExternalAccountCreate:
|
23197
|
+
type: object
|
23198
|
+
properties:
|
23199
|
+
external_account_code:
|
23200
|
+
type: string
|
23201
|
+
description: Represents the account code for the external account.
|
23202
|
+
external_connection_type:
|
23203
|
+
type: string
|
23204
|
+
description: Represents the connection type. `AppleAppStore` or `GooglePlayStore`
|
23205
|
+
required:
|
23206
|
+
- external_account_code
|
23207
|
+
- external_connection_type
|
23208
|
+
ExternalAccountUpdate:
|
23209
|
+
type: object
|
23210
|
+
properties:
|
23211
|
+
external_account_code:
|
23212
|
+
type: string
|
23213
|
+
description: Represents the account code for the external account.
|
23214
|
+
external_connection_type:
|
23215
|
+
type: string
|
23216
|
+
description: Represents the connection type. `AppleAppStore` or `GooglePlayStore`
|
23217
|
+
ExternalAccount:
|
23218
|
+
type: object
|
23219
|
+
title: External Account
|
23220
|
+
properties:
|
23221
|
+
object:
|
23222
|
+
type: string
|
23223
|
+
default: external_account
|
23224
|
+
id:
|
23225
|
+
type: string
|
23226
|
+
description: UUID of the external_account .
|
23227
|
+
external_account_code:
|
23228
|
+
type: string
|
23229
|
+
description: Represents the account code for the external account.
|
23230
|
+
external_connection_type:
|
23231
|
+
type: string
|
23232
|
+
description: Represents the connection type. `AppleAppStore` or `GooglePlayStore`
|
23233
|
+
created_at:
|
23234
|
+
type: string
|
23235
|
+
format: date-time
|
23236
|
+
description: Created at
|
23237
|
+
readOnly: true
|
23238
|
+
updated_at:
|
23239
|
+
type: string
|
23240
|
+
format: date-time
|
23241
|
+
description: Last updated at
|
23242
|
+
readOnly: true
|
22951
23243
|
ExternalProductReferenceMini:
|
22952
23244
|
type: object
|
22953
23245
|
title: External Product Reference details
|
@@ -23089,8 +23381,8 @@ components:
|
|
23089
23381
|
state:
|
23090
23382
|
"$ref": "#/components/schemas/ExternalInvoiceStateEnum"
|
23091
23383
|
total:
|
23092
|
-
type:
|
23093
|
-
format:
|
23384
|
+
type: string
|
23385
|
+
format: decimal
|
23094
23386
|
title: Total
|
23095
23387
|
currency:
|
23096
23388
|
type: string
|
@@ -23150,8 +23442,8 @@ components:
|
|
23150
23442
|
title: Currency
|
23151
23443
|
description: 3-letter ISO 4217 currency code.
|
23152
23444
|
unit_amount:
|
23153
|
-
type:
|
23154
|
-
format:
|
23445
|
+
type: string
|
23446
|
+
format: decimal
|
23155
23447
|
title: Unit Amount
|
23156
23448
|
quantity:
|
23157
23449
|
type: integer
|
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.33.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-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -166,6 +166,8 @@ files:
|
|
166
166
|
- lib/recurly/requests/coupon_update.rb
|
167
167
|
- lib/recurly/requests/custom_field.rb
|
168
168
|
- lib/recurly/requests/dunning_campaigns_bulk_update.rb
|
169
|
+
- lib/recurly/requests/external_account_create.rb
|
170
|
+
- lib/recurly/requests/external_account_update.rb
|
169
171
|
- lib/recurly/requests/external_refund.rb
|
170
172
|
- lib/recurly/requests/external_transaction.rb
|
171
173
|
- lib/recurly/requests/gift_card_create.rb
|
@@ -256,6 +258,7 @@ files:
|
|
256
258
|
- lib/recurly/resources/export_dates.rb
|
257
259
|
- lib/recurly/resources/export_file.rb
|
258
260
|
- lib/recurly/resources/export_files.rb
|
261
|
+
- lib/recurly/resources/external_account.rb
|
259
262
|
- lib/recurly/resources/external_charge.rb
|
260
263
|
- lib/recurly/resources/external_invoice.rb
|
261
264
|
- lib/recurly/resources/external_product.rb
|
@@ -333,7 +336,7 @@ metadata:
|
|
333
336
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
334
337
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
335
338
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
336
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.
|
339
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.33.0
|
337
340
|
post_install_message:
|
338
341
|
rdoc_options: []
|
339
342
|
require_paths:
|