-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathConsumptionRequest.py
More file actions
102 lines (74 loc) · 3.6 KB
/
ConsumptionRequest.py
File metadata and controls
102 lines (74 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Copyright (c) 2023 Apple Inc. Licensed under MIT License.
from typing import Optional
from attr import define
import attr
from pydantic import Field
from .AccountTenure import AccountTenure
from .Base import Model
from .ConsumptionStatus import ConsumptionStatus
from .DeliveryStatus import DeliveryStatus
from .LifetimeDollarsPurchased import LifetimeDollarsPurchased
from .LifetimeDollarsRefunded import LifetimeDollarsRefunded
from .Platform import Platform
from .PlayTime import PlayTime
from .UserStatus import UserStatus
class ConsumptionRequest(Model):
"""
The request body containing consumption information.
https://developer.apple.com/documentation/appstoreserverapi/consumptionrequest
"""
customerConsented: Optional[bool] = Field(default=None)
"""
A Boolean value that indicates whether the customer consented to provide consumption data to the App Store.
https://developer.apple.com/documentation/appstoreserverapi/customerconsented
"""
consumptionStatus: Optional[ConsumptionStatus] = Field(default=None)
"""
A value that indicates the extent to which the customer consumed the in-app purchase.
https://developer.apple.com/documentation/appstoreserverapi/consumptionstatus
"""
platform: Optional[Platform] = Field(default=None)
"""
A value that indicates the platform on which the customer consumed the in-app purchase.
https://developer.apple.com/documentation/appstoreserverapi/platform
"""
sampleContentProvided: Optional[bool] = Field(default=None)
"""
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.
https://developer.apple.com/documentation/appstoreserverapi/samplecontentprovided
"""
deliveryStatus: Optional[DeliveryStatus] = Field(default=None)
"""
A value that indicates whether the app successfully delivered an in-app purchase that works properly.
https://developer.apple.com/documentation/appstoreserverapi/deliverystatus
"""
appAccountToken: Optional[str] = Field(default=None)
"""
The UUID that an app optionally generates to map a customer's in-app purchase with its resulting App Store transaction.
https://developer.apple.com/documentation/appstoreserverapi/appaccounttoken
"""
accountTenure: Optional[AccountTenure] = Field(default=None)
"""
The age of the customer's account.
https://developer.apple.com/documentation/appstoreserverapi/accounttenure
"""
playTime: Optional[PlayTime] = Field(default=None)
"""
A value that indicates the amount of time that the customer used the app.
https://developer.apple.com/documentation/appstoreserverapi/consumptionrequest
"""
lifetimeDollarsRefunded: Optional[LifetimeDollarsRefunded] = Field(default=None)
"""
A value that indicates the total amount, in USD, of refunds the customer has received, in your app, across all platforms.
https://developer.apple.com/documentation/appstoreserverapi/lifetimedollarsrefunded
"""
lifetimeDollarsPurchased: Optional[LifetimeDollarsPurchased] = Field(default=None)
"""
A value that indicates the total amount, in USD, of in-app purchases the customer has made in your app, across all platforms.
https://developer.apple.com/documentation/appstoreserverapi/lifetimedollarspurchased
"""
userStatus: Optional[UserStatus] = Field(default=None)
"""
The status of the customer's account.
https://developer.apple.com/documentation/appstoreserverapi/userstatus
"""