apirocket 0.16.6 → 0.16.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.
|
@@ -14,7 +14,7 @@ export declare class CheckoutService {
|
|
|
14
14
|
get paymentMethod(): PaymentMethod;
|
|
15
15
|
get status(): CheckoutStatus;
|
|
16
16
|
get shippingAddress(): ShippingAddress;
|
|
17
|
-
get shippingMethod():
|
|
17
|
+
get shippingMethod(): ShippingMethod;
|
|
18
18
|
get steps(): Set<CheckoutStatus>;
|
|
19
19
|
get taxAmount(): number;
|
|
20
20
|
get total(): number;
|
|
@@ -34,15 +34,15 @@ export declare class CheckoutService {
|
|
|
34
34
|
signInSubmit(_form: FormControl): void;
|
|
35
35
|
close(): void;
|
|
36
36
|
open(): void;
|
|
37
|
-
shippingMethodForm(formElement: HTMLFormElement, shippingMethods: Array<
|
|
38
|
-
shippingMethodSet(form: FormControl, methods: Array<
|
|
39
|
-
changeShippingMethod(cartService: CartService, methods: Array<
|
|
37
|
+
shippingMethodForm(formElement: HTMLFormElement, shippingMethods: Array<ShippingMethod>): FormControl;
|
|
38
|
+
shippingMethodSet(form: FormControl, methods: Array<ShippingMethod>, cartService: CartService, gotoPayment: boolean): void;
|
|
39
|
+
changeShippingMethod(cartService: CartService, methods: Array<ShippingMethod>, shippingMethodId: number): void;
|
|
40
40
|
stripePayment(orderId: number, hash: string): Observable<any>;
|
|
41
41
|
stripePaymentConfirm(orderId: number, paymentId: string): Observable<PaymentInfo>;
|
|
42
42
|
clearOrder(): void;
|
|
43
43
|
paypalApprobe(data: any): Observable<void>;
|
|
44
44
|
updateTotal(cartService: CartService, changeNotification: boolean): void;
|
|
45
|
-
shippingMethods(): Observable<Array<
|
|
45
|
+
shippingMethods(): Observable<Array<ShippingMethod> | false>;
|
|
46
46
|
shippingAddressForm(formElement: HTMLFormElement): Observable<{
|
|
47
47
|
form: FormControl;
|
|
48
48
|
addresses: Array<ShippingAddress>;
|
package/dist/types/defaults.d.ts
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export interface OrderType {
|
|
|
74
74
|
payment: OrderPaymentType;
|
|
75
75
|
pricesTaxIncluded: boolean;
|
|
76
76
|
shippingAddress: ShippingAddress;
|
|
77
|
-
shippingMethod:
|
|
77
|
+
shippingMethod: ShippingMethod;
|
|
78
78
|
total: number;
|
|
79
79
|
totalTaxAmount: number;
|
|
80
80
|
totalTaxBase: number;
|