Skip to content
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Check our main [developer changelog](https://developer.paddle.com/?utm_source=dx

### Added

- Added `grand_total_tax` to transaction totals and adjusted totals. See [related changelog](https://developer.paddle.com/changelog/2026/grand-total-tax-field?utm_source=dx&utm_medium=paddle-php-sdk)
- Added support for `payout_reconciliation` report type, see [changelog](https://developer.paddle.com/changelog/2025/payout-reconciliation-report?utm_source=dx&utm_medium=paddle-php-sdk)
- Added `api_key_exposure.created` event support. See [related changelog](https://developer.paddle.com/changelog/2025/secret-scanning?utm_source=dx&utm_medium=paddle-php-sdk)

Expand Down
2 changes: 2 additions & 0 deletions src/Entities/Shared/TransactionPayoutTotals.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ private function __construct(
public string $creditToBalance,
public string $exchangeRate,
public string $feeRate,
public string $grandTotalTax,
) {
}

Expand All @@ -46,6 +47,7 @@ public static function from(array $data): self
creditToBalance: $data['credit_to_balance'],
exchangeRate: $data['exchange_rate'],
feeRate: $data['fee_rate'],
grandTotalTax: $data['grand_total_tax'],
);
}
}
2 changes: 2 additions & 0 deletions src/Entities/Shared/TransactionTotals.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ private function __construct(
public string|null $earnings,
public CurrencyCode $currencyCode,
public string $creditToBalance,
public string $grandTotalTax,
) {
}

Expand All @@ -42,6 +43,7 @@ public static function from(array $data): self
earnings: $data['earnings'] ?? null,
currencyCode: CurrencyCode::from($data['currency_code']),
creditToBalance: $data['credit_to_balance'],
grandTotalTax: $data['grand_total_tax'],
);
}
}
2 changes: 2 additions & 0 deletions src/Entities/Shared/TransactionTotalsAdjusted.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private function __construct(
public string $retainedFee,
public string|null $earnings,
public CurrencyCode $currencyCode,
public string $grandTotalTax,
) {
}

Expand All @@ -36,6 +37,7 @@ public static function from(array $data): self
$data['retained_fee'],
$data['earnings'] ?? null,
CurrencyCode::from($data['currency_code']),
$data['grand_total_tax'],
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ private function __construct(
public string|null $creditToBalance,
public string|null $exchangeRate,
public string|null $feeRate,
public string|null $grandTotalTax,
) {
}

Expand All @@ -46,6 +47,7 @@ public static function from(array $data): self
creditToBalance: $data['credit_to_balance'] ?? null,
exchangeRate: $data['exchange_rate'] ?? null,
feeRate: $data['fee_rate'] ?? null,
grandTotalTax: $data['grand_total_tax'] ?? null,
);
}
}
2 changes: 2 additions & 0 deletions src/Notifications/Entities/Shared/TransactionTotals.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ private function __construct(
public string|null $earnings,
public CurrencyCode $currencyCode,
public string|null $creditToBalance,
public string|null $grandTotalTax,
) {
}

Expand All @@ -42,6 +43,7 @@ public static function from(array $data): self
earnings: $data['earnings'] ?? null,
currencyCode: CurrencyCode::from($data['currency_code']),
creditToBalance: $data['credit_to_balance'] ?? null,
grandTotalTax: $data['grand_total_tax'] ?? null,
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private function __construct(
public string|null $retainedFee,
public string|null $earnings,
public CurrencyCode $currencyCode,
public string|null $grandTotalTax,
) {
}

