nextemos 4.11.5 → 4.11.6

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.
@@ -9,7 +9,7 @@ export interface IGetTokenResponse extends IResponse {
9
9
  clientServiceUrl: string;
10
10
  force3DSecure: boolean;
11
11
  }
12
- export interface IGetCreditCardPointsResponse extends IResponse {
12
+ export interface IGetCreditCardPointResponse extends IResponse {
13
13
  point: {
14
14
  amount: number;
15
15
  currencyId: number;
@@ -53,7 +53,7 @@ exports.PaymentService = {
53
53
  GetToken: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
54
54
  return (0, __1.fetchRequest)().post(exports.PaymentService.Url(urls_1.default.Payment.GetToken, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
55
55
  }),
56
- GetCreditCardPoints: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
57
- return (0, __1.fetchRequest)().post(exports.PaymentService.Url(urls_1.default.Payment.GetCreditCardPoints, options), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
56
+ GetCreditCardPoint: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
57
+ return (0, __1.fetchRequest)().post(exports.PaymentService.Url(urls_1.default.Payment.GetCreditCardPoint, options), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
58
58
  }),
59
59
  };
@@ -1,9 +1,9 @@
1
- import { IApiResponse, ICreditCard, IGetBanksResponse, IGetCreditCardPointsResponse, IGetTokenResponse, IRequestBase, IRequestInfo, IRequestInit, IService } from "../..";
1
+ import { IApiResponse, ICreditCard, IGetBanksResponse, IGetCreditCardPointResponse, IGetTokenResponse, IRequestBase, IRequestInfo, IRequestInit, IService } from "../..";
2
2
  export interface IGetBanksRequest extends IRequestBase {
3
3
  }
4
4
  export interface IGetTokenRequest extends IRequestBase {
5
5
  }
6
- export interface IGetCreditCardPointsRequest extends IRequestBase {
6
+ export interface IGetCreditCardPointRequest extends IRequestBase {
7
7
  requestInfo: IRequestInfo;
8
8
  creditCard: ICreditCard;
9
9
  money: {
@@ -14,5 +14,5 @@ export interface IGetCreditCardPointsRequest extends IRequestBase {
14
14
  export interface IPaymentService extends IService {
15
15
  GetBanks: (data: IGetBanksRequest, options?: IRequestInit) => Promise<IApiResponse<IGetBanksResponse>>;
16
16
  GetToken: (data: IGetTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IGetTokenResponse>>;
17
- GetCreditCardPoints: (data: IGetCreditCardPointsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCreditCardPointsResponse>>;
17
+ GetCreditCardPoint: (data: IGetCreditCardPointRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCreditCardPointResponse>>;
18
18
  }
@@ -124,7 +124,7 @@ declare const _default: {
124
124
  };
125
125
  Payment: {
126
126
  GetBanks: string;
127
- GetCreditCardPoints: string;
127
+ GetCreditCardPoint: string;
128
128
  GetToken: string;
129
129
  };
130
130
  };
@@ -130,7 +130,7 @@ exports.default = {
130
130
  },
131
131
  Payment: {
132
132
  GetBanks: '/{language}/Bank/v1/GetBanks',
133
- GetCreditCardPoints: '/{language}/Bank/v1/GetCreditCardPoints',
133
+ GetCreditCardPoint: '/{language}/Bank/v1/GetCreditCardPoint',
134
134
  GetToken: '/{language}/Masterpass/v1/GetToken',
135
135
  }
136
136
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "4.11.5",
3
+ "version": "4.11.6",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",