11# Copyright (c) 2023 Apple Inc. Licensed under MIT License.
2+ from typing import Optional
23
34from attr import define
45import attr
@@ -20,77 +21,77 @@ class ConsumptionRequest:
2021 https://developer.apple.com/documentation/appstoreserverapi/consumptionrequest
2122 """
2223
23- customerConsented : bool = attr .ib (default = None )
24+ customerConsented : Optional [ bool ] = attr .ib (default = None )
2425 """
2526 A Boolean value that indicates whether the customer consented to provide consumption data to the App Store.
2627
2728 https://developer.apple.com/documentation/appstoreserverapi/customerconsented
2829 """
2930
30- consumptionStatus : ConsumptionStatus = attr .ib (default = None )
31+ consumptionStatus : Optional [ ConsumptionStatus ] = attr .ib (default = None )
3132 """
3233 A value that indicates the extent to which the customer consumed the in-app purchase.
3334
3435 https://developer.apple.com/documentation/appstoreserverapi/consumptionstatus
3536 """
3637
37- platform : Platform = attr .ib (default = None )
38+ platform : Optional [ Platform ] = attr .ib (default = None )
3839 """
3940 A value that indicates the platform on which the customer consumed the in-app purchase.
4041
4142 https://developer.apple.com/documentation/appstoreserverapi/platform
4243 """
4344
44- sampleContentProvided : bool = attr .ib (default = None )
45+ sampleContentProvided : Optional [ bool ] = attr .ib (default = None )
4546 """
4647 A Boolean value that indicates whether you provided, prior to its purchase, a free sample or trial of the content, or information about its functionality.
4748
4849 https://developer.apple.com/documentation/appstoreserverapi/samplecontentprovided
4950 """
5051
51- deliveryStatus : DeliveryStatus = attr .ib (default = None )
52+ deliveryStatus : Optional [ DeliveryStatus ] = attr .ib (default = None )
5253 """
5354 A value that indicates whether the app successfully delivered an in-app purchase that works properly.
5455
5556 https://developer.apple.com/documentation/appstoreserverapi/deliverystatus
5657 """
5758
58- appAccountToken : str = attr .ib (default = None )
59+ appAccountToken : Optional [ str ] = attr .ib (default = None )
5960 """
6061 The UUID that an app optionally generates to map a customer's in-app purchase with its resulting App Store transaction.
6162
6263 https://developer.apple.com/documentation/appstoreserverapi/appaccounttoken
6364 """
6465
65- accountTenure : AccountTenure = attr .ib (default = None )
66+ accountTenure : Optional [ AccountTenure ] = attr .ib (default = None )
6667 """
6768 The age of the customer's account.
6869
6970 https://developer.apple.com/documentation/appstoreserverapi/accounttenure
7071 """
7172
72- playTime : PlayTime = attr .ib (default = None )
73+ playTime : Optional [ PlayTime ] = attr .ib (default = None )
7374 """
7475 A value that indicates the amount of time that the customer used the app.
7576
7677 https://developer.apple.com/documentation/appstoreserverapi/consumptionrequest
7778 """
7879
79- lifetimeDollarsRefunded : LifetimeDollarsRefunded = attr .ib (default = None )
80+ lifetimeDollarsRefunded : Optional [ LifetimeDollarsRefunded ] = attr .ib (default = None )
8081 """
8182 A value that indicates the total amount, in USD, of refunds the customer has received, in your app, across all platforms.
8283
8384 https://developer.apple.com/documentation/appstoreserverapi/lifetimedollarsrefunded
8485 """
8586
86- lifetimeDollarsPurchased : LifetimeDollarsPurchased = attr .ib (default = None )
87+ lifetimeDollarsPurchased : Optional [ LifetimeDollarsPurchased ] = attr .ib (default = None )
8788 """
8889 A value that indicates the total amount, in USD, of in-app purchases the customer has made in your app, across all platforms.
8990
9091 https://developer.apple.com/documentation/appstoreserverapi/lifetimedollarspurchased
9192 """
9293
93- userStatus : UserStatus = attr .ib (default = None )
94+ userStatus : Optional [ UserStatus ] = attr .ib (default = None )
9495 """
9596 The status of the customer's account.
9697
0 commit comments