gs2 1.3.140 → 1.3.142
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/exchange/model/IncrementalRateModel.d.ts +57 -0
- package/exchange/model/IncrementalRateModel.js +251 -0
- package/exchange/model/IncrementalRateModel.js.map +1 -0
- package/exchange/model/IncrementalRateModel.ts +264 -0
- package/exchange/model/IncrementalRateModelMaster.d.ts +69 -0
- package/exchange/model/IncrementalRateModelMaster.js +293 -0
- package/exchange/model/IncrementalRateModelMaster.js.map +1 -0
- package/exchange/model/IncrementalRateModelMaster.ts +306 -0
- package/exchange/model/index.d.ts +3 -1
- package/exchange/model/index.js +5 -1
- package/exchange/model/index.js.map +1 -1
- package/exchange/model/index.ts +4 -0
- package/exchange/request/CreateIncrementalRateModelMasterRequest.d.ts +62 -0
- package/exchange/request/CreateIncrementalRateModelMasterRequest.js +218 -0
- package/exchange/request/CreateIncrementalRateModelMasterRequest.js.map +1 -0
- package/exchange/request/CreateIncrementalRateModelMasterRequest.ts +224 -0
- package/exchange/request/DeleteIncrementalRateModelMasterRequest.d.ts +25 -0
- package/exchange/request/DeleteIncrementalRateModelMasterRequest.js +83 -0
- package/exchange/request/DeleteIncrementalRateModelMasterRequest.js.map +1 -0
- package/exchange/request/DeleteIncrementalRateModelMasterRequest.ts +90 -0
- package/exchange/request/DescribeIncrementalRateModelMastersRequest.d.ts +29 -0
- package/exchange/request/DescribeIncrementalRateModelMastersRequest.js +97 -0
- package/exchange/request/DescribeIncrementalRateModelMastersRequest.js.map +1 -0
- package/exchange/request/DescribeIncrementalRateModelMastersRequest.ts +104 -0
- package/exchange/request/DescribeIncrementalRateModelsRequest.d.ts +21 -0
- package/exchange/request/DescribeIncrementalRateModelsRequest.js +69 -0
- package/exchange/request/DescribeIncrementalRateModelsRequest.js.map +1 -0
- package/exchange/request/DescribeIncrementalRateModelsRequest.ts +76 -0
- package/exchange/request/GetIncrementalRateModelMasterRequest.d.ts +25 -0
- package/exchange/request/GetIncrementalRateModelMasterRequest.js +83 -0
- package/exchange/request/GetIncrementalRateModelMasterRequest.js.map +1 -0
- package/exchange/request/GetIncrementalRateModelMasterRequest.ts +90 -0
- package/exchange/request/GetIncrementalRateModelRequest.d.ts +25 -0
- package/exchange/request/GetIncrementalRateModelRequest.js +83 -0
- package/exchange/request/GetIncrementalRateModelRequest.js.map +1 -0
- package/exchange/request/GetIncrementalRateModelRequest.ts +90 -0
- package/exchange/request/IncrementalExchangeByStampSheetRequest.d.ts +25 -0
- package/exchange/request/IncrementalExchangeByStampSheetRequest.js +83 -0
- package/exchange/request/IncrementalExchangeByStampSheetRequest.js.map +1 -0
- package/exchange/request/IncrementalExchangeByStampSheetRequest.ts +90 -0
- package/exchange/request/IncrementalExchangeByUserIdRequest.d.ts +42 -0
- package/exchange/request/IncrementalExchangeByUserIdRequest.js +145 -0
- package/exchange/request/IncrementalExchangeByUserIdRequest.js.map +1 -0
- package/exchange/request/IncrementalExchangeByUserIdRequest.ts +155 -0
- package/exchange/request/IncrementalExchangeRequest.d.ts +42 -0
- package/exchange/request/IncrementalExchangeRequest.js +145 -0
- package/exchange/request/IncrementalExchangeRequest.js.map +1 -0
- package/exchange/request/IncrementalExchangeRequest.ts +155 -0
- package/exchange/request/UnlockIncrementalExchangeByStampSheetRequest.d.ts +25 -0
- package/exchange/request/UnlockIncrementalExchangeByStampSheetRequest.js +83 -0
- package/exchange/request/UnlockIncrementalExchangeByStampSheetRequest.js.map +1 -0
- package/exchange/request/UnlockIncrementalExchangeByStampSheetRequest.ts +90 -0
- package/exchange/request/UnlockIncrementalExchangeByUserIdRequest.d.ts +37 -0
- package/exchange/request/UnlockIncrementalExchangeByUserIdRequest.js +123 -0
- package/exchange/request/UnlockIncrementalExchangeByUserIdRequest.js.map +1 -0
- package/exchange/request/UnlockIncrementalExchangeByUserIdRequest.ts +133 -0
- package/exchange/request/UpdateIncrementalRateModelMasterRequest.d.ts +62 -0
- package/exchange/request/UpdateIncrementalRateModelMasterRequest.js +218 -0
- package/exchange/request/UpdateIncrementalRateModelMasterRequest.js.map +1 -0
- package/exchange/request/UpdateIncrementalRateModelMasterRequest.ts +224 -0
- package/exchange/request/index.d.ts +13 -1
- package/exchange/request/index.js +25 -1
- package/exchange/request/index.js.map +1 -1
- package/exchange/request/index.ts +24 -0
- package/exchange/rest.d.ts +12 -0
- package/exchange/rest.js +341 -0
- package/exchange/rest.js.map +1 -1
- package/exchange/rest.ts +389 -0
- package/exchange/result/CreateIncrementalRateModelMasterResult.d.ts +14 -0
- package/exchange/result/CreateIncrementalRateModelMasterResult.js +48 -0
- package/exchange/result/CreateIncrementalRateModelMasterResult.js.map +1 -0
- package/exchange/result/CreateIncrementalRateModelMasterResult.ts +48 -0
- package/exchange/result/DeleteIncrementalRateModelMasterResult.d.ts +14 -0
- package/exchange/result/DeleteIncrementalRateModelMasterResult.js +48 -0
- package/exchange/result/DeleteIncrementalRateModelMasterResult.js.map +1 -0
- package/exchange/result/DeleteIncrementalRateModelMasterResult.ts +48 -0
- package/exchange/result/DescribeIncrementalRateModelMastersResult.d.ts +18 -0
- package/exchange/result/DescribeIncrementalRateModelMastersResult.js +67 -0
- package/exchange/result/DescribeIncrementalRateModelMastersResult.js.map +1 -0
- package/exchange/result/DescribeIncrementalRateModelMastersResult.ts +73 -0
- package/exchange/result/DescribeIncrementalRateModelsResult.d.ts +14 -0
- package/exchange/result/DescribeIncrementalRateModelsResult.js +53 -0
- package/exchange/result/DescribeIncrementalRateModelsResult.js.map +1 -0
- package/exchange/result/DescribeIncrementalRateModelsResult.ts +56 -0
- package/exchange/result/GetIncrementalRateModelMasterResult.d.ts +14 -0
- package/exchange/result/GetIncrementalRateModelMasterResult.js +48 -0
- package/exchange/result/GetIncrementalRateModelMasterResult.js.map +1 -0
- package/exchange/result/GetIncrementalRateModelMasterResult.ts +48 -0
- package/exchange/result/GetIncrementalRateModelResult.d.ts +14 -0
- package/exchange/result/GetIncrementalRateModelResult.js +48 -0
- package/exchange/result/GetIncrementalRateModelResult.js.map +1 -0
- package/exchange/result/GetIncrementalRateModelResult.ts +48 -0
- package/exchange/result/IncrementalExchangeByStampSheetResult.d.ts +30 -0
- package/exchange/result/IncrementalExchangeByStampSheetResult.js +104 -0
- package/exchange/result/IncrementalExchangeByStampSheetResult.js.map +1 -0
- package/exchange/result/IncrementalExchangeByStampSheetResult.ts +116 -0
- package/exchange/result/IncrementalExchangeByUserIdResult.d.ts +30 -0
- package/exchange/result/IncrementalExchangeByUserIdResult.js +104 -0
- package/exchange/result/IncrementalExchangeByUserIdResult.js.map +1 -0
- package/exchange/result/IncrementalExchangeByUserIdResult.ts +116 -0
- package/exchange/result/IncrementalExchangeResult.d.ts +30 -0
- package/exchange/result/IncrementalExchangeResult.js +104 -0
- package/exchange/result/IncrementalExchangeResult.js.map +1 -0
- package/exchange/result/IncrementalExchangeResult.ts +116 -0
- package/exchange/result/UnlockIncrementalExchangeByStampSheetResult.d.ts +14 -0
- package/exchange/result/UnlockIncrementalExchangeByStampSheetResult.js +48 -0
- package/exchange/result/UnlockIncrementalExchangeByStampSheetResult.js.map +1 -0
- package/exchange/result/UnlockIncrementalExchangeByStampSheetResult.ts +48 -0
- package/exchange/result/UnlockIncrementalExchangeByUserIdResult.d.ts +14 -0
- package/exchange/result/UnlockIncrementalExchangeByUserIdResult.js +48 -0
- package/exchange/result/UnlockIncrementalExchangeByUserIdResult.js.map +1 -0
- package/exchange/result/UnlockIncrementalExchangeByUserIdResult.ts +48 -0
- package/exchange/result/UpdateIncrementalRateModelMasterResult.d.ts +14 -0
- package/exchange/result/UpdateIncrementalRateModelMasterResult.js +48 -0
- package/exchange/result/UpdateIncrementalRateModelMasterResult.js.map +1 -0
- package/exchange/result/UpdateIncrementalRateModelMasterResult.ts +48 -0
- package/exchange/result/index.d.ts +13 -1
- package/exchange/result/index.js +25 -1
- package/exchange/result/index.js.map +1 -1
- package/exchange/result/index.ts +24 -0
- package/idle/request/DescribeStatusesByUserIdRequest.d.ts +0 -4
- package/idle/request/DescribeStatusesByUserIdRequest.js +0 -14
- package/idle/request/DescribeStatusesByUserIdRequest.js.map +1 -1
- package/idle/request/DescribeStatusesByUserIdRequest.ts +0 -14
- package/idle/request/DescribeStatusesRequest.d.ts +0 -4
- package/idle/request/DescribeStatusesRequest.js +0 -14
- package/idle/request/DescribeStatusesRequest.js.map +1 -1
- package/idle/request/DescribeStatusesRequest.ts +0 -14
- package/idle/request/GetCurrentCategoryMasterRequest.d.ts +21 -0
- package/idle/request/GetCurrentCategoryMasterRequest.js +69 -0
- package/idle/request/GetCurrentCategoryMasterRequest.js.map +1 -0
- package/idle/request/GetCurrentCategoryMasterRequest.ts +76 -0
- package/idle/request/UpdateCurrentCategoryMasterFromGitHubRequest.d.ts +26 -0
- package/idle/request/UpdateCurrentCategoryMasterFromGitHubRequest.js +86 -0
- package/idle/request/UpdateCurrentCategoryMasterFromGitHubRequest.js.map +1 -0
- package/idle/request/UpdateCurrentCategoryMasterFromGitHubRequest.ts +90 -0
- package/idle/request/UpdateCurrentCategoryMasterRequest.d.ts +25 -0
- package/idle/request/UpdateCurrentCategoryMasterRequest.js +83 -0
- package/idle/request/UpdateCurrentCategoryMasterRequest.js.map +1 -0
- package/idle/request/UpdateCurrentCategoryMasterRequest.ts +90 -0
- package/idle/request/index.d.ts +4 -4
- package/idle/request/index.js +7 -7
- package/idle/request/index.js.map +1 -1
- package/idle/request/index.ts +6 -6
- package/idle/rest.d.ts +3 -3
- package/idle/rest.js +12 -14
- package/idle/rest.js.map +1 -1
- package/idle/rest.ts +6 -8
- package/idle/result/GetCurrentCategoryMasterResult.d.ts +14 -0
- package/idle/result/GetCurrentCategoryMasterResult.js +48 -0
- package/idle/result/GetCurrentCategoryMasterResult.js.map +1 -0
- package/idle/result/GetCurrentCategoryMasterResult.ts +48 -0
- package/idle/result/UpdateCurrentCategoryMasterFromGitHubResult.d.ts +14 -0
- package/idle/result/UpdateCurrentCategoryMasterFromGitHubResult.js +48 -0
- package/idle/result/UpdateCurrentCategoryMasterFromGitHubResult.js.map +1 -0
- package/idle/result/UpdateCurrentCategoryMasterFromGitHubResult.ts +48 -0
- package/idle/result/UpdateCurrentCategoryMasterResult.d.ts +14 -0
- package/idle/result/UpdateCurrentCategoryMasterResult.js +48 -0
- package/idle/result/UpdateCurrentCategoryMasterResult.js.map +1 -0
- package/idle/result/UpdateCurrentCategoryMasterResult.ts +48 -0
- package/idle/result/index.d.ts +4 -4
- package/idle/result/index.js +7 -7
- package/idle/result/index.js.map +1 -1
- package/idle/result/index.ts +6 -6
- package/package.json +1 -1
package/exchange/rest.ts
CHANGED
|
@@ -421,6 +421,221 @@ export default class Gs2ExchangeRestClient extends AbstractGs2RestClient {
|
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
+
public describeIncrementalRateModels(request: Request.DescribeIncrementalRateModelsRequest): Promise<Result.DescribeIncrementalRateModelsResult> {
|
|
425
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/incremental/model')
|
|
426
|
+
.replace('{service}', 'exchange')
|
|
427
|
+
.replace('{region}', this.session.region)
|
|
428
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
429
|
+
|
|
430
|
+
const headers = this.createAuthorizedHeaders();
|
|
431
|
+
if (request.getRequestId()) {
|
|
432
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
433
|
+
}
|
|
434
|
+
const params: {[key: string]: any} = {
|
|
435
|
+
'contextStack': request.getContextStack() ?? null,
|
|
436
|
+
};
|
|
437
|
+
return axios.get(
|
|
438
|
+
url,
|
|
439
|
+
{
|
|
440
|
+
params,
|
|
441
|
+
headers,
|
|
442
|
+
},
|
|
443
|
+
).then((response: any) => {
|
|
444
|
+
return Result.DescribeIncrementalRateModelsResult.fromDict(response.data);
|
|
445
|
+
}).catch((error: any) => {
|
|
446
|
+
throw JSON.parse(error.response.data.message);
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
public getIncrementalRateModel(request: Request.GetIncrementalRateModelRequest): Promise<Result.GetIncrementalRateModelResult> {
|
|
451
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/incremental/model/{rateName}')
|
|
452
|
+
.replace('{service}', 'exchange')
|
|
453
|
+
.replace('{region}', this.session.region)
|
|
454
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
455
|
+
.replace('{rateName}', String(request.getRateName() ?? 'null') === "" ? "null" : String(request.getRateName() ?? 'null'));
|
|
456
|
+
|
|
457
|
+
const headers = this.createAuthorizedHeaders();
|
|
458
|
+
if (request.getRequestId()) {
|
|
459
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
460
|
+
}
|
|
461
|
+
const params: {[key: string]: any} = {
|
|
462
|
+
'contextStack': request.getContextStack() ?? null,
|
|
463
|
+
};
|
|
464
|
+
return axios.get(
|
|
465
|
+
url,
|
|
466
|
+
{
|
|
467
|
+
params,
|
|
468
|
+
headers,
|
|
469
|
+
},
|
|
470
|
+
).then((response: any) => {
|
|
471
|
+
return Result.GetIncrementalRateModelResult.fromDict(response.data);
|
|
472
|
+
}).catch((error: any) => {
|
|
473
|
+
throw JSON.parse(error.response.data.message);
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
public describeIncrementalRateModelMasters(request: Request.DescribeIncrementalRateModelMastersRequest): Promise<Result.DescribeIncrementalRateModelMastersResult> {
|
|
478
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/incremental/master/model')
|
|
479
|
+
.replace('{service}', 'exchange')
|
|
480
|
+
.replace('{region}', this.session.region)
|
|
481
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
482
|
+
|
|
483
|
+
const headers = this.createAuthorizedHeaders();
|
|
484
|
+
if (request.getRequestId()) {
|
|
485
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
486
|
+
}
|
|
487
|
+
const params: {[key: string]: any} = {
|
|
488
|
+
'contextStack': request.getContextStack() ?? null,
|
|
489
|
+
'pageToken': String(request.getPageToken() ?? null),
|
|
490
|
+
'limit': String(request.getLimit() ?? null),
|
|
491
|
+
};
|
|
492
|
+
return axios.get(
|
|
493
|
+
url,
|
|
494
|
+
{
|
|
495
|
+
params,
|
|
496
|
+
headers,
|
|
497
|
+
},
|
|
498
|
+
).then((response: any) => {
|
|
499
|
+
return Result.DescribeIncrementalRateModelMastersResult.fromDict(response.data);
|
|
500
|
+
}).catch((error: any) => {
|
|
501
|
+
throw JSON.parse(error.response.data.message);
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
public createIncrementalRateModelMaster(request: Request.CreateIncrementalRateModelMasterRequest): Promise<Result.CreateIncrementalRateModelMasterResult> {
|
|
506
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/incremental/master/model')
|
|
507
|
+
.replace('{service}', 'exchange')
|
|
508
|
+
.replace('{region}', this.session.region)
|
|
509
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
|
|
510
|
+
|
|
511
|
+
const headers = this.createAuthorizedHeaders();
|
|
512
|
+
if (request.getRequestId()) {
|
|
513
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
514
|
+
}
|
|
515
|
+
const body: {[key: string]: any} = {
|
|
516
|
+
'contextStack': request.getContextStack() ?? null,
|
|
517
|
+
'name': request.getName() ?? null,
|
|
518
|
+
'description': request.getDescription() ?? null,
|
|
519
|
+
'metadata': request.getMetadata() ?? null,
|
|
520
|
+
'consumeAction': request.getConsumeAction()?.toDict() ?? null,
|
|
521
|
+
'calculateType': request.getCalculateType() ?? null,
|
|
522
|
+
'baseValue': request.getBaseValue() ?? null,
|
|
523
|
+
'coefficientValue': request.getCoefficientValue() ?? null,
|
|
524
|
+
'calculateScriptId': request.getCalculateScriptId() ?? null,
|
|
525
|
+
'exchangeCountId': request.getExchangeCountId() ?? null,
|
|
526
|
+
'acquireActions': request.getAcquireActions()?.map((item) => item.toDict()) ?? null,
|
|
527
|
+
};
|
|
528
|
+
return axios.post(
|
|
529
|
+
url,
|
|
530
|
+
body,
|
|
531
|
+
{
|
|
532
|
+
headers,
|
|
533
|
+
},
|
|
534
|
+
).then((response: any) => {
|
|
535
|
+
return Result.CreateIncrementalRateModelMasterResult.fromDict(response.data);
|
|
536
|
+
}).catch((error: any) => {
|
|
537
|
+
if (error.response) {
|
|
538
|
+
throw JSON.parse(error.response.data.message);
|
|
539
|
+
} else {
|
|
540
|
+
throw [];
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
public getIncrementalRateModelMaster(request: Request.GetIncrementalRateModelMasterRequest): Promise<Result.GetIncrementalRateModelMasterResult> {
|
|
546
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/incremental/master/model/{rateName}')
|
|
547
|
+
.replace('{service}', 'exchange')
|
|
548
|
+
.replace('{region}', this.session.region)
|
|
549
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
550
|
+
.replace('{rateName}', String(request.getRateName() ?? 'null') === "" ? "null" : String(request.getRateName() ?? 'null'));
|
|
551
|
+
|
|
552
|
+
const headers = this.createAuthorizedHeaders();
|
|
553
|
+
if (request.getRequestId()) {
|
|
554
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
555
|
+
}
|
|
556
|
+
const params: {[key: string]: any} = {
|
|
557
|
+
'contextStack': request.getContextStack() ?? null,
|
|
558
|
+
};
|
|
559
|
+
return axios.get(
|
|
560
|
+
url,
|
|
561
|
+
{
|
|
562
|
+
params,
|
|
563
|
+
headers,
|
|
564
|
+
},
|
|
565
|
+
).then((response: any) => {
|
|
566
|
+
return Result.GetIncrementalRateModelMasterResult.fromDict(response.data);
|
|
567
|
+
}).catch((error: any) => {
|
|
568
|
+
throw JSON.parse(error.response.data.message);
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
public updateIncrementalRateModelMaster(request: Request.UpdateIncrementalRateModelMasterRequest): Promise<Result.UpdateIncrementalRateModelMasterResult> {
|
|
573
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/incremental/master/model/{rateName}')
|
|
574
|
+
.replace('{service}', 'exchange')
|
|
575
|
+
.replace('{region}', this.session.region)
|
|
576
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
577
|
+
.replace('{rateName}', String(request.getRateName() ?? 'null') === "" ? "null" : String(request.getRateName() ?? 'null'));
|
|
578
|
+
|
|
579
|
+
const headers = this.createAuthorizedHeaders();
|
|
580
|
+
if (request.getRequestId()) {
|
|
581
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
582
|
+
}
|
|
583
|
+
const body: {[key: string]: any} = {
|
|
584
|
+
'contextStack': request.getContextStack() ?? null,
|
|
585
|
+
'description': request.getDescription() ?? null,
|
|
586
|
+
'metadata': request.getMetadata() ?? null,
|
|
587
|
+
'consumeAction': request.getConsumeAction()?.toDict() ?? null,
|
|
588
|
+
'calculateType': request.getCalculateType() ?? null,
|
|
589
|
+
'baseValue': request.getBaseValue() ?? null,
|
|
590
|
+
'coefficientValue': request.getCoefficientValue() ?? null,
|
|
591
|
+
'calculateScriptId': request.getCalculateScriptId() ?? null,
|
|
592
|
+
'exchangeCountId': request.getExchangeCountId() ?? null,
|
|
593
|
+
'acquireActions': request.getAcquireActions()?.map((item) => item.toDict()) ?? null,
|
|
594
|
+
};
|
|
595
|
+
return axios.put(
|
|
596
|
+
url,
|
|
597
|
+
body,
|
|
598
|
+
{
|
|
599
|
+
headers,
|
|
600
|
+
},
|
|
601
|
+
).then((response: any) => {
|
|
602
|
+
return Result.UpdateIncrementalRateModelMasterResult.fromDict(response.data);
|
|
603
|
+
}).catch((error: any) => {
|
|
604
|
+
if (error.response) {
|
|
605
|
+
throw JSON.parse(error.response.data.message);
|
|
606
|
+
} else {
|
|
607
|
+
throw [];
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
public deleteIncrementalRateModelMaster(request: Request.DeleteIncrementalRateModelMasterRequest): Promise<Result.DeleteIncrementalRateModelMasterResult> {
|
|
613
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/incremental/master/model/{rateName}')
|
|
614
|
+
.replace('{service}', 'exchange')
|
|
615
|
+
.replace('{region}', this.session.region)
|
|
616
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
617
|
+
.replace('{rateName}', String(request.getRateName() ?? 'null') === "" ? "null" : String(request.getRateName() ?? 'null'));
|
|
618
|
+
|
|
619
|
+
const headers = this.createAuthorizedHeaders();
|
|
620
|
+
if (request.getRequestId()) {
|
|
621
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
622
|
+
}
|
|
623
|
+
const params: {[key: string]: any} = {
|
|
624
|
+
'contextStack': request.getContextStack() ?? null,
|
|
625
|
+
};
|
|
626
|
+
return axios.delete(
|
|
627
|
+
url,
|
|
628
|
+
{
|
|
629
|
+
params,
|
|
630
|
+
headers,
|
|
631
|
+
},
|
|
632
|
+
).then((response: any) => {
|
|
633
|
+
return Result.DeleteIncrementalRateModelMasterResult.fromDict(response.data);
|
|
634
|
+
}).catch((error: any) => {
|
|
635
|
+
throw JSON.parse(error.response.data.message);
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
|
|
424
639
|
public exchange(request: Request.ExchangeRequest): Promise<Result.ExchangeResult> {
|
|
425
640
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/exchange/{rateName}')
|
|
426
641
|
.replace('{service}', 'exchange')
|
|
@@ -528,6 +743,180 @@ export default class Gs2ExchangeRestClient extends AbstractGs2RestClient {
|
|
|
528
743
|
});
|
|
529
744
|
}
|
|
530
745
|
|
|
746
|
+
public incrementalExchange(request: Request.IncrementalExchangeRequest): Promise<Result.IncrementalExchangeResult> {
|
|
747
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/incremental/exchange/{rateName}')
|
|
748
|
+
.replace('{service}', 'exchange')
|
|
749
|
+
.replace('{region}', this.session.region)
|
|
750
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
751
|
+
.replace('{rateName}', String(request.getRateName() ?? 'null') === "" ? "null" : String(request.getRateName() ?? 'null'));
|
|
752
|
+
|
|
753
|
+
const headers = this.createAuthorizedHeaders();
|
|
754
|
+
if (request.getRequestId()) {
|
|
755
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
756
|
+
}
|
|
757
|
+
if (request.getAccessToken()) {
|
|
758
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
759
|
+
}
|
|
760
|
+
if (request.getDuplicationAvoider()) {
|
|
761
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
762
|
+
}
|
|
763
|
+
const body: {[key: string]: any} = {
|
|
764
|
+
'contextStack': request.getContextStack() ?? null,
|
|
765
|
+
'count': request.getCount() ?? null,
|
|
766
|
+
'config': request.getConfig()?.map((item) => item.toDict()) ?? null,
|
|
767
|
+
};
|
|
768
|
+
return axios.post(
|
|
769
|
+
url,
|
|
770
|
+
body,
|
|
771
|
+
{
|
|
772
|
+
headers,
|
|
773
|
+
},
|
|
774
|
+
).then((response: any) => {
|
|
775
|
+
return Result.IncrementalExchangeResult.fromDict(response.data);
|
|
776
|
+
}).catch((error: any) => {
|
|
777
|
+
if (error.response) {
|
|
778
|
+
throw JSON.parse(error.response.data.message);
|
|
779
|
+
} else {
|
|
780
|
+
throw [];
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
public incrementalExchangeByUserId(request: Request.IncrementalExchangeByUserIdRequest): Promise<Result.IncrementalExchangeByUserIdResult> {
|
|
786
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/incremental/exchange/{rateName}')
|
|
787
|
+
.replace('{service}', 'exchange')
|
|
788
|
+
.replace('{region}', this.session.region)
|
|
789
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
790
|
+
.replace('{rateName}', String(request.getRateName() ?? 'null') === "" ? "null" : String(request.getRateName() ?? 'null'))
|
|
791
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
792
|
+
|
|
793
|
+
const headers = this.createAuthorizedHeaders();
|
|
794
|
+
if (request.getRequestId()) {
|
|
795
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
796
|
+
}
|
|
797
|
+
if (request.getDuplicationAvoider()) {
|
|
798
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
799
|
+
}
|
|
800
|
+
const body: {[key: string]: any} = {
|
|
801
|
+
'contextStack': request.getContextStack() ?? null,
|
|
802
|
+
'count': request.getCount() ?? null,
|
|
803
|
+
'config': request.getConfig()?.map((item) => item.toDict()) ?? null,
|
|
804
|
+
};
|
|
805
|
+
return axios.post(
|
|
806
|
+
url,
|
|
807
|
+
body,
|
|
808
|
+
{
|
|
809
|
+
headers,
|
|
810
|
+
},
|
|
811
|
+
).then((response: any) => {
|
|
812
|
+
return Result.IncrementalExchangeByUserIdResult.fromDict(response.data);
|
|
813
|
+
}).catch((error: any) => {
|
|
814
|
+
if (error.response) {
|
|
815
|
+
throw JSON.parse(error.response.data.message);
|
|
816
|
+
} else {
|
|
817
|
+
throw [];
|
|
818
|
+
}
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
public incrementalExchangeByStampSheet(request: Request.IncrementalExchangeByStampSheetRequest): Promise<Result.IncrementalExchangeByStampSheetResult> {
|
|
823
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/stamp/incremental/exchange')
|
|
824
|
+
.replace('{service}', 'exchange')
|
|
825
|
+
.replace('{region}', this.session.region);
|
|
826
|
+
|
|
827
|
+
const headers = this.createAuthorizedHeaders();
|
|
828
|
+
if (request.getRequestId()) {
|
|
829
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
830
|
+
}
|
|
831
|
+
const body: {[key: string]: any} = {
|
|
832
|
+
'contextStack': request.getContextStack() ?? null,
|
|
833
|
+
'stampSheet': request.getStampSheet() ?? null,
|
|
834
|
+
'keyId': request.getKeyId() ?? null,
|
|
835
|
+
};
|
|
836
|
+
return axios.post(
|
|
837
|
+
url,
|
|
838
|
+
body,
|
|
839
|
+
{
|
|
840
|
+
headers,
|
|
841
|
+
},
|
|
842
|
+
).then((response: any) => {
|
|
843
|
+
return Result.IncrementalExchangeByStampSheetResult.fromDict(response.data);
|
|
844
|
+
}).catch((error: any) => {
|
|
845
|
+
if (error.response) {
|
|
846
|
+
throw JSON.parse(error.response.data.message);
|
|
847
|
+
} else {
|
|
848
|
+
throw [];
|
|
849
|
+
}
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
public unlockIncrementalExchangeByUserId(request: Request.UnlockIncrementalExchangeByUserIdRequest): Promise<Result.UnlockIncrementalExchangeByUserIdResult> {
|
|
854
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/incremental/exchange/{rateName}/unlock')
|
|
855
|
+
.replace('{service}', 'exchange')
|
|
856
|
+
.replace('{region}', this.session.region)
|
|
857
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
858
|
+
.replace('{rateName}', String(request.getRateName() ?? 'null') === "" ? "null" : String(request.getRateName() ?? 'null'))
|
|
859
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
|
|
860
|
+
|
|
861
|
+
const headers = this.createAuthorizedHeaders();
|
|
862
|
+
if (request.getRequestId()) {
|
|
863
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
864
|
+
}
|
|
865
|
+
if (request.getDuplicationAvoider()) {
|
|
866
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
867
|
+
}
|
|
868
|
+
const body: {[key: string]: any} = {
|
|
869
|
+
'contextStack': request.getContextStack() ?? null,
|
|
870
|
+
'lockTransactionId': request.getLockTransactionId() ?? null,
|
|
871
|
+
};
|
|
872
|
+
return axios.post(
|
|
873
|
+
url,
|
|
874
|
+
body,
|
|
875
|
+
{
|
|
876
|
+
headers,
|
|
877
|
+
},
|
|
878
|
+
).then((response: any) => {
|
|
879
|
+
return Result.UnlockIncrementalExchangeByUserIdResult.fromDict(response.data);
|
|
880
|
+
}).catch((error: any) => {
|
|
881
|
+
if (error.response) {
|
|
882
|
+
throw JSON.parse(error.response.data.message);
|
|
883
|
+
} else {
|
|
884
|
+
throw [];
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
public unlockIncrementalExchangeByStampSheet(request: Request.UnlockIncrementalExchangeByStampSheetRequest): Promise<Result.UnlockIncrementalExchangeByStampSheetResult> {
|
|
890
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/stamp/incremental/exchange/unlock')
|
|
891
|
+
.replace('{service}', 'exchange')
|
|
892
|
+
.replace('{region}', this.session.region);
|
|
893
|
+
|
|
894
|
+
const headers = this.createAuthorizedHeaders();
|
|
895
|
+
if (request.getRequestId()) {
|
|
896
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
897
|
+
}
|
|
898
|
+
const body: {[key: string]: any} = {
|
|
899
|
+
'contextStack': request.getContextStack() ?? null,
|
|
900
|
+
'stampSheet': request.getStampSheet() ?? null,
|
|
901
|
+
'keyId': request.getKeyId() ?? null,
|
|
902
|
+
};
|
|
903
|
+
return axios.post(
|
|
904
|
+
url,
|
|
905
|
+
body,
|
|
906
|
+
{
|
|
907
|
+
headers,
|
|
908
|
+
},
|
|
909
|
+
).then((response: any) => {
|
|
910
|
+
return Result.UnlockIncrementalExchangeByStampSheetResult.fromDict(response.data);
|
|
911
|
+
}).catch((error: any) => {
|
|
912
|
+
if (error.response) {
|
|
913
|
+
throw JSON.parse(error.response.data.message);
|
|
914
|
+
} else {
|
|
915
|
+
throw [];
|
|
916
|
+
}
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
|
|
531
920
|
public exportMaster(request: Request.ExportMasterRequest): Promise<Result.ExportMasterResult> {
|
|
532
921
|
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/export')
|
|
533
922
|
.replace('{service}', 'exchange')
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Exchange from '../model';
|
|
3
|
+
export default class CreateIncrementalRateModelMasterResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2Exchange.IncrementalRateModelMaster | null;
|
|
6
|
+
setItem(item: Gs2Exchange.IncrementalRateModelMaster | null): this;
|
|
7
|
+
withItem(item: Gs2Exchange.IncrementalRateModelMaster | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): CreateIncrementalRateModelMasterResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Exchange = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var CreateIncrementalRateModelMasterResult = /** @class */ (function () {
|
|
21
|
+
function CreateIncrementalRateModelMasterResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
CreateIncrementalRateModelMasterResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
CreateIncrementalRateModelMasterResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
CreateIncrementalRateModelMasterResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
CreateIncrementalRateModelMasterResult.fromDict = function (data) {
|
|
36
|
+
return new CreateIncrementalRateModelMasterResult()
|
|
37
|
+
.withItem(Gs2Exchange.IncrementalRateModelMaster.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
CreateIncrementalRateModelMasterResult.prototype.toDict = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return CreateIncrementalRateModelMasterResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = CreateIncrementalRateModelMasterResult;
|
|
48
|
+
//# sourceMappingURL=CreateIncrementalRateModelMasterResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateIncrementalRateModelMasterResult.js","sourceRoot":"","sources":["CreateIncrementalRateModelMasterResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,SAAI,GAAgD,IAAI,CAAC;IA0BrE,CAAC;IAxBU,wDAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,wDAAO,GAAd,UAAe,IAAiD;QAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yDAAQ,GAAf,UAAgB,IAAiD;QAC7D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,+CAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,sCAAsC,EAAE;aAC9C,QAAQ,CAAC,WAAW,CAAC,0BAA0B,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACjF,CAAC;IAEM,uDAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,6CAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Exchange from '../model'
|
|
20
|
+
|
|
21
|
+
export default class CreateIncrementalRateModelMasterResult implements IResult {
|
|
22
|
+
private item: Gs2Exchange.IncrementalRateModelMaster|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Exchange.IncrementalRateModelMaster|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Exchange.IncrementalRateModelMaster|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Exchange.IncrementalRateModelMaster|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): CreateIncrementalRateModelMasterResult {
|
|
39
|
+
return new CreateIncrementalRateModelMasterResult()
|
|
40
|
+
.withItem(Gs2Exchange.IncrementalRateModelMaster.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Exchange from '../model';
|
|
3
|
+
export default class DeleteIncrementalRateModelMasterResult implements IResult {
|
|
4
|
+
private item;
|
|
5
|
+
getItem(): Gs2Exchange.IncrementalRateModelMaster | null;
|
|
6
|
+
setItem(item: Gs2Exchange.IncrementalRateModelMaster | null): this;
|
|
7
|
+
withItem(item: Gs2Exchange.IncrementalRateModelMaster | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): DeleteIncrementalRateModelMasterResult;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var Gs2Exchange = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var DeleteIncrementalRateModelMasterResult = /** @class */ (function () {
|
|
21
|
+
function DeleteIncrementalRateModelMasterResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
DeleteIncrementalRateModelMasterResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
DeleteIncrementalRateModelMasterResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
DeleteIncrementalRateModelMasterResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
DeleteIncrementalRateModelMasterResult.fromDict = function (data) {
|
|
36
|
+
return new DeleteIncrementalRateModelMasterResult()
|
|
37
|
+
.withItem(Gs2Exchange.IncrementalRateModelMaster.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
DeleteIncrementalRateModelMasterResult.prototype.toDict = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return DeleteIncrementalRateModelMasterResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = DeleteIncrementalRateModelMasterResult;
|
|
48
|
+
//# sourceMappingURL=DeleteIncrementalRateModelMasterResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteIncrementalRateModelMasterResult.js","sourceRoot":"","sources":["DeleteIncrementalRateModelMasterResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,SAAI,GAAgD,IAAI,CAAC;IA0BrE,CAAC;IAxBU,wDAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,wDAAO,GAAd,UAAe,IAAiD;QAC5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yDAAQ,GAAf,UAAgB,IAAiD;QAC7D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,+CAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,sCAAsC,EAAE;aAC9C,QAAQ,CAAC,WAAW,CAAC,0BAA0B,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACjF,CAAC;IAEM,uDAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,6CAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Exchange from '../model'
|
|
20
|
+
|
|
21
|
+
export default class DeleteIncrementalRateModelMasterResult implements IResult {
|
|
22
|
+
private item: Gs2Exchange.IncrementalRateModelMaster|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Exchange.IncrementalRateModelMaster|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Exchange.IncrementalRateModelMaster|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Exchange.IncrementalRateModelMaster|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): DeleteIncrementalRateModelMasterResult {
|
|
39
|
+
return new DeleteIncrementalRateModelMasterResult()
|
|
40
|
+
.withItem(Gs2Exchange.IncrementalRateModelMaster.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
import * as Gs2Exchange from '../model';
|
|
3
|
+
export default class DescribeIncrementalRateModelMastersResult implements IResult {
|
|
4
|
+
private items;
|
|
5
|
+
private nextPageToken;
|
|
6
|
+
getItems(): Gs2Exchange.IncrementalRateModelMaster[] | null;
|
|
7
|
+
setItems(items: Gs2Exchange.IncrementalRateModelMaster[] | null): this;
|
|
8
|
+
withItems(items: Gs2Exchange.IncrementalRateModelMaster[] | null): this;
|
|
9
|
+
getNextPageToken(): string | null;
|
|
10
|
+
setNextPageToken(nextPageToken: string | null): this;
|
|
11
|
+
withNextPageToken(nextPageToken: string | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): DescribeIncrementalRateModelMastersResult;
|
|
15
|
+
toDict(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|