Skip to content

Commit 95e935c

Browse files
committed
Make all
1 parent 411c061 commit 95e935c

21 files changed

+2227
-267
lines changed

api/classes/CdvPurchase.AppleAppStore.SKTransaction.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ StoreKit transaction
2626
- [products](CdvPurchase.AppleAppStore.SKTransaction.md#products)
2727
- [purchaseDate](CdvPurchase.AppleAppStore.SKTransaction.md#purchasedate)
2828
- [purchaseId](CdvPurchase.AppleAppStore.SKTransaction.md#purchaseid)
29+
- [quantity](CdvPurchase.AppleAppStore.SKTransaction.md#quantity)
2930
- [renewalIntent](CdvPurchase.AppleAppStore.SKTransaction.md#renewalintent)
3031
- [renewalIntentChangeDate](CdvPurchase.AppleAppStore.SKTransaction.md#renewalintentchangedate)
3132
- [state](CdvPurchase.AppleAppStore.SKTransaction.md#state)
@@ -184,6 +185,24 @@ Identifier for the purchase this transaction is a part of.
184185

185186
___
186187

188+
### quantity
189+
190+
`Optional` **quantity**: `number`
191+
192+
Quantity of items purchased in a single transaction.
193+
194+
For consumable products, this value represents the number of items purchased.
195+
For non-consumable products and subscriptions, this value is always 1.
196+
197+
This is only supported on Android (Google Play) platform when using the multi-quantity purchase feature.
198+
On other platforms, the quantity is always 1.
199+
200+
#### Inherited from
201+
202+
[Transaction](CdvPurchase.Transaction.md).[quantity](CdvPurchase.Transaction.md#quantity)
203+
204+
___
205+
187206
### renewalIntent
188207

189208
`Optional` **renewalIntent**: [`RenewalIntent`](../enums/CdvPurchase.RenewalIntent.md)

api/classes/CdvPurchase.GooglePlay.Adapter.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Adapter for a payment or in-app purchase platform
1818

1919
- [autoRefreshIntervalMillis](CdvPurchase.GooglePlay.Adapter.md#autorefreshintervalmillis)
2020
- [bridge](CdvPurchase.GooglePlay.Adapter.md#bridge)
21+
- [canSkipFinish](CdvPurchase.GooglePlay.Adapter.md#canskipfinish)
2122
- [id](CdvPurchase.GooglePlay.Adapter.md#id)
2223
- [initialized](CdvPurchase.GooglePlay.Adapter.md#initialized)
2324
- [name](CdvPurchase.GooglePlay.Adapter.md#name)
@@ -88,6 +89,21 @@ The GooglePlay bridge
8889

8990
___
9091

92+
### canSkipFinish
93+
94+
**canSkipFinish**: `boolean` = `true`
95+
96+
Returns true if the adapter can skip the native finish method for a transaction.
97+
98+
Some platforms (e.g. Apple AppStore) require explicit acknowledgement of a purchase so it can be removed from
99+
the queue of pending transactions, regardless of whether the transaction is acknowledged or consumed already.
100+
101+
#### Implementation of
102+
103+
[Adapter](../interfaces/CdvPurchase.Adapter.md).[canSkipFinish](../interfaces/CdvPurchase.Adapter.md#canskipfinish)
104+
105+
___
106+
91107
### id
92108

93109
**id**: [`Platform`](../enums/CdvPurchase.Platform.md) = `Platform.GOOGLE_PLAY`
@@ -468,7 +484,10 @@ ___
468484

469485
**onPurchasesUpdated**(`purchases`): `void`
470486

471-
Called when the platform reports update for some purchases
487+
Called when the platform reports updates for some purchases
488+
489+
Notice that purchases can be removed from the array, we should handle that so they stop
490+
being "owned" by the user.
472491

473492
#### Parameters
474493

api/classes/CdvPurchase.GooglePlay.Receipt.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
- [hasTransaction](CdvPurchase.GooglePlay.Receipt.md#hastransaction)
2424
- [lastTransaction](CdvPurchase.GooglePlay.Receipt.md#lasttransaction)
2525
- [refreshPurchase](CdvPurchase.GooglePlay.Receipt.md#refreshpurchase)
26+
- [removed](CdvPurchase.GooglePlay.Receipt.md#removed)
2627
- [verify](CdvPurchase.GooglePlay.Receipt.md#verify)
2728

2829
## Properties
@@ -139,6 +140,16 @@ Refresh the content of the purchase based on the native BridgePurchase
139140

140141
___
141142

143+
### removed
144+
145+
**removed**(): `void`
146+
147+
#### Returns
148+
149+
`void`
150+
151+
___
152+
142153
### verify
143154

144155
**verify**(): `Promise`\<`void`\>

api/classes/CdvPurchase.GooglePlay.Transaction.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Transaction as reported by the device
3535
- [products](CdvPurchase.GooglePlay.Transaction.md#products)
3636
- [purchaseDate](CdvPurchase.GooglePlay.Transaction.md#purchasedate)
3737
- [purchaseId](CdvPurchase.GooglePlay.Transaction.md#purchaseid)
38+
- [quantity](CdvPurchase.GooglePlay.Transaction.md#quantity)
3839
- [renewalIntent](CdvPurchase.GooglePlay.Transaction.md#renewalintent)
3940
- [renewalIntentChangeDate](CdvPurchase.GooglePlay.Transaction.md#renewalintentchangedate)
4041
- [state](CdvPurchase.GooglePlay.Transaction.md#state)
@@ -48,6 +49,7 @@ Transaction as reported by the device
4849

4950
- [finish](CdvPurchase.GooglePlay.Transaction.md#finish)
5051
- [refresh](CdvPurchase.GooglePlay.Transaction.md#refresh)
52+
- [removed](CdvPurchase.GooglePlay.Transaction.md#removed)
5153
- [verify](CdvPurchase.GooglePlay.Transaction.md#verify)
5254
- [toState](CdvPurchase.GooglePlay.Transaction.md#tostate)
5355

@@ -216,6 +218,24 @@ Identifier for the purchase this transaction is a part of.
216218

217219
___
218220

221+
### quantity
222+
223+
`Optional` **quantity**: `number`
224+
225+
Quantity of items purchased in a single transaction.
226+
227+
For consumable products, this value represents the number of items purchased.
228+
For non-consumable products and subscriptions, this value is always 1.
229+
230+
This is only supported on Android (Google Play) platform when using the multi-quantity purchase feature.
231+
On other platforms, the quantity is always 1.
232+
233+
#### Inherited from
234+
235+
[Transaction](CdvPurchase.Transaction.md).[quantity](CdvPurchase.Transaction.md#quantity)
236+
237+
___
238+
219239
### renewalIntent
220240

221241
`Optional` **renewalIntent**: [`RenewalIntent`](../enums/CdvPurchase.RenewalIntent.md)
@@ -327,6 +347,16 @@ Refresh the value in the transaction based on the native purchase update
327347

328348
___
329349

350+
### removed
351+
352+
**removed**(): `void`
353+
354+
#### Returns
355+
356+
`void`
357+
358+
___
359+
330360
### verify
331361

332362
**verify**(): `Promise`\<`void`\>

0 commit comments

Comments
 (0)