apirocket 0.6.0 → 0.6.2
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.
|
@@ -16,6 +16,7 @@ export declare class CartService {
|
|
|
16
16
|
get units(): number;
|
|
17
17
|
get uuid(): string;
|
|
18
18
|
constructor();
|
|
19
|
+
clearOrder(lastOrderId: number, lastOrderHash: string): void;
|
|
19
20
|
private getItems;
|
|
20
21
|
private restoreStorage;
|
|
21
22
|
private saveStorage;
|
|
@@ -25,7 +26,6 @@ export declare class CartService {
|
|
|
25
26
|
add(data: CartItem): void;
|
|
26
27
|
close(): void;
|
|
27
28
|
open(fullScreen: boolean): void;
|
|
28
|
-
setPayment(lastOrderId: number, lastOrderHash: string): void;
|
|
29
29
|
orderSummary(id: number, hash: string): Observable<OrderType>;
|
|
30
30
|
addFromTarget(target: HTMLElement): void;
|
|
31
31
|
private setStatus;
|
|
@@ -10,6 +10,8 @@ export declare class CheckoutService {
|
|
|
10
10
|
#private;
|
|
11
11
|
readonly change$: Observable<CheckoutService>;
|
|
12
12
|
get billingAddress(): BillingAddress;
|
|
13
|
+
get customerOrder(): string;
|
|
14
|
+
get notes(): string;
|
|
13
15
|
get paymentAddress(): boolean;
|
|
14
16
|
get paymentMethod(): PaymentMethod;
|
|
15
17
|
get status(): CheckoutStatus;
|
|
@@ -21,6 +23,11 @@ export declare class CheckoutService {
|
|
|
21
23
|
constructor(cartService: CartService, customer: CustomerService);
|
|
22
24
|
private saveStorage;
|
|
23
25
|
setStatus(newStatus: CheckoutStatus): void;
|
|
26
|
+
private restoreStorage;
|
|
27
|
+
shippingAddressForm(formElement: HTMLFormElement, customerService: CustomerService, account: AccountService): Observable<{
|
|
28
|
+
form: FormControl;
|
|
29
|
+
addresses: Array<AccountShippingAddress>;
|
|
30
|
+
}>;
|
|
24
31
|
formSignIn(form: HTMLFormElement): FormControl;
|
|
25
32
|
signInSubmit(_form: FormControl): void;
|
|
26
33
|
close(): void;
|
|
@@ -29,7 +36,6 @@ export declare class CheckoutService {
|
|
|
29
36
|
paymentForm(formElement: HTMLFormElement, paymentMethods: Array<PaymentMethodOption>): FormControl;
|
|
30
37
|
shippingMethodForm(formElement: HTMLFormElement, shippingMethods: Array<ShippingMethodType>): FormControl;
|
|
31
38
|
shippingMethodSet(form: FormControl, methods: Array<ShippingMethodType>, cartService: CartService, gotoPayment: boolean): void;
|
|
32
|
-
private restoreStorage;
|
|
33
39
|
shippingMethods(): Observable<Array<ShippingMethodType>>;
|
|
34
40
|
updateTotal(cartService: CartService): void;
|
|
35
41
|
resetPassword(form: FormControl): void;
|
|
@@ -39,9 +45,6 @@ export declare class CheckoutService {
|
|
|
39
45
|
stripePayment(orderId: number, hash: string): Observable<any>;
|
|
40
46
|
stripePaymentConfirm(orderId: number, paymentId: string): Observable<any>;
|
|
41
47
|
private shippingAddressSelect;
|
|
42
|
-
shippingAddressForm(formElement: HTMLFormElement, customerService: CustomerService, account: AccountService): Observable<{
|
|
43
|
-
form: FormControl;
|
|
44
|
-
addresses: Array<AccountShippingAddress>;
|
|
45
|
-
}>;
|
|
46
48
|
shippingAddressSet(form: FormControl, customerService: CustomerService, account: AccountService): void;
|
|
49
|
+
clearOrder(): void;
|
|
47
50
|
}
|
package/dist/types/types.d.ts
CHANGED