@esolve/ng-esolve-connect 0.7.5 → 0.10.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.
- package/esm2020/lib/account/esolve-account.service.mjs +160 -36
- package/esm2020/lib/account/esolve-change-password-result.mjs +8 -0
- package/esm2020/lib/account/esolve-forgot-password-response.mjs +2 -0
- package/esm2020/lib/account/esolve-reset-password-result.mjs +11 -0
- package/esm2020/lib/account/esolve-transaction-list.mjs +4 -0
- package/esm2020/lib/account/esolve-transaction-options.mjs +2 -0
- package/esm2020/lib/account/esolve-transaction-record.mjs +2 -0
- package/esm2020/lib/account/esolve-transaction.mjs +145 -0
- package/esm2020/lib/auth/esolve-auth-interceptor.service.mjs +1 -1
- package/esm2020/lib/auth/esolve-auth.service.mjs +25 -25
- package/esm2020/lib/banners/esolve-banner.service.mjs +26 -26
- package/esm2020/lib/cart/esolve-cart.service.mjs +25 -25
- package/esm2020/lib/category-tree/esolve-category-tree-item-options.mjs +2 -0
- package/esm2020/lib/category-tree/esolve-category-tree.service.mjs +45 -45
- package/esm2020/lib/locations/esolve-locations.service.mjs +15 -15
- package/esm2020/lib/locations/esolve-stock-location-record.mjs +1 -1
- package/esm2020/lib/locations/esolve-stock-location.mjs +16 -16
- package/esm2020/lib/media/esolve-media.service.mjs +25 -25
- package/esm2020/lib/menu/esolve-menu.service.mjs +1 -1
- package/esm2020/lib/news/esolve-news-article-options.mjs +2 -0
- package/esm2020/lib/news/esolve-news.service.mjs +1 -1
- package/esm2020/lib/payment/esolve-payment-method-record.mjs +1 -1
- package/esm2020/lib/payment/esolve-payment-method.mjs +1 -5
- package/esm2020/lib/payment/esolve-payment.service.mjs +21 -1
- package/esm2020/lib/shared/error-handler/esolve-error-handler.service.mjs +57 -24
- package/esm2020/lib/shared/esolve-list.mjs +9 -0
- package/esm2020/lib/shared/esolve-response.mjs +1 -1
- package/esm2020/lib/shared/esolve-result.mjs +8 -0
- package/esm2020/lib/stock/esolve-stock-item-options.mjs +1 -1
- package/esm2020/lib/stock/esolve-stock.service.mjs +4 -1
- package/esm2020/lib/topics/esolve-topic.service.mjs +11 -11
- package/esm2020/public-api.mjs +16 -3
- package/fesm2015/esolve-ng-esolve-connect.mjs +670 -322
- package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect.mjs +672 -321
- package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/account/esolve-account.service.d.ts +18 -6
- package/lib/account/esolve-change-password-result.d.ts +6 -0
- package/lib/account/esolve-forgot-password-response.d.ts +7 -0
- package/lib/account/esolve-reset-password-result.d.ts +9 -0
- package/lib/account/esolve-transaction-list.d.ts +4 -0
- package/lib/account/esolve-transaction-options.d.ts +8 -0
- package/lib/account/esolve-transaction-record.d.ts +98 -0
- package/lib/account/esolve-transaction.d.ts +132 -0
- package/lib/auth/esolve-auth.service.d.ts +1 -1
- package/lib/banners/esolve-banner.service.d.ts +6 -6
- package/lib/cart/esolve-cart.service.d.ts +12 -12
- package/lib/category-tree/esolve-category-tree-item-options.d.ts +18 -0
- package/lib/category-tree/esolve-category-tree.service.d.ts +8 -26
- package/lib/locations/esolve-locations.service.d.ts +5 -5
- package/lib/locations/esolve-stock-location-record.d.ts +1 -1
- package/lib/locations/esolve-stock-location.d.ts +7 -8
- package/lib/media/esolve-media.service.d.ts +7 -7
- package/lib/news/esolve-news-article-options.d.ts +11 -0
- package/lib/news/esolve-news.service.d.ts +1 -12
- package/lib/payment/esolve-payment-method-record.d.ts +0 -4
- package/lib/payment/esolve-payment-method.d.ts +0 -4
- package/lib/payment/esolve-payment.service.d.ts +2 -0
- package/lib/shared/error-handler/esolve-error-handler.service.d.ts +8 -2
- package/lib/shared/esolve-list.d.ts +7 -0
- package/lib/shared/esolve-response.d.ts +15 -9
- package/lib/shared/esolve-result.d.ts +6 -0
- package/lib/stock/esolve-stock-item-options.d.ts +1 -0
- package/lib/topics/esolve-topic.service.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +15 -2
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { EsolveConnectConfig } from '../esolve-connect.config';
|
|
4
|
+
import { EsolveResult } from '../shared/esolve-result';
|
|
5
|
+
import { EsolveErrorHandlerService } from '../shared/error-handler/esolve-error-handler.service';
|
|
6
|
+
import { EsolveResponseHandlerService } from '../shared/response-handler/esolve-response-handler.service';
|
|
7
|
+
import { EsolveSessionService } from '../session/esolve-session.service';
|
|
4
8
|
import { EsolveAddress } from './esolve-address';
|
|
5
9
|
import { EsolveAddressResult } from './esolve-address-result';
|
|
6
10
|
import { EsolveAddressPostData } from './esolve-address-set-data';
|
|
7
11
|
import { EsolveRegistrationData } from './esolve-registration-data';
|
|
8
12
|
import { EsolveRegistrationResult } from './esolve-registration-result';
|
|
9
|
-
import { EsolveSessionService } from '../session/esolve-session.service';
|
|
10
|
-
import { EsolveErrorHandlerService } from '../shared/error-handler/esolve-error-handler.service';
|
|
11
|
-
import { EsolveResponseHandlerService } from '../shared/response-handler/esolve-response-handler.service';
|
|
12
|
-
import { EsolveUserAccount } from './esolve-user-account';
|
|
13
13
|
import { EsolveUserAccountData } from './esolve-user-account-data';
|
|
14
14
|
import { EsolveUserAccountResult } from './esolve-user-account-result';
|
|
15
|
+
import { EsolveChangePasswordResult } from './esolve-change-password-result';
|
|
16
|
+
import { EsolveResetPasswordResult } from './esolve-reset-password-result';
|
|
17
|
+
import { EsolveTransactionOptions } from './esolve-transaction-options';
|
|
18
|
+
import { EsolveTransactionList } from './esolve-transaction-list';
|
|
19
|
+
import { EsolveUserAccount } from './esolve-user-account';
|
|
15
20
|
import * as i0 from "@angular/core";
|
|
16
21
|
export declare class EsolveAccountService {
|
|
17
22
|
private config;
|
|
@@ -23,13 +28,20 @@ export declare class EsolveAccountService {
|
|
|
23
28
|
get user_id(): number;
|
|
24
29
|
set user_id(value: number);
|
|
25
30
|
constructor(config: EsolveConnectConfig, http: HttpClient, sessionService: EsolveSessionService, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService);
|
|
26
|
-
private processUserAccount;
|
|
27
|
-
private processUserAddress;
|
|
28
31
|
updateUserAccount(user_account_data: EsolveUserAccountData): Observable<EsolveUserAccountResult>;
|
|
29
32
|
getUserAccount(): Observable<EsolveUserAccount>;
|
|
30
33
|
setAddress(address_post_data: EsolveAddressPostData): Observable<EsolveAddressResult>;
|
|
31
34
|
getAddresses(): Observable<EsolveAddress[]>;
|
|
35
|
+
deleteAddress(id: number): Observable<EsolveResult>;
|
|
32
36
|
register(user_registration: EsolveRegistrationData): Observable<EsolveRegistrationResult>;
|
|
37
|
+
changePassword(password: string, confirm_password: string): Observable<EsolveChangePasswordResult>;
|
|
38
|
+
sendForgotPasswordRequest(email: string): Observable<boolean>;
|
|
39
|
+
resetPassword(reset_key: string, password: string, confirm_password: string, auto_login?: boolean): Observable<EsolveResetPasswordResult>;
|
|
40
|
+
getTranscations(options?: EsolveTransactionOptions): Observable<EsolveTransactionList>;
|
|
41
|
+
private processUserAccount;
|
|
42
|
+
private processUserAddress;
|
|
43
|
+
private processTransactions;
|
|
44
|
+
private loginGuard;
|
|
33
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveAccountService, never>;
|
|
34
46
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveAccountService>;
|
|
35
47
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EsolvePostResponseItem } from '../shared/esolve-response';
|
|
2
|
+
import { EsolveResponseResult } from '../shared/response-handler/esolve-response-result';
|
|
3
|
+
export declare class EsolveChangePasswordResult extends EsolveResponseResult {
|
|
4
|
+
password_updated: boolean;
|
|
5
|
+
constructor(response: EsolvePostResponseItem);
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EsolveResponseResult } from '../shared/response-handler/esolve-response-result';
|
|
2
|
+
import { EsolveForgotPasswordResponse } from './esolve-forgot-password-response';
|
|
3
|
+
export declare class EsolveResetPasswordResult extends EsolveResponseResult {
|
|
4
|
+
id: number;
|
|
5
|
+
reset_success: boolean;
|
|
6
|
+
password_matches_old: boolean;
|
|
7
|
+
login_required: boolean;
|
|
8
|
+
constructor(response: EsolveForgotPasswordResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { EsolveStockLocationRecord } from '../locations/esolve-stock-location-record';
|
|
2
|
+
import { EsolveAddressType } from './esolve-address-record';
|
|
3
|
+
import { EsolveTransactionType } from './esolve-transaction';
|
|
4
|
+
export interface EsolveTransactionItemRecord {
|
|
5
|
+
code: string;
|
|
6
|
+
name: string;
|
|
7
|
+
qty: number;
|
|
8
|
+
discount: number;
|
|
9
|
+
vat_rate: number;
|
|
10
|
+
price: number;
|
|
11
|
+
price_exclusive: number;
|
|
12
|
+
price_exclusive_after_discount: number;
|
|
13
|
+
price_inclusive: number;
|
|
14
|
+
price_inclusive_after_discount: number;
|
|
15
|
+
line_total_exclusive: number;
|
|
16
|
+
line_total_exclusive_after_discount: number;
|
|
17
|
+
line_total_inclusive: number;
|
|
18
|
+
line_total_inclusive_after_discount: number;
|
|
19
|
+
}
|
|
20
|
+
export interface EsolveTransactionClientRecord {
|
|
21
|
+
id: number;
|
|
22
|
+
company_name: string;
|
|
23
|
+
account: string;
|
|
24
|
+
branch_code: string;
|
|
25
|
+
firstname: string;
|
|
26
|
+
surname: string;
|
|
27
|
+
email: string;
|
|
28
|
+
contact_number: string;
|
|
29
|
+
}
|
|
30
|
+
export interface EsolveTransactionUserRecord {
|
|
31
|
+
id: number;
|
|
32
|
+
email: string;
|
|
33
|
+
firstname: string;
|
|
34
|
+
surname: string;
|
|
35
|
+
telnumber: string;
|
|
36
|
+
cellnumber: string;
|
|
37
|
+
}
|
|
38
|
+
export interface EsolveTransactionPaymentMethodRecord {
|
|
39
|
+
id: number;
|
|
40
|
+
paymethod_name: string;
|
|
41
|
+
description: string;
|
|
42
|
+
integration_type: string;
|
|
43
|
+
service_provider: string;
|
|
44
|
+
}
|
|
45
|
+
export interface EsolveTransactionLocationRecord extends EsolveStockLocationRecord {
|
|
46
|
+
}
|
|
47
|
+
export interface EsolveTransactionShippingMethodRecord {
|
|
48
|
+
id: number;
|
|
49
|
+
carrier_name: string;
|
|
50
|
+
delivery_category: string;
|
|
51
|
+
location: string;
|
|
52
|
+
description: string;
|
|
53
|
+
pricing: string;
|
|
54
|
+
client_to_collect: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface EsolveTransactionRecord {
|
|
57
|
+
id: number;
|
|
58
|
+
transaction_type: EsolveTransactionType;
|
|
59
|
+
loyaltynumber: string;
|
|
60
|
+
status: string;
|
|
61
|
+
reps_id: number;
|
|
62
|
+
client: EsolveTransactionClientRecord | null;
|
|
63
|
+
user: EsolveTransactionUserRecord | null;
|
|
64
|
+
erp_identifier: string;
|
|
65
|
+
location_details: EsolveTransactionLocationRecord | null;
|
|
66
|
+
external_order_number: string;
|
|
67
|
+
external_invoice_number: string;
|
|
68
|
+
txdate: string;
|
|
69
|
+
txdate_timestamp: number;
|
|
70
|
+
expected_date: string;
|
|
71
|
+
expected_date_timestamp: number;
|
|
72
|
+
invoice_amount: number;
|
|
73
|
+
vat: number;
|
|
74
|
+
discount: number;
|
|
75
|
+
total: number;
|
|
76
|
+
shipping_total: number;
|
|
77
|
+
insurance_total: number;
|
|
78
|
+
payment: number;
|
|
79
|
+
payment_method: string;
|
|
80
|
+
payment_method_details: EsolveTransactionPaymentMethodRecord | null;
|
|
81
|
+
gateway_transaction_id: string;
|
|
82
|
+
payment_reference: string;
|
|
83
|
+
payment_description: string;
|
|
84
|
+
shipping_method: string;
|
|
85
|
+
shipping_method_details: EsolveTransactionShippingMethodRecord | null;
|
|
86
|
+
recipient: string;
|
|
87
|
+
address_type: EsolveAddressType;
|
|
88
|
+
address_description: string;
|
|
89
|
+
pobox: string;
|
|
90
|
+
street_number: string;
|
|
91
|
+
street: string;
|
|
92
|
+
suburb: string;
|
|
93
|
+
city: string;
|
|
94
|
+
province: string;
|
|
95
|
+
country: string;
|
|
96
|
+
postal_code: string;
|
|
97
|
+
transaction_items: EsolveTransactionItemRecord[];
|
|
98
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { EsolveStockLocation } from '../locations/esolve-stock-location';
|
|
2
|
+
import { EsolveAddressType } from './esolve-address-record';
|
|
3
|
+
import { EsolveTransactionRecord } from './esolve-transaction-record';
|
|
4
|
+
export declare type EsolveTransactionType = 'order' | 'quote';
|
|
5
|
+
export declare class EsolveTransaction {
|
|
6
|
+
id: number;
|
|
7
|
+
type: EsolveTransactionType;
|
|
8
|
+
status: string;
|
|
9
|
+
loyalty_number: string;
|
|
10
|
+
external_order_number: string;
|
|
11
|
+
external_invoice_number: string;
|
|
12
|
+
date: Date;
|
|
13
|
+
expected_date: Date;
|
|
14
|
+
client?: EsolveTransactionClient;
|
|
15
|
+
user?: EsolveTransactionUser;
|
|
16
|
+
location?: EsolveTransactionLocation;
|
|
17
|
+
invoice_amount: number;
|
|
18
|
+
vat: number;
|
|
19
|
+
discount: number;
|
|
20
|
+
total: number;
|
|
21
|
+
shipping_total: number;
|
|
22
|
+
insurance_total: number;
|
|
23
|
+
payment_method?: EsolveTransactionPaymentMethod;
|
|
24
|
+
payment: number;
|
|
25
|
+
gateway_transaction_id: string;
|
|
26
|
+
payment_reference: string;
|
|
27
|
+
payment_description: string;
|
|
28
|
+
shipping_method?: EsolveTransactionShippingMethod;
|
|
29
|
+
address: EsolveTransactionAddress;
|
|
30
|
+
items: EsolveTransactionItem[];
|
|
31
|
+
constructor(record: EsolveTransactionRecord);
|
|
32
|
+
private parseTransactionItems;
|
|
33
|
+
}
|
|
34
|
+
export declare class EsolveTransactionClient {
|
|
35
|
+
id: number;
|
|
36
|
+
account: string;
|
|
37
|
+
company_name: string;
|
|
38
|
+
branch_code: string;
|
|
39
|
+
email: string;
|
|
40
|
+
first_name: string;
|
|
41
|
+
last_name: string;
|
|
42
|
+
contact_number: string;
|
|
43
|
+
constructor(id: number, account: string, company_name: string, branch_code: string, email: string, first_name: string, last_name: string, contact_number: string);
|
|
44
|
+
}
|
|
45
|
+
export declare class EsolveTransactionUser {
|
|
46
|
+
id: number;
|
|
47
|
+
email: string;
|
|
48
|
+
first_name: string;
|
|
49
|
+
last_name: string;
|
|
50
|
+
tel_number: string;
|
|
51
|
+
cell_number: string;
|
|
52
|
+
constructor(id: number, email: string, first_name: string, last_name: string, tel_number: string, cell_number: string);
|
|
53
|
+
}
|
|
54
|
+
export declare class EsolveTransactionLocation extends EsolveStockLocation {
|
|
55
|
+
}
|
|
56
|
+
export declare class EsolveTransactionPaymentMethod {
|
|
57
|
+
id: number;
|
|
58
|
+
name: string;
|
|
59
|
+
description: string;
|
|
60
|
+
integration_type: string;
|
|
61
|
+
service_provider: string;
|
|
62
|
+
constructor(id: number, name: string, description: string, integration_type: string, service_provider: string);
|
|
63
|
+
}
|
|
64
|
+
export declare class EsolveTransactionShippingMethod {
|
|
65
|
+
id: number;
|
|
66
|
+
name: string;
|
|
67
|
+
delivery_category: string;
|
|
68
|
+
location: string;
|
|
69
|
+
description: string;
|
|
70
|
+
pricing: string;
|
|
71
|
+
client_to_collect: boolean;
|
|
72
|
+
constructor(id: number, name: string, delivery_category: string, location: string, description: string, pricing: string, client_to_collect: boolean);
|
|
73
|
+
}
|
|
74
|
+
export declare class EsolveTransactionAddress {
|
|
75
|
+
recipient: string;
|
|
76
|
+
address_type: EsolveAddressType;
|
|
77
|
+
address_description: string;
|
|
78
|
+
street_number: string;
|
|
79
|
+
street: string;
|
|
80
|
+
suburb: string;
|
|
81
|
+
city: string;
|
|
82
|
+
province: string;
|
|
83
|
+
country: string;
|
|
84
|
+
postal_code: string;
|
|
85
|
+
pobox: string;
|
|
86
|
+
constructor(recipient: string, address_type: EsolveAddressType, address_description: string, street_number: string, street: string, suburb: string, city: string, province: string, country: string, postal_code: string, pobox: string);
|
|
87
|
+
}
|
|
88
|
+
export declare class EsolveTransactionItem {
|
|
89
|
+
code: string;
|
|
90
|
+
name: string;
|
|
91
|
+
qty: number;
|
|
92
|
+
discount: number;
|
|
93
|
+
vat_rate: number;
|
|
94
|
+
price: EsolveTransactionItemPrice;
|
|
95
|
+
line_total: EsolveTransactionItemPrice;
|
|
96
|
+
constructor(code: string, name: string, qty: number, discount: number, vat_rate: number, price: EsolveTransactionItemPrice, line_total: EsolveTransactionItemPrice);
|
|
97
|
+
}
|
|
98
|
+
export declare class EsolveTransactionItemPrice {
|
|
99
|
+
/**
|
|
100
|
+
* Price without tax
|
|
101
|
+
*/
|
|
102
|
+
price: number;
|
|
103
|
+
/**
|
|
104
|
+
* Price with tax
|
|
105
|
+
*/
|
|
106
|
+
price_with_tax: number;
|
|
107
|
+
/**
|
|
108
|
+
* Price without tax and with discounts applied if appilcable
|
|
109
|
+
*/
|
|
110
|
+
price_discounted: number;
|
|
111
|
+
/**
|
|
112
|
+
* Price with tax and with discounts applied if appilcable
|
|
113
|
+
*/
|
|
114
|
+
price_with_tax_discounted: number;
|
|
115
|
+
constructor(
|
|
116
|
+
/**
|
|
117
|
+
* Price without tax
|
|
118
|
+
*/
|
|
119
|
+
price: number,
|
|
120
|
+
/**
|
|
121
|
+
* Price with tax
|
|
122
|
+
*/
|
|
123
|
+
price_with_tax: number,
|
|
124
|
+
/**
|
|
125
|
+
* Price without tax and with discounts applied if appilcable
|
|
126
|
+
*/
|
|
127
|
+
price_discounted: number,
|
|
128
|
+
/**
|
|
129
|
+
* Price with tax and with discounts applied if appilcable
|
|
130
|
+
*/
|
|
131
|
+
price_with_tax_discounted: number);
|
|
132
|
+
}
|
|
@@ -24,11 +24,11 @@ export declare class EsolveAuthService {
|
|
|
24
24
|
private errorHandler;
|
|
25
25
|
private cookieService;
|
|
26
26
|
constructor(config: EsolveConnectConfig, http: HttpClient, session: EsolveSessionService, errorHandler: EsolveErrorHandlerService, cookieService: CookieService);
|
|
27
|
-
private checkAccessToken;
|
|
28
27
|
getAccessToken(email: string, password: string, anonymous?: boolean): Observable<EsolveAuthResponseData>;
|
|
29
28
|
autoLogin(): void;
|
|
30
29
|
login(email: string, password: string): Observable<number>;
|
|
31
30
|
logout(): Promise<EsolveAuthResponseData>;
|
|
31
|
+
private checkAccessToken;
|
|
32
32
|
private handleExpiration;
|
|
33
33
|
private handleAuthentication;
|
|
34
34
|
private handleError;
|
|
@@ -7,6 +7,12 @@ export declare class EsolveBannerService {
|
|
|
7
7
|
private config;
|
|
8
8
|
private http;
|
|
9
9
|
constructor(config: EsolveConnectConfig, http: HttpClient);
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves banners records from eSolve instance
|
|
12
|
+
*
|
|
13
|
+
* @returns An observable of eSolve banners.
|
|
14
|
+
*/
|
|
15
|
+
getBanners(identifier?: string, banner_display_container?: string, enable_date_filter?: boolean): Observable<EsolveBanner[]>;
|
|
10
16
|
private processBannerImageHotspots;
|
|
11
17
|
private processBannerImages;
|
|
12
18
|
/**
|
|
@@ -15,12 +21,6 @@ export declare class EsolveBannerService {
|
|
|
15
21
|
* @returns List of banners
|
|
16
22
|
*/
|
|
17
23
|
private processBanners;
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves banners records from eSolve instance
|
|
20
|
-
*
|
|
21
|
-
* @returns An observable of eSolve banners.
|
|
22
|
-
*/
|
|
23
|
-
getBanners(identifier?: string, banner_display_container?: string, enable_date_filter?: boolean): Observable<EsolveBanner[]>;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveBannerService, never>;
|
|
25
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveBannerService>;
|
|
26
26
|
}
|
|
@@ -15,18 +15,6 @@ export declare class EsolveCartService {
|
|
|
15
15
|
private responseHandler;
|
|
16
16
|
private _cached_tracking;
|
|
17
17
|
constructor(config: EsolveConnectConfig, http: HttpClient, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService);
|
|
18
|
-
/**
|
|
19
|
-
* Processes the eSolve tree records.
|
|
20
|
-
* @param cart_item_records Records to process
|
|
21
|
-
* @returns An array of processed cart items
|
|
22
|
-
*/
|
|
23
|
-
private processCart;
|
|
24
|
-
/**
|
|
25
|
-
* Processes the eSolve cart totals
|
|
26
|
-
* @param record Data to process
|
|
27
|
-
* @returns Processed cart totals
|
|
28
|
-
*/
|
|
29
|
-
private processCartTotals;
|
|
30
18
|
/**
|
|
31
19
|
* Retrieves the current cart
|
|
32
20
|
* @returns An `Observable` with an array of cart items
|
|
@@ -60,6 +48,18 @@ export declare class EsolveCartService {
|
|
|
60
48
|
* @returns An `Observable` with the transaction ID
|
|
61
49
|
*/
|
|
62
50
|
checkout(type: 'order' | 'quote', addresses_id: number, shipping_id: number, payment_method_id?: number, location_id?: number, comments?: string): Observable<EsolveCheckoutResult>;
|
|
51
|
+
/**
|
|
52
|
+
* Processes the eSolve tree records.
|
|
53
|
+
* @param cart_item_records Records to process
|
|
54
|
+
* @returns An array of processed cart items
|
|
55
|
+
*/
|
|
56
|
+
private processCart;
|
|
57
|
+
/**
|
|
58
|
+
* Processes the eSolve cart totals
|
|
59
|
+
* @param record Data to process
|
|
60
|
+
* @returns Processed cart totals
|
|
61
|
+
*/
|
|
62
|
+
private processCartTotals;
|
|
63
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveCartService, never>;
|
|
64
64
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveCartService>;
|
|
65
65
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface EsolveCategoryTreeItemOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Generated ID. Does not require type to be set.
|
|
4
|
+
*/
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Type category tree item. Required for if esolve_id or sef_description is set
|
|
8
|
+
*/
|
|
9
|
+
type?: 'category' | 'subcategory';
|
|
10
|
+
/**
|
|
11
|
+
* Search engine friendly description. Requires type to be set.
|
|
12
|
+
*/
|
|
13
|
+
sef_description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* ID from eSolve. Requires type to be set.
|
|
16
|
+
*/
|
|
17
|
+
esolve_id?: number | string;
|
|
18
|
+
}
|
|
@@ -2,36 +2,12 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { EsolveConnectConfig } from '../esolve-connect.config';
|
|
4
4
|
import { EsolveCategoryTreeItem } from './esolve-category-tree-item';
|
|
5
|
+
import { EsolveCategoryTreeItemOptions } from './esolve-category-tree-item-options';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
interface EsolveCategoryTreeItemOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Generated ID. Does not require type to be set.
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Type category tree item. Required for if esolve_id or sef_description is set
|
|
13
|
-
*/
|
|
14
|
-
type?: 'category' | 'subcategory';
|
|
15
|
-
/**
|
|
16
|
-
* Search engine friendly description. Requires type to be set.
|
|
17
|
-
*/
|
|
18
|
-
sef_description?: string;
|
|
19
|
-
/**
|
|
20
|
-
* ID from eSolve. Requires type to be set.
|
|
21
|
-
*/
|
|
22
|
-
esolve_id?: number | string;
|
|
23
|
-
}
|
|
24
7
|
export declare class EsolveCategoryTreeService {
|
|
25
8
|
private config;
|
|
26
9
|
private http;
|
|
27
10
|
constructor(config: EsolveConnectConfig, http: HttpClient);
|
|
28
|
-
/**
|
|
29
|
-
* Processes the eSolve tree records and converts them into the correct format.
|
|
30
|
-
* @param tree_records Records to process
|
|
31
|
-
*/
|
|
32
|
-
private processTree;
|
|
33
|
-
private processTreeItem;
|
|
34
|
-
private processID;
|
|
35
11
|
/**
|
|
36
12
|
* Retrieves the category tree from eSolve instance and coverts it to the correct format.
|
|
37
13
|
*/
|
|
@@ -41,7 +17,13 @@ export declare class EsolveCategoryTreeService {
|
|
|
41
17
|
* @param options Filter options
|
|
42
18
|
*/
|
|
43
19
|
getCategoryTreeItem(options: EsolveCategoryTreeItemOptions): Observable<EsolveCategoryTreeItem>;
|
|
20
|
+
/**
|
|
21
|
+
* Processes the eSolve tree records and converts them into the correct format.
|
|
22
|
+
* @param tree_records Records to process
|
|
23
|
+
*/
|
|
24
|
+
private processTree;
|
|
25
|
+
private processTreeItem;
|
|
26
|
+
private processID;
|
|
44
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveCategoryTreeService, never>;
|
|
45
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveCategoryTreeService>;
|
|
46
29
|
}
|
|
47
|
-
export {};
|
|
@@ -7,17 +7,17 @@ export declare class EsolveLocationsService {
|
|
|
7
7
|
private config;
|
|
8
8
|
private http;
|
|
9
9
|
constructor(config: EsolveConnectConfig, http: HttpClient);
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves a list of stock locations
|
|
12
|
+
* @returns An `Observable` with an array of stock locations
|
|
13
|
+
*/
|
|
14
|
+
getStockLocations(): Observable<EsolveStockLocation[]>;
|
|
10
15
|
/**
|
|
11
16
|
* Processes the eSolve stock location records.
|
|
12
17
|
* @param records Records to process
|
|
13
18
|
* @returns An array of processed stock location records
|
|
14
19
|
*/
|
|
15
20
|
private processStockLocations;
|
|
16
|
-
/**
|
|
17
|
-
* Retrieves a list of stock locations
|
|
18
|
-
* @returns An `Observable` with an array of stock locations
|
|
19
|
-
*/
|
|
20
|
-
getStockLocations(): Observable<EsolveStockLocation[]>;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveLocationsService, never>;
|
|
22
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveLocationsService>;
|
|
23
23
|
}
|
|
@@ -17,7 +17,7 @@ export declare class EsolveStockLocation {
|
|
|
17
17
|
trading_times: EsolveStockLocationTradingTimes;
|
|
18
18
|
constructor(record: EsolveStockLocationRecord);
|
|
19
19
|
}
|
|
20
|
-
declare class EsolveStockLocationAddress {
|
|
20
|
+
export declare class EsolveStockLocationAddress {
|
|
21
21
|
street: string;
|
|
22
22
|
suburb: string;
|
|
23
23
|
city: string;
|
|
@@ -28,21 +28,20 @@ declare class EsolveStockLocationAddress {
|
|
|
28
28
|
longitude: number;
|
|
29
29
|
constructor(street: string, suburb: string, city: string, province: string, country: string, postal_code: string, latitude: number, longitude: number);
|
|
30
30
|
}
|
|
31
|
-
declare class EsolveStockLocationPOBoxAddress {
|
|
31
|
+
export declare class EsolveStockLocationPOBoxAddress {
|
|
32
32
|
pobox: string;
|
|
33
33
|
city: string;
|
|
34
34
|
postal_code: string;
|
|
35
35
|
constructor(pobox: string, city: string, postal_code: string);
|
|
36
36
|
}
|
|
37
|
-
declare class EsolveStockLocationContactInfo {
|
|
37
|
+
export declare class EsolveStockLocationContactInfo {
|
|
38
38
|
telnumber: string[];
|
|
39
39
|
cellnumber: string;
|
|
40
40
|
email: string;
|
|
41
41
|
fax: string;
|
|
42
42
|
constructor(telnumber: string[], cellnumber: string, email: string, fax: string);
|
|
43
43
|
}
|
|
44
|
-
declare class EsolveStockLocationTradingTimes {
|
|
45
|
-
trading_hours_additional_info: string;
|
|
44
|
+
export declare class EsolveStockLocationTradingTimes {
|
|
46
45
|
monday: EsolveStockLocationTradingTimesDay;
|
|
47
46
|
tuesday: EsolveStockLocationTradingTimesDay;
|
|
48
47
|
wednesday: EsolveStockLocationTradingTimesDay;
|
|
@@ -51,11 +50,11 @@ declare class EsolveStockLocationTradingTimes {
|
|
|
51
50
|
saturday: EsolveStockLocationTradingTimesDay;
|
|
52
51
|
sunday: EsolveStockLocationTradingTimesDay;
|
|
53
52
|
public_holiday: EsolveStockLocationTradingTimesDay;
|
|
54
|
-
|
|
53
|
+
trading_hours_additional_info: string;
|
|
54
|
+
constructor(monday: EsolveStockLocationTradingTimesDay, tuesday: EsolveStockLocationTradingTimesDay, wednesday: EsolveStockLocationTradingTimesDay, thursday: EsolveStockLocationTradingTimesDay, friday: EsolveStockLocationTradingTimesDay, saturday: EsolveStockLocationTradingTimesDay, sunday: EsolveStockLocationTradingTimesDay, public_holiday: EsolveStockLocationTradingTimesDay, trading_hours_additional_info?: string);
|
|
55
55
|
}
|
|
56
|
-
declare class EsolveStockLocationTradingTimesDay {
|
|
56
|
+
export declare class EsolveStockLocationTradingTimesDay {
|
|
57
57
|
open: string;
|
|
58
58
|
close: string;
|
|
59
59
|
constructor(open: string, close: string);
|
|
60
60
|
}
|
|
61
|
-
export {};
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveMediaArticle } from './esolve-media-article';
|
|
4
3
|
import { EsolveConnectConfig } from '../esolve-connect.config';
|
|
4
|
+
import { EsolveMediaArticle } from './esolve-media-article';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class EsolveMediaService {
|
|
7
7
|
private config;
|
|
8
8
|
private http;
|
|
9
9
|
constructor(config: EsolveConnectConfig, http: HttpClient);
|
|
10
|
-
private processMediaRecord;
|
|
11
|
-
/**
|
|
12
|
-
* Retrieves media records from eSolve instance.
|
|
13
|
-
* @param params Header params
|
|
14
|
-
*/
|
|
15
|
-
private getMediaRecords;
|
|
16
10
|
/**
|
|
17
11
|
* Retrieves the media record from the eSolve instance using the identifier.
|
|
18
12
|
* @param identifier String representing the eSolve media indentifier
|
|
@@ -23,6 +17,12 @@ export declare class EsolveMediaService {
|
|
|
23
17
|
* @param media_group String representing the eSolve media group
|
|
24
18
|
*/
|
|
25
19
|
getGroupedMediaArticles(media_group: string): Observable<EsolveMediaArticle[]>;
|
|
20
|
+
private processMediaRecord;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves media records from eSolve instance.
|
|
23
|
+
* @param params Header params
|
|
24
|
+
*/
|
|
25
|
+
private getMediaRecords;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveMediaService, never>;
|
|
27
27
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveMediaService>;
|
|
28
28
|
}
|
|
@@ -4,18 +4,8 @@ import { EsolveConnectConfig } from '../esolve-connect.config';
|
|
|
4
4
|
import { EsolveNewsArticle } from './esolve-news-article';
|
|
5
5
|
import { EsolveNewsGroup } from './esolve-news-group';
|
|
6
6
|
import { EsolveNewsArticleList } from './esolve-news-article-list';
|
|
7
|
+
import { EsolveNewsArticleOptions } from './esolve-news-article-options';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
interface EsolveNewsArticleOptions {
|
|
9
|
-
rows?: number;
|
|
10
|
-
page?: number;
|
|
11
|
-
news_group_id?: number;
|
|
12
|
-
news_group_sef?: string;
|
|
13
|
-
feature_only?: boolean;
|
|
14
|
-
manufacturers_id?: number;
|
|
15
|
-
ranges_id?: number;
|
|
16
|
-
from_date?: string;
|
|
17
|
-
to_date?: string;
|
|
18
|
-
}
|
|
19
9
|
export declare class EsolveNewsService {
|
|
20
10
|
private config;
|
|
21
11
|
private http;
|
|
@@ -28,4 +18,3 @@ export declare class EsolveNewsService {
|
|
|
28
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveNewsService, never>;
|
|
29
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveNewsService>;
|
|
30
20
|
}
|
|
31
|
-
export {};
|
|
@@ -12,12 +12,8 @@ export interface EsolvePaymentMethodRecord {
|
|
|
12
12
|
swift_number: string;
|
|
13
13
|
branch_code: string;
|
|
14
14
|
currency_code: string;
|
|
15
|
-
terminal_id: string;
|
|
16
|
-
terminal_id_secondary: string;
|
|
17
15
|
merchant_id: string;
|
|
18
16
|
application_id: string;
|
|
19
|
-
api_username: string;
|
|
20
|
-
api_password: string;
|
|
21
17
|
api_signature: string;
|
|
22
18
|
is_gateway: boolean;
|
|
23
19
|
must_store_card_details: boolean;
|
|
@@ -6,12 +6,8 @@ export declare class EsolvePaymentMethod {
|
|
|
6
6
|
description: string;
|
|
7
7
|
display_banking_details: boolean;
|
|
8
8
|
currency_code: string;
|
|
9
|
-
terminal_id: string;
|
|
10
|
-
terminal_id_secondary: string;
|
|
11
9
|
merchant_id: string;
|
|
12
10
|
application_id: string;
|
|
13
|
-
api_username: string;
|
|
14
|
-
api_password: string;
|
|
15
11
|
api_signature: string;
|
|
16
12
|
is_gateway: boolean;
|
|
17
13
|
must_store_card_details: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { EsolveConnectConfig } from '../esolve-connect.config';
|
|
4
|
+
import { EsolveResult } from '../shared/esolve-result';
|
|
4
5
|
import { EsolveErrorHandlerService } from '../shared/error-handler/esolve-error-handler.service';
|
|
5
6
|
import { EsolveResponseHandlerService } from '../shared/response-handler/esolve-response-handler.service';
|
|
6
7
|
import { EsolvePaymentMethod } from './esolve-payment-method';
|
|
@@ -48,6 +49,7 @@ export declare class EsolvePaymentService {
|
|
|
48
49
|
* @returns An `Observable` with the result of the vault set.
|
|
49
50
|
*/
|
|
50
51
|
setVaultItem(payment_methods_id: number, card_data: EsolveCardData): Observable<EsolveVaultItemResult>;
|
|
52
|
+
deleteVaultItem(id: number): Observable<EsolveResult>;
|
|
51
53
|
/**
|
|
52
54
|
* Sets the payment for the specified transaction using selected payment method.
|
|
53
55
|
* @param transaction_id eSolve ID to the transaction
|