Skip to content

Commit 4a4f10a

Browse files
author
Recurly Integrations
authored
Generated Latest Changes for v2021-02-25
1 parent 152df51 commit 4a4f10a

13 files changed

Lines changed: 224 additions & 53 deletions

openapi/api.yaml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9245,7 +9245,6 @@ paths:
92459245
description: Apply credit payment to the outstanding balance on an existing
92469246
charge invoice from an account’s available balance from existing credit invoices.
92479247
parameters:
9248-
- "$ref": "#/components/parameters/site_id"
92499248
- "$ref": "#/components/parameters/invoice_id"
92509249
responses:
92519250
'200':
@@ -18621,7 +18620,7 @@ components:
1862118620
type: string
1862218621
maxLength: 20
1862318622
description: Code that represents a geographic entity (location or object).
18624-
Only returned for Sling Vertex Integration
18623+
Only returned when Vertex or Avalara for Communications is enabled.
1862518624
AddressWithName:
1862618625
allOf:
1862718626
- "$ref": "#/components/schemas/Address"
@@ -20195,6 +20194,19 @@ components:
2019520194
description: Any values that resemble a credit card number or security code
2019620195
(CVV/CVC) will be rejected.
2019720196
maxLength: 255
20197+
source_record_type:
20198+
type: string
20199+
title: Source record type
20200+
description: The type of record this custom field was automatically copied
20201+
from. Only present when the field was copied from another record.
20202+
readOnly: true
20203+
"$ref": "#/components/schemas/SourceRecordTypeEnum"
20204+
source_record_id:
20205+
type: string
20206+
title: Source record ID
20207+
description: The UUID of the record this custom field was automatically
20208+
copied from. Only present when the field was copied from another record.
20209+
readOnly: true
2019820210
required:
2019920211
- name
2020020212
- value
@@ -20206,6 +20218,15 @@ components:
2020620218
remove a field send the name with a null or empty value.
2020720219
items:
2020820220
"$ref": "#/components/schemas/CustomField"
20221+
InvoiceCustomFields:
20222+
type: array
20223+
title: Custom fields
20224+
description: A list of custom fields that were on the account at the time of
20225+
invoice creation and were marked to be displayed on invoices. Read-only; cannot
20226+
be set directly on the invoice.
20227+
readOnly: true
20228+
items:
20229+
"$ref": "#/components/schemas/CustomField"
2020920230
CustomFieldDefinition:
2021020231
type: object
2021120232
title: Custom field definition
@@ -21084,6 +21105,8 @@ components:
2108421105
title: Business Entity ID
2108521106
description: Unique ID to identify the business entity assigned to the invoice.
2108621107
Available when the `Multiple Business Entities` feature is enabled.
21108+
custom_fields:
21109+
"$ref": "#/components/schemas/InvoiceCustomFields"
2108721110
InvoiceCreate:
2108821111
type: object
2108921112
properties:
@@ -22735,7 +22758,7 @@ components:
2273522758
type: string
2273622759
maxLength: 20
2273722760
description: Code that represents a geographic entity (location or object).
22738-
Only returned for Sling Vertex Integration
22761+
Only returned when Vertex or Avalara for Communications is enabled.
2273922762
created_at:
2274022763
type: string
2274122764
title: Created at
@@ -22823,7 +22846,7 @@ components:
2282322846
type: string
2282422847
maxLength: 20
2282522848
description: Code that represents a geographic entity (location or object).
22826-
Only returned for Sling Vertex Integration
22849+
Only returned when Vertex or Avalara for Communications is enabled.
2282722850
country:
2282822851
type: string
2282922852
maxLength: 50
@@ -23154,7 +23177,7 @@ components:
2315423177
type: string
2315523178
maxLength: 20
2315623179
description: Code that represents a geographic entity (location or object).
23157-
Only returned for Sling Vertex Integration
23180+
Only returned when Vertex or Avalara for Communications is enabled.
2315823181
Site:
2315923182
type: object
2316023183
properties:
@@ -28104,3 +28127,11 @@ components:
2810428127
enum:
2810528128
- customer
2810628129
- merchant
28130+
SourceRecordTypeEnum:
28131+
type: string
28132+
description: The type of record a custom field was automatically copied from.
28133+
enum:
28134+
- account
28135+
- plan
28136+
- product
28137+
- subscription

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2531,4 +2531,21 @@ public enum TransactionInitiator {
25312531

25322532
};
25332533

