Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 36 additions & 5 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9245,7 +9245,6 @@ paths:
description: Apply credit payment to the outstanding balance on an existing
charge invoice from an account’s available balance from existing credit invoices.
parameters:
- "$ref": "#/components/parameters/site_id"
- "$ref": "#/components/parameters/invoice_id"
responses:
'200':
Expand Down Expand Up @@ -18621,7 +18620,7 @@ components:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
Only returned when Vertex or Avalara for Communications is enabled.
AddressWithName:
allOf:
- "$ref": "#/components/schemas/Address"
Expand Down Expand Up @@ -20195,6 +20194,19 @@ components:
description: Any values that resemble a credit card number or security code
(CVV/CVC) will be rejected.
maxLength: 255
source_record_type:
type: string
title: Source record type
description: The type of record this custom field was automatically copied
from. Only present when the field was copied from another record.
readOnly: true
"$ref": "#/components/schemas/SourceRecordTypeEnum"
source_record_id:
type: string
title: Source record ID
description: The UUID of the record this custom field was automatically
copied from. Only present when the field was copied from another record.
readOnly: true
required:
- name
- value
Expand All @@ -20206,6 +20218,15 @@ components:
remove a field send the name with a null or empty value.
items:
"$ref": "#/components/schemas/CustomField"
InvoiceCustomFields:
type: array
title: Custom fields
description: A list of custom fields that were on the account at the time of
invoice creation and were marked to be displayed on invoices. Read-only; cannot
be set directly on the invoice.
readOnly: true
items:
"$ref": "#/components/schemas/CustomField"
CustomFieldDefinition:
type: object
title: Custom field definition
Expand Down Expand Up @@ -21084,6 +21105,8 @@ components:
title: Business Entity ID
description: Unique ID to identify the business entity assigned to the invoice.
Available when the `Multiple Business Entities` feature is enabled.
custom_fields:
"$ref": "#/components/schemas/InvoiceCustomFields"
InvoiceCreate:
type: object
properties:
Expand Down Expand Up @@ -22735,7 +22758,7 @@ components:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
Only returned when Vertex or Avalara for Communications is enabled.
created_at:
type: string
title: Created at
Expand Down Expand Up @@ -22823,7 +22846,7 @@ components:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
Only returned when Vertex or Avalara for Communications is enabled.
country:
type: string
maxLength: 50
Expand Down Expand Up @@ -23154,7 +23177,7 @@ components:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
Only returned when Vertex or Avalara for Communications is enabled.
Site:
type: object
properties:
Expand Down Expand Up @@ -28104,3 +28127,11 @@ components:
enum:
- customer
- merchant
SourceRecordTypeEnum:
type: string
description: The type of record a custom field was automatically copied from.
enum:
- account
- plan
- product
- subscription
17 changes: 17 additions & 0 deletions src/main/java/com/recurly/v3/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -2531,4 +2531,21 @@ public enum TransactionInitiator {

};

