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

Generated Latest Changes for v2021-02-25 #695

Merged
merged 1 commit into from
Jun 29, 2022
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
24 changes: 24 additions & 0 deletions lib/recurly/resources/line_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class LineItem extends RecurlyResource
private $_tax;
private $_tax_code;
private $_tax_exempt;
private $_tax_inclusive;
private $_tax_info;
private $_taxable;
private $_type;
Expand Down Expand Up @@ -1037,6 +1038,29 @@ public function setTaxExempt(bool $tax_exempt): void
$this->_tax_exempt = $tax_exempt;
}

/**
* Getter method for the tax_inclusive attribute.
* Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to utilize this flag.
*
* @return ?bool
*/
public function getTaxInclusive(): ?bool
{
return $this->_tax_inclusive;
}

/**
* Setter method for the tax_inclusive attribute.
*
* @param bool $tax_inclusive
*
* @return void
*/
public function setTaxInclusive(bool $tax_inclusive): void
{
$this->_tax_inclusive = $tax_inclusive;
}

/**
* Getter method for the tax_info attribute.
* Tax info
Expand Down
24 changes: 24 additions & 0 deletions lib/recurly/resources/subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class Subscription extends RecurlyResource
private $_state;
private $_subtotal;
private $_tax;
private $_tax_inclusive;
private $_tax_info;
private $_terms_and_conditions;
private $_total;
Expand Down Expand Up @@ -941,6 +942,29 @@ public function setTax(float $tax): void
$this->_tax = $tax;
}

/**
* Getter method for the tax_inclusive attribute.
* Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing feature) must be enabled to utilize this flag.
*
* @return ?bool
*/
public function getTaxInclusive(): ?bool
{
return $this->_tax_inclusive;
}

/**
* Setter method for the tax_inclusive attribute.
*
* @param bool $tax_inclusive
*
* @return void
*/
public function setTaxInclusive(bool $tax_inclusive): void
{
$this->_tax_inclusive = $tax_inclusive;
}

/**
* Getter method for the tax_info attribute.
* Tax info
Expand Down
14 changes: 14 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16931,6 +16931,8 @@ components:
"$ref": "#/components/schemas/ExternalHppTypeEnum"
online_banking_payment_type:
"$ref": "#/components/schemas/OnlineBankingPaymentTypeEnum"
card_type:
"$ref": "#/components/schemas/CardTypeEnum"
BillingInfoVerify:
type: object
properties:
Expand Down Expand Up @@ -18580,6 +18582,12 @@ components:
type: string
title: Unit amount decimal
description: Positive amount for a charge, negative amount for a credit.
tax_inclusive:
type: boolean
title: Tax Inclusive?
description: Determines whether or not tax is included in the unit amount.
The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
feature) must be enabled to utilize this flag.
subtotal:
type: number
format: float
Expand Down Expand Up @@ -20059,6 +20067,12 @@ components:
type: number
format: float
title: Subscription unit price
tax_inclusive:
type: boolean
title: Tax Inclusive?
description: Determines whether or not tax is included in the unit amount.
The Tax Inclusive Pricing feature (separate from the Mixed Tax Pricing
feature) must be enabled to utilize this flag.
quantity:
type: integer
title: Subscription quantity
Expand Down