recurly 4.6.0 → 4.10.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/.travis.yml +3 -1
- data/CHANGELOG.md +48 -0
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/client/operations.rb +59 -0
- data/lib/recurly/client.rb +12 -4
- data/lib/recurly/connection_pool.rb +11 -9
- data/lib/recurly/requests/account_create.rb +4 -0
- data/lib/recurly/requests/account_purchase.rb +4 -0
- data/lib/recurly/requests/account_update.rb +4 -0
- data/lib/recurly/requests/billing_info_create.rb +24 -0
- data/lib/recurly/requests/dunning_campaigns_bulk_update.rb +18 -0
- data/lib/recurly/requests/plan_create.rb +4 -0
- data/lib/recurly/requests/plan_update.rb +4 -0
- data/lib/recurly/requests/subscription_change_create.rb +1 -1
- data/lib/recurly/requests/subscription_change_shipping_create.rb +8 -0
- data/lib/recurly/requests/subscription_pause.rb +1 -1
- data/lib/recurly/requests/subscription_update.rb +4 -0
- data/lib/recurly/resources/account.rb +4 -0
- data/lib/recurly/resources/account_mini.rb +4 -0
- data/lib/recurly/resources/dunning_campaign.rb +50 -0
- data/lib/recurly/resources/dunning_campaigns_bulk_update_response.rb +18 -0
- data/lib/recurly/resources/dunning_cycle.rb +58 -0
- data/lib/recurly/resources/dunning_interval.rb +18 -0
- data/lib/recurly/resources/invoice.rb +4 -0
- data/lib/recurly/resources/line_item.rb +4 -0
- data/lib/recurly/resources/plan.rb +4 -0
- data/lib/recurly/resources/subscription.rb +16 -0
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +488 -6
- metadata +8 -3
data/openapi/api.yaml
CHANGED
@@ -219,6 +219,7 @@ x-tagGroups:
|
|
219
219
|
- site
|
220
220
|
- custom_field_definition
|
221
221
|
- shipping_method
|
222
|
+
- dunning_campaigns
|
222
223
|
tags:
|
223
224
|
- name: site
|
224
225
|
x-displayName: Site
|
@@ -332,6 +333,9 @@ tags:
|
|
332
333
|
- name: automated_exports
|
333
334
|
x-displayName: Automated Exports
|
334
335
|
description: Automated exports of customer data.
|
336
|
+
- name: dunning_campaigns
|
337
|
+
x-displayName: Dunning Campaigns
|
338
|
+
description: Settings used when attempting to dun customers whose payments are declined.
|
335
339
|
paths:
|
336
340
|
"/sites":
|
337
341
|
get:
|
@@ -12434,6 +12438,43 @@ paths:
|
|
12434
12438
|
schema:
|
12435
12439
|
"$ref": "#/components/schemas/Error"
|
12436
12440
|
x-code-samples: []
|
12441
|
+
"/subscriptions/{subscription_id}/preview_renewal":
|
12442
|
+
get:
|
12443
|
+
tags:
|
12444
|
+
- subscription
|
12445
|
+
operationId: get_preview_renewal
|
12446
|
+
summary: Fetch a preview of a subscription's renewal invoice(s)
|
12447
|
+
description: The subscriptions's renewal invoice(s) will be returned if they
|
12448
|
+
exist; if they don't (for example, if the subscription is not set to renew),
|
12449
|
+
it will return an result with no invoices.
|
12450
|
+
parameters:
|
12451
|
+
- "$ref": "#/components/parameters/subscription_id"
|
12452
|
+
responses:
|
12453
|
+
'200':
|
12454
|
+
description: A preview of the subscription's renewal invoice(s).
|
12455
|
+
content:
|
12456
|
+
application/json:
|
12457
|
+
schema:
|
12458
|
+
"$ref": "#/components/schemas/InvoiceCollection"
|
12459
|
+
'400':
|
12460
|
+
description: Invalid or unpermitted parameter.
|
12461
|
+
content:
|
12462
|
+
application/json:
|
12463
|
+
schema:
|
12464
|
+
"$ref": "#/components/schemas/Error"
|
12465
|
+
'404':
|
12466
|
+
description: Incorrect site ID or subscription ID.
|
12467
|
+
content:
|
12468
|
+
application/json:
|
12469
|
+
schema:
|
12470
|
+
"$ref": "#/components/schemas/Error"
|
12471
|
+
default:
|
12472
|
+
description: Unexpected error.
|
12473
|
+
content:
|
12474
|
+
application/json:
|
12475
|
+
schema:
|
12476
|
+
"$ref": "#/components/schemas/Error"
|
12477
|
+
x-code-samples: []
|
12437
12478
|
"/subscriptions/{subscription_id}/change":
|
12438
12479
|
get:
|
12439
12480
|
tags:
|
@@ -12570,7 +12611,16 @@ paths:
|
|
12570
12611
|
- subscription_change
|
12571
12612
|
operationId: create_subscription_change
|
12572
12613
|
summary: Create a new subscription change
|
12573
|
-
description:
|
12614
|
+
description: |
|
12615
|
+
Calling this will overwrite an existing, pending subscription change.
|
12616
|
+
|
12617
|
+
If a subscription has a pending change, and a change is submitted which matches
|
12618
|
+
the subscription as it currently exists, the pending change will be deleted,
|
12619
|
+
and you will receive a 204 No Content response.
|
12620
|
+
|
12621
|
+
If a subscription has no pending
|
12622
|
+
change, and a change is submitted which matches the subscription as it currently
|
12623
|
+
exists, a 422 Unprocessable Entity validation error will be returned.
|
12574
12624
|
parameters:
|
12575
12625
|
- "$ref": "#/components/parameters/subscription_id"
|
12576
12626
|
requestBody:
|
@@ -12586,6 +12636,8 @@ paths:
|
|
12586
12636
|
application/json:
|
12587
12637
|
schema:
|
12588
12638
|
"$ref": "#/components/schemas/SubscriptionChange"
|
12639
|
+
'204':
|
12640
|
+
description: The previous pending change was reverted.
|
12589
12641
|
'404':
|
12590
12642
|
description: Incorrect site ID.
|
12591
12643
|
content:
|
@@ -14395,6 +14447,107 @@ paths:
|
|
14395
14447
|
err.(*recurly.Error); ok {\n\tfmt.Printf(\"Unexpected Recurly error: %v\",
|
14396
14448
|
e)\n\treturn nil, err\n}\n\nfor _, file := range exportFiles.Files {\n\tfmt.Println(\"Export
|
14397
14449
|
file download URL: \", file.Href)\n}"
|
14450
|
+
"/dunning_campaigns":
|
14451
|
+
get:
|
14452
|
+
tags:
|
14453
|
+
- dunning_campaigns
|
14454
|
+
operationId: list_dunning_campaigns
|
14455
|
+
summary: Show the dunning campaigns for a site
|
14456
|
+
description: See the [Pagination Guide](/guides/pagination.html) to learn how
|
14457
|
+
to use pagination in the API and Client Libraries.
|
14458
|
+
parameters:
|
14459
|
+
- "$ref": "#/components/parameters/sort_dates"
|
14460
|
+
responses:
|
14461
|
+
'200':
|
14462
|
+
description: A list of the the dunning_campaigns on an account.
|
14463
|
+
content:
|
14464
|
+
application/json:
|
14465
|
+
schema:
|
14466
|
+
"$ref": "#/components/schemas/DunningCampaignList"
|
14467
|
+
'404':
|
14468
|
+
description: Incorrect site.
|
14469
|
+
content:
|
14470
|
+
application/json:
|
14471
|
+
schema:
|
14472
|
+
"$ref": "#/components/schemas/Error"
|
14473
|
+
default:
|
14474
|
+
description: Unexpected error.
|
14475
|
+
content:
|
14476
|
+
application/json:
|
14477
|
+
schema:
|
14478
|
+
"$ref": "#/components/schemas/Error"
|
14479
|
+
x-code-samples: []
|
14480
|
+
"/dunning_campaigns/{dunning_campaign_id}":
|
14481
|
+
parameters:
|
14482
|
+
- "$ref": "#/components/parameters/dunning_campaign_id"
|
14483
|
+
get:
|
14484
|
+
tags:
|
14485
|
+
- dunning_campaigns
|
14486
|
+
operationId: get_dunning_campaign
|
14487
|
+
summary: Show the settings for a dunning campaign
|
14488
|
+
responses:
|
14489
|
+
'200':
|
14490
|
+
description: Settings for a dunning campaign.
|
14491
|
+
content:
|
14492
|
+
application/json:
|
14493
|
+
schema:
|
14494
|
+
"$ref": "#/components/schemas/DunningCampaign"
|
14495
|
+
'400':
|
14496
|
+
description: Bad request; perhaps missing or invalid parameters.
|
14497
|
+
content:
|
14498
|
+
application/json:
|
14499
|
+
schema:
|
14500
|
+
"$ref": "#/components/schemas/Error"
|
14501
|
+
'404':
|
14502
|
+
description: Incorrect site or campaign ID.
|
14503
|
+
content:
|
14504
|
+
application/json:
|
14505
|
+
schema:
|
14506
|
+
"$ref": "#/components/schemas/Error"
|
14507
|
+
default:
|
14508
|
+
description: Unexpected error.
|
14509
|
+
content:
|
14510
|
+
application/json:
|
14511
|
+
schema:
|
14512
|
+
"$ref": "#/components/schemas/Error"
|
14513
|
+
x-code-samples: []
|
14514
|
+
"/dunning_campaigns/{dunning_campaign_id}/bulk_update":
|
14515
|
+
put:
|
14516
|
+
tags:
|
14517
|
+
- dunning_campaigns
|
14518
|
+
operationId: put_dunning_campaign_bulk_update
|
14519
|
+
summary: Assign a dunning campaign to multiple plans
|
14520
|
+
requestBody:
|
14521
|
+
content:
|
14522
|
+
application/json:
|
14523
|
+
schema:
|
14524
|
+
"$ref": "#/components/schemas/DunningCampaignsBulkUpdate"
|
14525
|
+
responses:
|
14526
|
+
'200':
|
14527
|
+
description: A list of updated plans.
|
14528
|
+
content:
|
14529
|
+
application/json:
|
14530
|
+
schema:
|
14531
|
+
"$ref": "#/components/schemas/DunningCampaignsBulkUpdateResponse"
|
14532
|
+
'400':
|
14533
|
+
description: Bad request; perhaps missing or invalid parameters.
|
14534
|
+
content:
|
14535
|
+
application/json:
|
14536
|
+
schema:
|
14537
|
+
"$ref": "#/components/schemas/Error"
|
14538
|
+
'404':
|
14539
|
+
description: Incorrect site or campaign ID.
|
14540
|
+
content:
|
14541
|
+
application/json:
|
14542
|
+
schema:
|
14543
|
+
"$ref": "#/components/schemas/Error"
|
14544
|
+
default:
|
14545
|
+
description: Unexpected error.
|
14546
|
+
content:
|
14547
|
+
application/json:
|
14548
|
+
schema:
|
14549
|
+
"$ref": "#/components/schemas/Error"
|
14550
|
+
x-code-samples: []
|
14398
14551
|
servers:
|
14399
14552
|
- url: https://v3.recurly.com
|
14400
14553
|
components:
|
@@ -14538,6 +14691,13 @@ components:
|
|
14538
14691
|
required: true
|
14539
14692
|
schema:
|
14540
14693
|
type: string
|
14694
|
+
dunning_campaign_id:
|
14695
|
+
name: dunning_campaign_id
|
14696
|
+
in: path
|
14697
|
+
description: Dunning Campaign ID, e.g. `e28zov4fw0v2`.
|
14698
|
+
required: true
|
14699
|
+
schema:
|
14700
|
+
type: string
|
14541
14701
|
ids:
|
14542
14702
|
name: ids
|
14543
14703
|
in: query
|
@@ -15287,6 +15447,14 @@ components:
|
|
15287
15447
|
created by this request. Supports 'moto' value, which is the acronym for
|
15288
15448
|
mail order and telephone transactions.
|
15289
15449
|
"$ref": "#/components/schemas/GatewayTransactionTypeEnum"
|
15450
|
+
dunning_campaign_id:
|
15451
|
+
type: string
|
15452
|
+
title: Dunning Campaign ID
|
15453
|
+
description: Unique ID to identify a dunning campaign. Available when the
|
15454
|
+
Dunning Campaigns feature is enabled. Used to specify if a non-default
|
15455
|
+
dunning campaign should be assigned to this account. For sites without
|
15456
|
+
multiple dunning campaigns enabled, the default dunning campaign will
|
15457
|
+
always be used.
|
15290
15458
|
address:
|
15291
15459
|
"$ref": "#/components/schemas/Address"
|
15292
15460
|
billing_info:
|
@@ -15357,6 +15525,14 @@ components:
|
|
15357
15525
|
specifically whether the account is self-paying or will rely on the parent
|
15358
15526
|
account to pay.
|
15359
15527
|
"$ref": "#/components/schemas/BillToEnum"
|
15528
|
+
dunning_campaign_id:
|
15529
|
+
type: string
|
15530
|
+
title: Dunning Campaign ID
|
15531
|
+
description: Unique ID to identify a dunning campaign. Available when the
|
15532
|
+
Dunning Campaigns feature is enabled. Used to specify if a non-default
|
15533
|
+
dunning campaign should be assigned to this account. For sites without
|
15534
|
+
multiple dunning campaigns enabled, the default dunning campaign will
|
15535
|
+
always be used.
|
15360
15536
|
address:
|
15361
15537
|
"$ref": "#/components/schemas/Address"
|
15362
15538
|
billing_info:
|
@@ -15422,6 +15598,14 @@ components:
|
|
15422
15598
|
bill_to:
|
15423
15599
|
type: string
|
15424
15600
|
maxLength: 6
|
15601
|
+
dunning_campaign_id:
|
15602
|
+
type: string
|
15603
|
+
title: Dunning Campaign ID
|
15604
|
+
description: Unique ID to identify a dunning campaign. Available when the
|
15605
|
+
Dunning Campaigns feature is enabled. Used to specify if a non-default
|
15606
|
+
dunning campaign should be assigned to this account. For sites without
|
15607
|
+
multiple dunning campaigns enabled, the default dunning campaign will
|
15608
|
+
always be used.
|
15425
15609
|
AccountBalance:
|
15426
15610
|
type: object
|
15427
15611
|
properties:
|
@@ -16161,6 +16345,28 @@ components:
|
|
16161
16345
|
characters comprising a country code; two check digits; and a number that
|
16162
16346
|
includes the domestic bank account number, branch identifier, and potential
|
16163
16347
|
routing information
|
16348
|
+
name_on_account:
|
16349
|
+
type: string
|
16350
|
+
maxLength: 255
|
16351
|
+
description: The name associated with the bank account (ACH, SEPA, Bacs
|
16352
|
+
only)
|
16353
|
+
account_number:
|
16354
|
+
type: string
|
16355
|
+
maxLength: 255
|
16356
|
+
description: The bank account number. (ACH, Bacs only)
|
16357
|
+
routing_number:
|
16358
|
+
type: string
|
16359
|
+
maxLength: 15
|
16360
|
+
description: The bank's rounting number. (ACH only)
|
16361
|
+
sort_code:
|
16362
|
+
type: string
|
16363
|
+
maxLength: 15
|
16364
|
+
description: Bank identifier code for UK based banks. Required for Bacs
|
16365
|
+
based billing infos. (Bacs only)
|
16366
|
+
type:
|
16367
|
+
"$ref": "#/components/schemas/AchTypeEnum"
|
16368
|
+
account_type:
|
16369
|
+
"$ref": "#/components/schemas/AchAccountTypeEnum"
|
16164
16370
|
tax_identifier:
|
16165
16371
|
type: string
|
16166
16372
|
description: Tax identifier is required if adding a billing info that is
|
@@ -17338,6 +17544,13 @@ components:
|
|
17338
17544
|
format: date-time
|
17339
17545
|
title: Closed at
|
17340
17546
|
description: Date invoice was marked paid or failed.
|
17547
|
+
dunning_campaign_id:
|
17548
|
+
type: string
|
17549
|
+
title: Dunning Campaign ID
|
17550
|
+
description: Unique ID to identify the dunning campaign used when dunning
|
17551
|
+
the invoice. Available when the Dunning Campaigns feature is enabled.
|
17552
|
+
For sites without multiple dunning campaigns enabled, this will always
|
17553
|
+
be the default dunning campaign.
|
17341
17554
|
InvoiceCreate:
|
17342
17555
|
type: object
|
17343
17556
|
properties:
|
@@ -17707,6 +17920,12 @@ components:
|
|
17707
17920
|
"$ref": "#/components/schemas/LegacyCategoryEnum"
|
17708
17921
|
account:
|
17709
17922
|
"$ref": "#/components/schemas/AccountMini"
|
17923
|
+
bill_for_account_id:
|
17924
|
+
type: string
|
17925
|
+
title: Bill For Account ID
|
17926
|
+
maxLength: 13
|
17927
|
+
description: The UUID of the account responsible for originating the line
|
17928
|
+
item.
|
17710
17929
|
subscription_id:
|
17711
17930
|
type: string
|
17712
17931
|
title: Subscription ID
|
@@ -18250,6 +18469,14 @@ components:
|
|
18250
18469
|
Used to determine whether items can be assigned as add-ons to individual subscriptions.
|
18251
18470
|
If `true`, items can be assigned as add-ons to individual subscription add-ons.
|
18252
18471
|
If `false`, only plan add-ons can be used.
|
18472
|
+
dunning_campaign_id:
|
18473
|
+
type: string
|
18474
|
+
title: Dunning Campaign ID
|
18475
|
+
description: Unique ID to identify a dunning campaign. Available when the
|
18476
|
+
Dunning Campaigns feature is enabled. Used to specify if a non-default
|
18477
|
+
dunning campaign should be assigned to this plan. For sites without multiple
|
18478
|
+
dunning campaigns enabled, the default dunning campaign will always be
|
18479
|
+
used.
|
18253
18480
|
created_at:
|
18254
18481
|
type: string
|
18255
18482
|
format: date-time
|
@@ -18406,6 +18633,14 @@ components:
|
|
18406
18633
|
Used to determine whether items can be assigned as add-ons to individual subscriptions.
|
18407
18634
|
If `true`, items can be assigned as add-ons to individual subscription add-ons.
|
18408
18635
|
If `false`, only plan add-ons can be used.
|
18636
|
+
dunning_campaign_id:
|
18637
|
+
type: string
|
18638
|
+
title: Dunning Campaign ID
|
18639
|
+
description: Unique ID to identify a dunning campaign. Available when the
|
18640
|
+
Dunning Campaigns feature is enabled. Used to specify if a non-default
|
18641
|
+
dunning campaign should be assigned to this plan. For sites without multiple
|
18642
|
+
dunning campaigns enabled, the default dunning campaign will always be
|
18643
|
+
used.
|
18409
18644
|
required:
|
18410
18645
|
- code
|
18411
18646
|
- name
|
@@ -18582,6 +18817,14 @@ components:
|
|
18582
18817
|
Used to determine whether items can be assigned as add-ons to individual subscriptions.
|
18583
18818
|
If `true`, items can be assigned as add-ons to individual subscription add-ons.
|
18584
18819
|
If `false`, only plan add-ons can be used.
|
18820
|
+
dunning_campaign_id:
|
18821
|
+
type: string
|
18822
|
+
title: Dunning Campaign ID
|
18823
|
+
description: Unique ID to identify a dunning campaign. Available when the
|
18824
|
+
Dunning Campaigns feature is enabled. Used to specify if a non-default
|
18825
|
+
dunning campaign should be assigned to this plan. For sites without multiple
|
18826
|
+
dunning campaigns enabled, the default dunning campaign will always be
|
18827
|
+
used.
|
18585
18828
|
AddOnPricing:
|
18586
18829
|
type: object
|
18587
18830
|
properties:
|
@@ -19239,6 +19482,16 @@ components:
|
|
19239
19482
|
format: float
|
19240
19483
|
title: Estimated total, before tax.
|
19241
19484
|
minimum: 0
|
19485
|
+
tax:
|
19486
|
+
type: number
|
19487
|
+
format: float
|
19488
|
+
title: Estimated tax
|
19489
|
+
tax_info:
|
19490
|
+
"$ref": "#/components/schemas/TaxInfo"
|
19491
|
+
total:
|
19492
|
+
type: number
|
19493
|
+
format: float
|
19494
|
+
title: Estimated total
|
19242
19495
|
collection_method:
|
19243
19496
|
title: Collection method
|
19244
19497
|
default: automatic
|
@@ -19298,6 +19551,12 @@ components:
|
|
19298
19551
|
set. This timestamp is used for alerting customers to reauthorize in 3
|
19299
19552
|
years in accordance with NACHA rules. If a subscription becomes inactive
|
19300
19553
|
or the billing info is no longer a bank account, this timestamp is cleared.
|
19554
|
+
gateway_code:
|
19555
|
+
type: string
|
19556
|
+
title: Gateway Code
|
19557
|
+
description: If present, this subscription's transactions will use the payment
|
19558
|
+
gateway with this code.
|
19559
|
+
maxLength: 13
|
19301
19560
|
billing_info_id:
|
19302
19561
|
type: string
|
19303
19562
|
title: Billing Info ID
|
@@ -19730,8 +19989,10 @@ components:
|
|
19730
19989
|
SubscriptionChangeShippingCreate:
|
19731
19990
|
type: object
|
19732
19991
|
title: Shipping details that will be changed on a subscription
|
19733
|
-
description:
|
19734
|
-
|
19992
|
+
description: Shipping addresses are tied to a customer's account. Each account
|
19993
|
+
can have up to 20 different shipping addresses, and if you have enabled multiple
|
19994
|
+
subscriptions per account, you can associate different shipping addresses
|
19995
|
+
to each subscription.
|
19735
19996
|
properties:
|
19736
19997
|
method_id:
|
19737
19998
|
type: string
|
@@ -19752,6 +20013,13 @@ components:
|
|
19752
20013
|
format: float
|
19753
20014
|
title: Assigns the subscription's shipping cost. If this is greater than
|
19754
20015
|
zero then a `method_id` or `method_code` is required.
|
20016
|
+
address_id:
|
20017
|
+
type: string
|
20018
|
+
titpe: Shipping address ID
|
20019
|
+
description: Assign a shipping address from the account's existing shipping
|
20020
|
+
addresses. If this and address are both present, address will take precedence.
|
20021
|
+
address:
|
20022
|
+
"$ref": "#/components/schemas/ShippingAddressCreate"
|
19755
20023
|
SubscriptionCreate:
|
19756
20024
|
type: object
|
19757
20025
|
properties:
|
@@ -20060,6 +20328,12 @@ components:
|
|
20060
20328
|
at 31 days exactly.
|
20061
20329
|
minimum: 0
|
20062
20330
|
default: 0
|
20331
|
+
gateway_code:
|
20332
|
+
type: string
|
20333
|
+
title: Gateway Code
|
20334
|
+
description: If present, this subscription's transactions will use the payment
|
20335
|
+
gateway with this code.
|
20336
|
+
maxLength: 13
|
20063
20337
|
shipping:
|
20064
20338
|
"$ref": "#/components/schemas/SubscriptionShippingUpdate"
|
20065
20339
|
billing_info_id:
|
@@ -20075,7 +20349,8 @@ components:
|
|
20075
20349
|
remaining_pause_cycles:
|
20076
20350
|
type: integer
|
20077
20351
|
title: Remaining pause cycles
|
20078
|
-
description: Number of billing cycles to pause the subscriptions.
|
20352
|
+
description: Number of billing cycles to pause the subscriptions. A value
|
20353
|
+
of 0 will cancel any pending pauses on the subscription.
|
20079
20354
|
required:
|
20080
20355
|
- remaining_pause_cycles
|
20081
20356
|
SubscriptionShipping:
|
@@ -20765,6 +21040,150 @@ components:
|
|
20765
21040
|
required:
|
20766
21041
|
- currency
|
20767
21042
|
- account
|
21043
|
+
DunningCampaign:
|
21044
|
+
type: object
|
21045
|
+
description: Settings for a dunning campaign.
|
21046
|
+
properties:
|
21047
|
+
id:
|
21048
|
+
type: string
|
21049
|
+
object:
|
21050
|
+
type: string
|
21051
|
+
title: Object type
|
21052
|
+
code:
|
21053
|
+
type: string
|
21054
|
+
description: Campaign code.
|
21055
|
+
name:
|
21056
|
+
type: string
|
21057
|
+
description: Campaign name.
|
21058
|
+
description:
|
21059
|
+
type: string
|
21060
|
+
description: Campaign description.
|
21061
|
+
default_campaign:
|
21062
|
+
type: boolean
|
21063
|
+
description: Whether or not this is the default campaign for accounts or
|
21064
|
+
plans without an assigned dunning campaign.
|
21065
|
+
dunning_cycles:
|
21066
|
+
type: array
|
21067
|
+
description: Dunning Cycle settings.
|
21068
|
+
items:
|
21069
|
+
"$ref": "#/components/schemas/DunningCycle"
|
21070
|
+
created_at:
|
21071
|
+
type: string
|
21072
|
+
format: date-time
|
21073
|
+
description: When the current campaign was created in Recurly.
|
21074
|
+
updated_at:
|
21075
|
+
type: string
|
21076
|
+
format: date-time
|
21077
|
+
description: When the current campaign was updated in Recurly.
|
21078
|
+
deleted_at:
|
21079
|
+
type: string
|
21080
|
+
format: date-time
|
21081
|
+
description: When the current campaign was deleted in Recurly.
|
21082
|
+
DunningCampaignList:
|
21083
|
+
type: object
|
21084
|
+
properties:
|
21085
|
+
object:
|
21086
|
+
type: string
|
21087
|
+
title: Object type
|
21088
|
+
description: Will always be List.
|
21089
|
+
has_more:
|
21090
|
+
type: boolean
|
21091
|
+
description: Indicates there are more results on subsequent pages.
|
21092
|
+
next:
|
21093
|
+
type: string
|
21094
|
+
description: Path to subsequent page of results.
|
21095
|
+
data:
|
21096
|
+
type: array
|
21097
|
+
items:
|
21098
|
+
"$ref": "#/components/schemas/DunningCampaign"
|
21099
|
+
DunningCycle:
|
21100
|
+
type: object
|
21101
|
+
properties:
|
21102
|
+
type:
|
21103
|
+
"$ref": "#/components/schemas/DunningCycleTypeEnum"
|
21104
|
+
applies_to_manual_trial:
|
21105
|
+
type: boolean
|
21106
|
+
description: Whether the dunning settings will be applied to manual trials.
|
21107
|
+
Only applies to trial cycles.
|
21108
|
+
first_communication_interval:
|
21109
|
+
type: integer
|
21110
|
+
description: The number of days after a transaction failure before the first
|
21111
|
+
dunning email is sent.
|
21112
|
+
send_immediately_on_hard_decline:
|
21113
|
+
type: boolean
|
21114
|
+
description: Whether or not to send an extra email immediately to customers
|
21115
|
+
whose initial payment attempt fails with either a hard decline or invalid
|
21116
|
+
billing info.
|
21117
|
+
intervals:
|
21118
|
+
type: array
|
21119
|
+
description: Dunning intervals.
|
21120
|
+
items:
|
21121
|
+
"$ref": "#/components/schemas/DunningInterval"
|
21122
|
+
expire_subscription:
|
21123
|
+
type: boolean
|
21124
|
+
description: Whether the subscription(s) should be cancelled at the end
|
21125
|
+
of the dunning cycle.
|
21126
|
+
fail_invoice:
|
21127
|
+
type: boolean
|
21128
|
+
description: Whether the invoice should be failed at the end of the dunning
|
21129
|
+
cycle.
|
21130
|
+
total_dunning_days:
|
21131
|
+
type: integer
|
21132
|
+
description: The number of days between the first dunning email being sent
|
21133
|
+
and the end of the dunning cycle.
|
21134
|
+
total_recycling_days:
|
21135
|
+
type: integer
|
21136
|
+
description: The number of days between a transaction failure and the end
|
21137
|
+
of the dunning cycle.
|
21138
|
+
version:
|
21139
|
+
type: integer
|
21140
|
+
description: Current campaign version.
|
21141
|
+
created_at:
|
21142
|
+
type: string
|
21143
|
+
format: date-time
|
21144
|
+
description: When the current settings were created in Recurly.
|
21145
|
+
updated_at:
|
21146
|
+
type: string
|
21147
|
+
format: date-time
|
21148
|
+
description: When the current settings were updated in Recurly.
|
21149
|
+
DunningInterval:
|
21150
|
+
properties:
|
21151
|
+
days:
|
21152
|
+
type: integer
|
21153
|
+
description: Number of days before sending the next email.
|
21154
|
+
email_template:
|
21155
|
+
type: string
|
21156
|
+
description: Email template being used.
|
21157
|
+
DunningCampaignsBulkUpdate:
|
21158
|
+
properties:
|
21159
|
+
plan_codes:
|
21160
|
+
type: array
|
21161
|
+
maxItems: 200
|
21162
|
+
description: List of `plan_codes` associated with the Plans for which the
|
21163
|
+
dunning campaign should be updated. Required unless `plan_ids` is present.
|
21164
|
+
items:
|
21165
|
+
type: string
|
21166
|
+
plan_ids:
|
21167
|
+
type: array
|
21168
|
+
maxItems: 200
|
21169
|
+
description: List of `plan_ids` associated with the Plans for which the
|
21170
|
+
dunning campaign should be updated. Required unless `plan_codes` is present.
|
21171
|
+
items:
|
21172
|
+
type: string
|
21173
|
+
DunningCampaignsBulkUpdateResponse:
|
21174
|
+
properties:
|
21175
|
+
object:
|
21176
|
+
type: string
|
21177
|
+
title: Object type
|
21178
|
+
readOnly: true
|
21179
|
+
plans:
|
21180
|
+
type: array
|
21181
|
+
title: Plans
|
21182
|
+
description: An array containing all of the `Plan` resources that have been
|
21183
|
+
updated.
|
21184
|
+
maxItems: 200
|
21185
|
+
items:
|
21186
|
+
"$ref": "#/components/schemas/Plan"
|
20768
21187
|
PaymentMethod:
|
20769
21188
|
properties:
|
20770
21189
|
object:
|
@@ -20989,20 +21408,26 @@ components:
|
|
20989
21408
|
- en-AU
|
20990
21409
|
- en-CA
|
20991
21410
|
- en-GB
|
21411
|
+
- en-IE
|
20992
21412
|
- en-NZ
|
20993
21413
|
- en-US
|
20994
21414
|
- es-ES
|
20995
21415
|
- es-MX
|
20996
21416
|
- es-US
|
21417
|
+
- fi-FI
|
20997
21418
|
- fr-CA
|
20998
21419
|
- fr-FR
|
20999
21420
|
- hi-IN
|
21421
|
+
- it-IT
|
21000
21422
|
- ja-JP
|
21423
|
+
- ko-KR
|
21001
21424
|
- nl-BE
|
21002
21425
|
- nl-NL
|
21003
21426
|
- pt-BR
|
21004
21427
|
- pt-PT
|
21428
|
+
- ro-RO
|
21005
21429
|
- ru-RU
|
21430
|
+
- sk-SK
|
21006
21431
|
- tr-TR
|
21007
21432
|
- zh-CN
|
21008
21433
|
BillToEnum:
|
@@ -21142,16 +21567,22 @@ components:
|
|
21142
21567
|
OriginEnum:
|
21143
21568
|
type: string
|
21144
21569
|
enum:
|
21570
|
+
- carryforward_credit
|
21571
|
+
- carryforward_gift_credit
|
21145
21572
|
- credit
|
21573
|
+
- external_refund
|
21146
21574
|
- gift_card
|
21147
21575
|
- immediate_change
|
21576
|
+
- import
|
21148
21577
|
- line_item_refund
|
21149
21578
|
- open_amount_refund
|
21579
|
+
- prepayment
|
21150
21580
|
- purchase
|
21581
|
+
- refund
|
21151
21582
|
- renewal
|
21152
21583
|
- termination
|
21584
|
+
- usage_correction
|
21153
21585
|
- write_off
|
21154
|
-
- prepayment
|
21155
21586
|
InvoiceStateEnum:
|
21156
21587
|
type: string
|
21157
21588
|
enum:
|
@@ -21388,6 +21819,7 @@ components:
|
|
21388
21819
|
- roku
|
21389
21820
|
- sepadirectdebit
|
21390
21821
|
- wire_transfer
|
21822
|
+
- braintree_v_zero
|
21391
21823
|
CardTypeEnum:
|
21392
21824
|
type: string
|
21393
21825
|
enum:
|
@@ -21404,6 +21836,7 @@ components:
|
|
21404
21836
|
- Union Pay
|
21405
21837
|
- Unknown
|
21406
21838
|
- Visa
|
21839
|
+
- Tarjeta Naranja
|
21407
21840
|
AccountTypeEnum:
|
21408
21841
|
type: string
|
21409
21842
|
enum:
|
@@ -21462,6 +21895,7 @@ components:
|
|
21462
21895
|
- ach_transactions_not_supported
|
21463
21896
|
- ach_validation_exception
|
21464
21897
|
- amazon_amount_exceeded
|
21898
|
+
- amazon_declined_review
|
21465
21899
|
- amazon_invalid_authorization_status
|
21466
21900
|
- amazon_invalid_close_attempt
|
21467
21901
|
- amazon_invalid_create_order_reference
|
@@ -21478,13 +21912,17 @@ components:
|
|
21478
21912
|
- batch_processing_error
|
21479
21913
|
- billing_agreement_already_accepted
|
21480
21914
|
- billing_agreement_not_accepted
|
21915
|
+
- billing_agreement_not_found
|
21916
|
+
- billing_agreement_replaced
|
21481
21917
|
- call_issuer
|
21482
21918
|
- call_issuer_update_cardholder_data
|
21919
|
+
- cancelled
|
21483
21920
|
- cannot_refund_unsettled_transactions
|
21484
21921
|
- card_not_activated
|
21485
21922
|
- card_type_not_accepted
|
21486
21923
|
- cardholder_requested_stop
|
21487
21924
|
- contact_gateway
|
21925
|
+
- contract_not_found
|
21488
21926
|
- currency_not_supported
|
21489
21927
|
- customer_canceled_transaction
|
21490
21928
|
- cvv_required
|
@@ -21496,9 +21934,12 @@ components:
|
|
21496
21934
|
- declined_saveable
|
21497
21935
|
- declined_security_code
|
21498
21936
|
- deposit_referenced_chargeback
|
21937
|
+
- direct_debit_type_not_accepted
|
21499
21938
|
- duplicate_transaction
|
21500
21939
|
- exceeds_daily_limit
|
21940
|
+
- exceeds_max_amount
|
21501
21941
|
- expired_card
|
21942
|
+
- finbot_disconnect
|
21502
21943
|
- finbot_unavailable
|
21503
21944
|
- fraud_address
|
21504
21945
|
- fraud_address_recurly
|
@@ -21506,36 +21947,45 @@ components:
|
|
21506
21947
|
- fraud_gateway
|
21507
21948
|
- fraud_generic
|
21508
21949
|
- fraud_ip_address
|
21950
|
+
- fraud_manual_decision
|
21509
21951
|
- fraud_risk_check
|
21510
21952
|
- fraud_security_code
|
21511
21953
|
- fraud_stolen_card
|
21512
21954
|
- fraud_too_many_attempts
|
21513
21955
|
- fraud_velocity
|
21956
|
+
- gateway_account_setup_incomplete
|
21514
21957
|
- gateway_error
|
21515
21958
|
- gateway_rate_limited
|
21516
21959
|
- gateway_timeout
|
21517
21960
|
- gateway_token_not_found
|
21518
21961
|
- gateway_unavailable
|
21962
|
+
- gateway_validation_exception
|
21519
21963
|
- insufficient_funds
|
21520
21964
|
- invalid_account_number
|
21521
21965
|
- invalid_amount
|
21966
|
+
- invalid_billing_agreement_status
|
21522
21967
|
- invalid_card_number
|
21523
21968
|
- invalid_data
|
21524
21969
|
- invalid_email
|
21525
|
-
- invalid_gateway_configuration
|
21526
21970
|
- invalid_gateway_access_token
|
21971
|
+
- invalid_gateway_configuration
|
21527
21972
|
- invalid_issuer
|
21528
21973
|
- invalid_login
|
21529
21974
|
- invalid_merchant_type
|
21975
|
+
- invalid_name
|
21976
|
+
- invalid_payment_method
|
21977
|
+
- invalid_payment_method_hard
|
21530
21978
|
- invalid_transaction
|
21531
21979
|
- issuer_unavailable
|
21532
21980
|
- merch_max_transaction_limit_exceeded
|
21981
|
+
- moneybot_disconnect
|
21533
21982
|
- moneybot_unavailable
|
21534
21983
|
- no_billing_information
|
21535
21984
|
- no_gateway
|
21536
21985
|
- no_gateway_found_for_transaction_amount
|
21537
21986
|
- partial_approval
|
21538
21987
|
- partial_credits_not_supported
|
21988
|
+
- payer_authentication_rejected
|
21539
21989
|
- payment_cannot_void_authorization
|
21540
21990
|
- payment_not_accepted
|
21541
21991
|
- paypal_account_issue
|
@@ -21545,7 +21995,9 @@ components:
|
|
21545
21995
|
- paypal_hard_decline
|
21546
21996
|
- paypal_invalid_billing_agreement
|
21547
21997
|
- paypal_primary_declined
|
21998
|
+
- processor_not_available
|
21548
21999
|
- processor_unavailable
|
22000
|
+
- recurly_credentials_not_found
|
21549
22001
|
- recurly_error
|
21550
22002
|
- recurly_failed_to_get_token
|
21551
22003
|
- recurly_token_mismatch
|
@@ -21553,10 +22005,18 @@ components:
|
|
21553
22005
|
- reference_transactions_not_enabled
|
21554
22006
|
- restricted_card
|
21555
22007
|
- restricted_card_chargeback
|
22008
|
+
- rjs_token_expired
|
22009
|
+
- roku_invalid_card_number
|
22010
|
+
- roku_invalid_cib
|
22011
|
+
- roku_invalid_payment_method
|
22012
|
+
- roku_zip_code_mismatch
|
21556
22013
|
- simultaneous
|
21557
22014
|
- ssl_error
|
21558
22015
|
- temporary_hold
|
22016
|
+
- three_d_secure_action_required
|
22017
|
+
- three_d_secure_action_result_token_mismatch
|
21559
22018
|
- three_d_secure_authentication
|
22019
|
+
- three_d_secure_connection_error
|
21560
22020
|
- three_d_secure_not_supported
|
21561
22021
|
- too_many_attempts
|
21562
22022
|
- total_credit_exceeds_capture
|
@@ -21568,10 +22028,13 @@ components:
|
|
21568
22028
|
- transaction_cannot_be_voided
|
21569
22029
|
- transaction_failed_to_settle
|
21570
22030
|
- transaction_not_found
|
22031
|
+
- transaction_service_v2_disconnect
|
22032
|
+
- transaction_service_v2_unavailable
|
21571
22033
|
- transaction_settled
|
21572
22034
|
- transaction_stale_at_gateway
|
21573
22035
|
- try_again
|
21574
22036
|
- unknown
|
22037
|
+
- unmapped_partner_error
|
21575
22038
|
- vaultly_service_unavailable
|
21576
22039
|
- zero_dollar_auth_not_supported
|
21577
22040
|
ExportDates:
|
@@ -21617,3 +22080,22 @@ components:
|
|
21617
22080
|
enum:
|
21618
22081
|
- cpf
|
21619
22082
|
- cuit
|
22083
|
+
DunningCycleTypeEnum:
|
22084
|
+
type: string
|
22085
|
+
description: The type of invoice this cycle applies to.
|
22086
|
+
enum:
|
22087
|
+
- automatic
|
22088
|
+
- manual
|
22089
|
+
- trial
|
22090
|
+
AchTypeEnum:
|
22091
|
+
type: string
|
22092
|
+
description: The payment method type for a non-credit card based billing info.
|
22093
|
+
The value of `bacs` is the only accepted value (Bacs only)
|
22094
|
+
enum:
|
22095
|
+
- bacs
|
22096
|
+
AchAccountTypeEnum:
|
22097
|
+
type: string
|
22098
|
+
description: The bank account type. (ACH only)
|
22099
|
+
enum:
|
22100
|
+
- checking
|
22101
|
+
- savings
|