@cinerino/sdk 3.128.0-alpha.1 → 3.128.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.
@@ -12972,29 +12972,7 @@ var AccountTransactionService = /** @class */ (function (_super) {
12972
12972
  });
12973
12973
  };
12974
12974
  /**
12975
- * 取引確定
12976
- */
12977
- AccountTransactionService.prototype.confirm = function (params) {
12978
- return __awaiter(this, void 0, void 0, function () {
12979
- return __generator(this, function (_a) {
12980
- switch (_a.label) {
12981
- case 0: return [4 /*yield*/, this.fetch({
12982
- uri: "/accountTransactions/" + params.transactionNumber + "/confirm",
12983
- method: 'PUT',
12984
- expectedStatusCodes: [http_status_1.NO_CONTENT],
12985
- qs: {
12986
- transactionNumber: '1'
12987
- }
12988
- })];
12989
- case 1:
12990
- _a.sent();
12991
- return [2 /*return*/];
12992
- }
12993
- });
12994
- });
12995
- };
12996
- /**
12997
- * 取引確定
12975
+ * 取引確定(同期的)
12998
12976
  */
12999
12977
  AccountTransactionService.prototype.confirmSync = function (params) {
13000
12978
  return __awaiter(this, void 0, void 0, function () {
@@ -13005,8 +12983,7 @@ var AccountTransactionService = /** @class */ (function (_super) {
13005
12983
  method: 'PUT',
13006
12984
  expectedStatusCodes: [http_status_1.NO_CONTENT],
13007
12985
  qs: {
13008
- sync: '1',
13009
- transactionNumber: '1'
12986
+ sync: '1'
13010
12987
  }
13011
12988
  })];
13012
12989
  case 1:
@@ -13017,29 +12994,7 @@ var AccountTransactionService = /** @class */ (function (_super) {
13017
12994
  });
13018
12995
  };
13019
12996
  /**
13020
- * 取引中止
13021
- */
13022
- AccountTransactionService.prototype.cancel = function (params) {
13023
- return __awaiter(this, void 0, void 0, function () {
13024
- return __generator(this, function (_a) {
13025
- switch (_a.label) {
13026
- case 0: return [4 /*yield*/, this.fetch({
13027
- uri: "/accountTransactions/" + params.transactionNumber + "/cancel",
13028
- method: 'PUT',
13029
- expectedStatusCodes: [http_status_1.NO_CONTENT],
13030
- qs: {
13031
- transactionNumber: '1'
13032
- }
13033
- })];
13034
- case 1:
13035
- _a.sent();
13036
- return [2 /*return*/];
13037
- }
13038
- });
13039
- });
13040
- };
13041
- /**
13042
- * 取引中止
12997
+ * 取引中止(同期的)
13043
12998
  */
13044
12999
  AccountTransactionService.prototype.cancelSync = function (params) {
13045
13000
  return __awaiter(this, void 0, void 0, function () {
@@ -13050,8 +13005,7 @@ var AccountTransactionService = /** @class */ (function (_super) {
13050
13005
  method: 'PUT',
13051
13006
  expectedStatusCodes: [http_status_1.NO_CONTENT],
13052
13007
  qs: {
13053
- sync: '1',
13054
- transactionNumber: '1'
13008
+ sync: '1'
13055
13009
  }
13056
13010
  })];
13057
13011
  case 1:
@@ -77,8 +77,8 @@ async function main() {
77
77
  await wait(1000);
78
78
 
79
79
  // 確定
80
- // await depositService.cancel({ transactionNumber });
81
- await depositService.confirm({ transactionNumber });
80
+ // await depositService.cancelSync({ transactionNumber });
81
+ await depositService.confirmSync({ transactionNumber });
82
82
  console.log('取引確定です。');
83
83
  }
84
84
 
@@ -84,7 +84,7 @@ async function main() {
84
84
  // console.log('取引を中止しました。');
85
85
 
86
86
  // 確定
87
- await transferService.confirm(transaction);
87
+ await transferService.confirmSync(transaction);
88
88
  console.log('取引確定です。');
89
89
  }
90
90
 
@@ -80,7 +80,7 @@ async function main() {
80
80
  // console.log('取引を中止しました。');
81
81
 
82
82
  // 確定
83
- await withdrawService.confirm(transaction);
83
+ await withdrawService.confirmSync(transaction);
84
84
  console.log('取引確定です。');
85
85
  }
86
86
 
package/lib/bundle.js CHANGED
@@ -12972,29 +12972,7 @@ var AccountTransactionService = /** @class */ (function (_super) {
12972
12972
  });
12973
12973
  };
12974
12974
  /**
12975
- * 取引確定
12976
- */
12977
- AccountTransactionService.prototype.confirm = function (params) {
12978
- return __awaiter(this, void 0, void 0, function () {
12979
- return __generator(this, function (_a) {
12980
- switch (_a.label) {
12981
- case 0: return [4 /*yield*/, this.fetch({
12982
- uri: "/accountTransactions/" + params.transactionNumber + "/confirm",
12983
- method: 'PUT',
12984
- expectedStatusCodes: [http_status_1.NO_CONTENT],
12985
- qs: {
12986
- transactionNumber: '1'
12987
- }
12988
- })];
12989
- case 1:
12990
- _a.sent();
12991
- return [2 /*return*/];
12992
- }
12993
- });
12994
- });
12995
- };
12996
- /**
12997
- * 取引確定
12975
+ * 取引確定(同期的)
12998
12976
  */
12999
12977
  AccountTransactionService.prototype.confirmSync = function (params) {
13000
12978
  return __awaiter(this, void 0, void 0, function () {
@@ -13005,8 +12983,7 @@ var AccountTransactionService = /** @class */ (function (_super) {
13005
12983
  method: 'PUT',
13006
12984
  expectedStatusCodes: [http_status_1.NO_CONTENT],
13007
12985
  qs: {
13008
- sync: '1',
13009
- transactionNumber: '1'
12986
+ sync: '1'
13010
12987
  }
13011
12988
  })];
13012
12989
  case 1:
@@ -13017,29 +12994,7 @@ var AccountTransactionService = /** @class */ (function (_super) {
13017
12994
  });
13018
12995
  };
13019
12996
  /**
13020
- * 取引中止
13021
- */
13022
- AccountTransactionService.prototype.cancel = function (params) {
13023
- return __awaiter(this, void 0, void 0, function () {
13024
- return __generator(this, function (_a) {
13025
- switch (_a.label) {
13026
- case 0: return [4 /*yield*/, this.fetch({
13027
- uri: "/accountTransactions/" + params.transactionNumber + "/cancel",
13028
- method: 'PUT',
13029
- expectedStatusCodes: [http_status_1.NO_CONTENT],
13030
- qs: {
13031
- transactionNumber: '1'
13032
- }
13033
- })];
13034
- case 1:
13035
- _a.sent();
13036
- return [2 /*return*/];
13037
- }
13038
- });
13039
- });
13040
- };
13041
- /**
13042
- * 取引中止
12997
+ * 取引中止(同期的)
13043
12998
  */
13044
12999
  AccountTransactionService.prototype.cancelSync = function (params) {
13045
13000
  return __awaiter(this, void 0, void 0, function () {
@@ -13050,8 +13005,7 @@ var AccountTransactionService = /** @class */ (function (_super) {
13050
13005
  method: 'PUT',
13051
13006
  expectedStatusCodes: [http_status_1.NO_CONTENT],
13052
13007
  qs: {
13053
- sync: '1',
13054
- transactionNumber: '1'
13008
+ sync: '1'
13055
13009
  }
13056
13010
  })];
13057
13011
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.128.0-alpha.1",
3
+ "version": "3.128.0",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -97,7 +97,7 @@
97
97
  "watchify": "^3.11.1"
98
98
  },
99
99
  "dependencies": {
100
- "@cinerino/api-abstract-client": "3.128.0-alpha.1",
100
+ "@cinerino/api-abstract-client": "3.128.0",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",