Skip to content

Commit 63ecae9

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

15 files changed

Lines changed: 277 additions & 80 deletions

openapi/api.yaml

Lines changed: 62 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,12 @@ x-tagGroups:
200200
- usage
201201
- automated_exports
202202
- gift_cards
203-
- name: App Management
203+
- name: Invoices and Payments
204204
tags:
205-
- external_subscriptions
206-
- external_invoices
207-
- external_products
208-
- external_accounts
209-
- external_product_references
210-
- external_payment_phases
205+
- invoice
206+
- line_item
207+
- credit_payment
208+
- transaction
211209
- name: Products and Promotions
212210
tags:
213211
- item
@@ -218,12 +216,6 @@ x-tagGroups:
218216
- coupon_redemption
219217
- unique_coupon_code
220218
- price_segment
221-
- name: Invoices and Payments
222-
tags:
223-
- invoice
224-
- line_item
225-
- credit_payment
226-
- transaction
227219
- name: Configuration
228220
tags:
229221
- site
@@ -233,6 +225,14 @@ x-tagGroups:
233225
- business_entities
234226
- general_ledger_account
235227
- performance_obligations
228+
- name: App Management
229+
tags:
230+
- external_subscriptions
231+
- external_invoices
232+
- external_products
233+
- external_accounts
234+
- external_product_references
235+
- external_payment_phases
236236
tags:
237237
- name: site
238238
x-displayName: Site
@@ -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"
@@ -19642,12 +19641,14 @@ components:
1964219641
title: Temporal amount
1964319642
description: If `duration` is "temporal" than `temporal_amount` is an integer
1964419643
which is multiplied by `temporal_unit` to define the duration that the
19645-
coupon will be applied to invoices for.
19644+
coupon will be applied to invoices for. When `temporal_unit` is "billing_period",
19645+
this is the number of complete billing cycles.
1964619646
temporal_unit:
1964719647
title: Temporal unit
1964819648
description: If `duration` is "temporal" than `temporal_unit` is multiplied
1964919649
by `temporal_amount` to define the duration that the coupon will be applied
19650-
to invoices for.
19650+
to invoices for. Use "billing_period" to apply the coupon for a fixed
19651+
number of billing cycles. Requires `redemption_resource=subscription`.
1965119652
"$ref": "#/components/schemas/TemporalUnitEnum"
1965219653
free_trial_unit:
1965319654
title: Free trial unit
@@ -19833,12 +19834,14 @@ components:
1983319834
title: Temporal amount
1983419835
description: If `duration` is "temporal" than `temporal_amount` is an
1983519836
integer which is multiplied by `temporal_unit` to define the duration
19836-
that the coupon will be applied to invoices for.
19837+
that the coupon will be applied to invoices for. When `temporal_unit`
19838+
is "billing_period", this is the number of complete billing cycles.
1983719839
temporal_unit:
1983819840
title: Temporal unit
1983919841
description: If `duration` is "temporal" than `temporal_unit` is multiplied
1984019842
by `temporal_amount` to define the duration that the coupon will be
19841-
applied to invoices for.
19843+
applied to invoices for. Use "billing_period" to apply the coupon for
19844+
a fixed number of billing cycles. Requires `redemption_resource=subscription`.
1984219845
"$ref": "#/components/schemas/TemporalUnitEnum"
1984319846
coupon_type:
1984419847
title: Coupon type
@@ -20195,6 +20198,19 @@ components:
2019520198
description: Any values that resemble a credit card number or security code
2019620199
(CVV/CVC) will be rejected.
2019720200
maxLength: 255
20201+
source_record_type:
20202+
type: string
20203+
title: Source record type
20204+
description: The type of record this custom field was automatically copied
20205+
from. Only present when the field was copied from another record.
20206+
readOnly: true
20207+
"$ref": "#/components/schemas/SourceRecordTypeEnum"
20208+
source_record_id:
20209+
type: string
20210+
title: Source record ID
20211+
description: The UUID of the record this custom field was automatically
20212+
copied from. Only present when the field was copied from another record.
20213+
readOnly: true
2019820214
required:
2019920215
- name
2020020216
- value
@@ -20206,6 +20222,15 @@ components:
2020620222
remove a field send the name with a null or empty value.
2020720223
items:
2020820224
"$ref": "#/components/schemas/CustomField"
20225+
InvoiceCustomFields:
20226+
type: array
20227+
title: Custom fields
20228+
description: A list of custom fields that were on the account at the time of
20229+
invoice creation and were marked to be displayed on invoices. Read-only; cannot
20230+
be set directly on the invoice.
20231+
readOnly: true
20232+
items:
20233+
"$ref": "#/components/schemas/CustomField"
2020920234
CustomFieldDefinition:
2021020235
type: object
2021120236
title: Custom field definition
@@ -21084,6 +21109,8 @@ components:
2108421109
title: Business Entity ID
2108521110
description: Unique ID to identify the business entity assigned to the invoice.
2108621111
Available when the `Multiple Business Entities` feature is enabled.
21112+
custom_fields:
21113+
"$ref": "#/components/schemas/InvoiceCustomFields"
2108721114
InvoiceCreate:
2108821115
type: object
2108921116
properties:
@@ -22735,7 +22762,7 @@ components:
2273522762
type: string
2273622763
maxLength: 20
2273722764
description: Code that represents a geographic entity (location or object).
22738-
Only returned for Sling Vertex Integration
22765+
Only returned when Vertex or Avalara for Communications is enabled.
2273922766
created_at:
2274022767
type: string
2274122768
title: Created at
@@ -22823,7 +22850,7 @@ components:
2282322850
type: string
2282422851
maxLength: 20
2282522852
description: Code that represents a geographic entity (location or object).
22826-
Only returned for Sling Vertex Integration
22853+
Only returned when Vertex or Avalara for Communications is enabled.
2282722854
country:
2282822855
type: string
2282922856
maxLength: 50
@@ -23154,7 +23181,7 @@ components:
2315423181
type: string
2315523182
maxLength: 20
2315623183
description: Code that represents a geographic entity (location or object).
23157-
Only returned for Sling Vertex Integration
23184+
Only returned when Vertex or Avalara for Communications is enabled.
2315823185
Site:
2315923186
type: object
2316023187
properties:
@@ -27196,11 +27223,16 @@ components:
2719627223
- temporal
2719727224
TemporalUnitEnum:
2719827225
type: string
27226+
description: The temporal unit for the coupon's duration. Used with temporal_amount
27227+
to define how long the coupon applies. When temporal_unit is billing_period,
27228+
the coupon applies for temporal_amount complete billing cycles rather than
27229+
a fixed calendar duration. billing_period requires redemption_resource=subscription.
2719927230
enum:
2720027231
- day
2720127232
- month
2720227233
- week
2720327234
- year
27235+
- billing_period
2720427236
FreeTrialUnitEnum:
2720527237
type: string
2720627238
enum:
@@ -28104,3 +28136,11 @@ components:
2810428136
enum:
2810528137
- customer
2810628138
- merchant
28139+
SourceRecordTypeEnum:
28140+
type: string
28141+
description: The type of record a custom field was automatically copied from.
28142+
enum:
28143+
- account
28144+
- plan
28145+
- product
28146+
- subscription

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,9 @@ public enum TemporalUnit {
544544
@SerializedName("year")
545545
YEAR,
546546

547+
@SerializedName("billing_period")
548+
BILLING_PERIOD,
549+
547550
};
548551

