@t-0/provider-starter-ts 1.1.15 → 1.1.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t-0/provider-starter-ts",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "CLI tool to scaffold a Node.js t-0 Network integration service",
5
5
  "main": "dist/create.js",
6
6
  "bin": {
@@ -33,12 +33,12 @@
33
33
  "chalk": "^5.6.2",
34
34
  "commander": "^14.0.3",
35
35
  "fs-extra": "^11.3.4",
36
- "inquirer": "^13.3.0"
36
+ "inquirer": "^13.4.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/fs-extra": "^11.0.4",
40
40
  "@types/inquirer": "^9.0.9",
41
- "@types/node": "^25.4.0",
42
- "typescript": "^6.0.2"
41
+ "@types/node": "^25.6.0",
42
+ "typescript": "^6.0.3"
43
43
  }
44
44
  }
@@ -12,7 +12,7 @@
12
12
  "author": "",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@t-0/provider-sdk": "^1.1.15",
15
+ "@t-0/provider-sdk": "^1.1.17",
16
16
  "dotenv": "^16.3.1",
17
17
  "tiny-invariant": "^1.3.3"
18
18
  },
@@ -18,12 +18,12 @@ export default async function confirmFundsReceived(
18
18
  // optional: if your provider has multiple legal entities, set originatorProviderLegalEntityId
19
19
  })
20
20
 
21
- switch (response.Result.case) {
21
+ switch (response.result.case) {
22
22
  case 'accept':
23
23
  console.log(`Funds accepted for payment intent ${paymentIntentId}`)
24
24
  break;
25
25
  case 'reject':
26
- console.log(`Funds rejected for payment intent ${paymentIntentId}: ${response.Result.value.reason}`)
26
+ console.log(`Funds rejected for payment intent ${paymentIntentId}: ${response.result.value.reason}`)
27
27
  break;
28
28
  default:
29
29
  console.error("unexpected result type")
@@ -19,17 +19,17 @@ export default async function createPaymentIntent(
19
19
  },
20
20
  })
21
21
 
22
- switch (response.Result.case) {
22
+ switch (response.result.case) {
23
23
  case 'success':
24
24
  console.log(
25
- `Created payment intent id=${response.Result.value.paymentIntentId}`,
26
- `with ${response.Result.value.payInDetails.length} pay-in option(s)`,
25
+ `Created payment intent id=${response.result.value.paymentIntentId}`,
26
+ `with ${response.result.value.payInDetails.length} pay-in option(s)`,
27
27
  )
28
28
  // TODO: persist (paymentIntentId, externalReference) and present the
29
29
  // payInDetails options to your end-user.
30
30
  break;
31
31
  case 'failure':
32
- console.log(`Failed to create payment intent: ${response.Result.value.reason}`)
32
+ console.log(`Failed to create payment intent: ${response.result.value.reason}`)
33
33
  break;
34
34
  default:
35
35
  console.error("unexpected result type")
@@ -12,11 +12,11 @@ export default async function getPaymentIntentQuote(
12
12
  amount: toProtoDecimal(500, 0), // end-user pays 500 EUR
13
13
  })
14
14
 
15
- switch (response.Result.case) {
15
+ switch (response.result.case) {
16
16
  case 'success':
17
17
  console.log(
18
- `Got ${response.Result.value.bestQuotes.length} best pay-in quotes`,
19
- `and ${response.Result.value.allQuotes.length} total quotes`,
18
+ `Got ${response.result.value.bestQuotes.length} best pay-in quotes`,
19
+ `and ${response.result.value.allQuotes.length} total quotes`,
20
20
  )
21
21
  break;
22
22
  case 'quoteNotFound':
@@ -0,0 +1,13 @@
1
+ {
2
+ // CI-only typecheck config used by .github/workflows/ci.yaml to validate
3
+ // this template against the local SDK before publishing. The shipped
4
+ // tsconfig.json uses module=commonjs (matching providers' typical Node
5
+ // runtime deployments) which conflicts with moduleResolution=bundler
6
+ // (TS5095). This override flips module to esnext so tsc can run; it is
7
+ // not used at build/runtime by providers and is safe to ignore or delete
8
+ // in a scaffolded project.
9
+ "extends": "./tsconfig.json",
10
+ "compilerOptions": {
11
+ "module": "esnext"
12
+ }
13
+ }