@trusted-solutions/sdit.models 0.18.0-alpha.14 → 0.18.0-alpha.18
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.
|
@@ -175,6 +175,18 @@ export interface SOGetPaymentUrlRequest {
|
|
|
175
175
|
storeId: string;
|
|
176
176
|
/** online Order Id */
|
|
177
177
|
id: string;
|
|
178
|
+
/**
|
|
179
|
+
* 以MyPay為例
|
|
180
|
+
* 可在產生付款網址時,決定returnUrl
|
|
181
|
+
* 若不填寫,則以MyPay特約店家後台設定的為主
|
|
182
|
+
*/
|
|
183
|
+
successReturnUrl?: string;
|
|
184
|
+
/**
|
|
185
|
+
* 以MyPay為例
|
|
186
|
+
* 可在產生付款網址時,決定returnUrl
|
|
187
|
+
* 若不填寫,則以MyPay特約店家後台設定的為主
|
|
188
|
+
*/
|
|
189
|
+
failureReturnUrl?: string;
|
|
178
190
|
}
|
|
179
191
|
export interface SOGetPaymentUrlResponse {
|
|
180
192
|
payUrl: string;
|
|
@@ -183,13 +195,13 @@ export interface SOGetPaymentUrlResponse {
|
|
|
183
195
|
/*******************************/
|
|
184
196
|
export interface SOCancelOrderRequest {
|
|
185
197
|
storeId: string;
|
|
186
|
-
/**
|
|
187
|
-
|
|
198
|
+
/** online order id */
|
|
199
|
+
id: string;
|
|
188
200
|
}
|
|
189
201
|
export interface SOCancelOrderResponse {
|
|
190
202
|
storeId: string;
|
|
191
|
-
/**
|
|
192
|
-
|
|
203
|
+
/** online order id */
|
|
204
|
+
id: string;
|
|
193
205
|
state: SOOrderState;
|
|
194
206
|
}
|
|
195
207
|
/*******************************/
|
|
@@ -21,6 +21,7 @@ export interface GetStoresRequest extends Filterable, CursorPaginationEnabled, W
|
|
|
21
21
|
}
|
|
22
22
|
export interface GetStoreByIdRequest {
|
|
23
23
|
storeId: string;
|
|
24
|
+
skipGetRelatedProperty?: boolean;
|
|
24
25
|
blockVersion?: BlockVersion;
|
|
25
26
|
}
|
|
26
27
|
export interface UpdateStoreRequest {
|
package/models/order.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { InvoiceConfig, Tax } from './invoice-config';
|
|
|
7
7
|
import { InvoiceCarrierType } from './../enums/invoice-carrier-type';
|
|
8
8
|
import { OrderStatus } from '../enums/order-status';
|
|
9
9
|
import { DiscountModuleTypeEnum, OrderSourceType, CloseType, OrderItemPaidStatus, OrderItemStatus } from '../enums';
|
|
10
|
-
import { Receipt } from './receipt';
|
|
10
|
+
import { Receipt, Transaction } from './receipt';
|
|
11
11
|
import { Customer } from './customer';
|
|
12
12
|
import { Operator } from './store';
|
|
13
13
|
import { OnlinePlatformType, OOReasonCode, OnlineOrderMappingWarningCode } from './online-integration';
|
|
@@ -113,6 +113,12 @@ export interface Order {
|
|
|
113
113
|
canceledByParty?: SOOperateParty;
|
|
114
114
|
/** 消費者是否選擇線上付款 */
|
|
115
115
|
isOnSitePayment?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* 線上點餐、UberEats等等外送平台,線上成功收款後的
|
|
118
|
+
* Transaction會暫時存在這個Property,待POS接單後,
|
|
119
|
+
* 再將這個Transaction包成Receipt
|
|
120
|
+
*/
|
|
121
|
+
externalPayment?: Transaction;
|
|
116
122
|
}
|
|
117
123
|
export interface OrderItem {
|
|
118
124
|
id?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.18.0-alpha.
|
|
3
|
+
"version": "0.18.0-alpha.18",
|
|
4
4
|
"description": "TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|