Skip to content

Commit 64496d9

Browse files
author
Recurly Integrations
authored
Generated Latest Changes for v2021-02-25
1 parent 84e5449 commit 64496d9

File tree

7 files changed

+371
-6
lines changed

7 files changed

+371
-6
lines changed

lib/recurly/client.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,22 @@ public function listAccountNotes(string $account_id, array $options = []): \Recu
835835
return new \Recurly\Pager($this, $path, $options);
836836
}
837837

838+
/**
839+
* Create an account note
840+
*
841+
* @param string $account_id Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
842+
* @param array $body The body of the request.
843+
* @param array $options Associative array of optional parameters
844+
*
845+
* @return \Recurly\Resources\AccountNote An account note.
846+
* @link https://developers.recurly.com/api/v2021-02-25#operation/create_account_note
847+
*/
848+
public function createAccountNote(string $account_id, array $body, array $options = []): \Recurly\Resources\AccountNote
849+
{
850+
$path = $this->interpolatePath("/accounts/{account_id}/notes", ['account_id' => $account_id]);
851+
return $this->makeRequest('POST', $path, $body, $options);
852+
}
853+
838854
/**
839855
* Fetch an account note
840856
*
@@ -851,6 +867,22 @@ public function getAccountNote(string $account_id, string $account_note_id, arra
851867
return $this->makeRequest('GET', $path, [], $options);
852868
}
853869

870+
/**
871+
* Delete an account note
872+
*
873+
* @param string $account_id Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
874+
* @param string $account_note_id Account Note ID.
875+
* @param array $options Associative array of optional parameters
876+
*
877+
* @return \Recurly\EmptyResource Account note deleted.
878+
* @link https://developers.recurly.com/api/v2021-02-25#operation/remove_account_note
879+
*/
880+
public function removeAccountNote(string $account_id, string $account_note_id, array $options = []): \Recurly\EmptyResource
881+
{
882+
$path = $this->interpolatePath("/accounts/{account_id}/notes/{account_note_id}", ['account_id' => $account_id, 'account_note_id' => $account_note_id]);
883+
return $this->makeRequest('DELETE', $path, [], $options);
884+
}
885+
854886
/**
855887
* Fetch a list of an account's shipping addresses
856888
*

lib/recurly/resources/account.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class Account extends RecurlyResource
1414
{
1515
private $_address;
16+
private $_bill_date;
1617
private $_bill_to;
1718
private $_billing_info;
1819
private $_cc_emails;
@@ -79,6 +80,29 @@ public function setAddress(\Recurly\Resources\Address $address): void
7980
$this->_address = $address;
8081
}
8182

83+
/**
84+
* Getter method for the bill_date attribute.
85+
* The preferred billing date for the account. This date will be used as the billing date for when activating new subscriptions on the account.
86+
*
87+
* @return ?string
88+
*/
89+
public function getBillDate(): ?string
90+
{
91+
return $this->_bill_date;
92+
}
93+
94+
/**
95+
* Setter method for the bill_date attribute.
96+
*
97+
* @param string $bill_date
98+
*
99+
* @return void
100+
*/
101+
public function setBillDate(string $bill_date): void
102+
{
103+
$this->_bill_date = $bill_date;
104+
}
105+
82106
/**
83107
* Getter method for the bill_to attribute.
84108
* An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.

lib/recurly/resources/add_on.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class AddOn extends RecurlyResource
2323
private $_deleted_at;
2424
private $_display_quantity;
2525
private $_external_sku;
26+
private $_harmonized_system_code;
2627
private $_id;
2728
private $_item;
2829
private $_liability_gl_account_id;
@@ -305,6 +306,29 @@ public function setExternalSku(string $external_sku): void
305306
$this->_external_sku = $external_sku;
306307
}
307308

309+
/**
310+
* Getter method for the harmonized_system_code attribute.
311+
* The Harmonized System (HS) code is an internationally standardized system of names and numbers to classify traded products. The HS code, sometimes called Commodity Code, is used by customs authorities around the world to identify products when assessing duties and taxes. The HS code may also be referred to as the tariff code or customs code. Values should contain only digits and decimals.
312+
*
313+
* @return ?string
314+
*/
315+
public function getHarmonizedSystemCode(): ?string
316+
{
317+
return $this->_harmonized_system_code;
318+
}
319+
320+
/**
321+
* Setter method for the harmonized_system_code attribute.
322+
*
323+
* @param string $harmonized_system_code
324+
*
325+
* @return void
326+
*/
327+
public function setHarmonizedSystemCode(string $harmonized_system_code): void
328+
{
329+
$this->_harmonized_system_code = $harmonized_system_code;
330+
}
331+
308332
/**
309333
* Getter method for the id attribute.
310334
* Add-on ID

lib/recurly/resources/item.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Item extends RecurlyResource
2222
private $_deleted_at;
2323
private $_description;
2424
private $_external_sku;
25+
private $_harmonized_system_code;
2526
private $_id;
2627
private $_liability_gl_account_id;
2728
private $_name;
@@ -270,6 +271,29 @@ public function setExternalSku(string $external_sku): void
270271
$this->_external_sku = $external_sku;
271272
}
272273

274+
/**
275+
* Getter method for the harmonized_system_code attribute.
276+
* The Harmonized System (HS) code is an internationally standardized system of names and numbers to classify traded products. The HS code, sometimes called Commodity Code, is used by customs authorities around the world to identify products when assessing duties and taxes. The HS code may also be referred to as the tariff code or customs code. Values should contain only digits and decimals.
277+
*
278+
* @return ?string
279+
*/
280+
public function getHarmonizedSystemCode(): ?string
281+
{
282+
return $this->_harmonized_system_code;
283+
}
284+
285+
/**
286+
* Setter method for the harmonized_system_code attribute.
287+
*
288+
* @param string $harmonized_system_code
289+
*
290+
* @return void
291+
*/
292+
public function setHarmonizedSystemCode(string $harmonized_system_code): void
293+
{
294+
$this->_harmonized_system_code = $harmonized_system_code;
295+
}
296+
273297
/**
274298
* Getter method for the id attribute.
275299
* Item ID

lib/recurly/resources/line_item.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class LineItem extends RecurlyResource
3030
private $_discount;
3131
private $_end_date;
3232
private $_external_sku;
33+
private $_harmonized_system_code;
3334
private $_id;
3435
private $_invoice_id;
3536
private $_invoice_number;
@@ -490,6 +491,29 @@ public function setExternalSku(string $external_sku): void
490491
$this->_external_sku = $external_sku;
491492
}
492493

494+
/**
495+
* Getter method for the harmonized_system_code attribute.
496+
* The Harmonized System (HS) code is an internationally standardized system of names and numbers to classify traded products. The HS code, sometimes called Commodity Code, is used by customs authorities around the world to identify products when assessing duties and taxes. The HS code may also be referred to as the tariff code or customs code. Values should contain only digits and decimals.
497+
*
498+
* @return ?string
499+
*/
500+
public function getHarmonizedSystemCode(): ?string
501+
{
502+
return $this->_harmonized_system_code;
503+
}
504+
505+
/**
506+
* Setter method for the harmonized_system_code attribute.
507+
*
508+
* @param string $harmonized_system_code
509+
*
510+
* @return void
511+
*/
512+
public function setHarmonizedSystemCode(string $harmonized_system_code): void
513+
{
514+
$this->_harmonized_system_code = $harmonized_system_code;
515+
}
516+
493517
/**
494518
* Getter method for the id attribute.
495519
* Line item ID

lib/recurly/resources/plan.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Plan extends RecurlyResource
2424
private $_deleted_at;
2525
private $_description;
2626
private $_dunning_campaign_id;
27+
private $_harmonized_system_code;
2728
private $_hosted_pages;
2829
private $_id;
2930
private $_interval_length;
@@ -339,6 +340,29 @@ public function setDunningCampaignId(string $dunning_campaign_id): void
339340
$this->_dunning_campaign_id = $dunning_campaign_id;
340341
}
341342

343+
/**
344+
* Getter method for the harmonized_system_code attribute.
345+
* The Harmonized System (HS) code is an internationally standardized system of names and numbers to classify traded products. The HS code, sometimes called Commodity Code, is used by customs authorities around the world to identify products when assessing duties and taxes. The HS code may also be referred to as the tariff code or customs code. Values should contain only digits and decimals.
346+
*
347+
* @return ?string
348+
*/
349+
public function getHarmonizedSystemCode(): ?string
350+
{
351+
return $this->_harmonized_system_code;
352+
}
353+
354+
/**
355+
* Setter method for the harmonized_system_code attribute.
356+
*
357+
* @param string $harmonized_system_code
358+
*
359+
* @return void
360+
*/
361+
public function setHarmonizedSystemCode(string $harmonized_system_code): void
362+
{
363+
$this->_harmonized_system_code = $harmonized_system_code;
364+
}
365+
342366
/**
343367
* Getter method for the hosted_pages attribute.
344368
* Hosted pages settings

0 commit comments

Comments
 (0)