@zenglobal/api-client 5.1.9 → 5.1.11
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/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/sdk.gen.d.ts +14 -2
- package/dist/client/sdk.gen.d.ts.map +1 -1
- package/dist/client/sdk.gen.js +14 -2
- package/dist/client/sdk.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +45 -3
- package/dist/client/types.gen.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -4332,8 +4332,20 @@ export type Offer = {
|
|
|
4332
4332
|
acceptancedays?: ApiNumeric;
|
|
4333
4333
|
/**
|
|
4334
4334
|
* Promotion group identifier for coffee card offers
|
|
4335
|
+
*
|
|
4336
|
+
* @deprecated
|
|
4337
|
+
*/
|
|
4338
|
+
promogroupid?: ApiNumeric | null;
|
|
4339
|
+
/**
|
|
4340
|
+
* Stamp target of a coffee card: the number of earn-item purchases that
|
|
4341
|
+
* unlock the free item. Null when the offer is not a coffee card.
|
|
4342
|
+
*/
|
|
4343
|
+
coffee_card_target?: ApiNumeric | null;
|
|
4344
|
+
/**
|
|
4345
|
+
* The items whose purchases earn a coffee card stamp. Empty when the offer
|
|
4346
|
+
* is not a coffee card. Distinct from the items the free item can be.
|
|
4335
4347
|
*/
|
|
4336
|
-
|
|
4348
|
+
earn_items?: Array<OfferEarnItem>;
|
|
4337
4349
|
/**
|
|
4338
4350
|
* Start date for new member window (inclusive)
|
|
4339
4351
|
*/
|
|
@@ -4630,6 +4642,19 @@ export type OfferDetailTimeOfDay = {
|
|
|
4630
4642
|
start_hour: string;
|
|
4631
4643
|
end_hour: string;
|
|
4632
4644
|
};
|
|
4645
|
+
/**
|
|
4646
|
+
* An item whose purchases earn a coffee card stamp
|
|
4647
|
+
*/
|
|
4648
|
+
export type OfferEarnItem = {
|
|
4649
|
+
/**
|
|
4650
|
+
* Item number, matched exactly against sale lines
|
|
4651
|
+
*/
|
|
4652
|
+
item_number: string;
|
|
4653
|
+
/**
|
|
4654
|
+
* Item description
|
|
4655
|
+
*/
|
|
4656
|
+
description: string | null;
|
|
4657
|
+
};
|
|
4633
4658
|
export type OfferEffect = {
|
|
4634
4659
|
/**
|
|
4635
4660
|
* The type and amount of discount offered with the offer
|
|
@@ -7799,6 +7824,15 @@ export type VoucherCreateBody = {
|
|
|
7799
7824
|
* Cart workflow reference ID
|
|
7800
7825
|
*/
|
|
7801
7826
|
reference?: string;
|
|
7827
|
+
/**
|
|
7828
|
+
* External reference from the client's own system (order, booking or finance
|
|
7829
|
+
* reference), used to find the voucher later via the `externalreference` search.
|
|
7830
|
+
* Any text up to 100 characters; leading and trailing spaces are trimmed and a
|
|
7831
|
+
* blank value is ignored. Need not be unique. For a multi-voucher cart
|
|
7832
|
+
* (`multi: true`) every voucher created by the request gets this reference.
|
|
7833
|
+
* Longer values, or a non-string value, are rejected with error code `9`.
|
|
7834
|
+
*/
|
|
7835
|
+
externalreference?: string;
|
|
7802
7836
|
};
|
|
7803
7837
|
/**
|
|
7804
7838
|
* Request body for creating a new voucher via POST /voucher/{voucherType}/create.
|
|
@@ -8009,6 +8043,10 @@ export type VoucherEnquireDetail = {
|
|
|
8009
8043
|
* Payment option
|
|
8010
8044
|
*/
|
|
8011
8045
|
paymentoption: string;
|
|
8046
|
+
/**
|
|
8047
|
+
* External reference from the client's own system. Empty string if none.
|
|
8048
|
+
*/
|
|
8049
|
+
externalreference: string;
|
|
8012
8050
|
/**
|
|
8013
8051
|
* Transaction history (up to 50 most recent, ordered by time descending)
|
|
8014
8052
|
*/
|
|
@@ -8450,6 +8488,10 @@ export type VoucherSearchItem = {
|
|
|
8450
8488
|
* Voucher subtype description (from VOUCHERSUBTYPE table, empty string if none)
|
|
8451
8489
|
*/
|
|
8452
8490
|
subtype: string;
|
|
8491
|
+
/**
|
|
8492
|
+
* External reference from the client's own system (order, booking or finance reference). Empty string if none.
|
|
8493
|
+
*/
|
|
8494
|
+
externalreference: string;
|
|
8453
8495
|
};
|
|
8454
8496
|
/**
|
|
8455
8497
|
* Voucher search response.
|
|
@@ -12127,7 +12169,7 @@ export type VoucherSearchVouchersData = {
|
|
|
12127
12169
|
body?: never;
|
|
12128
12170
|
path: {
|
|
12129
12171
|
voucherType: string;
|
|
12130
|
-
searchBy: 'number' | 'name' | 'mobile' | 'email' | 'id' | 'date' | 'issuedate' | 'redeemdate' | 'rechargedate';
|
|
12172
|
+
searchBy: 'number' | 'name' | 'mobile' | 'email' | 'id' | 'date' | 'issuedate' | 'redeemdate' | 'rechargedate' | 'externalreference';
|
|
12131
12173
|
};
|
|
12132
12174
|
query: {
|
|
12133
12175
|
q: string;
|
|
@@ -12156,7 +12198,7 @@ export type VoucherSearchVouchersFlatData = {
|
|
|
12156
12198
|
body?: never;
|
|
12157
12199
|
path: {
|
|
12158
12200
|
voucherType: string;
|
|
12159
|
-
searchBy: 'number' | 'name' | 'mobile' | 'email' | 'id' | 'date' | 'issuedate' | 'redeemdate' | 'rechargedate';
|
|
12201
|
+
searchBy: 'number' | 'name' | 'mobile' | 'email' | 'id' | 'date' | 'issuedate' | 'redeemdate' | 'rechargedate' | 'externalreference';
|
|
12160
12202
|
};
|
|
12161
12203
|
query: {
|
|
12162
12204
|
q: string;
|