@cinerino/sdk 3.125.0-alpha.0 → 3.125.0-alpha.2

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.
@@ -16,7 +16,7 @@ const auth = new client.auth.ClientCredentials({
16
16
  scopes: [],
17
17
  state: ''
18
18
  });
19
- const depositService = new client.pecorino.service.transaction.Deposit({
19
+ const depositService = new client.pecorino.service.AccountTransaction({
20
20
  endpoint: <string>process.env.PECORINO_API_ENDPOINT,
21
21
  auth: auth
22
22
  });
@@ -44,7 +44,7 @@ async function main() {
44
44
 
45
45
  const transactionNumber = `${project.id}-${(new Date()).valueOf()}`;
46
46
  console.log('取引が開始します...', toAccountNumber, amount, notes);
47
- const transaction = await depositService.start({
47
+ const transaction = await depositService.start<client.factory.account.transactionType.Deposit>({
48
48
  typeOf: client.factory.account.transactionType.Deposit,
49
49
  transactionNumber: transactionNumber,
50
50
  project: { typeOf: client.factory.organizationType.Project, id: project.id },
@@ -16,7 +16,7 @@ const auth = new client.auth.ClientCredentials({
16
16
  scopes: [],
17
17
  state: ''
18
18
  });
19
- const transferService = new client.pecorino.service.transaction.Transfer({
19
+ const transferService = new client.pecorino.service.AccountTransaction({
20
20
  endpoint: <string>process.env.PECORINO_API_ENDPOINT,
21
21
  auth: auth
22
22
  });
@@ -43,7 +43,7 @@ async function main() {
43
43
  });
44
44
 
45
45
  // 取引開始
46
- const transaction = await transferService.start({
46
+ const transaction = await transferService.start<client.factory.account.transactionType.Transfer>({
47
47
  typeOf: client.factory.account.transactionType.Transfer,
48
48
  transactionNumber: `sample-${Date.now()}`,
49
49
  project: { typeOf: client.factory.organizationType.Project, id: project.id },
@@ -16,7 +16,7 @@ const auth = new client.auth.ClientCredentials({
16
16
  scopes: [],
17
17
  state: ''
18
18
  });
19
- const withdrawService = new client.pecorino.service.transaction.Withdraw({
19
+ const withdrawService = new client.pecorino.service.AccountTransaction({
20
20
  endpoint: <string>process.env.PECORINO_API_ENDPOINT,
21
21
  auth: auth
22
22
  });
@@ -41,7 +41,7 @@ async function main() {
41
41
  });
42
42
 
43
43
  // 取引開始
44
- const transaction = await withdrawService.start({
44
+ const transaction = await withdrawService.start<client.factory.account.transactionType.Withdraw>({
45
45
  typeOf: client.factory.account.transactionType.Withdraw,
46
46
  transactionNumber: `sample-${Date.now()}`,
47
47
  project: { typeOf: client.factory.organizationType.Project, id: project.id },