2534+
public enum SourceRecordType {
2535+
UNDEFINED,
2536+
2537+
@SerializedName("account")
2538+
ACCOUNT,
2539+
2540+
@SerializedName("plan")
2541+
PLAN,
2542+
2543+
@SerializedName("product")
2544+
PRODUCT,
2545+
2546+
@SerializedName("subscription")
2547+
SUBSCRIPTION,
2548+
2549+
};
2550+
25342551
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public class Address extends Request {
2323
private String country;
2424

2525
/**
26-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
27-
* Integration
26+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
27+
* Avalara for Communications is enabled.
2828
*/
2929
@SerializedName("geo_code")
3030
@Expose
@@ -76,16 +76,16 @@ public void setCountry(final String country) {
7676
}
7777

7878
/**
79-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
80-
* Integration
79+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
80+
* Avalara for Communications is enabled.
8181
*/
8282
public String getGeoCode() {
8383
return this.geoCode;
8484
}
8585

8686
/**
87-
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
88-
* Sling Vertex Integration
87+
* @param geoCode Code that represents a geographic entity (location or object). Only returned
88+
* when Vertex or Avalara for Communications is enabled.
8989
*/
9090
public void setGeoCode(final String geoCode) {
9191
this.geoCode = geoCode;

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import com.google.gson.annotations.Expose;
99
import com.google.gson.annotations.SerializedName;
10+
import com.recurly.v3.Constants;
1011
import com.recurly.v3.Request;
1112
import com.recurly.v3.resources.*;
1213

@@ -17,6 +18,22 @@ public class CustomField extends Request {
1718
@Expose
1819
private String name;
1920

21+
/**
22+
* The UUID of the record this custom field was automatically copied from. Only present when the
23+
* field was copied from another record.
24+
*/
25+
@SerializedName("source_record_id")
26+
@Expose
27+
private String sourceRecordId;
28+
29+
/**
30+
* The type of record this custom field was automatically copied from. Only present when the field
31+
* was copied from another record.
32+
*/
33+
@SerializedName("source_record_type")
34+
@Expose
35+
private Constants.SourceRecordType sourceRecordType;
36+
2037
/** Any values that resemble a credit card number or security code (CVV/CVC) will be rejected. */
2138
@SerializedName("value")
2239
@Expose
@@ -32,6 +49,38 @@ public void setName(final String name) {
3249
this.name = name;
3350
}
3451

52+
/**
53+
* The UUID of the record this custom field was automatically copied from. Only present when the
54+
* field was copied from another record.
55+
*/
56+
public String getSourceRecordId() {
57+
return this.sourceRecordId;
58+
}
59+
60+
/**
61+
* @param sourceRecordId The UUID of the record this custom field was automatically copied from.
62+
* Only present when the field was copied from another record.
63+
*/
64+
public void setSourceRecordId(final String sourceRecordId) {
65+
this.sourceRecordId = sourceRecordId;
66+
}
67+
68+
/**
69+
* The type of record this custom field was automatically copied from. Only present when the field
70+
* was copied from another record.
71+
*/
72+
public Constants.SourceRecordType getSourceRecordType() {
73+
return this.sourceRecordType;
74+
}
75+
76+
/**
77+
* @param sourceRecordType The type of record this custom field was automatically copied from.
78+
* Only present when the field was copied from another record.
79+
*/
80+
public void setSourceRecordType(final Constants.SourceRecordType sourceRecordType) {
81+
this.sourceRecordType = sourceRecordType;
82+
}
83+
3584
/** Any values that resemble a credit card number or security code (CVV/CVC) will be rejected. */
3685
public String getValue() {
3786
return this.value;

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public class InvoiceAddress extends Request {
3333
private String firstName;
3434

3535
/**
36-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
37-
* Integration
36+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
37+
* Avalara for Communications is enabled.
3838
*/
3939
@SerializedName("geo_code")
4040
@Expose
@@ -116,16 +116,16 @@ public void setFirstName(final String firstName) {
116116
}
117117

118118
/**
119-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
120-
* Integration
119+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
120+
* Avalara for Communications is enabled.
121121
*/
122122
public String getGeoCode() {
123123
return this.geoCode;
124124
}
125125

126126
/**
127-
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
128-
* Sling Vertex Integration
127+
* @param geoCode Code that represents a geographic entity (location or object). Only returned
128+
* when Vertex or Avalara for Communications is enabled.
129129
*/
130130
public void setGeoCode(final String geoCode) {
131131
this.geoCode = geoCode;

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public class ShippingAddressCreate extends Request {
3434
private String firstName;
3535

3636
/**
37-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
38-
* Integration
37+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
38+
* Avalara for Communications is enabled.
3939
*/
4040
@SerializedName("geo_code")
4141
@Expose
@@ -122,16 +122,16 @@ public void setFirstName(final String firstName) {
122122
}
123123

124124
/**
125-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
126-
* Integration
125+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
126+
* Avalara for Communications is enabled.
127127
*/
128128
public String getGeoCode() {
129129
return this.geoCode;
130130
}
131131

132132
/**
133-
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
134-
* Sling Vertex Integration
133+
* @param geoCode Code that represents a geographic entity (location or object). Only returned
134+
* when Vertex or Avalara for Communications is enabled.
135135
*/
136136
public void setGeoCode(final String geoCode) {
137137
this.geoCode = geoCode;

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public class ShippingAddressUpdate extends Request {
3434
private String firstName;
3535

3636
/**
37-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
38-
* Integration
37+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
38+
* Avalara for Communications is enabled.
3939
*/
4040
@SerializedName("geo_code")
4141
@Expose
@@ -127,16 +127,16 @@ public void setFirstName(final String firstName) {
127127
}
128128

129129
/**
130-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
131-
* Integration
130+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
131+
* Avalara for Communications is enabled.
132132
*/
133133
public String getGeoCode() {
134134
return this.geoCode;
135135
}
136136

137137
/**
138-
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
139-
* Sling Vertex Integration
138+
* @param geoCode Code that represents a geographic entity (location or object). Only returned
139+
* when Vertex or Avalara for Communications is enabled.
140140
*/
141141
public void setGeoCode(final String geoCode) {
142142
this.geoCode = geoCode;

src/main/java/com/recurly/v3/resources/Address.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public class Address extends Resource {
2222
private String country;
2323

2424
/**
25-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
26-
* Integration
25+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
26+
* Avalara for Communications is enabled.
2727
*/
2828
@SerializedName("geo_code")
2929
@Expose
@@ -75,16 +75,16 @@ public void setCountry(final String country) {
7575
}
7676

7777
/**
78-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
79-
* Integration
78+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
79+
* Avalara for Communications is enabled.
8080
*/
8181
public String getGeoCode() {
8282
return this.geoCode;
8383
}
8484

8585
/**
86-
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
87-
* Sling Vertex Integration
86+
* @param geoCode Code that represents a geographic entity (location or object). Only returned
87+
* when Vertex or Avalara for Communications is enabled.
8888
*/
8989
public void setGeoCode(final String geoCode) {
9090
this.geoCode = geoCode;

src/main/java/com/recurly/v3/resources/AddressWithName.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public class AddressWithName extends Resource {
2727
private String firstName;
2828

2929
/**
30-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
31-
* Integration
30+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
31+
* Avalara for Communications is enabled.
3232
*/
3333
@SerializedName("geo_code")
3434
@Expose
@@ -95,16 +95,16 @@ public void setFirstName(final String firstName) {
9595
}
9696

9797
/**
98-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
99-
* Integration
98+
* Code that represents a geographic entity (location or object). Only returned when Vertex or
99+
* Avalara for Communications is enabled.
100100
*/
101101
public String getGeoCode() {
102102
return this.geoCode;
103103
}
104104

105105
/**
106-
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
107-
* Sling Vertex Integration
106+
* @param geoCode Code that represents a geographic entity (location or object). Only returned
107+
* when Vertex or Avalara for Communications is enabled.
108108
*/
109109
public void setGeoCode(final String geoCode) {
110110
this.geoCode = geoCode;

0 commit comments

Comments
 (0)