diff --git a/lib/recurly/resources/line_item.php b/lib/recurly/resources/line_item.php index a04627f9..d1517cba 100644 --- a/lib/recurly/resources/line_item.php +++ b/lib/recurly/resources/line_item.php @@ -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; @@ -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 diff --git a/lib/recurly/resources/subscription.php b/lib/recurly/resources/subscription.php index 00255762..605eebfc 100644 --- a/lib/recurly/resources/subscription.php +++ b/lib/recurly/resources/subscription.php @@ -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; @@ -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 diff --git a/openapi/api.yaml b/openapi/api.yaml index 7fdd5b8a..b0cc2567 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -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: @@ -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 @@ -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