Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. async ship(
  2. account: Account,
  3. origin: AccountHistoryOrigin = AccountHistoryOrigin.Customer,
  4. payment?: IPayment
  5. ): Promise<AccountHistory> {
  6. let ah = null;
  7. await this.mutate();
  8. await this.core.account.lock(account.id); // Prevent dupe responses
  9. account = await this.core.account.get(account.id); // Shadow account w/ latest
  10. const store = await this.core.store.get(account.storeId);
  11. assert(store.pickingPeriodOpen, 'Picking period is not open', 400);
  12. const box = await this.get(account.id);
  13. const policy = account.policy;
  14. ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement