openapi/api.yaml in recurly-4.27.0 vs openapi/api.yaml in recurly-4.28.0
- old
+ new
@@ -720,10 +720,11 @@
try {
const accountCreate = {
code: accountCode,
firstName: 'Benjamin',
lastName: 'Du Monde',
+ preferredTimeZone: 'America/Chicago',
address: {
street1: '900 Camp St',
city: 'New Orleans',
region: 'LA',
postalCode: '70115',
@@ -748,10 +749,11 @@
try:
account_create = {
"code": account_code,
"first_name": "Benjamin",
"last_name": "Du Monde",
+ "preferred_time_zone": "America/Chicago",
"acquisition": {
"campaign": "podcast-marketing",
"channel": "social_media",
"subchannel": "twitter",
"cost": {"currency": "USD", "amount": 0.50},
@@ -783,10 +785,11 @@
var accountReq = new AccountCreate()
{
Code = accountCode,
FirstName = "Benjamin",
LastName = "Du Monde",
+ PreferredTimeZone = "America/Chicago",
Address = new Address()
{
City = "New Orleans",
Region = "LA",
Country = "US",
@@ -813,10 +816,11 @@
begin
account_create = {
code: account_code,
first_name: "Benjamin",
last_name: "Du Monde",
+ preferred_time_zone: "America/Chicago",
acquisition: {
campaign: "podcast-marketing",
channel: "social_media",
subchannel: "twitter",
cost: {
@@ -851,10 +855,11 @@
Address address = new Address();
accountReq.setCode(accountCode);
accountReq.setFirstName("Aaron");
accountReq.setLastName("Du Monde");
+ accountReq.setPreferredTimeZone("America/Chicago");
address.setStreet1("900 Camp St.");
address.setCity("New Orleans");
address.setRegion("LA");
address.setCountry("US");
@@ -877,10 +882,11 @@
try {
$account_create = [
"code" => $account_code,
"first_name" => "Douglas",
"last_name" => "DuMonde",
+ "preferred_time_zone" => "America/Chicago",
"shipping_addresses" => [
[
"first_name" => "Douglas",
"last_name" => "DuMonde",
"nickname" => "nola",
@@ -906,21 +912,21 @@
var_dump($e);
}
- lang: Go
source: "accountReq := &recurly.AccountCreate{\n\tCode: &accountCode,\n\tFirstName:
recurly.String(\"Isaac\"),\n\tLastName: recurly.String(\"Du Monde\"),\n\tEmail:
- \ recurly.String(\"isaac@example.com\"),\n\tBillingInfo: &recurly.BillingInfoCreate{\n\t\tFirstName:
- recurly.String(\"Isaac\"),\n\t\tLastName: recurly.String(\"Du Monde\"),\n\t\tAddress:
- &recurly.AddressCreate{\n\t\t\tPhone: recurly.String(\"415-555-5555\"),\n\t\t\tStreet1:
- \ recurly.String(\"400 Alabama St.\"),\n\t\t\tCity: recurly.String(\"San
- Francisco\"),\n\t\t\tPostalCode: recurly.String(\"94110\"),\n\t\t\tCountry:
- \ recurly.String(\"US\"),\n\t\t\tRegion: recurly.String(\"CA\"),\n\t\t},\n\t\tNumber:
- recurly.String(\"4111111111111111\"),\n\t\tMonth: recurly.String(\"12\"),\n\t\tYear:
- \ recurly.String(\"22\"),\n\t\tCvv: recurly.String(\"123\"),\n\t},\n}\n\naccount,
- err := client.CreateAccount(accountReq)\nif e, ok := err.(*recurly.Error);
- ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed
- validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
+ \ recurly.String(\"isaac@example.com\"),\n\tPreferredTimeZone: recurly.String(\"America/Los_Angeles\"),\n\tBillingInfo:
+ &recurly.BillingInfoCreate{\n\t\tFirstName: recurly.String(\"Isaac\"),\n\t\tLastName:
+ \ recurly.String(\"Du Monde\"),\n\t\tAddress: &recurly.AddressCreate{\n\t\t\tPhone:
+ \ recurly.String(\"415-555-5555\"),\n\t\t\tStreet1: recurly.String(\"400
+ Alabama St.\"),\n\t\t\tCity: recurly.String(\"San Francisco\"),\n\t\t\tPostalCode:
+ recurly.String(\"94110\"),\n\t\t\tCountry: recurly.String(\"US\"),\n\t\t\tRegion:
+ \ recurly.String(\"CA\"),\n\t\t},\n\t\tNumber: recurly.String(\"4111111111111111\"),\n\t\tMonth:
+ \ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"22\"),\n\t\tCvv:
+ \ recurly.String(\"123\"),\n\t},\n}\n\naccount, err := client.CreateAccount(accountReq)\nif
+ e, ok := err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation
+ {\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Created Account:
%s\", account.Id)"
"/accounts/{account_id}":
parameters:
- "$ref": "#/components/parameters/account_id"
@@ -14686,10 +14692,12 @@
Use for **Adyen HPP** and **Online Banking** transaction requests.
This runs the validations but not the transactions.
The API request allows the inclusion of one of the following fields: **external_hpp_type** with `'adyen'` and **online_banking_payment_type** with `'ideal'` or `'sofort'` in the **billing_info** object.
For additional information regarding shipping fees, please see https://docs.recurly.com/docs/shipping
+
+ Note: an email address is required on the account for a Pending Purchase.
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/PurchaseCreate"
@@ -19131,10 +19139,12 @@
end_date:
type: string
format: date-time
title: End date
description: If this date is provided, it indicates the end of a time range.
+ custom_fields:
+ "$ref": "#/components/schemas/CustomFields"
created_at:
type: string
format: date-time
title: Created at
description: When the line item was created.
@@ -19297,10 +19307,12 @@
also skips billing information requirements. Origin `prepayment` is only
allowed if `type` is `charge` and `tax_exempt` is left blank or set to
true. This origin creates a charge and opposite credit on the account
to be used for future invoices.
"$ref": "#/components/schemas/LineItemCreateOriginEnum"
+ custom_fields:
+ "$ref": "#/components/schemas/CustomFields"
start_date:
type: string
format: date-time
title: Start date
description: If an end date is present, this is value indicates the beginning
@@ -22897,9 +22909,10 @@
enum:
- account
- item
- plan
- subscription
+ - charge
RefundTypeEnum:
type: string
enum:
- full
- none