@esolve/ng-esolve-connect 0.24.2 → 0.25.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.
Files changed (21) hide show
  1. package/esm2020/lib/account/esolve-account.service.mjs +35 -2
  2. package/esm2020/lib/account/user-account/esolve-user-account-record.interface.mjs +1 -1
  3. package/esm2020/lib/account/user-account/esolve-user-account.model.mjs +1 -1
  4. package/esm2020/lib/account/user-account/esolve-user-client-account-balances-record.interface.mjs +2 -0
  5. package/esm2020/lib/account/user-account/esolve-user-client-account-balances.model.mjs +13 -0
  6. package/esm2020/lib/account/user-account/esolve-user-client-account-record.interface.mjs +2 -0
  7. package/esm2020/lib/account/user-account/esolve-user-client-account.model.mjs +42 -0
  8. package/esm2020/lib/account/user-account/index.mjs +5 -1
  9. package/fesm2015/esolve-ng-esolve-connect.mjs +465 -378
  10. package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
  11. package/fesm2020/esolve-ng-esolve-connect.mjs +462 -376
  12. package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
  13. package/lib/account/esolve-account.service.d.ts +3 -0
  14. package/lib/account/user-account/esolve-user-account-record.interface.d.ts +2 -0
  15. package/lib/account/user-account/esolve-user-account.model.d.ts +2 -0
  16. package/lib/account/user-account/esolve-user-client-account-balances-record.interface.d.ts +11 -0
  17. package/lib/account/user-account/esolve-user-client-account-balances.model.d.ts +12 -0
  18. package/lib/account/user-account/esolve-user-client-account-record.interface.d.ts +39 -0
  19. package/lib/account/user-account/esolve-user-client-account.model.d.ts +40 -0
  20. package/lib/account/user-account/index.d.ts +4 -0
  21. package/package.json +1 -1
@@ -12,6 +12,7 @@ import { EsolveChangePasswordResult, EsolveResetPasswordResult } from './passwor
12
12
  import { EsolveTransaction, EsolveTransactionOptions, EsolveTransactionList } from './transaction';
13
13
  import { EsolveUserAccount, EsolveUserAccountData, EsolveUserAccountResult } from './user-account';
14
14
  import { EsolveAccountConfirmationResult } from './confirmation';
15
+ import { EsolveUserClientAccountBalances } from './user-account/esolve-user-client-account-balances.model';
15
16
  import * as i0 from "@angular/core";
16
17
  export declare class EsolveAccountService {
17
18
  private config;
@@ -44,9 +45,11 @@ export declare class EsolveAccountService {
44
45
  updateLocation(location_id: number): Observable<EsolveLocationUpdateResult>;
45
46
  getTransactions(options?: EsolveTransactionOptions): Observable<EsolveTransactionList>;
46
47
  getTransaction(id: number): Observable<EsolveTransaction>;
48
+ getClientAccountBalances(): Observable<EsolveUserClientAccountBalances | undefined>;
47
49
  private processUserAccount;
48
50
  private processUserAddress;
49
51
  private processTransactions;
52
+ private processClientBalances;
50
53
  private loginGuard;
51
54
  static ɵfac: i0.ɵɵFactoryDeclaration<EsolveAccountService, never>;
52
55
  static ɵprov: i0.ɵɵInjectableDeclaration<EsolveAccountService>;
@@ -1,3 +1,4 @@
1
+ import { EsolveUserClientAccountRecord } from './esolve-user-client-account-record.interface';
1
2
  export interface EsolveUserAccountRecord {
2
3
  userid: number;
3
4
  email: string;
@@ -18,4 +19,5 @@ export interface EsolveUserAccountRecord {
18
19
  busdescript: string;
19
20
  business_type: string;
20
21
  language: string;
22
+ client_details?: EsolveUserClientAccountRecord;
21
23
  }
@@ -1,5 +1,6 @@
1
1
  import { EsolveUserAccountBusiness } from './esolve-user-account-business.model';
2
2
  import { EsolveUserAccountContact } from './esolve-user-account-contact.model';
3
+ import { EsolveUserClientAccount } from './esolve-user-client-account.model';
3
4
  export declare class EsolveUserAccount {
4
5
  esolve_id: number;
5
6
  email: string;
@@ -14,5 +15,6 @@ export declare class EsolveUserAccount {
14
15
  loyalty_number?: string;
15
16
  business_details?: EsolveUserAccountBusiness;
16
17
  contact_details?: EsolveUserAccountContact;
18
+ client_details?: EsolveUserClientAccount;
17
19
  constructor(esolve_id: number, email: string, registration_type: string, title: string, first_name: string, last_name: string, initials: string, gender: string, identification_number: string);
18
20
  }
@@ -0,0 +1,11 @@
1
+ import { EsolveCartTotalsRecord } from '../../cart/esolve-cart-totals-record.interface';
2
+ export interface EsolveUserClientAccountBalancesRecord {
3
+ clients_id: number;
4
+ account: string;
5
+ cart_totals: EsolveCartTotalsRecord;
6
+ credit_limit: number;
7
+ external_account_balance: number;
8
+ external_available_balance: number;
9
+ new_external_available_balance: number;
10
+ credit_limit_okay: boolean;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { EsolveCartTotals } from '../../cart/esolve-cart-totals.model';
2
+ export declare class EsolveUserClientAccountBalances {
3
+ clients_id?: number | undefined;
4
+ account?: string | undefined;
5
+ cart_totals?: EsolveCartTotals | undefined;
6
+ credit_limit?: number | undefined;
7
+ external_account_balance?: number | undefined;
8
+ external_available_balance?: number | undefined;
9
+ new_external_available_balance?: number | undefined;
10
+ credit_limit_okay?: boolean | undefined;
11
+ constructor(clients_id?: number | undefined, account?: string | undefined, cart_totals?: EsolveCartTotals | undefined, credit_limit?: number | undefined, external_account_balance?: number | undefined, external_available_balance?: number | undefined, new_external_available_balance?: number | undefined, credit_limit_okay?: boolean | undefined);
12
+ }
@@ -0,0 +1,39 @@
1
+ export interface EsolveUserClientAccountRecord {
2
+ account: string;
3
+ branch_code: string;
4
+ account_group: string;
5
+ pricing_group: string;
6
+ price_list: number;
7
+ loyalty_classification_id: number;
8
+ company_name: string;
9
+ client_contact_person: string;
10
+ client_firstname: string;
11
+ client_surname: string;
12
+ client_email: string;
13
+ client_contact_number: string;
14
+ client_fax_number: string;
15
+ client_cellphone_number: string;
16
+ client_id_number: string;
17
+ address_description: string;
18
+ street: string;
19
+ suburb: string;
20
+ city: string;
21
+ province: string;
22
+ country: string;
23
+ postal_code: string;
24
+ postal_address: string;
25
+ delivery_address: string;
26
+ latitude: number;
27
+ longitude: number;
28
+ vat_number: string;
29
+ credit_limit: number;
30
+ pending_invoice_balance: number;
31
+ external_account_balance: number;
32
+ ageing: string;
33
+ balance_last_updated: string;
34
+ default_sellprice: number;
35
+ client_classification: string;
36
+ override_stock_listing_identifiers: string;
37
+ requires_transaction_approval: string;
38
+ is_active: boolean;
39
+ }
@@ -0,0 +1,40 @@
1
+ export declare class EsolveUserClientAccount {
2
+ account?: string | undefined;
3
+ branch_code?: string | undefined;
4
+ account_group?: string | undefined;
5
+ pricing_group?: string | undefined;
6
+ price_list?: number | undefined;
7
+ loyalty_classification_id?: number | undefined;
8
+ company_name?: string | undefined;
9
+ client_contact_person?: string | undefined;
10
+ client_firstname?: string | undefined;
11
+ client_surname?: string | undefined;
12
+ client_email?: string | undefined;
13
+ client_contact_number?: string | undefined;
14
+ client_fax_number?: string | undefined;
15
+ client_cellphone_number?: string | undefined;
16
+ client_id_number?: string | undefined;
17
+ address_description?: string | undefined;
18
+ street?: string | undefined;
19
+ suburb?: string | undefined;
20
+ city?: string | undefined;
21
+ province?: string | undefined;
22
+ country?: string | undefined;
23
+ postal_code?: string | undefined;
24
+ postal_address?: string | undefined;
25
+ delivery_address?: string | undefined;
26
+ latitude?: number | undefined;
27
+ longitude?: number | undefined;
28
+ vat_number?: string | undefined;
29
+ credit_limit?: number | undefined;
30
+ pending_invoice_balance?: number | undefined;
31
+ external_account_balance?: number | undefined;
32
+ ageing?: string | undefined;
33
+ balance_last_updated?: string | undefined;
34
+ default_sellprice?: number | undefined;
35
+ client_classification?: string | undefined;
36
+ override_stock_listing_identifiers?: string | undefined;
37
+ requires_transaction_approval?: string | undefined;
38
+ is_active?: boolean | undefined;
39
+ constructor(account?: string | undefined, branch_code?: string | undefined, account_group?: string | undefined, pricing_group?: string | undefined, price_list?: number | undefined, loyalty_classification_id?: number | undefined, company_name?: string | undefined, client_contact_person?: string | undefined, client_firstname?: string | undefined, client_surname?: string | undefined, client_email?: string | undefined, client_contact_number?: string | undefined, client_fax_number?: string | undefined, client_cellphone_number?: string | undefined, client_id_number?: string | undefined, address_description?: string | undefined, street?: string | undefined, suburb?: string | undefined, city?: string | undefined, province?: string | undefined, country?: string | undefined, postal_code?: string | undefined, postal_address?: string | undefined, delivery_address?: string | undefined, latitude?: number | undefined, longitude?: number | undefined, vat_number?: string | undefined, credit_limit?: number | undefined, pending_invoice_balance?: number | undefined, external_account_balance?: number | undefined, ageing?: string | undefined, balance_last_updated?: string | undefined, default_sellprice?: number | undefined, client_classification?: string | undefined, override_stock_listing_identifiers?: string | undefined, requires_transaction_approval?: string | undefined, is_active?: boolean | undefined);
40
+ }
@@ -4,3 +4,7 @@ export * from './esolve-user-account-data.interface';
4
4
  export * from './esolve-user-account-result.model';
5
5
  export * from './esolve-user-account-business.model';
6
6
  export * from './esolve-user-account-contact.model';
7
+ export * from './esolve-user-client-account.model';
8
+ export * from './esolve-user-client-account-record.interface';
9
+ export * from './esolve-user-client-account-balances-record.interface';
10
+ export * from './esolve-user-client-account-balances.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.24.2",
3
+ "version": "0.25.0",
4
4
  "description": "An Angular library that speaks to an eSolve instance's API",
5
5
  "ng-add": {
6
6
  "save": "true"