Expand All @@ -36,6 +37,7 @@ public static function from(array $data): self
$data['retained_fee'] ?? null,
$data['earnings'] ?? null,
CurrencyCode::from($data['currency_code']),
$data['grand_total_tax'] ?? null,
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "11000"
},
"line_items": [
{
Expand Down Expand Up @@ -404,7 +405,8 @@
"earnings": "0",
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP"
"currency_code": "GBP",
"grand_total_tax": "11000"
}
},
"payments": [
Expand Down Expand Up @@ -633,7 +635,8 @@
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "11000"
},
"line_items": [
{
Expand Down Expand Up @@ -737,7 +740,8 @@
"earnings": "0",
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP"
"currency_code": "GBP",
"grand_total_tax": "11000"
}
},
"payments": [
Expand Down Expand Up @@ -966,7 +970,8 @@
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "11000"
},
"line_items": [
{
Expand Down Expand Up @@ -1070,7 +1075,8 @@
"earnings": "0",
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP"
"currency_code": "GBP",
"grand_total_tax": "11000"
}
},
"payments": [
Expand Down Expand Up @@ -1298,7 +1304,8 @@
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "11000"
},
"line_items": [
{
Expand Down Expand Up @@ -1402,7 +1409,8 @@
"earnings": "0",
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP"
"currency_code": "GBP",
"grand_total_tax": "11000"
}
},
"payments": [],
Expand Down Expand Up @@ -1609,7 +1617,8 @@
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "11000"
},
"line_items": [
{
Expand Down Expand Up @@ -1713,7 +1722,8 @@
"earnings": "0",
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP"
"currency_code": "GBP",
"grand_total_tax": "11000"
}
},
"payments": [],
Expand Down Expand Up @@ -1980,7 +1990,8 @@
"subtotal": "59900",
"grand_total": "63494",
"currency_code": "USD",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "3594"
},
"line_items": [
{
Expand Down Expand Up @@ -2100,7 +2111,8 @@
"earnings": "0",
"subtotal": "59900",
"grand_total": "63494",
"currency_code": "USD"
"currency_code": "USD",
"grand_total_tax": "3594"
}
},
"payments": [],
Expand Down Expand Up @@ -2307,7 +2319,8 @@
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "11000"
},
"line_items": [
{
Expand Down Expand Up @@ -2405,7 +2418,8 @@
"grand_total": "81066",
"currency_code": "USD",
"exchange_rate": "1.2282731999999998",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "13511"
},
"tax_rates_used": [
{
Expand All @@ -2425,7 +2439,8 @@
"earnings": "51660",
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP"
"currency_code": "GBP",
"grand_total_tax": "11000"
}
},
"payments": [
Expand Down Expand Up @@ -2653,7 +2668,8 @@
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "11000"
},
"line_items": [
{
Expand Down Expand Up @@ -2751,7 +2767,8 @@
"grand_total": "81066",
"currency_code": "USD",
"exchange_rate": "1.2282731999999998",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "13511"
},
"tax_rates_used": [
{
Expand All @@ -2771,7 +2788,8 @@
"earnings": "51660",
"subtotal": "55000",
"grand_total": "66000",
"currency_code": "GBP"
"currency_code": "GBP",
"grand_total_tax": "11000"
}
},
"payments": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@
"earnings": null,
"subtotal": "59900",
"grand_total": "71880",
"currency_code": "USD"
"currency_code": "USD",
"grand_total_tax": "11980"
},
"line_items": [
{
Expand Down Expand Up @@ -588,7 +589,8 @@
"subtotal": "59900",
"grand_total": "65215",
"currency_code": "USD",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "5315"
},
"line_items": [
{
Expand Down Expand Up @@ -710,7 +712,8 @@
"subtotal": "59900",
"grand_total": "65215",
"currency_code": "USD",
"credit_to_balance": "0"
"credit_to_balance": "0",
"grand_total_tax": "5315"
},
"tax_rates_used": [
{
Expand All @@ -730,7 +733,8 @@
"earnings": "56589",
"subtotal": "59900",
"grand_total": "65215",
"currency_code": "USD"
"currency_code": "USD",
"grand_total_tax": "5315"
}
},
"checkout": {
Expand Down
Loading