Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async ship(
- account: Account,
- origin: AccountHistoryOrigin = AccountHistoryOrigin.Customer,
- payment?: IPayment
- ): Promise<AccountHistory> {
- let ah = null;
- await this.mutate();
- await this.core.account.lock(account.id); // Prevent dupe responses
- account = await this.core.account.get(account.id); // Shadow account w/ latest
- const store = await this.core.store.get(account.storeId);
- assert(store.pickingPeriodOpen, 'Picking period is not open', 400);
- const box = await this.get(account.id);
- const policy = account.policy;
- ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement