Skip to content

Commit a79a479

Browse files
feat: Add support for payout reconciliation reports, remittance_reference and location value for price.tax_mode (#128)
* feat: Add support for payout reconciliation reports and remittance_reference * fix: Fixed ReportsClient.create operation type * feat: Added location value for price.tax_mode
1 parent 37173b8 commit a79a479

File tree

21 files changed

+165
-2
lines changed

21 files changed

+165
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
Check our main [developer changelog](https://developer.paddle.com/?utm_source=dx&utm_medium=paddle-python-sdk) for information about changes to the Paddle Billing platform, the Paddle API, and other developer tools.
88

9+
## [Unreleased]
10+
11+
### Added
12+
13+
- Support for payout reconciliation reports and `remittance_reference`, see [changelog](https://developer.paddle.com/changelog/2025/payout-reconciliation-report?utm_source=dx&utm_medium=paddle-python-sdk)
14+
- Added `location` value for `price.tax_mode`, see [changelog](https://developer.paddle.com/changelog/2025/default-automatic-tax-setting?utm_source=dx&utm_medium=paddle-python-sdk)
15+
16+
### Fixed
17+
- Fixed `ReportsClient.create()` operation type
18+
919
## 1.11.0 - 2025-10-07
1020

1121
### Added
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from paddle_billing.PaddleStrEnum import PaddleStrEnum, PaddleStrEnumMeta
2+
3+
from paddle_billing.Entities.Reports.ReportType import ReportType
4+
5+
6+
class PayoutReconciliationReportType(PaddleStrEnum, metaclass=PaddleStrEnumMeta):
7+
PayoutReconciliation: "PayoutReconciliationReportType" = ReportType.PayoutReconciliation.value

paddle_billing/Entities/Reports/ReportFilterName.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class ReportFilterName(PaddleStrEnum, metaclass=PaddleStrEnumMeta):
1212
ProductStatus: "ReportFilterName" = "product_status"
1313
ProductType: "ReportFilterName" = "product_type"
1414
ProductUpdatedAt: "ReportFilterName" = "product_updated_at"
15+
RemittanceReference: "ReportFilterName" = "remittance_reference"
1516
Status: "ReportFilterName" = "status"
17+
TransactionUpdatedAt: "ReportFilterName" = "transaction_updated_at"
1618
Type: "ReportFilterName" = "type"
1719
UpdatedAt: "ReportFilterName" = "updated_at"

paddle_billing/Entities/Reports/ReportType.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ class ReportType(PaddleStrEnum, metaclass=PaddleStrEnumMeta):
99
Transactions: "ReportType" = "transactions"
1010
TransactionLineItems: "ReportType" = "transaction_line_items"
1111
Balance: "ReportType" = "balance"
12+
PayoutReconciliation: "ReportType" = "payout_reconciliation"

paddle_billing/Entities/Reports/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from paddle_billing.Entities.Reports.AdjustmentsReportType import AdjustmentsReportType
22
from paddle_billing.Entities.Reports.BalanceReportType import BalanceReportType
33
from paddle_billing.Entities.Reports.DiscountsReportType import DiscountsReportType
4+
from paddle_billing.Entities.Reports.PayoutReconciliationReportType import PayoutReconciliationReportType
45
from paddle_billing.Entities.Reports.ProductsPricesReportType import ProductsPricesReportType
56
from paddle_billing.Entities.Reports.ReportFilter import ReportFilter
67
from paddle_billing.Entities.Reports.ReportFilterName import ReportFilterName

paddle_billing/Entities/Shared/TaxMode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ class TaxMode(PaddleStrEnum, metaclass=PaddleStrEnumMeta):
55
AccountSetting: "TaxMode" = "account_setting"
66
External: "TaxMode" = "external"
77
Internal: "TaxMode" = "internal"
8+
Location: "TaxMode" = "location"

paddle_billing/Notifications/Entities/Payout.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Payout(Entity):
1313
currency_code: CurrencyCodePayouts
1414
id: str
1515
status: PayoutStatus
16+
remittance_reference: str | None
1617

1718
@staticmethod
1819
def from_dict(data: dict[str, Any]) -> Payout:
@@ -21,4 +22,5 @@ def from_dict(data: dict[str, Any]) -> Payout:
2122
id=data["id"],
2223
status=PayoutStatus(data["status"]),
2324
currency_code=CurrencyCodePayouts(data["currency_code"]),
25+
remittance_reference=data.get("remittance_reference"),
2426
)

paddle_billing/Notifications/Entities/Reports/ReportFilterName.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class ReportFilterName(PaddleStrEnum, metaclass=PaddleStrEnumMeta):
1212
ProductStatus: "ReportFilterName" = "product_status"
1313
ProductType: "ReportFilterName" = "product_type"
1414
ProductUpdatedAt: "ReportFilterName" = "product_updated_at"
15+
RemittanceReference: "ReportFilterName" = "remittance_reference"
1516
Status: "ReportFilterName" = "status"
17+
TransactionUpdatedAt: "ReportFilterName" = "transaction_updated_at"
1618
Type: "ReportFilterName" = "type"
1719
UpdatedAt: "ReportFilterName" = "updated_at"

paddle_billing/Notifications/Entities/Reports/ReportType.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ class ReportType(PaddleStrEnum, metaclass=PaddleStrEnumMeta):
99
Transactions: "ReportType" = "transactions"
1010
TransactionLineItems: "ReportType" = "transaction_line_items"
1111
Balance: "ReportType" = "balance"
12+
PayoutReconciliation: "ReportType" = "payout_reconciliation"

paddle_billing/Notifications/Entities/Shared/TaxMode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ class TaxMode(PaddleStrEnum, metaclass=PaddleStrEnumMeta):
55
AccountSetting: "TaxMode" = "account_setting"
66
External: "TaxMode" = "external"
77
Internal: "TaxMode" = "internal"
8+
Location: "TaxMode" = "location"

0 commit comments

Comments
 (0)