@ahomevilla-hotel/node-sdk 1.1.9 → 1.2.0

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.
Files changed (2) hide show
  1. package/api.ts +8 -112
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -1256,10 +1256,10 @@ export type CreateHotelRoomDtoStatusEnum = typeof CreateHotelRoomDtoStatusEnum[k
1256
1256
  export interface CreatePaymentRequestDto {
1257
1257
  /**
1258
1258
  *
1259
- * @type {string}
1259
+ * @type {number}
1260
1260
  * @memberof CreatePaymentRequestDto
1261
1261
  */
1262
- 'orderCode': string;
1262
+ 'orderCode': number;
1263
1263
  /**
1264
1264
  *
1265
1265
  * @type {number}
@@ -2370,110 +2370,6 @@ export interface NearBy {
2370
2370
  */
2371
2371
  'distance': string;
2372
2372
  }
2373
- /**
2374
- *
2375
- * @export
2376
- * @interface PaymentResponseData
2377
- */
2378
- export interface PaymentResponseData {
2379
- /**
2380
- *
2381
- * @type {string}
2382
- * @memberof PaymentResponseData
2383
- */
2384
- 'bin': string;
2385
- /**
2386
- *
2387
- * @type {string}
2388
- * @memberof PaymentResponseData
2389
- */
2390
- 'accountNumber': string;
2391
- /**
2392
- *
2393
- * @type {string}
2394
- * @memberof PaymentResponseData
2395
- */
2396
- 'accountName': string;
2397
- /**
2398
- *
2399
- * @type {number}
2400
- * @memberof PaymentResponseData
2401
- */
2402
- 'amount': number;
2403
- /**
2404
- *
2405
- * @type {string}
2406
- * @memberof PaymentResponseData
2407
- */
2408
- 'description': string;
2409
- /**
2410
- *
2411
- * @type {object}
2412
- * @memberof PaymentResponseData
2413
- */
2414
- 'orderCode': object;
2415
- /**
2416
- *
2417
- * @type {string}
2418
- * @memberof PaymentResponseData
2419
- */
2420
- 'curency': string;
2421
- /**
2422
- *
2423
- * @type {string}
2424
- * @memberof PaymentResponseData
2425
- */
2426
- 'paymentLinkId': string;
2427
- /**
2428
- *
2429
- * @type {string}
2430
- * @memberof PaymentResponseData
2431
- */
2432
- 'status': string;
2433
- /**
2434
- *
2435
- * @type {string}
2436
- * @memberof PaymentResponseData
2437
- */
2438
- 'checkoutUrl': string;
2439
- /**
2440
- *
2441
- * @type {string}
2442
- * @memberof PaymentResponseData
2443
- */
2444
- 'qrCode': string;
2445
- }
2446
- /**
2447
- *
2448
- * @export
2449
- * @interface PaymentResponseDto
2450
- */
2451
- export interface PaymentResponseDto {
2452
- /**
2453
- *
2454
- * @type {string}
2455
- * @memberof PaymentResponseDto
2456
- */
2457
- 'code': string;
2458
- /**
2459
- *
2460
- * @type {string}
2461
- * @memberof PaymentResponseDto
2462
- */
2463
- 'desc': string;
2464
- /**
2465
- *
2466
- * @type {PaymentResponseData}
2467
- * @memberof PaymentResponseDto
2468
- */
2469
- 'data': PaymentResponseData;
2470
- /**
2471
- *
2472
- * @type {string}
2473
- * @memberof PaymentResponseDto
2474
- */
2475
- 'signature': string;
2476
- }
2477
2373
  /**
2478
2374
  *
2479
2375
  * @export
@@ -8026,7 +7922,7 @@ export const PayOSApiFp = function(configuration?: Configuration) {
8026
7922
  * @param {*} [options] Override http request option.
8027
7923
  * @throws {RequiredError}
8028
7924
  */
8029
- async payosControllerCancelPayment(cancelPaymentRequestDto: CancelPaymentRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentResponseDto>> {
7925
+ async payosControllerCancelPayment(cancelPaymentRequestDto: CancelPaymentRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
8030
7926
  const localVarAxiosArgs = await localVarAxiosParamCreator.payosControllerCancelPayment(cancelPaymentRequestDto, options);
8031
7927
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8032
7928
  const localVarOperationServerBasePath = operationServerMap['PayOSApi.payosControllerCancelPayment']?.[localVarOperationServerIndex]?.url;
@@ -8039,7 +7935,7 @@ export const PayOSApiFp = function(configuration?: Configuration) {
8039
7935
  * @param {*} [options] Override http request option.
8040
7936
  * @throws {RequiredError}
8041
7937
  */
8042
- async payosControllerCreatePaymentRequest(createPaymentRequestDto: CreatePaymentRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentResponseDto>> {
7938
+ async payosControllerCreatePaymentRequest(createPaymentRequestDto: CreatePaymentRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
8043
7939
  const localVarAxiosArgs = await localVarAxiosParamCreator.payosControllerCreatePaymentRequest(createPaymentRequestDto, options);
8044
7940
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8045
7941
  const localVarOperationServerBasePath = operationServerMap['PayOSApi.payosControllerCreatePaymentRequest']?.[localVarOperationServerIndex]?.url;
@@ -8052,7 +7948,7 @@ export const PayOSApiFp = function(configuration?: Configuration) {
8052
7948
  * @param {*} [options] Override http request option.
8053
7949
  * @throws {RequiredError}
8054
7950
  */
8055
- async payosControllerGetPaymentStatus(paymentLinkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentResponseDto>> {
7951
+ async payosControllerGetPaymentStatus(paymentLinkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
8056
7952
  const localVarAxiosArgs = await localVarAxiosParamCreator.payosControllerGetPaymentStatus(paymentLinkId, options);
8057
7953
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8058
7954
  const localVarOperationServerBasePath = operationServerMap['PayOSApi.payosControllerGetPaymentStatus']?.[localVarOperationServerIndex]?.url;
@@ -8088,7 +7984,7 @@ export const PayOSApiFactory = function (configuration?: Configuration, basePath
8088
7984
  * @param {*} [options] Override http request option.
8089
7985
  * @throws {RequiredError}
8090
7986
  */
8091
- payosControllerCancelPayment(cancelPaymentRequestDto: CancelPaymentRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<PaymentResponseDto> {
7987
+ payosControllerCancelPayment(cancelPaymentRequestDto: CancelPaymentRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<object> {
8092
7988
  return localVarFp.payosControllerCancelPayment(cancelPaymentRequestDto, options).then((request) => request(axios, basePath));
8093
7989
  },
8094
7990
  /**
@@ -8098,7 +7994,7 @@ export const PayOSApiFactory = function (configuration?: Configuration, basePath
8098
7994
  * @param {*} [options] Override http request option.
8099
7995
  * @throws {RequiredError}
8100
7996
  */
8101
- payosControllerCreatePaymentRequest(createPaymentRequestDto: CreatePaymentRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<PaymentResponseDto> {
7997
+ payosControllerCreatePaymentRequest(createPaymentRequestDto: CreatePaymentRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<object> {
8102
7998
  return localVarFp.payosControllerCreatePaymentRequest(createPaymentRequestDto, options).then((request) => request(axios, basePath));
8103
7999
  },
8104
8000
  /**
@@ -8108,7 +8004,7 @@ export const PayOSApiFactory = function (configuration?: Configuration, basePath
8108
8004
  * @param {*} [options] Override http request option.
8109
8005
  * @throws {RequiredError}
8110
8006
  */
8111
- payosControllerGetPaymentStatus(paymentLinkId: string, options?: RawAxiosRequestConfig): AxiosPromise<PaymentResponseDto> {
8007
+ payosControllerGetPaymentStatus(paymentLinkId: string, options?: RawAxiosRequestConfig): AxiosPromise<object> {
8112
8008
  return localVarFp.payosControllerGetPaymentStatus(paymentLinkId, options).then((request) => request(axios, basePath));
8113
8009
  },
8114
8010
  /**
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "openapi-client",
11
11
  "openapi-generator"
12
12
  ],
13
- "version": "1.1.9",
13
+ "version": "1.2.0",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
16
  "test": "echo \"Error: no test specified\" && exit 1"