@whop/elements 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/payments.d.cts +5 -1
- package/payments.d.ts +5 -1
package/package.json
CHANGED
package/payments.d.cts
CHANGED
|
@@ -1371,6 +1371,10 @@ export interface PromoCodeUpdate {
|
|
|
1371
1371
|
* The total under the code, in minor units.
|
|
1372
1372
|
*/
|
|
1373
1373
|
amount?: number | undefined;
|
|
1374
|
+
/**
|
|
1375
|
+
* The sheet's line items under the code, such as the discount and the tax it changes.
|
|
1376
|
+
*/
|
|
1377
|
+
lineItems?: PaymentRequestLineItem[] | undefined;
|
|
1374
1378
|
/**
|
|
1375
1379
|
* A caption for the applied code, where the sheet captions codes (Google Pay).
|
|
1376
1380
|
*/
|
|
@@ -1390,7 +1394,7 @@ export interface PromoCodeChangeEvent {
|
|
|
1390
1394
|
*/
|
|
1391
1395
|
code: string | null;
|
|
1392
1396
|
/**
|
|
1393
|
-
* Answer exactly once: `error` refuses the code and keeps the totals, and any other answer applies it. `amount`
|
|
1397
|
+
* Answer exactly once: `error` refuses the code and keeps the totals, and any other answer applies it. `amount` and `lineItems` reprice the sheet under the code, and `appliedDescription` captions the applied code where the sheet shows one (Google Pay). `updateWith({})` applies the code at the current total.
|
|
1394
1398
|
*/
|
|
1395
1399
|
updateWith: (update: PromoCodeUpdate) => void;
|
|
1396
1400
|
}
|
package/payments.d.ts
CHANGED
|
@@ -1371,6 +1371,10 @@ export interface PromoCodeUpdate {
|
|
|
1371
1371
|
* The total under the code, in minor units.
|
|
1372
1372
|
*/
|
|
1373
1373
|
amount?: number | undefined;
|
|
1374
|
+
/**
|
|
1375
|
+
* The sheet's line items under the code, such as the discount and the tax it changes.
|
|
1376
|
+
*/
|
|
1377
|
+
lineItems?: PaymentRequestLineItem[] | undefined;
|
|
1374
1378
|
/**
|
|
1375
1379
|
* A caption for the applied code, where the sheet captions codes (Google Pay).
|
|
1376
1380
|
*/
|
|
@@ -1390,7 +1394,7 @@ export interface PromoCodeChangeEvent {
|
|
|
1390
1394
|
*/
|
|
1391
1395
|
code: string | null;
|
|
1392
1396
|
/**
|
|
1393
|
-
* Answer exactly once: `error` refuses the code and keeps the totals, and any other answer applies it. `amount`
|
|
1397
|
+
* Answer exactly once: `error` refuses the code and keeps the totals, and any other answer applies it. `amount` and `lineItems` reprice the sheet under the code, and `appliedDescription` captions the applied code where the sheet shows one (Google Pay). `updateWith({})` applies the code at the current total.
|
|
1394
1398
|
*/
|
|
1395
1399
|
updateWith: (update: PromoCodeUpdate) => void;
|
|
1396
1400
|
}
|