@cinerino/sdk 3.40.0-alpha.4 → 3.41.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.
@@ -8727,6 +8727,36 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
8727
8727
  });
8728
8728
  });
8729
8729
  };
8730
+ /**
8731
+ * マイペイメントカード入出金検索
8732
+ */
8733
+ PersonOwnershipInfoService.prototype.searchPaymentCardMoneyTransferActions = function (params) {
8734
+ return __awaiter(this, void 0, void 0, function () {
8735
+ var id;
8736
+ var _this = this;
8737
+ return __generator(this, function (_a) {
8738
+ id = (typeof params.id === 'string') ? params.id : 'me';
8739
+ return [2 /*return*/, this.fetch({
8740
+ uri: "/people/" + id + "/ownershipInfos/" + params.ownershipInfoId + "/actions/moneyTransfer",
8741
+ method: 'GET',
8742
+ qs: params,
8743
+ expectedStatusCodes: [http_status_1.OK]
8744
+ })
8745
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
8746
+ var _a;
8747
+ return __generator(this, function (_b) {
8748
+ switch (_b.label) {
8749
+ case 0:
8750
+ _a = {};
8751
+ return [4 /*yield*/, response.json()];
8752
+ case 1: return [2 /*return*/, (_a.data = _b.sent(),
8753
+ _a)];
8754
+ }
8755
+ });
8756
+ }); })];
8757
+ });
8758
+ });
8759
+ };
8730
8760
  return PersonOwnershipInfoService;
8731
8761
  }(service_1.Service));
8732
8762
  exports.PersonOwnershipInfoService = PersonOwnershipInfoService;
@@ -0,0 +1,40 @@
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: 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
+ // const authClient = new client.auth.ClientCredentials({
13
+ // domain: <string>process.env.TEST_AUTHORIZE_SERVER_DOMAIN,
14
+ // clientId: <string>process.env.TEST_CLIENT_ID,
15
+ // clientSecret: <string>process.env.TEST_CLIENT_SECRET,
16
+ // scopes: [],
17
+ // state: ''
18
+ // });
19
+
20
+ const orderService = new client.chevre.service.Order({
21
+ endpoint: <string>process.env.CHEVRE_ENDPOINT,
22
+ auth: authClient,
23
+ project
24
+ });
25
+
26
+ const orders = await orderService.findByConfirmationNumber({
27
+ confirmationNumber: '11436',
28
+ customer: {
29
+ telephone: '+819096793896'
30
+ }
31
+ });
32
+ console.log(orders);
33
+ console.log(orders.length, 'orders found');
34
+ }
35
+
36
+ main()
37
+ .then(() => {
38
+ console.log('main processed.');
39
+ })
40
+ .catch(console.error);