@stripe/link-sdk 0.7.0 → 0.8.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.
- package/README.md +7 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +354 -331
- package/dist/index.js.map +1 -1
- package/dist/resources/__tests__/approval-policy.test.d.ts +2 -0
- package/dist/resources/__tests__/approval-policy.test.d.ts.map +1 -0
- package/dist/resources/approval-policy.d.ts +9 -0
- package/dist/resources/approval-policy.d.ts.map +1 -0
- package/dist/resources/interfaces.d.ts +9 -8
- package/dist/resources/interfaces.d.ts.map +1 -1
- package/dist/resources/payment-methods.d.ts +3 -1
- package/dist/resources/payment-methods.d.ts.map +1 -1
- package/dist/resources/user-info.d.ts.map +1 -1
- package/dist/types/index.d.ts +31 -51
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/resources/__tests__/summaries.test.d.ts +0 -2
- package/dist/resources/__tests__/summaries.test.d.ts.map +0 -1
- package/dist/resources/summaries.d.ts +0 -10
- package/dist/resources/summaries.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -27,6 +27,12 @@ const link = new Link({ accessToken: process.env.LINK_ACCESS_TOKEN! });
|
|
|
27
27
|
const paymentMethods = await link.paymentMethods.list();
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
Retrieve the approval policy for the current app and user:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
const approvalPolicy = await link.approvalPolicy.retrieve();
|
|
34
|
+
```
|
|
35
|
+
|
|
30
36
|
Use a fixed token for a short-lived job or when the caller replaces the entire
|
|
31
37
|
client as credentials change.
|
|
32
38
|
|
|
@@ -170,7 +176,7 @@ try {
|
|
|
170
176
|
- `spendRequests` — create, approve, retrieve, update, cancel, and list
|
|
171
177
|
- `paymentMethods` — list Link payment methods
|
|
172
178
|
- `shippingAddresses` — list shipping addresses
|
|
173
|
-
- `userInfo` — retrieve Link user information
|
|
179
|
+
- `userInfo` — retrieve Link user information, including the stable `id` when returned by the API
|
|
174
180
|
- `transactions` — list transactions
|
|
175
181
|
- `sources` — list connected sources
|
|
176
182
|
- `balances` — list balances
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LinkOptions } from '@/config';
|
|
2
|
-
import type { IAttestationsResource, IBalancesResource, IIdentityCredentialsResource, IPaymentMethodsResource, IReportResource, IShippingAddressResource, ISourcesResource, ISpendRequestResource,
|
|
2
|
+
import type { IApprovalPolicyResource, IAttestationsResource, IBalancesResource, IIdentityCredentialsResource, IPaymentMethodsResource, IReportResource, IShippingAddressResource, ISourcesResource, ISpendRequestResource, ITransactionsResource, IUcpResource, IUserInfoResource, IWebBotAuthResource } from '@/resources/interfaces';
|
|
3
3
|
export declare class Link {
|
|
4
4
|
readonly attestations: IAttestationsResource;
|
|
5
5
|
readonly identityCredentials: IIdentityCredentialsResource;
|
|
@@ -7,10 +7,10 @@ export declare class Link {
|
|
|
7
7
|
readonly paymentMethods: IPaymentMethodsResource;
|
|
8
8
|
readonly shippingAddresses: IShippingAddressResource;
|
|
9
9
|
readonly userInfo: IUserInfoResource;
|
|
10
|
+
readonly approvalPolicy: IApprovalPolicyResource;
|
|
10
11
|
readonly transactions: ITransactionsResource;
|
|
11
12
|
readonly sources: ISourcesResource;
|
|
12
13
|
readonly balances: IBalancesResource;
|
|
13
|
-
readonly summaries: ISummariesResource;
|
|
14
14
|
readonly webBotAuth: IWebBotAuthResource;
|
|
15
15
|
readonly reports: IReportResource;
|
|
16
16
|
readonly ucp: IUcpResource;
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK5C,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,4BAA4B,EAC5B,uBAAuB,EACvB,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAWhC,qBAAa,IAAI;IACf,QAAQ,CAAC,YAAY,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,CAAC,mBAAmB,EAAE,4BAA4B,CAAC;IAC3D,QAAQ,CAAC,aAAa,EAAE,qBAAqB,CAAC;IAC9C,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;IACrD,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,YAAY,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,GAAG,EAAE,YAAY,CAAC;IAE3B,YAAY,OAAO,EAAE,WAAW,EAc/B;CACF;eAEc,IAAI"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { default, Link } from './client';
|
|
2
2
|
export type { LinkOptions, LinkSdkLogger } from './config';
|
|
3
3
|
export { LinkApiError, LinkConfigurationError, LinkResponseError, LinkSdkError, LinkTransportError, } from './errors';
|
|
4
|
+
export { ApprovalPolicyResource } from './resources/approval-policy';
|
|
4
5
|
export * from './resources/attestations';
|
|
5
6
|
export { holderJwksEqual, holderJwkThumbprint, parseHolderPublicJwk, } from './resources/holder-jwk';
|
|
6
7
|
export * from './resources/interfaces';
|
|
7
8
|
export { getDuplicateSpendRequest } from './resources/spend-request';
|
|
8
|
-
export * from './resources/summaries';
|
|
9
9
|
export * from './types/index';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACzC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAClB,cAAc,0BAA0B,CAAC;AACzC,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACzC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,cAAc,eAAe,CAAC"}
|