apirocket 0.10.3 → 0.10.4

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.
@@ -3,7 +3,7 @@ declare class CheckoutAddress implements AddressType {
3
3
  address?: string;
4
4
  address2?: string;
5
5
  city?: string;
6
- country?: CountryType;
6
+ country?: CountryRecord;
7
7
  id: number;
8
8
  state?: StateType;
9
9
  postalCode?: string;
@@ -2,11 +2,12 @@ import { Observable } from "rxjs";
2
2
  import type { CustomerService } from './customer.service';
3
3
  import type { CheckoutService } from "./checkout.service";
4
4
  import type { CartItem, CartStatus, LastOrder, OrderType } from "@src/types/types";
5
+ import type { ShippingAddress } from "@src/models/shipping-address.model";
5
6
  export declare class CartService {
6
7
  #private;
7
8
  readonly change$: Observable<CartService>;
8
9
  get count(): number;
9
- get country(): CountryType;
10
+ get country(): CountryRecord;
10
11
  get items(): Array<CartItem>;
11
12
  get lastOrder(): LastOrder;
12
13
  get numItems(): number;
@@ -38,6 +39,9 @@ export declare class CartService {
38
39
  removeItem(item: CartItem): void;
39
40
  updateItem(item: CartItem, quantity: number): void;
40
41
  private addItemCart;
41
- setCountryId(countryId: number): void;
42
+ setCountryData(country: CountryRecord): void;
43
+ private updateShippingData;
44
+ private cartUpdate;
42
45
  update(): void;
46
+ updateShippingAddress(shippingAddress: ShippingAddress): Observable<any>;
43
47
  }
@@ -21,8 +21,8 @@ export declare class CheckoutService {
21
21
  get steps(): Set<CheckoutStatus>;
22
22
  get taxAmount(): number;
23
23
  get total(): number;
24
- private getShippingAddress;
25
24
  constructor(cartService: CartService, customer: CustomerService);
25
+ private getShippingAddress;
26
26
  private saveStorage;
27
27
  setStatus(newStatus: CheckoutStatus): void;
28
28
  private restoreStorage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apirocket",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": " ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",