nextemos 5.1.14 → 5.1.16
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.
- package/dist/interfaces/member.d.ts +5 -0
- package/dist/interfaces/shoppingcart.d.ts +2 -0
- package/dist/services/shoppingcart/index.js +3 -0
- package/dist/services/shoppingcart/shoppingcart.types.d.ts +6 -1
- package/dist/services/urls.d.ts +1 -0
- package/dist/services/urls.js +1 -0
- package/package.json +1 -1
|
@@ -107,6 +107,11 @@ export interface IMemberAddressesResponse extends IResponse {
|
|
|
107
107
|
export interface IMemberAddressResponse extends IResponse {
|
|
108
108
|
data?: IAddress;
|
|
109
109
|
}
|
|
110
|
+
export interface IUpdateAddressResponse extends IResponse {
|
|
111
|
+
data: {
|
|
112
|
+
addressId: number;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
110
115
|
export interface IPasswordRenewalMessageResponse extends IResponse {
|
|
111
116
|
data?: {
|
|
112
117
|
token: string;
|
|
@@ -27,6 +27,8 @@ export interface IDoIyzicoCreditCardTransactionResponse extends ITransactionResp
|
|
|
27
27
|
}
|
|
28
28
|
export interface IDoIyzicoTransactionResponse extends ITransactionResponse {
|
|
29
29
|
}
|
|
30
|
+
export interface IDoFreeOfChargeTransactionResponse extends ITransactionResponse {
|
|
31
|
+
}
|
|
30
32
|
export interface IGetInstallmentOptionsResponse extends IResponse {
|
|
31
33
|
installmentOptions: IInstallmentOption[];
|
|
32
34
|
}
|
|
@@ -84,6 +84,9 @@ exports.ShoppingCartService = {
|
|
|
84
84
|
DoIyzicoTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
85
85
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoIyzicoTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
86
86
|
}),
|
|
87
|
+
DoFreeOfChargeTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
88
|
+
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoFreeOfChargeTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
89
|
+
}),
|
|
87
90
|
GetPreInfoForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
88
91
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.GetPreInfoForm, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
89
92
|
}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse } from "../..";
|
|
2
2
|
export interface IAddToCartRequest {
|
|
3
3
|
flags?: string | number | string[];
|
|
4
4
|
productId: number;
|
|
@@ -94,6 +94,10 @@ export interface IDoIyzicoTransactionRequest extends IGetCartRequest {
|
|
|
94
94
|
isApprovedToSalesAggreementForm: boolean;
|
|
95
95
|
isApprovedToPreInformationForm: boolean;
|
|
96
96
|
}
|
|
97
|
+
export interface IDoFreeOfChargeTransactionRequest extends IGetCartRequest {
|
|
98
|
+
isApprovedToSalesAggreementForm: boolean;
|
|
99
|
+
isApprovedToPreInformationForm: boolean;
|
|
100
|
+
}
|
|
97
101
|
export interface IGetPreInfoFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
98
102
|
}
|
|
99
103
|
export interface IGetSalesAggreementFormRequest extends Omit<IGetCartRequest, "flags"> {
|
|
@@ -110,6 +114,7 @@ export interface IShoppingCartService extends IService {
|
|
|
110
114
|
DoCreditCardTransaction: (data: IDoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoCreditCardTransactionResponse>>;
|
|
111
115
|
DoIyzicoCreditCardTransaction: (data: IDoIyzicoCreditCardTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoCreditCardTransactionResponse>>;
|
|
112
116
|
DoIyzicoTransaction: (data: IDoIyzicoTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoIyzicoTransactionResponse>>;
|
|
117
|
+
DoFreeOfChargeTransaction: (data: IDoFreeOfChargeTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoFreeOfChargeTransactionResponse>>;
|
|
113
118
|
GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
|
|
114
119
|
GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
|
|
115
120
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -127,6 +127,7 @@ exports.default = {
|
|
|
127
127
|
DoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoCreditCardTransaction",
|
|
128
128
|
DoIyzicoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoCreditCardTransaction",
|
|
129
129
|
DoIyzicoTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoTransaction",
|
|
130
|
+
DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
|
|
130
131
|
GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
|
|
131
132
|
GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
|
|
132
133
|
},
|