Skip to content

Commit a1a73c6

Browse files
author
Recurly Integrations
authored
Generated Latest Changes for v2019-10-10
1 parent 920e768 commit a1a73c6

19 files changed

Lines changed: 696 additions & 225 deletions

openapi/api.yaml

Lines changed: 267 additions & 67 deletions
Large diffs are not rendered by default.

src/main/java/com/recurly/v3/Client.java

Lines changed: 88 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,23 @@ public Transaction verifyBillingInfo(String accountId, BillingInfoVerify body) {
296296
return this.makeRequest("POST", path, body, returnType);
297297
}
298298

299+
/**
300+
* Verify an account's credit card billing cvv
301+
*
302+
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/verify_billing_info_cvv">verify_billing_info_cvv api documentation</a>
303+
* @param accountId Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
304+
* @param body The body of the request.
305+
* @return Transaction information from verify.
306+
*/
307+
public Transaction verifyBillingInfoCvv(String accountId, BillingInfoVerifyCVV body) {
308+
final String url = "/accounts/{account_id}/billing_info/verify_cvv";
309+
final HashMap<String, String> urlParams = new HashMap<String, String>();
310+
urlParams.put("account_id", accountId);
311+
final String path = this.interpolatePath(url, urlParams);
312+
Type returnType = Transaction.class;
313+
return this.makeRequest("POST", path, body, returnType);
314+
}
315+
299316
/**
300317
* Get the list of billing information associated with an account
301318
*
@@ -385,6 +402,62 @@ public void removeABillingInfo(String accountId, String billingInfoId) {
385402
this.makeRequest("DELETE", path);
386403
}
387404

405+
/**
406+
* Verify a billing information's credit card
407+
*
408+
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/verify_billing_infos">verify_billing_infos api documentation</a>
409+
* @param accountId Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
410+
* @param billingInfoId Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature.
411+
* @return Transaction information from verify.
412+
*/
413+
public Transaction verifyBillingInfos(String accountId, String billingInfoId) {
414+
final String url = "/accounts/{account_id}/billing_infos/{billing_info_id}/verify";
415+
final HashMap<String, String> urlParams = new HashMap<String, String>();
416+
urlParams.put("account_id", accountId);
417+
urlParams.put("billing_info_id", billingInfoId);
418+
final String path = this.interpolatePath(url, urlParams);
419+
Type returnType = Transaction.class;
420+
return this.makeRequest("POST", path, returnType);
421+
}
422+
423+
/**
424+
* Verify a billing information's credit card
425+
*
426+
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/verify_billing_infos">verify_billing_infos api documentation</a>
427+
* @param accountId Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
428+
* @param billingInfoId Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature.
429+
* @param body The body of the request.
430+
* @return Transaction information from verify.
431+
*/
432+
public Transaction verifyBillingInfos(String accountId, String billingInfoId, BillingInfoVerify body) {
433+
final String url = "/accounts/{account_id}/billing_infos/{billing_info_id}/verify";
434+
final HashMap<String, String> urlParams = new HashMap<String, String>();
435+
urlParams.put("account_id", accountId);
436+
urlParams.put("billing_info_id", billingInfoId);
437+
final String path = this.interpolatePath(url, urlParams);
438+
Type returnType = Transaction.class;
439+
return this.makeRequest("POST", path, body, returnType);
440+
}
441+
442+
/**
443+
* Verify a billing information's credit card cvv
444+
*
445+
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/verify_billing_infos_cvv">verify_billing_infos_cvv api documentation</a>
446+
* @param accountId Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
447+
* @param billingInfoId Billing Info ID. Can ONLY be used for sites utilizing the Wallet feature.
448+
* @param body The body of the request.
449+
* @return Transaction information from verify.
450+
*/
451+
public Transaction verifyBillingInfosCvv(String accountId, String billingInfoId, BillingInfoVerifyCVV body) {
452+
final String url = "/accounts/{account_id}/billing_infos/{billing_info_id}/verify_cvv";
453+
final HashMap<String, String> urlParams = new HashMap<String, String>();
454+
urlParams.put("account_id", accountId);
455+
urlParams.put("billing_info_id", billingInfoId);
456+
final String path = this.interpolatePath(url, urlParams);
457+
Type returnType = Transaction.class;
458+
return this.makeRequest("POST", path, body, returnType);
459+
}
460+
388461
/**
389462
* List the coupon redemptions for an account
390463
*
@@ -1143,7 +1216,7 @@ public Pager<Invoice> listInvoices(QueryParams queryParams) {
11431216
* Fetch an invoice
11441217
*
11451218
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/get_invoice">get_invoice api documentation</a>
1146-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1219+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
11471220
* @return An invoice.
11481221
*/
11491222
public Invoice getInvoice(String invoiceId) {
@@ -1159,7 +1232,7 @@ public Invoice getInvoice(String invoiceId) {
11591232
* Update an invoice
11601233
*
11611234
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/put_invoice">put_invoice api documentation</a>
1162-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1235+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
11631236
* @param body The body of the request.
11641237
* @return An invoice.
11651238
*/
@@ -1176,7 +1249,7 @@ public Invoice putInvoice(String invoiceId, InvoiceUpdatable body) {
11761249
* Fetch an invoice as a PDF
11771250
*
11781251
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/get_invoice_pdf">get_invoice_pdf api documentation</a>
1179-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1252+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
11801253
* @return An invoice as a PDF.
11811254
*/
11821255
public BinaryFile getInvoicePdf(String invoiceId) {
@@ -1192,7 +1265,7 @@ public BinaryFile getInvoicePdf(String invoiceId) {
11921265
* Apply available credit to a pending or past due charge invoice
11931266
*
11941267
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/apply_credit_balance">apply_credit_balance api documentation</a>
1195-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1268+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
11961269
* @return The updated invoice.
11971270
*/
11981271
public Invoice applyCreditBalance(String invoiceId) {
@@ -1208,7 +1281,7 @@ public Invoice applyCreditBalance(String invoiceId) {
12081281
* Collect a pending or past due, automatic invoice
12091282
*
12101283
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/collect_invoice">collect_invoice api documentation</a>
1211-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1284+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
12121285
* @return The updated invoice.
12131286
*/
12141287
public Invoice collectInvoice(String invoiceId) {
@@ -1224,7 +1297,7 @@ public Invoice collectInvoice(String invoiceId) {
12241297
* Collect a pending or past due, automatic invoice
12251298
*
12261299
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/collect_invoice">collect_invoice api documentation</a>
1227-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1300+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
12281301
* @param body The body of the request.
12291302
* @return The updated invoice.
12301303
*/
@@ -1241,7 +1314,7 @@ public Invoice collectInvoice(String invoiceId, InvoiceCollect body) {
12411314
* Mark an open invoice as failed
12421315
*
12431316
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/fail_invoice">fail_invoice api documentation</a>
1244-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1317+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
12451318
* @return The updated invoice.
12461319
*/
12471320
public Invoice failInvoice(String invoiceId) {
@@ -1257,7 +1330,7 @@ public Invoice failInvoice(String invoiceId) {
12571330
* Mark an open invoice as successful
12581331
*
12591332
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/mark_invoice_successful">mark_invoice_successful api documentation</a>
1260-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1333+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
12611334
* @return The updated invoice.
12621335
*/
12631336
public Invoice markInvoiceSuccessful(String invoiceId) {
@@ -1273,7 +1346,7 @@ public Invoice markInvoiceSuccessful(String invoiceId) {
12731346
* Reopen a closed, manual invoice
12741347
*
12751348
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/reopen_invoice">reopen_invoice api documentation</a>
1276-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1349+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
12771350
* @return The updated invoice.
12781351
*/
12791352
public Invoice reopenInvoice(String invoiceId) {
@@ -1289,7 +1362,7 @@ public Invoice reopenInvoice(String invoiceId) {
12891362
* Void a credit invoice.
12901363
*
12911364
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/void_invoice">void_invoice api documentation</a>
1292-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1365+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
12931366
* @return The updated invoice.
12941367
*/
12951368
public Invoice voidInvoice(String invoiceId) {
@@ -1305,7 +1378,7 @@ public Invoice voidInvoice(String invoiceId) {
13051378
* Record an external payment for a manual invoices.
13061379
*
13071380
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/record_external_transaction">record_external_transaction api documentation</a>
1308-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1381+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
13091382
* @param body The body of the request.
13101383
* @return The recorded transaction.
13111384
*/
@@ -1322,7 +1395,7 @@ public Transaction recordExternalTransaction(String invoiceId, ExternalTransacti
13221395
* List an invoice's line items
13231396
*
13241397
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/list_invoice_line_items">list_invoice_line_items api documentation</a>
1325-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1398+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
13261399
* @param queryParams The {@link QueryParams} for this endpoint.
13271400
* @return A list of the invoice's line items.
13281401
*/
@@ -1341,7 +1414,7 @@ public Pager<LineItem> listInvoiceLineItems(String invoiceId, QueryParams queryP
13411414
* List the coupon redemptions applied to an invoice
13421415
*
13431416
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/list_invoice_coupon_redemptions">list_invoice_coupon_redemptions api documentation</a>
1344-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1417+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
13451418
* @param queryParams The {@link QueryParams} for this endpoint.
13461419
* @return A list of the the coupon redemptions associated with the invoice.
13471420
*/
@@ -1360,7 +1433,7 @@ public Pager<CouponRedemption> listInvoiceCouponRedemptions(String invoiceId, Qu
13601433
* List an invoice's related credit or charge invoices
13611434
*
13621435
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/list_related_invoices">list_related_invoices api documentation</a>
1363-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1436+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
13641437
* @return A list of the credit or charge invoices associated with the invoice.
13651438
*/
13661439
public Pager<Invoice> listRelatedInvoices(String invoiceId) {
@@ -1376,7 +1449,7 @@ public Pager<Invoice> listRelatedInvoices(String invoiceId) {
13761449
* Refund an invoice
13771450
*
13781451
* @see <a href="https://developers.recurly.com/api/v2019-10-10#operation/refund_invoice">refund_invoice api documentation</a>
1379-
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
1452+
* @param invoiceId Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
13801453
* @param body The body of the request.
13811454
* @return Returns the new credit invoice.
13821455
*/

src/main/java/com/recurly/v3/requests/AddOnCreate.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ public class AddOnCreate extends Request {
146146
private String revenueScheduleType;
147147

148148
/**
149-
* Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation
150-
* rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign
151-
* specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`,
152-
* `physical`, or `digital`. If `item_code`/`item_id` is part of the request then `tax_code` must
153-
* be absent.
149+
* Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine
150+
* taxation rules. You can pass in specific tax codes using any of these tax integrations. For
151+
* Recurly's In-the-Box tax offering you can also choose to instead use simple values of
152+
* `unknown`, `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of the request
153+
* then `tax_code` must be absent.
154154
*/
155155
@SerializedName("tax_code")
156156
@Expose
@@ -465,22 +465,22 @@ public void setRevenueScheduleType(final String revenueScheduleType) {
465465
}
466466

467467
/**
468-
* Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to determine taxation
469-
* rules. If you have your own AvaTax or Vertex account configured, use their tax codes to assign
470-
* specific tax rules. If you are using Recurly's EU VAT feature, you can use values of `unknown`,
471-
* `physical`, or `digital`. If `item_code`/`item_id` is part of the request then `tax_code` must
472-
* be absent.
468+
* Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine
469+
* taxation rules. You can pass in specific tax codes using any of these tax integrations. For
470+
* Recurly's In-the-Box tax offering you can also choose to instead use simple values of
471+
* `unknown`, `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of the request
472+
* then `tax_code` must be absent.
473473
*/
474474
public String getTaxCode() {
475475
return this.taxCode;
476476
}
477477

478478
/**
479-
* @param taxCode Optional field used by Avalara, Vertex, and Recurly's EU VAT tax feature to
480-
* determine taxation rules. If you have your own AvaTax or Vertex account configured, use
481-
* their tax codes to assign specific tax rules. If you are using Recurly's EU VAT feature,
482-
* you can use values of `unknown`, `physical`, or `digital`. If `item_code`/`item_id` is part
483-
* of the request then `tax_code` must be absent.
479+
* @param taxCode Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to
480+
* determine taxation rules. You can pass in specific tax codes using any of these tax
481+
* integrations. For Recurly's In-the-Box tax offering you can also choose to instead use
482+
* simple values of `unknown`, `physical`, or `digital` tax codes. If `item_code`/`item_id` is
483+
* part of the request then `tax_code` must be absent.
484484
*/
485485
public void setTaxCode(final String taxCode) {
486486
this.taxCode = taxCode;

0 commit comments

Comments
 (0)