public enum SourceRecordType {
UNDEFINED,

@SerializedName("account")
ACCOUNT,

@SerializedName("plan")
PLAN,

@SerializedName("product")
PRODUCT,

@SerializedName("subscription")
SUBSCRIPTION,

};

}
12 changes: 6 additions & 6 deletions src/main/java/com/recurly/v3/requests/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class Address extends Request {
private String country;

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
@SerializedName("geo_code")
@Expose
Expand Down Expand Up @@ -76,16 +76,16 @@ public void setCountry(final String country) {
}

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
public String getGeoCode() {
return this.geoCode;
}

/**
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
* Sling Vertex Integration
* @param geoCode Code that represents a geographic entity (location or object). Only returned
* when Vertex or Avalara for Communications is enabled.
*/
public void setGeoCode(final String geoCode) {
this.geoCode = geoCode;
Expand Down
49 changes: 49 additions & 0 deletions src/main/java/com/recurly/v3/requests/CustomField.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;

Expand All @@ -17,6 +18,22 @@ public class CustomField extends Request {
@Expose
private String name;

/**
* The UUID of the record this custom field was automatically copied from. Only present when the
* field was copied from another record.
*/
@SerializedName("source_record_id")
@Expose
private String sourceRecordId;

/**
* The type of record this custom field was automatically copied from. Only present when the field
* was copied from another record.
*/
@SerializedName("source_record_type")
@Expose
private Constants.SourceRecordType sourceRecordType;

/** Any values that resemble a credit card number or security code (CVV/CVC) will be rejected. */
@SerializedName("value")
@Expose
Expand All @@ -32,6 +49,38 @@ public void setName(final String name) {
this.name = name;
}

/**
* The UUID of the record this custom field was automatically copied from. Only present when the
* field was copied from another record.
*/
public String getSourceRecordId() {
return this.sourceRecordId;
}

/**
* @param sourceRecordId The UUID of the record this custom field was automatically copied from.
* Only present when the field was copied from another record.
*/
public void setSourceRecordId(final String sourceRecordId) {
this.sourceRecordId = sourceRecordId;
}

/**
* The type of record this custom field was automatically copied from. Only present when the field
* was copied from another record.
*/
public Constants.SourceRecordType getSourceRecordType() {
return this.sourceRecordType;
}

/**
* @param sourceRecordType The type of record this custom field was automatically copied from.
* Only present when the field was copied from another record.
*/
public void setSourceRecordType(final Constants.SourceRecordType sourceRecordType) {
this.sourceRecordType = sourceRecordType;
}

/** Any values that resemble a credit card number or security code (CVV/CVC) will be rejected. */
public String getValue() {
return this.value;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/recurly/v3/requests/InvoiceAddress.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public class InvoiceAddress extends Request {
private String firstName;

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
@SerializedName("geo_code")
@Expose
Expand Down Expand Up @@ -116,16 +116,16 @@ public void setFirstName(final String firstName) {
}

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
public String getGeoCode() {
return this.geoCode;
}

/**
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
* Sling Vertex Integration
* @param geoCode Code that represents a geographic entity (location or object). Only returned
* when Vertex or Avalara for Communications is enabled.
*/
public void setGeoCode(final String geoCode) {
this.geoCode = geoCode;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/recurly/v3/requests/ShippingAddressCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public class ShippingAddressCreate extends Request {
private String firstName;

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
@SerializedName("geo_code")
@Expose
Expand Down Expand Up @@ -122,16 +122,16 @@ public void setFirstName(final String firstName) {
}

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
public String getGeoCode() {
return this.geoCode;
}

/**
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
* Sling Vertex Integration
* @param geoCode Code that represents a geographic entity (location or object). Only returned
* when Vertex or Avalara for Communications is enabled.
*/
public void setGeoCode(final String geoCode) {
this.geoCode = geoCode;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/recurly/v3/requests/ShippingAddressUpdate.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public class ShippingAddressUpdate extends Request {
private String firstName;

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
@SerializedName("geo_code")
@Expose
Expand Down Expand Up @@ -127,16 +127,16 @@ public void setFirstName(final String firstName) {
}

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
public String getGeoCode() {
return this.geoCode;
}

/**
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
* Sling Vertex Integration
* @param geoCode Code that represents a geographic entity (location or object). Only returned
* when Vertex or Avalara for Communications is enabled.
*/
public void setGeoCode(final String geoCode) {
this.geoCode = geoCode;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/recurly/v3/resources/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class Address extends Resource {
private String country;

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
@SerializedName("geo_code")
@Expose
Expand Down Expand Up @@ -75,16 +75,16 @@ public void setCountry(final String country) {
}

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
public String getGeoCode() {
return this.geoCode;
}

/**
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
* Sling Vertex Integration
* @param geoCode Code that represents a geographic entity (location or object). Only returned
* when Vertex or Avalara for Communications is enabled.
*/
public void setGeoCode(final String geoCode) {
this.geoCode = geoCode;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/recurly/v3/resources/AddressWithName.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public class AddressWithName extends Resource {
private String firstName;

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
@SerializedName("geo_code")
@Expose
Expand Down Expand Up @@ -95,16 +95,16 @@ public void setFirstName(final String firstName) {
}

/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex
* Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or
* Avalara for Communications is enabled.
*/
public String getGeoCode() {
return this.geoCode;
}

/**
* @param geoCode Code that represents a geographic entity (location or object). Only returned for
* Sling Vertex Integration
* @param geoCode Code that represents a geographic entity (location or object). Only returned
* when Vertex or Avalara for Communications is enabled.
*/
public void setGeoCode(final String geoCode) {
this.geoCode = geoCode;
Expand Down
Loading
Loading