Skip to content

Commit

Permalink
Merge pull request #695 from recurly/v3-v2021-02-25-1656518130
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2021-02-25
  • Loading branch information
arzitney authored Jun 29, 2022
2 parents f86a53a + 4af6aea commit 5a46f01
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
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

0 comments on commit 5a46f01

Please sign in to comment.