@fire-spark/types 0.17.2 → 0.18.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/dist/index.d.ts +49 -27
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ type OrderLine = {
|
|
|
55
55
|
redeem: {
|
|
56
56
|
reward_id: string;
|
|
57
57
|
quantity: number;
|
|
58
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
58
59
|
before_taxes?: boolean | undefined;
|
|
59
60
|
expires_at?: string | undefined;
|
|
60
61
|
payment_id: string;
|
|
@@ -81,14 +82,16 @@ type OrderLine = {
|
|
|
81
82
|
group_total: number;
|
|
82
83
|
};
|
|
83
84
|
/**
|
|
84
|
-
* Redeem applied to an order or a root line
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* `
|
|
85
|
+
* Redeem applied to an order or a root line. `payment_id` is required.
|
|
86
|
+
* For POINTS and DISCOUNT, `amount` > 0 is the discount, paid by the
|
|
87
|
+
* REDEMPTION tender of `payment_id`; line and order totals stay full.
|
|
88
|
+
* PRODUCT (`type`) links a root line, keeps the cart price, and is not a
|
|
89
|
+
* discount: `amount` is 0 and no tender money is added.
|
|
88
90
|
*/
|
|
89
91
|
type OrderRedeem = {
|
|
90
92
|
reward_id: string;
|
|
91
93
|
quantity: number;
|
|
94
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
92
95
|
before_taxes?: boolean | undefined;
|
|
93
96
|
expires_at?: string | undefined;
|
|
94
97
|
payment_id: string;
|
|
@@ -98,6 +101,7 @@ type OrderRedeem = {
|
|
|
98
101
|
type OrderRedeemInput = {
|
|
99
102
|
reward_id: string;
|
|
100
103
|
quantity?: number | undefined;
|
|
104
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
101
105
|
before_taxes?: boolean | undefined;
|
|
102
106
|
expires_at?: string | undefined;
|
|
103
107
|
payment_id: string;
|
|
@@ -111,13 +115,15 @@ type OrderRedemptionState = {
|
|
|
111
115
|
discount_rate: number;
|
|
112
116
|
};
|
|
113
117
|
/**
|
|
114
|
-
* One applied redeem, in application order.
|
|
115
|
-
* capped
|
|
118
|
+
* One applied redeem, in application order. For POINTS and DISCOUNT,
|
|
119
|
+
* `discount_amount` equals the capped `amount` its REDEMPTION tender pays.
|
|
120
|
+
* A PRODUCT step covers nothing (`discount_amount` 0, action READ).
|
|
116
121
|
*/
|
|
117
122
|
type OrderRedemptionStep = {
|
|
118
123
|
reward_id: string;
|
|
119
124
|
reward_quantity: number;
|
|
120
125
|
payment_id: string;
|
|
126
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
121
127
|
before_taxes: boolean;
|
|
122
128
|
target: "LINE" | "ORDER";
|
|
123
129
|
target_id?: string | undefined;
|
|
@@ -190,6 +196,7 @@ type Order = {
|
|
|
190
196
|
redeem: {
|
|
191
197
|
reward_id: string;
|
|
192
198
|
quantity: number;
|
|
199
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
193
200
|
before_taxes?: boolean | undefined;
|
|
194
201
|
expires_at?: string | undefined;
|
|
195
202
|
payment_id: string;
|
|
@@ -218,6 +225,7 @@ type Order = {
|
|
|
218
225
|
redeem: {
|
|
219
226
|
reward_id: string;
|
|
220
227
|
quantity: number;
|
|
228
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
221
229
|
before_taxes?: boolean | undefined;
|
|
222
230
|
expires_at?: string | undefined;
|
|
223
231
|
payment_id: string;
|
|
@@ -227,6 +235,7 @@ type Order = {
|
|
|
227
235
|
reward_id: string;
|
|
228
236
|
reward_quantity: number;
|
|
229
237
|
payment_id: string;
|
|
238
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
230
239
|
before_taxes: boolean;
|
|
231
240
|
target: "LINE" | "ORDER";
|
|
232
241
|
target_id?: string | undefined;
|
|
@@ -335,7 +344,7 @@ type Order = {
|
|
|
335
344
|
attempt_reference: string;
|
|
336
345
|
previous_attempt_references: string[];
|
|
337
346
|
method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET";
|
|
338
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
347
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
339
348
|
payment_id?: string | undefined;
|
|
340
349
|
collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
|
|
341
350
|
status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
@@ -474,7 +483,7 @@ type BillingInfo = {
|
|
|
474
483
|
/** Payment method enum on order payment intents. */
|
|
475
484
|
type PaymentMethod = "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET";
|
|
476
485
|
/** Payment provider enum on order payment intents. */
|
|
477
|
-
type PaymentProvider = "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
486
|
+
type PaymentProvider = "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
478
487
|
/** How an order is paid: one or more tenders (`orders.payment_intents[]`). */
|
|
479
488
|
type PaymentIntent = {
|
|
480
489
|
id: string;
|
|
@@ -509,7 +518,7 @@ type PaymentIntent = {
|
|
|
509
518
|
attempt_reference: string;
|
|
510
519
|
previous_attempt_references: string[];
|
|
511
520
|
method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET";
|
|
512
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
521
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
513
522
|
payment_id?: string | undefined;
|
|
514
523
|
collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
|
|
515
524
|
status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
@@ -633,7 +642,7 @@ type PaymentIntentInput = {
|
|
|
633
642
|
attempt_reference: string;
|
|
634
643
|
previous_attempt_references?: string[] | undefined;
|
|
635
644
|
method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET";
|
|
636
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
645
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
637
646
|
payment_id?: string | undefined;
|
|
638
647
|
collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
|
|
639
648
|
status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
@@ -733,7 +742,7 @@ type PaymentTender = {
|
|
|
733
742
|
attempt_reference: string;
|
|
734
743
|
previous_attempt_references: string[];
|
|
735
744
|
method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET";
|
|
736
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
745
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
737
746
|
payment_id?: string | undefined;
|
|
738
747
|
collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
|
|
739
748
|
status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
@@ -916,7 +925,7 @@ type PaymentTenderInput = {
|
|
|
916
925
|
id?: string | undefined;
|
|
917
926
|
attempt_reference?: string | undefined;
|
|
918
927
|
method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET";
|
|
919
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
928
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
920
929
|
payment_id?: string | undefined;
|
|
921
930
|
collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
|
|
922
931
|
allocation?: {
|
|
@@ -985,7 +994,7 @@ type PaymentIntentPutInput = {
|
|
|
985
994
|
id?: string | undefined;
|
|
986
995
|
attempt_reference?: string | undefined;
|
|
987
996
|
method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET";
|
|
988
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
997
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
989
998
|
payment_id?: string | undefined;
|
|
990
999
|
collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
|
|
991
1000
|
allocation?: {
|
|
@@ -1054,7 +1063,7 @@ type PaymentIntentPutInput = {
|
|
|
1054
1063
|
type TenderReplaceInput = {
|
|
1055
1064
|
method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET";
|
|
1056
1065
|
payment_id: string;
|
|
1057
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
1066
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
1058
1067
|
collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
|
|
1059
1068
|
};
|
|
1060
1069
|
/** `POST …/tenders/{tenderId}/void` body. */
|
|
@@ -1168,6 +1177,7 @@ type OrderInsertInput = {
|
|
|
1168
1177
|
redeem?: {
|
|
1169
1178
|
reward_id: string;
|
|
1170
1179
|
quantity?: number | undefined;
|
|
1180
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1171
1181
|
before_taxes?: boolean | undefined;
|
|
1172
1182
|
expires_at?: string | undefined;
|
|
1173
1183
|
payment_id: string;
|
|
@@ -1196,6 +1206,7 @@ type OrderInsertInput = {
|
|
|
1196
1206
|
redeem?: {
|
|
1197
1207
|
reward_id: string;
|
|
1198
1208
|
quantity?: number | undefined;
|
|
1209
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1199
1210
|
before_taxes?: boolean | undefined;
|
|
1200
1211
|
expires_at?: string | undefined;
|
|
1201
1212
|
payment_id: string;
|
|
@@ -1205,6 +1216,7 @@ type OrderInsertInput = {
|
|
|
1205
1216
|
reward_id: string;
|
|
1206
1217
|
reward_quantity: number;
|
|
1207
1218
|
payment_id: string;
|
|
1219
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1208
1220
|
before_taxes: boolean;
|
|
1209
1221
|
target: "LINE" | "ORDER";
|
|
1210
1222
|
target_id?: string | undefined;
|
|
@@ -1319,6 +1331,7 @@ type OrderUpdateInput = {
|
|
|
1319
1331
|
redeem?: {
|
|
1320
1332
|
reward_id: string;
|
|
1321
1333
|
quantity?: number | undefined;
|
|
1334
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1322
1335
|
before_taxes?: boolean | undefined;
|
|
1323
1336
|
expires_at?: string | undefined;
|
|
1324
1337
|
payment_id: string;
|
|
@@ -1347,6 +1360,7 @@ type OrderUpdateInput = {
|
|
|
1347
1360
|
redeem?: {
|
|
1348
1361
|
reward_id: string;
|
|
1349
1362
|
quantity?: number | undefined;
|
|
1363
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1350
1364
|
before_taxes?: boolean | undefined;
|
|
1351
1365
|
expires_at?: string | undefined;
|
|
1352
1366
|
payment_id: string;
|
|
@@ -1356,6 +1370,7 @@ type OrderUpdateInput = {
|
|
|
1356
1370
|
reward_id: string;
|
|
1357
1371
|
reward_quantity: number;
|
|
1358
1372
|
payment_id: string;
|
|
1373
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1359
1374
|
before_taxes: boolean;
|
|
1360
1375
|
target: "LINE" | "ORDER";
|
|
1361
1376
|
target_id?: string | undefined;
|
|
@@ -1456,6 +1471,7 @@ type OrderDeviceListResult = {
|
|
|
1456
1471
|
redeem: {
|
|
1457
1472
|
reward_id: string;
|
|
1458
1473
|
quantity: number;
|
|
1474
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1459
1475
|
before_taxes?: boolean | undefined;
|
|
1460
1476
|
expires_at?: string | undefined;
|
|
1461
1477
|
payment_id: string;
|
|
@@ -1484,6 +1500,7 @@ type OrderDeviceListResult = {
|
|
|
1484
1500
|
redeem: {
|
|
1485
1501
|
reward_id: string;
|
|
1486
1502
|
quantity: number;
|
|
1503
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1487
1504
|
before_taxes?: boolean | undefined;
|
|
1488
1505
|
expires_at?: string | undefined;
|
|
1489
1506
|
payment_id: string;
|
|
@@ -1493,6 +1510,7 @@ type OrderDeviceListResult = {
|
|
|
1493
1510
|
reward_id: string;
|
|
1494
1511
|
reward_quantity: number;
|
|
1495
1512
|
payment_id: string;
|
|
1513
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1496
1514
|
before_taxes: boolean;
|
|
1497
1515
|
target: "LINE" | "ORDER";
|
|
1498
1516
|
target_id?: string | undefined;
|
|
@@ -1601,7 +1619,7 @@ type OrderDeviceListResult = {
|
|
|
1601
1619
|
attempt_reference: string;
|
|
1602
1620
|
previous_attempt_references: string[];
|
|
1603
1621
|
method: "BANK_TRANSFER" | "CARD" | "CASH" | "FINANCING" | "PIN_PAD" | "REDEMPTION" | "WALLET";
|
|
1604
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
1622
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
1605
1623
|
payment_id?: string | undefined;
|
|
1606
1624
|
collect_at: "COUNTER" | "DEVICE" | "DOOR" | "KIOSK" | "OTHER";
|
|
1607
1625
|
status: "CANCELLED" | "FAILED" | "IDLE" | "PAID" | "PENDING" | "REFUNDED";
|
|
@@ -1776,6 +1794,7 @@ type OrderValidateInput = {
|
|
|
1776
1794
|
redeem?: {
|
|
1777
1795
|
reward_id: string;
|
|
1778
1796
|
quantity?: number | undefined;
|
|
1797
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1779
1798
|
before_taxes?: boolean | undefined;
|
|
1780
1799
|
expires_at?: string | undefined;
|
|
1781
1800
|
payment_id: string;
|
|
@@ -1804,6 +1823,7 @@ type OrderValidateInput = {
|
|
|
1804
1823
|
redeem?: {
|
|
1805
1824
|
reward_id: string;
|
|
1806
1825
|
quantity?: number | undefined;
|
|
1826
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1807
1827
|
before_taxes?: boolean | undefined;
|
|
1808
1828
|
expires_at?: string | undefined;
|
|
1809
1829
|
payment_id: string;
|
|
@@ -1813,6 +1833,7 @@ type OrderValidateInput = {
|
|
|
1813
1833
|
reward_id: string;
|
|
1814
1834
|
reward_quantity: number;
|
|
1815
1835
|
payment_id: string;
|
|
1836
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
1816
1837
|
before_taxes: boolean;
|
|
1817
1838
|
target: "LINE" | "ORDER";
|
|
1818
1839
|
target_id?: string | undefined;
|
|
@@ -2097,7 +2118,7 @@ type Customer = {
|
|
|
2097
2118
|
last4: string;
|
|
2098
2119
|
exp_month: number;
|
|
2099
2120
|
exp_year: number;
|
|
2100
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2121
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2101
2122
|
provider_payment_method_id: string;
|
|
2102
2123
|
preferred: boolean;
|
|
2103
2124
|
metadata: Record<string, unknown> | null;
|
|
@@ -2105,7 +2126,7 @@ type Customer = {
|
|
|
2105
2126
|
id: string;
|
|
2106
2127
|
type: "WALLET";
|
|
2107
2128
|
alias: string;
|
|
2108
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2129
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2109
2130
|
provider_payment_method_id: string;
|
|
2110
2131
|
account_hint?: string | undefined;
|
|
2111
2132
|
preferred: boolean;
|
|
@@ -2116,7 +2137,7 @@ type Customer = {
|
|
|
2116
2137
|
alias: string;
|
|
2117
2138
|
bank_name?: string | undefined;
|
|
2118
2139
|
last4: string;
|
|
2119
|
-
provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
|
|
2140
|
+
provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
|
|
2120
2141
|
provider_payment_method_id?: string | undefined;
|
|
2121
2142
|
preferred: boolean;
|
|
2122
2143
|
metadata: Record<string, unknown> | null;
|
|
@@ -2186,7 +2207,7 @@ type Payment = {
|
|
|
2186
2207
|
last4: string;
|
|
2187
2208
|
exp_month: number;
|
|
2188
2209
|
exp_year: number;
|
|
2189
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2210
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2190
2211
|
provider_payment_method_id: string;
|
|
2191
2212
|
preferred: boolean;
|
|
2192
2213
|
metadata: Record<string, unknown> | null;
|
|
@@ -2194,7 +2215,7 @@ type Payment = {
|
|
|
2194
2215
|
id: string;
|
|
2195
2216
|
type: "WALLET";
|
|
2196
2217
|
alias: string;
|
|
2197
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2218
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2198
2219
|
provider_payment_method_id: string;
|
|
2199
2220
|
account_hint?: string | undefined;
|
|
2200
2221
|
preferred: boolean;
|
|
@@ -2205,7 +2226,7 @@ type Payment = {
|
|
|
2205
2226
|
alias: string;
|
|
2206
2227
|
bank_name?: string | undefined;
|
|
2207
2228
|
last4: string;
|
|
2208
|
-
provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
|
|
2229
|
+
provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
|
|
2209
2230
|
provider_payment_method_id?: string | undefined;
|
|
2210
2231
|
preferred: boolean;
|
|
2211
2232
|
metadata: Record<string, unknown> | null;
|
|
@@ -2270,7 +2291,7 @@ type CustomerRegisterInput = {
|
|
|
2270
2291
|
last4: string;
|
|
2271
2292
|
exp_month: number;
|
|
2272
2293
|
exp_year: number;
|
|
2273
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2294
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2274
2295
|
provider_payment_method_id: string;
|
|
2275
2296
|
preferred?: boolean | undefined;
|
|
2276
2297
|
metadata: Record<string, unknown> | null;
|
|
@@ -2278,7 +2299,7 @@ type CustomerRegisterInput = {
|
|
|
2278
2299
|
id: string;
|
|
2279
2300
|
type: "WALLET";
|
|
2280
2301
|
alias: string;
|
|
2281
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2302
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2282
2303
|
provider_payment_method_id: string;
|
|
2283
2304
|
account_hint?: string | undefined;
|
|
2284
2305
|
preferred?: boolean | undefined;
|
|
@@ -2289,7 +2310,7 @@ type CustomerRegisterInput = {
|
|
|
2289
2310
|
alias: string;
|
|
2290
2311
|
bank_name?: string | undefined;
|
|
2291
2312
|
last4: string;
|
|
2292
|
-
provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
|
|
2313
|
+
provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
|
|
2293
2314
|
provider_payment_method_id?: string | undefined;
|
|
2294
2315
|
preferred?: boolean | undefined;
|
|
2295
2316
|
metadata: Record<string, unknown> | null;
|
|
@@ -2384,7 +2405,7 @@ type CustomerUpdateInput = {
|
|
|
2384
2405
|
last4: string;
|
|
2385
2406
|
exp_month: number;
|
|
2386
2407
|
exp_year: number;
|
|
2387
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2408
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2388
2409
|
provider_payment_method_id: string;
|
|
2389
2410
|
preferred?: boolean | undefined;
|
|
2390
2411
|
metadata: Record<string, unknown> | null;
|
|
@@ -2392,7 +2413,7 @@ type CustomerUpdateInput = {
|
|
|
2392
2413
|
id: string;
|
|
2393
2414
|
type: "WALLET";
|
|
2394
2415
|
alias: string;
|
|
2395
|
-
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2416
|
+
provider: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape";
|
|
2396
2417
|
provider_payment_method_id: string;
|
|
2397
2418
|
account_hint?: string | undefined;
|
|
2398
2419
|
preferred?: boolean | undefined;
|
|
@@ -2403,7 +2424,7 @@ type CustomerUpdateInput = {
|
|
|
2403
2424
|
alias: string;
|
|
2404
2425
|
bank_name?: string | undefined;
|
|
2405
2426
|
last4: string;
|
|
2406
|
-
provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
|
|
2427
|
+
provider?: "amipass" | "cashea" | "clisitef" | "credibanco" | "datafast" | "deuna" | "edenred" | "firespark" | "kushki" | "mach" | "medianet" | "mercadopago" | "niubiz" | "nuvei" | "pagoplux" | "paymentez" | "paymentz" | "paypal" | "payphone" | "place_to_pay" | "pluxee" | "posnet" | "redeban" | "rutpay" | "sitef_venezuela" | "stripe" | "transbank" | "yape" | undefined;
|
|
2407
2428
|
provider_payment_method_id?: string | undefined;
|
|
2408
2429
|
preferred?: boolean | undefined;
|
|
2409
2430
|
metadata: Record<string, unknown> | null;
|
|
@@ -3949,6 +3970,7 @@ type PosOrderInput = {
|
|
|
3949
3970
|
redeem?: {
|
|
3950
3971
|
reward_id: string;
|
|
3951
3972
|
quantity?: number | undefined;
|
|
3973
|
+
type?: "DISCOUNT" | "POINTS" | "PRODUCT" | undefined;
|
|
3952
3974
|
before_taxes?: boolean | undefined;
|
|
3953
3975
|
expires_at?: string | undefined;
|
|
3954
3976
|
payment_id: string;
|