sahab-utils 2.1.3 → 2.1.4

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.
@@ -174,6 +174,11 @@ export type Order = {
174
174
  payLinkDeadline?: TimestampType;
175
175
  payLinkSmsCount?: number;
176
176
  createdByStaff?: string;
177
+ createdByProvider?: string;
178
+ createdByProviderName?: string;
179
+ crossedOrder?: boolean;
180
+ payLinkShortUrl?: string;
181
+ priceSource?: 'provider';
177
182
  sizeAdjustments?: Array<OrderSizeAdjustmentFields & {
178
183
  createdAt?: TimestampType;
179
184
  linkDeadline?: TimestampType;
@@ -235,6 +240,10 @@ export type ReduxOrder = {
235
240
  };
236
241
  providerPhoneNumber?: string;
237
242
  providerLogoUrl?: string;
243
+ createdByProvider?: string;
244
+ paymentLinkUrl?: string;
245
+ payLinkShortUrl?: string;
246
+ payLinkDeadline?: TimestampType;
238
247
  };
239
248
  export type MoneyMovement = {
240
249
  movementId: string;
@@ -12,6 +12,14 @@ export type PayLinkOrderFields<TTimestamp> = {
12
12
  payLinkDeadline?: TTimestamp;
13
13
  payLinkSmsCount?: number;
14
14
  createdByStaff?: string;
15
+ /** Set when a provider (or its driver) made the order from the provider app: the creator's id, shown as "created by provider". */
16
+ createdByProvider?: string;
17
+ createdByProviderName?: string;
18
+ crossedOrder?: boolean;
19
+ /** The shortened link the customer was texted; `paymentLinkUrl` is the full Checkout link. */
20
+ payLinkShortUrl?: string;
21
+ /** Audit flag: the price was typed by the provider, not read from its catalogue. */
22
+ priceSource?: 'provider';
15
23
  };
16
24
  export type CreatePayLinkOrderRequest = {
17
25
  clientUid: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sahab-utils",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "This package contains types and utils functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",