apirocket 0.14.6 → 0.14.7
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.
|
@@ -22,6 +22,10 @@ export declare class CheckoutService {
|
|
|
22
22
|
get total(): number;
|
|
23
23
|
constructor(cartService: CartService, customer: CustomerService);
|
|
24
24
|
private getShippingAddress;
|
|
25
|
+
paymentForm(formElement: HTMLFormElement, paymentMethods: Array<PaymentMethodOption>): Observable<{
|
|
26
|
+
form: FormControl;
|
|
27
|
+
}>;
|
|
28
|
+
paymentSet(form: FormControl, payments: Array<PaymentMethodOption>): Observable<any>;
|
|
25
29
|
private saveStorage;
|
|
26
30
|
setStatus(newStatus: CheckoutStatus): void;
|
|
27
31
|
private restoreStorage;
|
|
@@ -34,14 +38,12 @@ export declare class CheckoutService {
|
|
|
34
38
|
close(): void;
|
|
35
39
|
open(): void;
|
|
36
40
|
private initCountryControl;
|
|
37
|
-
paymentForm(formElement: HTMLFormElement, paymentMethods: Array<PaymentMethodOption>): FormControl;
|
|
38
41
|
shippingMethodForm(formElement: HTMLFormElement, shippingMethods: Array<ShippingMethodType>): FormControl;
|
|
39
42
|
shippingMethodSet(form: FormControl, methods: Array<ShippingMethodType>, cartService: CartService, gotoPayment: boolean): void;
|
|
40
43
|
changeShippingMethod(cartService: CartService, methods: Array<ShippingMethodType>, shippingMethodId: number): void;
|
|
41
44
|
resetPassword(form: FormControl): void;
|
|
42
45
|
private otherShippingAddress;
|
|
43
46
|
stripeSettings(methodId: number): Observable<StripeSettings>;
|
|
44
|
-
paymentSet(form: FormControl, payments: Array<PaymentMethodOption>): Observable<any>;
|
|
45
47
|
stripePayment(orderId: number, hash: string): Observable<any>;
|
|
46
48
|
stripePaymentConfirm(orderId: number, paymentId: string): Observable<PaymentInfo>;
|
|
47
49
|
private shippingAddressSelect;
|
|
@@ -17,8 +17,8 @@ export declare class CustomerService implements Authentication {
|
|
|
17
17
|
get isLogged(): boolean;
|
|
18
18
|
constructor();
|
|
19
19
|
private changeCustomer;
|
|
20
|
-
createBillingAddress(input: Omit<
|
|
21
|
-
createShippingAddress(input: Omit<
|
|
20
|
+
createBillingAddress(input: Omit<AccountBillingAddress, 'id'>): Promise<unknown>;
|
|
21
|
+
createShippingAddress(input: Omit<AccountShippingAddress, 'id'>): Promise<unknown>;
|
|
22
22
|
deleteBillingAddress(id: number): Promise<unknown>;
|
|
23
23
|
deleteShippingAddress(id: number): Promise<unknown>;
|
|
24
24
|
myAccount(): Promise<CustomerAccount>;
|
|
@@ -35,9 +35,9 @@ export declare class CustomerService implements Authentication {
|
|
|
35
35
|
lastName?: string;
|
|
36
36
|
phone?: string;
|
|
37
37
|
}): void;
|
|
38
|
-
updateBillingAddress(input:
|
|
38
|
+
updateBillingAddress(input: AccountBillingAddress): Promise<unknown>;
|
|
39
39
|
updateMyAccount(data: InputUpdateAccount): Promise<boolean>;
|
|
40
|
-
updateShippingAddress(input:
|
|
40
|
+
updateShippingAddress(input: AccountShippingAddress): Promise<unknown>;
|
|
41
41
|
logout(): Promise<{
|
|
42
42
|
status: number;
|
|
43
43
|
}>;
|
|
@@ -63,8 +63,8 @@ export declare function customerProxy(customer: CustomerService): {
|
|
|
63
63
|
type: CustomerType;
|
|
64
64
|
isLogged: boolean;
|
|
65
65
|
countries: () => Promise<Country[]>;
|
|
66
|
-
createBillingAddress: (input: Omit<
|
|
67
|
-
createShippingAddress: (input: Omit<
|
|
66
|
+
createBillingAddress: (input: Omit<AccountBillingAddress, 'id'>) => Promise<unknown>;
|
|
67
|
+
createShippingAddress: (input: Omit<AccountShippingAddress, 'id'>) => Promise<unknown>;
|
|
68
68
|
deleteShippingAddress: (id: number) => Promise<unknown>;
|
|
69
69
|
deleteBillingAddress: (id: number) => Promise<unknown>;
|
|
70
70
|
myAccount: () => Promise<CustomerAccount>;
|
|
@@ -75,6 +75,6 @@ export declare function customerProxy(customer: CustomerService): {
|
|
|
75
75
|
subscribe: (cb: (customer: CustomerService) => void) => () => void;
|
|
76
76
|
updateMyAccount: (input: InputUpdateAccount) => Promise<boolean>;
|
|
77
77
|
updatePassword: (oldPassword: string, newPassword: string) => Promise<boolean>;
|
|
78
|
-
updateBillingAddress: (input:
|
|
79
|
-
updateShippingAddress: (input:
|
|
78
|
+
updateBillingAddress: (input: AccountBillingAddress) => Promise<unknown>;
|
|
79
|
+
updateShippingAddress: (input: AccountShippingAddress) => Promise<unknown>;
|
|
80
80
|
};
|