549552
public enum FreeTrialUnit {
@@ -2531,4 +2534,21 @@ public enum TransactionInitiator {
25312534

25322535
};
25332536

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

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/CouponCreate.java

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,17 @@ public class CouponCreate extends Request {
166166

167167
/**
168168
* If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by
169-
* `temporal_unit` to define the duration that the coupon will be applied to invoices for.
169+
* `temporal_unit` to define the duration that the coupon will be applied to invoices for. When
170+
* `temporal_unit` is "billing_period", this is the number of complete billing cycles.
170171
*/
171172
@SerializedName("temporal_amount")
172173
@Expose
173174
private Integer temporalAmount;
174175

175176
/**
176177
* If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define
177-
* the duration that the coupon will be applied to invoices for.
178+
* the duration that the coupon will be applied to invoices for. Use "billing_period" to apply the
179+
* coupon for a fixed number of billing cycles. Requires `redemption_resource=subscription`.
178180
*/
179181
@SerializedName("temporal_unit")
180182
@Expose
@@ -502,7 +504,8 @@ public void setRedemptionResource(final Constants.RedemptionResource redemptionR
502504

503505
/**
504506
* If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by
505-
* `temporal_unit` to define the duration that the coupon will be applied to invoices for.
507+
* `temporal_unit` to define the duration that the coupon will be applied to invoices for. When
508+
* `temporal_unit` is "billing_period", this is the number of complete billing cycles.
506509
*/
507510
public Integer getTemporalAmount() {
508511
return this.temporalAmount;
@@ -511,15 +514,17 @@ public Integer getTemporalAmount() {
511514
/**
512515
* @param temporalAmount If `duration` is "temporal" than `temporal_amount` is an integer which is
513516
* multiplied by `temporal_unit` to define the duration that the coupon will be applied to
514-
* invoices for.
517+
* invoices for. When `temporal_unit` is "billing_period", this is the number of complete
518+
* billing cycles.
515519
*/
516520
public void setTemporalAmount(final Integer temporalAmount) {
517521
this.temporalAmount = temporalAmount;
518522
}
519523

520524
/**
521525
* If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define
522-
* the duration that the coupon will be applied to invoices for.
526+
* the duration that the coupon will be applied to invoices for. Use "billing_period" to apply the
527+
* coupon for a fixed number of billing cycles. Requires `redemption_resource=subscription`.
523528
*/
524529
public Constants.TemporalUnit getTemporalUnit() {
525530
return this.temporalUnit;
@@ -528,6 +533,8 @@ public Constants.TemporalUnit getTemporalUnit() {
528533
/**
529534
* @param temporalUnit If `duration` is "temporal" than `temporal_unit` is multiplied by
530535
* `temporal_amount` to define the duration that the coupon will be applied to invoices for.
536+
* Use "billing_period" to apply the coupon for a fixed number of billing cycles. Requires
537+
* `redemption_resource=subscription`.
531538
*/
532539
public void setTemporalUnit(final Constants.TemporalUnit temporalUnit) {
533540
this.temporalUnit = temporalUnit;

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;

0 commit comments

Comments
 (0)