|
102 | 102 | - (nullable id)objectForKeyedSubscript:(nonnull NSString *const)key; |
103 | 103 | - (void)setObject:(nonnull id)obj forKeyedSubscript:(nonnull NSString *)key; |
104 | 104 |
|
105 | | -#pragma mark Deprecated and/or Unavailable |
106 | | -/** |
107 | | - An entity with which the transaction should be affiliated (e.g. a particular store). If nil, mParticle will use an empty string |
108 | | - @deprecated use MPTransactionAttributes.affiliation instead |
109 | | - */ |
110 | | -@property (nonatomic, strong, nullable) NSString *affiliation __attribute__((deprecated("use MPTransactionAttributes.affiliation instead"))); |
111 | | - |
112 | | -/** |
113 | | - The currency of a transaction. If not specified, mParticle will use "USD" |
114 | | - @deprecated use MPCommerceEvent.currency instead |
115 | | - */ |
116 | | -@property (nonatomic, strong, nullable) NSString *currency __attribute__((deprecated("use MPCommerceEvent.currency instead"))); |
117 | | - |
118 | | -/** |
119 | | - A unique ID representing the transaction. This ID should not collide with other transaction IDs. If not specified, mParticle will generate a random id with 20 characters |
120 | | - @deprecated use MPTransactionAttributes.transactionId instead |
121 | | - */ |
122 | | -@property (nonatomic, strong, nullable) NSString *transactionId __attribute__((deprecated("use MPTransactionAttributes.transactionId instead"))); |
123 | | - |
124 | | -/** |
125 | | - @deprecated use MPTransactionAttributes.revenue instead |
126 | | - */ |
127 | | -@property (nonatomic, readwrite) double revenueAmount __attribute__((unavailable("use MPTransactionAttributes.revenue instead"))); |
128 | | - |
129 | | -/** |
130 | | - The total cost of shipping for a transaction. If free or non-applicable use 0. Default value is zero |
131 | | - @deprecated use MPTransactionAttributes.shipping instead |
132 | | - */ |
133 | | -@property (nonatomic, readwrite) double shippingAmount __attribute__((deprecated("use MPTransactionAttributes.shipping instead"))); |
134 | | - |
135 | | -/** |
136 | | - The total tax for a transaction. If free or non-applicable use 0. Default value is zero |
137 | | - @deprecated use MPTransactionAttributes.tax instead |
138 | | - */ |
139 | | -@property (nonatomic, readwrite) double taxAmount __attribute__((deprecated("use MPTransactionAttributes.tax instead"))); |
140 | | - |
141 | | -/** |
142 | | - The total value of a transaction, including tax and shipping. If free or non-applicable use 0. Default value is zero |
143 | | - @deprecated use MPTransactionAttributes.revenue instead |
144 | | - */ |
145 | | -@property (nonatomic, readwrite) double totalAmount __attribute__((deprecated("use MPTransactionAttributes.revenue instead"))); |
146 | | - |
147 | | -/** |
148 | | - The price of a product. If product is free or price is non-applicable use 0. Default value is zero |
149 | | - @deprecated use the price property instead |
150 | | - */ |
151 | | -@property (nonatomic, readwrite) double unitPrice __attribute__((deprecated("use the price property instead"))); |
152 | | - |
153 | | -/** |
154 | | - @deprecated use initWithName:sku:quantity:price: instead |
155 | | - */ |
156 | | -- (nonnull instancetype)initWithName:(nonnull NSString *)name category:(nullable NSString *)category quantity:(NSInteger)quantity totalAmount:(double)totalAmount __attribute__((unavailable("use initWithName:sku:quantity:price: instead"))); |
157 | | - |
158 | | -/** |
159 | | - @deprecated use initWithName:sku:quantity:price: instead |
160 | | - */ |
161 | | -- (nonnull instancetype)initWithName:(nonnull NSString *)name category:(nullable NSString *)category quantity:(NSInteger)quantity revenueAmount:(double)revenueAmount __attribute__((unavailable("use initWithName:sku:quantity:price: instead"))); |
162 | | - |
163 | 105 | @end |
164 | 106 |
|
165 | 107 | // Internal |
|
0 commit comments