@infrab4a/connect-angular 4.0.0-beta.2 → 4.0.0-beta.21

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.
@@ -1,7 +1,8 @@
1
1
  export * from './auth.service';
2
2
  export * from './cart.service';
3
- export * from './checkout.service';
4
3
  export * from './checkout-subscription.service';
5
- export * from './order.service';
4
+ export * from './checkout.service';
6
5
  export * from './coupon.service';
7
6
  export * from './home-shop.service';
7
+ export * from './order.service';
8
+ export * from './shipping.service';
@@ -0,0 +1,19 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { HomeShopService } from './home-shop.service';
4
+ import { ShippingMethodResponse } from './types/shipping-methods.type';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ShippingService {
7
+ private http;
8
+ private apiUrl;
9
+ private homeService;
10
+ constructor(http: HttpClient, apiUrl: string, homeService: HomeShopService);
11
+ getShippingMethods(shop: string, zip: string, weightGrams: number, totalPrice: number, personId: string, subscriptionPlan?: string): Observable<Array<ShippingMethodResponse & {
12
+ ShippingCompanyName?: string;
13
+ }>>;
14
+ private isFreeShippingBySubscription;
15
+ private isHalfShippingBySubscription;
16
+ private isHolidays;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShippingService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<ShippingService>;
19
+ }
@@ -0,0 +1,12 @@
1
+ export interface ShippingMethodResponse {
2
+ daysToDelivery: number;
3
+ currency: string;
4
+ description: string;
5
+ maxDeliveryDate: string;
6
+ minDeliveryDate: string;
7
+ serviceCode: string;
8
+ serviceName: string;
9
+ totalPrice: number;
10
+ additionalDescription: string;
11
+ cnpj: string;
12
+ }