Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fri Aug 21 16:27:03 UTC 2020 Upgrade API version v2019-10-10 #532

Merged
merged 1 commit into from
Aug 21, 2020
Merged
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
11 changes: 11 additions & 0 deletions lib/recurly/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -2305,6 +2305,17 @@ public function listSubscriptionCouponRedemptions(string $subscription_id, array
*
* Supported optional query string parameters:
*
* - $options['ids'] (array): Filter results by their IDs. Up to 200 IDs can be passed at once using
* commas as separators, e.g. `ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6`.
*
* **Important notes:**
*
* * The `ids` parameter cannot be used with any other ordering or filtering
* parameters (`limit`, `order`, `sort`, `begin_time`, `end_time`, etc)
* * Invalid or unknown IDs will be ignored, so you should check that the
* results correspond to your request.
* * Records are returned in an arbitrary order. Since results are all
* returned at once you can sort the records yourself.
* - $options['limit'] (int): Limit number of records 1-200.
* - $options['order'] (string): Sort order.
* - $options['sort'] (string): Sort field. You *really* only want to sort by `usage_timestamp` in ascending
Expand Down
48 changes: 48 additions & 0 deletions lib/recurly/resources/add_on.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class AddOn extends RecurlyResource
{
private $_accounting_code;
private $_add_on_type;
private $_avalara_service_type;
private $_avalara_transaction_type;
private $_code;
private $_created_at;
private $_currencies;
Expand Down Expand Up @@ -89,6 +91,52 @@ public function setAddOnType(string $add_on_type): void
$this->_add_on_type = $add_on_type;
}

/**
* Getter method for the avalara_service_type attribute.
* Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.
*
* @return ?int
*/
public function getAvalaraServiceType(): ?int
{
return $this->_avalara_service_type;
}

/**
* Setter method for the avalara_service_type attribute.
*
* @param int $avalara_service_type
*
* @return void
*/
public function setAvalaraServiceType(int $avalara_service_type): void
{
$this->_avalara_service_type = $avalara_service_type;
}

/**
* Getter method for the avalara_transaction_type attribute.
* Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the add-on is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.
*
* @return ?int
*/
public function getAvalaraTransactionType(): ?int
{
return $this->_avalara_transaction_type;
}

/**
* Setter method for the avalara_transaction_type attribute.
*
* @param int $avalara_transaction_type
*
* @return void
*/
public function setAvalaraTransactionType(int $avalara_transaction_type): void
{
$this->_avalara_transaction_type = $avalara_transaction_type;
}

/**
* Getter method for the code attribute.
* The unique identifier for the add-on within its plan.
Expand Down
48 changes: 48 additions & 0 deletions lib/recurly/resources/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
class Item extends RecurlyResource
{
private $_accounting_code;
private $_avalara_service_type;
private $_avalara_transaction_type;
private $_code;
private $_created_at;
private $_currencies;
Expand Down Expand Up @@ -58,6 +60,52 @@ public function setAccountingCode(string $accounting_code): void
$this->_accounting_code = $accounting_code;
}

/**
* Getter method for the avalara_service_type attribute.
* Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the item is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.
*
* @return ?int
*/
public function getAvalaraServiceType(): ?int
{
return $this->_avalara_service_type;
}

/**
* Setter method for the avalara_service_type attribute.
*
* @param int $avalara_service_type
*
* @return void
*/
public function setAvalaraServiceType(int $avalara_service_type): void
{
$this->_avalara_service_type = $avalara_service_type;
}

/**
* Getter method for the avalara_transaction_type attribute.
* Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the item is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.
*
* @return ?int
*/
public function getAvalaraTransactionType(): ?int
{
return $this->_avalara_transaction_type;
}

/**
* Setter method for the avalara_transaction_type attribute.
*
* @param int $avalara_transaction_type
*
* @return void
*/
public function setAvalaraTransactionType(int $avalara_transaction_type): void
{
$this->_avalara_transaction_type = $avalara_transaction_type;
}

/**
* Getter method for the code attribute.
* Unique code to identify the item.
Expand Down
48 changes: 48 additions & 0 deletions lib/recurly/resources/line_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class LineItem extends RecurlyResource
private $_add_on_code;
private $_add_on_id;
private $_amount;
private $_avalara_service_type;
private $_avalara_transaction_type;
private $_created_at;
private $_credit_applied;
private $_credit_reason_code;
Expand Down Expand Up @@ -177,6 +179,52 @@ public function setAmount(float $amount): void
$this->_amount = $amount;
}

/**
* Getter method for the avalara_service_type attribute.
* Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the line item is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.
*
* @return ?int
*/
public function getAvalaraServiceType(): ?int
{
return $this->_avalara_service_type;
}

/**
* Setter method for the avalara_service_type attribute.
*
* @param int $avalara_service_type
*
* @return void
*/
public function setAvalaraServiceType(int $avalara_service_type): void
{
$this->_avalara_service_type = $avalara_service_type;
}

/**
* Getter method for the avalara_transaction_type attribute.
* Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the line item is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.
*
* @return ?int
*/
public function getAvalaraTransactionType(): ?int
{
return $this->_avalara_transaction_type;
}

/**
* Setter method for the avalara_transaction_type attribute.
*
* @param int $avalara_transaction_type
*
* @return void
*/
public function setAvalaraTransactionType(int $avalara_transaction_type): void
{
$this->_avalara_transaction_type = $avalara_transaction_type;
}

/**
* Getter method for the created_at attribute.
* When the line item was created.
Expand Down
48 changes: 48 additions & 0 deletions lib/recurly/resources/plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Plan extends RecurlyResource
private $_accounting_code;
private $_allow_any_item_on_subscriptions;
private $_auto_renew;
private $_avalara_service_type;
private $_avalara_transaction_type;
private $_code;
private $_created_at;
private $_currencies;
Expand Down Expand Up @@ -115,6 +117,52 @@ public function setAutoRenew(bool $auto_renew): void
$this->_auto_renew = $auto_renew;
}

/**
* Getter method for the avalara_service_type attribute.
* Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the plan is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.
*
* @return ?int
*/
public function getAvalaraServiceType(): ?int
{
return $this->_avalara_service_type;
}

/**
* Setter method for the avalara_service_type attribute.
*
* @param int $avalara_service_type
*
* @return void
*/
public function setAvalaraServiceType(int $avalara_service_type): void
{
$this->_avalara_service_type = $avalara_service_type;
}

/**
* Getter method for the avalara_transaction_type attribute.
* Used by Avalara for Communications taxes. The transaction type in combination with the service type describe how the plan is taxed. Refer to [the documentation](https://help.avalara.com/AvaTax_for_Communications/Tax_Calculation/AvaTax_for_Communications_Tax_Engine/Mapping_Resources/TM_00115_AFC_Modules_Corresponding_Transaction_Types) for more available t/s types.
*
* @return ?int
*/
public function getAvalaraTransactionType(): ?int
{
return $this->_avalara_transaction_type;
}

/**
* Setter method for the avalara_transaction_type attribute.
*
* @param int $avalara_transaction_type
*
* @return void
*/
public function setAvalaraTransactionType(int $avalara_transaction_type): void
{
$this->_avalara_transaction_type = $avalara_transaction_type;
}

/**
* Getter method for the code attribute.
* Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.
Expand Down
Loading