@cinerino/sdk 3.105.0-alpha.2 → 3.105.0-alpha.3

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.
@@ -5535,6 +5535,27 @@ var MoneyTransferAssetTransactionService = /** @class */ (function (_super) {
5535
5535
  });
5536
5536
  });
5537
5537
  };
5538
+ /**
5539
+ * ペイメントカード入金
5540
+ * @deprecated
5541
+ */
5542
+ MoneyTransferAssetTransactionService.prototype.startAndConfirmDeposit = function (params) {
5543
+ return __awaiter(this, void 0, void 0, function () {
5544
+ return __generator(this, function (_a) {
5545
+ switch (_a.label) {
5546
+ case 0: return [4 /*yield*/, this.fetch({
5547
+ uri: "/assetTransactions/" + factory.assetTransactionType.MoneyTransfer + "/deposit/startAndConfirm",
5548
+ method: 'POST',
5549
+ body: params,
5550
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
5551
+ })];
5552
+ case 1:
5553
+ _a.sent();
5554
+ return [2 /*return*/];
5555
+ }
5556
+ });
5557
+ });
5558
+ };
5538
5559
  return MoneyTransferAssetTransactionService;
5539
5560
  }(service_1.Service));
5540
5561
  exports.MoneyTransferAssetTransactionService = MoneyTransferAssetTransactionService;
@@ -0,0 +1,36 @@
1
+ // tslint:disable:no-implicit-dependencies no-console no-magic-numbers
2
+ import * as client from '../../../../lib/';
3
+ import * as auth from '../../auth/authAsAdmin';
4
+
5
+ const project = { id: String(process.env.PROJECT_ID) };
6
+
7
+ async function main() {
8
+ const authClient = await auth.login();
9
+ await authClient.refreshAccessToken();
10
+ const loginTicket = authClient.verifyIdToken({});
11
+ console.log('username is', loginTicket.getUsername());
12
+
13
+ const moneyTransferService = new client.chevre.service.assetTransaction.MoneyTransfer({
14
+ endpoint: <string>process.env.CHEVRE_ENDPOINT,
15
+ auth: authClient,
16
+ project
17
+ });
18
+
19
+ await moneyTransferService.startAndConfirmDeposit({
20
+ recipient: { name: 'Recipient', id: 'id' },
21
+ object: {
22
+ amount: 1,
23
+ toLocation: {
24
+ accountNumber: '020432473604202'
25
+ },
26
+ description: 'sample'
27
+ }
28
+ });
29
+ console.log('deposit confirmed');
30
+ }
31
+
32
+ main()
33
+ .then(() => {
34
+ console.log('main processed.');
35
+ })
36
+ .catch(console.error);
package/lib/bundle.js CHANGED
@@ -5535,6 +5535,27 @@ var MoneyTransferAssetTransactionService = /** @class */ (function (_super) {
5535
5535
  });
5536
5536
  });
5537
5537
  };
5538
+ /**
5539
+ * ペイメントカード入金
5540
+ * @deprecated
5541
+ */
5542
+ MoneyTransferAssetTransactionService.prototype.startAndConfirmDeposit = function (params) {
5543
+ return __awaiter(this, void 0, void 0, function () {
5544
+ return __generator(this, function (_a) {
5545
+ switch (_a.label) {
5546
+ case 0: return [4 /*yield*/, this.fetch({
5547
+ uri: "/assetTransactions/" + factory.assetTransactionType.MoneyTransfer + "/deposit/startAndConfirm",
5548
+ method: 'POST',
5549
+ body: params,
5550
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
5551
+ })];
5552
+ case 1:
5553
+ _a.sent();
5554
+ return [2 /*return*/];
5555
+ }
5556
+ });
5557
+ });
5558
+ };
5538
5559
  return MoneyTransferAssetTransactionService;
5539
5560
  }(service_1.Service));
5540
5561
  exports.MoneyTransferAssetTransactionService = MoneyTransferAssetTransactionService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.105.0-alpha.2",
3
+ "version": "3.105.0-alpha.3",
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.105.0-alpha.3",
100
+ "@cinerino/api-abstract-client": "3.105.0-alpha.4",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",