Skip to content

Commit 948df1b

Browse files
author
Recurly Integrations
authored
Generated Latest Changes for v2021-02-25
1 parent 1015137 commit 948df1b

7 files changed

Lines changed: 113 additions & 9 deletions

File tree

lib/recurly/resources/address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function setCountry(string $country): void
7373

7474
/**
7575
* Getter method for the geo_code attribute.
76-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
76+
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
7777
*
7878
* @return ?string
7979
*/

lib/recurly/resources/address_with_name.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function setFirstName(string $first_name): void
9898

9999
/**
100100
* Getter method for the geo_code attribute.
101-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
101+
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
102102
*
103103
* @return ?string
104104
*/

lib/recurly/resources/custom_field.php

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
class CustomField extends RecurlyResource
1414
{
1515
private $_name;
16+
private $_source_record_id;
17+
private $_source_record_type;
1618
private $_value;
1719

1820
protected static $array_hints = [
@@ -42,6 +44,52 @@ public function setName(string $name): void
4244
$this->_name = $name;
4345
}
4446

47+
/**
48+
* Getter method for the source_record_id attribute.
49+
* The UUID of the record this custom field was automatically copied from. Only present when the field was copied from another record.
50+
*
51+
* @return ?string
52+
*/
53+
public function getSourceRecordId(): ?string
54+
{
55+
return $this->_source_record_id;
56+
}
57+
58+
/**
59+
* Setter method for the source_record_id attribute.
60+
*
61+
* @param string $source_record_id
62+
*
63+
* @return void
64+
*/
65+
public function setSourceRecordId(string $source_record_id): void
66+
{
67+
$this->_source_record_id = $source_record_id;
68+
}
69+
70+
/**
71+
* Getter method for the source_record_type attribute.
72+
* The type of record this custom field was automatically copied from. Only present when the field was copied from another record.
73+
*
74+
* @return ?string
75+
*/
76+
public function getSourceRecordType(): ?string
77+
{
78+
return $this->_source_record_type;
79+
}
80+
81+
/**
82+
* Setter method for the source_record_type attribute.
83+
*
84+
* @param string $source_record_type
85+
*
86+
* @return void
87+
*/
88+
public function setSourceRecordType(string $source_record_type): void
89+
{
90+
$this->_source_record_type = $source_record_type;
91+
}
92+
4593
/**
4694
* Getter method for the value attribute.
4795
* Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.

lib/recurly/resources/invoice.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Invoice extends RecurlyResource
2222
private $_created_at;
2323
private $_credit_payments;
2424
private $_currency;
25+
private $_custom_fields;
2526
private $_customer_notes;
2627
private $_discount;
2728
private $_due_at;
@@ -60,6 +61,7 @@ class Invoice extends RecurlyResource
6061

6162
protected static $array_hints = [
6263
'setCreditPayments' => '\Recurly\Resources\CreditPayment',
64+
'setCustomFields' => '\Recurly\Resources\CustomField',
6365
'setLineItems' => '\Recurly\Resources\LineItem',
6466
'setSubscriptionIds' => 'string',
6567
'setTransactions' => '\Recurly\Resources\Transaction',
@@ -296,6 +298,29 @@ public function setCurrency(string $currency): void
296298
$this->_currency = $currency;
297299
}
298300

301+
/**
302+
* Getter method for the custom_fields attribute.
303+
* 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.
304+
*
305+
* @return array
306+
*/
307+
public function getCustomFields(): array
308+
{
309+
return $this->_custom_fields ?? [] ;
310+
}
311+
312+
/**
313+
* Setter method for the custom_fields attribute.
314+
*
315+
* @param array $custom_fields
316+
*
317+
* @return void
318+
*/
319+
public function setCustomFields(array $custom_fields): void
320+
{
321+
$this->_custom_fields = $custom_fields;
322+
}
323+
299324
/**
300325
* Getter method for the customer_notes attribute.
301326
* This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes.

lib/recurly/resources/invoice_address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function setFirstName(string $first_name): void
123123

124124
/**
125125
* Getter method for the geo_code attribute.
126-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
126+
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
127127
*
128128
* @return ?string
129129
*/

lib/recurly/resources/shipping_address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function setFirstName(string $first_name): void
199199

200200
/**
201201
* Getter method for the geo_code attribute.
202-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
202+
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
203203
*
204204
* @return ?string
205205
*/

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

0 commit comments

Comments
 (0)