nextemos 4.7.13 → 4.7.14
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.
|
@@ -13,6 +13,9 @@ export interface IGetCartResponse extends IResponse {
|
|
|
13
13
|
export interface IGetCartItemCountResponse extends IResponse {
|
|
14
14
|
count: number;
|
|
15
15
|
}
|
|
16
|
+
export interface IGetInstallmentOptionsResponse extends IResponse {
|
|
17
|
+
installmentOptions: IInstallmentOption[];
|
|
18
|
+
}
|
|
16
19
|
export interface ICart {
|
|
17
20
|
documentId: string;
|
|
18
21
|
docNo: string;
|
|
@@ -160,3 +163,17 @@ export interface IShipmentOption {
|
|
|
160
163
|
creditCard: boolean;
|
|
161
164
|
note: string;
|
|
162
165
|
}
|
|
166
|
+
export interface IInstallmentOption {
|
|
167
|
+
bankId: number;
|
|
168
|
+
bankName: string;
|
|
169
|
+
logoUrl: string;
|
|
170
|
+
order: number;
|
|
171
|
+
options: {
|
|
172
|
+
name: string;
|
|
173
|
+
count: number;
|
|
174
|
+
commissionRate: number;
|
|
175
|
+
price: number;
|
|
176
|
+
totalPrice: number;
|
|
177
|
+
totals: ITotal[];
|
|
178
|
+
}[];
|
|
179
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse,
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse } from '../..';
|
|
2
2
|
export interface IAddToCartRequest {
|
|
3
3
|
flags?: string | number | string[];
|
|
4
4
|
productId: number;
|
|
@@ -78,5 +78,5 @@ export interface IShoppingCartService extends IService {
|
|
|
78
78
|
RemoveFromCart: (data: IRemoveFromCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
79
79
|
ChangeQuantity: (data: IChangeQuantityRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
80
80
|
ChangeCartDetail: (data: IChangeCartDetailRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
81
|
-
GetInstallmentOptions: (data: IGetInstallmentOptionsRequest, options?: IRequestInit) => Promise<IApiResponse<
|
|
81
|
+
GetInstallmentOptions: (data: IGetInstallmentOptionsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetInstallmentOptionsResponse>>;
|
|
82
82
|
}
|