@esolve/ng-esolve-connect 0.89.0 → 0.90.0

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.
@@ -59,10 +59,13 @@ export declare class EsolveCartService {
59
59
  * @param payment_method_id The ID of the selected payment method
60
60
  * @param location_id The ID of the selected branch from with shipping needs to be calculated
61
61
  * @param comments Additional comments on the cart
62
+ * @param time_slot The time slot to be used
63
+ * @param apply_wallet Whether to apply wallet to the order
64
+ * @param purchase_order_number Custom purchase order to added to transaction
62
65
  *
63
66
  * @returns An `Observable` with the transaction ID
64
67
  */
65
- checkout(type: EsolveTransactionType, addresses_id: number, shipping_id: number, payment_method_id?: number, location_id?: number, comments?: string, time_slot?: EsolveTimeSlotCheckout, apply_wallet?: boolean): Observable<EsolveCheckoutResult>;
68
+ checkout(type: EsolveTransactionType, addresses_id: number, shipping_id: number, payment_method_id?: number, location_id?: number, comments?: string, time_slot?: EsolveTimeSlotCheckout, apply_wallet?: boolean, purchase_order_number?: number): Observable<EsolveCheckoutResult>;
66
69
  getCartAlternatives(): Observable<EsolveCartAlternativesMap>;
67
70
  /**
68
71
  * Set an alternative stock item to current cart item
@@ -8,6 +8,7 @@ export interface EsolveCheckoutBody {
8
8
  location_id: number;
9
9
  comments: string;
10
10
  tracking: number;
11
+ purchase_order_number?: number;
11
12
  time_slot?: EsolveTimeSlotCheckout;
12
13
  vouchers?: string[];
13
14
  apply_wallet?: boolean;
@@ -19,6 +19,7 @@ export declare class EsolveTransaction {
19
19
  loyalty_number: string;
20
20
  external_order_number: string;
21
21
  external_invoice_number: string;
22
+ purchase_order_number: string;
22
23
  date: Date;
23
24
  expected_date: Date;
24
25
  client?: EsolveTransactionClient;
@@ -14,6 +14,7 @@ export interface EsolveTransactionRecord {
14
14
  status: string;
15
15
  comment: string;
16
16
  reps_id: number;
17
+ purchase_order_number: string;
17
18
  client: EsolveTransactionClientRecord | null;
18
19
  user: EsolveTransactionUserRecord | null;
19
20
  erp_identifier: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.89.0",
3
+ "version": "0.90.0",
4
4
  "homepage": "https://www.esolve.co.za/",
5
5
  "description": "An Angular library that speaks to an eSolve instance's API",
6
6
  "peerDependencies": {