Skip to content

Commit 79c1c5c

Browse files
authored
Add support for new report type (#46)
1 parent f5c6ef0 commit 79c1c5c

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

src/Entities/Report/ReportFilterName.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@
1818
* @method static ReportFilterName CollectionMode()
1919
* @method static ReportFilterName CurrencyCode()
2020
* @method static ReportFilterName Origin()
21+
* @method static ReportFilterName PriceStatus()
22+
* @method static ReportFilterName PriceType()
23+
* @method static ReportFilterName PriceUpdatedAt()
24+
* @method static ReportFilterName ProductStatus()
25+
* @method static ReportFilterName ProductType()
26+
* @method static ReportFilterName ProductUpdatedAt()
2127
* @method static ReportFilterName Status()
28+
* @method static ReportFilterName Type()
2229
* @method static ReportFilterName UpdatedAt()
2330
*/
2431
final class ReportFilterName extends PaddleEnum
@@ -27,6 +34,13 @@ final class ReportFilterName extends PaddleEnum
2734
private const CollectionMode = 'collection_mode';
2835
private const CurrencyCode = 'currency_code';
2936
private const Origin = 'origin';
37+
private const PriceStatus = 'price_status';
38+
private const PriceType = 'price_type';
39+
private const PriceUpdatedAt = 'price_updated_at';
40+
private const ProductStatus = 'product_status';
41+
private const ProductType = 'product_type';
42+
private const ProductUpdatedAt = 'product_updated_at';
3043
private const Status = 'status';
44+
private const Type = 'type';
3145
private const UpdatedAt = 'updated_at';
3246
}

src/Entities/Report/ReportType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@
1616
/**
1717
* @method static ReportType Adjustments()
1818
* @method static ReportType AdjustmentLineItems()
19+
* @method static ReportType Discounts()
20+
* @method static ReportType ProductsPrices()
1921
* @method static ReportType Transactions()
2022
* @method static ReportType TransactionLineItems()
2123
*/
2224
final class ReportType extends PaddleEnum
2325
{
2426
private const Adjustments = 'adjustments';
2527
private const AdjustmentLineItems = 'adjustment_line_items';
28+
private const Discounts = 'discounts';
29+
private const ProductsPrices = 'products_prices';
2630
private const Transactions = 'transactions';
2731
private const TransactionLineItems = 'transaction_line_items';
2832
}

src/Notifications/Entities/Report/ReportFilterName.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@
1818
* @method static ReportFilterName CollectionMode()
1919
* @method static ReportFilterName CurrencyCode()
2020
* @method static ReportFilterName Origin()
21+
* @method static ReportFilterName PriceStatus()
22+
* @method static ReportFilterName PriceType()
23+
* @method static ReportFilterName PriceUpdatedAt()
24+
* @method static ReportFilterName ProductStatus()
25+
* @method static ReportFilterName ProductType()
26+
* @method static ReportFilterName ProductUpdatedAt()
2127
* @method static ReportFilterName Status()
28+
* @method static ReportFilterName Type()
2229
* @method static ReportFilterName UpdatedAt()
2330
*/
2431
final class ReportFilterName extends PaddleEnum
@@ -27,6 +34,13 @@ final class ReportFilterName extends PaddleEnum
2734
private const CollectionMode = 'collection_mode';
2835
private const CurrencyCode = 'currency_code';
2936
private const Origin = 'origin';
37+
private const PriceStatus = 'price_status';
38+
private const PriceType = 'price_type';
39+
private const PriceUpdatedAt = 'price_updated_at';
40+
private const ProductStatus = 'product_status';
41+
private const ProductType = 'product_type';
42+
private const ProductUpdatedAt = 'product_updated_at';
3043
private const Status = 'status';
44+
private const Type = 'type';
3145
private const UpdatedAt = 'updated_at';
3246
}

src/Notifications/Entities/Report/ReportType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@
1616
/**
1717
* @method static ReportType Adjustments()
1818
* @method static ReportType AdjustmentLineItems()
19+
* @method static ReportType Discounts()
20+
* @method static ReportType ProductsPrices()
1921
* @method static ReportType Transactions()
2022
* @method static ReportType TransactionLineItems()
2123
*/
2224
final class ReportType extends PaddleEnum
2325
{
2426
private const Adjustments = 'adjustments';
2527
private const AdjustmentLineItems = 'adjustment_line_items';
28+
private const Discounts = 'discounts';
29+
private const ProductsPrices = 'products_prices';
2630
private const Transactions = 'transactions';
2731
private const TransactionLineItems = 'transaction_line_items';
2832
}

0 commit comments

Comments
 (0)