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.
@@ -19,6 +19,7 @@ export declare class CartService {
19
19
  get units(): number;
20
20
  get uuid(): string;
21
21
  constructor();
22
+ cartWeight(): number;
22
23
  private changeCart;
23
24
  discountCode(code: string): Observable<Cart & {
24
25
  __errors: any;
@@ -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(): ShippingMethodType;
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<ShippingMethodType>): FormControl;
38
- shippingMethodSet(form: FormControl, methods: Array<ShippingMethodType>, cartService: CartService, gotoPayment: boolean): void;
39
- changeShippingMethod(cartService: CartService, methods: Array<ShippingMethodType>, shippingMethodId: number): void;
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<ShippingMethodType> | false>;
45
+ shippingMethods(): Observable<Array<ShippingMethod> | false>;
46
46
  shippingAddressForm(formElement: HTMLFormElement): Observable<{
47
47
  form: FormControl;
48
48
  addresses: Array<ShippingAddress>;
@@ -5,6 +5,7 @@ export declare const EMPTY_SHIPPINGMETHOD: {
5
5
  taxBase: number;
6
6
  taxAmount: number;
7
7
  total: number;
8
+ maximumWeight: number;
8
9
  paymentMethods: never[];
9
10
  };
10
11
  export declare const LAST_ORDER: {
@@ -74,7 +74,7 @@ export interface OrderType {
74
74
  payment: OrderPaymentType;
75
75
  pricesTaxIncluded: boolean;
76
76
  shippingAddress: ShippingAddress;
77
- shippingMethod: ShippingMethodType;
77
+ shippingMethod: ShippingMethod;
78
78
  total: number;
79
79
  totalTaxAmount: number;
80
80
  totalTaxBase: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apirocket",
3
- "version": "0.16.6",
3
+ "version": "0.16.7",
4
4
  "description": " ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",