@linqapp/sdk 0.32.1 → 0.33.1
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/CHANGELOG.md +26 -0
- package/README.md +82 -112
- package/client.d.mts +42 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +42 -6
- package/client.d.ts.map +1 -1
- package/client.js +39 -3
- package/client.js.map +1 -1
- package/client.mjs +39 -3
- package/client.mjs.map +1 -1
- package/core/error.d.mts +13 -0
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +13 -0
- package/core/error.d.ts.map +1 -1
- package/core/error.js +5 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs +5 -1
- package/core/error.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/available-number.d.mts +13 -1
- package/resources/available-number.d.mts.map +1 -1
- package/resources/available-number.d.ts +13 -1
- package/resources/available-number.d.ts.map +1 -1
- package/resources/available-number.js +2 -1
- package/resources/available-number.js.map +1 -1
- package/resources/available-number.mjs +2 -1
- package/resources/available-number.mjs.map +1 -1
- package/resources/chats/chats.d.mts +175 -70
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +175 -70
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js +65 -61
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs +65 -61
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/index.d.mts +3 -2
- package/resources/chats/index.d.mts.map +1 -1
- package/resources/chats/index.d.ts +3 -2
- package/resources/chats/index.d.ts.map +1 -1
- package/resources/chats/index.js +3 -1
- package/resources/chats/index.js.map +1 -1
- package/resources/chats/index.mjs +1 -0
- package/resources/chats/index.mjs.map +1 -1
- package/resources/chats/location.d.mts +25 -25
- package/resources/chats/location.d.mts.map +1 -1
- package/resources/chats/location.d.ts +25 -25
- package/resources/chats/location.d.ts.map +1 -1
- package/resources/chats/location.js +27 -27
- package/resources/chats/location.js.map +1 -1
- package/resources/chats/location.mjs +27 -27
- package/resources/chats/location.mjs.map +1 -1
- package/resources/chats/messages.d.mts +28 -21
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +28 -21
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/chats/messages.js +16 -16
- package/resources/chats/messages.js.map +1 -1
- package/resources/chats/messages.mjs +16 -16
- package/resources/chats/messages.mjs.map +1 -1
- package/resources/chats/polls.d.mts +171 -0
- package/resources/chats/polls.d.mts.map +1 -0
- package/resources/chats/polls.d.ts +171 -0
- package/resources/chats/polls.d.ts.map +1 -0
- package/resources/chats/polls.js +95 -0
- package/resources/chats/polls.js.map +1 -0
- package/resources/chats/polls.mjs +91 -0
- package/resources/chats/polls.mjs.map +1 -0
- package/resources/contact-card.d.mts +29 -28
- package/resources/contact-card.d.mts.map +1 -1
- package/resources/contact-card.d.ts +29 -28
- package/resources/contact-card.d.ts.map +1 -1
- package/resources/contact-card.js +23 -22
- package/resources/contact-card.js.map +1 -1
- package/resources/contact-card.mjs +23 -22
- package/resources/contact-card.mjs.map +1 -1
- package/resources/experiences.d.mts +91 -0
- package/resources/experiences.d.mts.map +1 -0
- package/resources/experiences.d.ts +91 -0
- package/resources/experiences.d.ts.map +1 -0
- package/resources/experiences.js +29 -0
- package/resources/experiences.js.map +1 -0
- package/resources/experiences.mjs +25 -0
- package/resources/experiences.mjs.map +1 -0
- package/resources/index.d.mts +7 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/index.d.mts +3 -0
- package/resources/messages/index.d.mts.map +1 -0
- package/resources/messages/index.d.ts +3 -0
- package/resources/messages/index.d.ts.map +1 -0
- package/resources/messages/index.js +9 -0
- package/resources/messages/index.js.map +1 -0
- package/resources/messages/index.mjs +4 -0
- package/resources/messages/index.mjs.map +1 -0
- package/resources/messages/messages.d.mts +795 -0
- package/resources/messages/messages.d.mts.map +1 -0
- package/resources/messages/messages.d.ts +795 -0
- package/resources/messages/messages.d.ts.map +1 -0
- package/resources/messages/messages.js +298 -0
- package/resources/messages/messages.js.map +1 -0
- package/resources/messages/messages.mjs +293 -0
- package/resources/messages/messages.mjs.map +1 -0
- package/resources/messages/poll.d.mts +131 -0
- package/resources/messages/poll.d.mts.map +1 -0
- package/resources/messages/poll.d.ts +131 -0
- package/resources/messages/poll.d.ts.map +1 -0
- package/resources/messages/poll.js +119 -0
- package/resources/messages/poll.js.map +1 -0
- package/resources/messages/poll.mjs +115 -0
- package/resources/messages/poll.mjs.map +1 -0
- package/resources/messages.d.mts +1 -747
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +1 -747
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +2 -275
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +1 -273
- package/resources/messages.mjs.map +1 -1
- package/resources/payment-handles.d.mts +87 -0
- package/resources/payment-handles.d.mts.map +1 -0
- package/resources/payment-handles.d.ts +87 -0
- package/resources/payment-handles.d.ts.map +1 -0
- package/resources/payment-handles.js +76 -0
- package/resources/payment-handles.js.map +1 -0
- package/resources/payment-handles.mjs +72 -0
- package/resources/payment-handles.mjs.map +1 -0
- package/resources/payment-providers.d.mts +58 -0
- package/resources/payment-providers.d.mts.map +1 -0
- package/resources/payment-providers.d.ts +58 -0
- package/resources/payment-providers.d.ts.map +1 -0
- package/resources/payment-providers.js +45 -0
- package/resources/payment-providers.js.map +1 -0
- package/resources/payment-providers.mjs +41 -0
- package/resources/payment-providers.mjs.map +1 -0
- package/resources/payment-requests.d.mts +2 -2
- package/resources/payment-requests.d.ts +2 -2
- package/resources/payment-requests.js +2 -2
- package/resources/payment-requests.mjs +2 -2
- package/resources/payments.d.mts +116 -0
- package/resources/payments.d.mts.map +1 -0
- package/resources/payments.d.ts +116 -0
- package/resources/payments.d.ts.map +1 -0
- package/resources/payments.js +70 -0
- package/resources/payments.js.map +1 -0
- package/resources/payments.mjs +66 -0
- package/resources/payments.mjs.map +1 -0
- package/resources/phone-numbers.d.mts +11 -11
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +11 -11
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +13 -13
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +13 -13
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/webhook-events.d.mts +1 -1
- package/resources/webhook-events.d.mts.map +1 -1
- package/resources/webhook-events.d.ts +1 -1
- package/resources/webhook-events.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +11 -11
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +11 -11
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +13 -13
- package/resources/webhook-subscriptions.js.map +1 -1
- package/resources/webhook-subscriptions.mjs +13 -13
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +72 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +72 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +91 -20
- package/src/core/error.ts +20 -1
- package/src/resources/available-number.ts +14 -1
- package/src/resources/chats/chats.ts +203 -85
- package/src/resources/chats/index.ts +3 -2
- package/src/resources/chats/location.ts +28 -28
- package/src/resources/chats/messages.ts +40 -32
- package/src/resources/chats/polls.ts +196 -0
- package/src/resources/contact-card.ts +36 -35
- package/src/resources/experiences.ts +118 -0
- package/src/resources/index.ts +23 -5
- package/src/resources/messages/index.ts +18 -0
- package/src/resources/messages/messages.ts +958 -0
- package/src/resources/messages/poll.ts +151 -0
- package/src/resources/messages.ts +1 -894
- package/src/resources/payment-handles.ts +114 -0
- package/src/resources/payment-providers.ts +81 -0
- package/src/resources/payment-requests.ts +2 -2
- package/src/resources/payments.ts +163 -0
- package/src/resources/phone-numbers.ts +14 -14
- package/src/resources/webhook-events.ts +9 -0
- package/src/resources/webhook-subscriptions.ts +14 -14
- package/src/resources/webhooks.ts +82 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-handles.d.mts","sourceRoot":"","sources":["../src/resources/payment-handles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAItF;;;;;;;;OAQG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIzF;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrF;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAGvC;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;CAChE;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Let an agent pay on a customer's behalf with a single-use virtual card.
|
|
6
|
+
* Connect a customer once, then create a payment — a virtual card is minted
|
|
7
|
+
* scoped to that purchase and the card details are handed back for checkout.
|
|
8
|
+
*/
|
|
9
|
+
export declare class PaymentHandles extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Starts connecting a customer (by phone/email) so an agent can pay on their
|
|
12
|
+
* behalf. Linq drives the OTP + consent ceremony through the messaging channel;
|
|
13
|
+
* this returns `pending` and a `connection.created` webhook fires once the
|
|
14
|
+
* customer completes it.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const paymentHandleConnection =
|
|
19
|
+
* await client.paymentHandles.connect('handle');
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
connect(handle: string, options?: RequestOptions): APIPromise<PaymentHandleConnection>;
|
|
23
|
+
/**
|
|
24
|
+
* Get a handle's connection status
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const paymentHandleConnection =
|
|
29
|
+
* await client.paymentHandles.connection('handle');
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
connection(handle: string, options?: RequestOptions): APIPromise<PaymentHandleConnection>;
|
|
33
|
+
/**
|
|
34
|
+
* Revokes this partner's grant for the customer. Only your grant is removed; the
|
|
35
|
+
* customer's wallet at the provider is untouched.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const paymentHandleConnection =
|
|
40
|
+
* await client.paymentHandles.revoke('handle');
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
revoke(handle: string, options?: RequestOptions): APIPromise<PaymentHandleConnection>;
|
|
44
|
+
/**
|
|
45
|
+
* Completes the ceremony `connect` started: verifies the code, records the
|
|
46
|
+
* customer's consent, and stores the connection. Returns `connected` on success,
|
|
47
|
+
* after which payments for this handle no longer need the customer present.
|
|
48
|
+
*
|
|
49
|
+
* The code reaches you however your channel works — typically the customer replies
|
|
50
|
+
* with it in the thread. Codes are single-use and short-lived; if one has expired,
|
|
51
|
+
* call `connect` again for a fresh `connect_id`.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const paymentHandleConnection =
|
|
56
|
+
* await client.paymentHandles.verify('handle', {
|
|
57
|
+
* code: '482913',
|
|
58
|
+
* connect_id: 'cs_01HZY8',
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
verify(handle: string, body: PaymentHandleVerifyParams, options?: RequestOptions): APIPromise<PaymentHandleConnection>;
|
|
63
|
+
}
|
|
64
|
+
export interface PaymentHandleConnection {
|
|
65
|
+
/**
|
|
66
|
+
* Returned only by `connect`, and only while the ceremony is pending. Nothing on
|
|
67
|
+
* our side persists it — it comes back from the provider and is required again to
|
|
68
|
+
* verify — so hold it until you submit the code.
|
|
69
|
+
*/
|
|
70
|
+
connect_id?: string;
|
|
71
|
+
handle?: string;
|
|
72
|
+
status?: 'not_connected' | 'pending' | 'connected' | 'revoked';
|
|
73
|
+
}
|
|
74
|
+
export interface PaymentHandleVerifyParams {
|
|
75
|
+
/**
|
|
76
|
+
* The one-time code the customer received.
|
|
77
|
+
*/
|
|
78
|
+
code: string;
|
|
79
|
+
/**
|
|
80
|
+
* The id returned by `connect`.
|
|
81
|
+
*/
|
|
82
|
+
connect_id: string;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace PaymentHandles {
|
|
85
|
+
export { type PaymentHandleConnection as PaymentHandleConnection, type PaymentHandleVerifyParams as PaymentHandleVerifyParams, };
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=payment-handles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-handles.d.ts","sourceRoot":"","sources":["../src/resources/payment-handles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAItF;;;;;;;;OAQG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIzF;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIrF;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAGvC;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;CAChE;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PaymentHandles = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Let an agent pay on a customer's behalf with a single-use virtual card.
|
|
9
|
+
* Connect a customer once, then create a payment — a virtual card is minted
|
|
10
|
+
* scoped to that purchase and the card details are handed back for checkout.
|
|
11
|
+
*/
|
|
12
|
+
class PaymentHandles extends resource_1.APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Starts connecting a customer (by phone/email) so an agent can pay on their
|
|
15
|
+
* behalf. Linq drives the OTP + consent ceremony through the messaging channel;
|
|
16
|
+
* this returns `pending` and a `connection.created` webhook fires once the
|
|
17
|
+
* customer completes it.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const paymentHandleConnection =
|
|
22
|
+
* await client.paymentHandles.connect('handle');
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
connect(handle, options) {
|
|
26
|
+
return this._client.post((0, path_1.path) `/v3/payments/handles/${handle}/connect`, options);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get a handle's connection status
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const paymentHandleConnection =
|
|
34
|
+
* await client.paymentHandles.connection('handle');
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
connection(handle, options) {
|
|
38
|
+
return this._client.get((0, path_1.path) `/v3/payments/handles/${handle}/connection`, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Revokes this partner's grant for the customer. Only your grant is removed; the
|
|
42
|
+
* customer's wallet at the provider is untouched.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const paymentHandleConnection =
|
|
47
|
+
* await client.paymentHandles.revoke('handle');
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
revoke(handle, options) {
|
|
51
|
+
return this._client.delete((0, path_1.path) `/v3/payments/handles/${handle}/connection`, options);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Completes the ceremony `connect` started: verifies the code, records the
|
|
55
|
+
* customer's consent, and stores the connection. Returns `connected` on success,
|
|
56
|
+
* after which payments for this handle no longer need the customer present.
|
|
57
|
+
*
|
|
58
|
+
* The code reaches you however your channel works — typically the customer replies
|
|
59
|
+
* with it in the thread. Codes are single-use and short-lived; if one has expired,
|
|
60
|
+
* call `connect` again for a fresh `connect_id`.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const paymentHandleConnection =
|
|
65
|
+
* await client.paymentHandles.verify('handle', {
|
|
66
|
+
* code: '482913',
|
|
67
|
+
* connect_id: 'cs_01HZY8',
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
verify(handle, body, options) {
|
|
72
|
+
return this._client.post((0, path_1.path) `/v3/payments/handles/${handle}/verify`, { body, ...options });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.PaymentHandles = PaymentHandles;
|
|
76
|
+
//# sourceMappingURL=payment-handles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-handles.js","sourceRoot":"","sources":["../src/resources/payment-handles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;;;GAIG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;OAQG;IACH,UAAU,CAAC,MAAc,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,aAAa,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,aAAa,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,MAAc,EACd,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AArED,wCAqEC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Let an agent pay on a customer's behalf with a single-use virtual card.
|
|
6
|
+
* Connect a customer once, then create a payment — a virtual card is minted
|
|
7
|
+
* scoped to that purchase and the card details are handed back for checkout.
|
|
8
|
+
*/
|
|
9
|
+
export class PaymentHandles extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Starts connecting a customer (by phone/email) so an agent can pay on their
|
|
12
|
+
* behalf. Linq drives the OTP + consent ceremony through the messaging channel;
|
|
13
|
+
* this returns `pending` and a `connection.created` webhook fires once the
|
|
14
|
+
* customer completes it.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const paymentHandleConnection =
|
|
19
|
+
* await client.paymentHandles.connect('handle');
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
connect(handle, options) {
|
|
23
|
+
return this._client.post(path `/v3/payments/handles/${handle}/connect`, options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Get a handle's connection status
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const paymentHandleConnection =
|
|
31
|
+
* await client.paymentHandles.connection('handle');
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
connection(handle, options) {
|
|
35
|
+
return this._client.get(path `/v3/payments/handles/${handle}/connection`, options);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Revokes this partner's grant for the customer. Only your grant is removed; the
|
|
39
|
+
* customer's wallet at the provider is untouched.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const paymentHandleConnection =
|
|
44
|
+
* await client.paymentHandles.revoke('handle');
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
revoke(handle, options) {
|
|
48
|
+
return this._client.delete(path `/v3/payments/handles/${handle}/connection`, options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Completes the ceremony `connect` started: verifies the code, records the
|
|
52
|
+
* customer's consent, and stores the connection. Returns `connected` on success,
|
|
53
|
+
* after which payments for this handle no longer need the customer present.
|
|
54
|
+
*
|
|
55
|
+
* The code reaches you however your channel works — typically the customer replies
|
|
56
|
+
* with it in the thread. Codes are single-use and short-lived; if one has expired,
|
|
57
|
+
* call `connect` again for a fresh `connect_id`.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const paymentHandleConnection =
|
|
62
|
+
* await client.paymentHandles.verify('handle', {
|
|
63
|
+
* code: '482913',
|
|
64
|
+
* connect_id: 'cs_01HZY8',
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
verify(handle, body, options) {
|
|
69
|
+
return this._client.post(path `/v3/payments/handles/${handle}/verify`, { body, ...options });
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=payment-handles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-handles.mjs","sourceRoot":"","sources":["../src/resources/payment-handles.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;GAIG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;OAQG;IACH,UAAU,CAAC,MAAc,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,MAAM,aAAa,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,MAAM,aAAa,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,MAAc,EACd,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Let an agent pay on a customer's behalf with a single-use virtual card.
|
|
6
|
+
* Connect a customer once, then create a payment — a virtual card is minted
|
|
7
|
+
* scoped to that purchase and the card details are handed back for checkout.
|
|
8
|
+
*/
|
|
9
|
+
export declare class PaymentProviders extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns your organization's onboarding status for a payment provider.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const paymentProvider =
|
|
16
|
+
* await client.paymentProviders.retrieve('provider');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(provider: string, options?: RequestOptions): APIPromise<PaymentProvider>;
|
|
20
|
+
/**
|
|
21
|
+
* Begins connecting your organization to a payment provider (e.g. `agentcard`).
|
|
22
|
+
* Returns a hosted URL where an admin authorizes the connection; on completion the
|
|
23
|
+
* provider redirects back and Linq stores your connected credentials.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const response = await client.paymentProviders.connect(
|
|
28
|
+
* 'provider',
|
|
29
|
+
* {
|
|
30
|
+
* return_url: 'https://partner.example/settings/payments',
|
|
31
|
+
* },
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
connect(provider: string, body: PaymentProviderConnectParams, options?: RequestOptions): APIPromise<PaymentProviderConnectResponse>;
|
|
36
|
+
}
|
|
37
|
+
export interface PaymentProvider {
|
|
38
|
+
provider?: string;
|
|
39
|
+
status?: 'onboarding' | 'ready' | 'disabled';
|
|
40
|
+
}
|
|
41
|
+
export interface PaymentProviderConnectResponse {
|
|
42
|
+
/**
|
|
43
|
+
* Send the admin here to authorize the connection.
|
|
44
|
+
*/
|
|
45
|
+
hosted_url?: string;
|
|
46
|
+
session_id?: string;
|
|
47
|
+
status?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface PaymentProviderConnectParams {
|
|
50
|
+
/**
|
|
51
|
+
* Where to send the admin after they authorize the connection.
|
|
52
|
+
*/
|
|
53
|
+
return_url: string;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace PaymentProviders {
|
|
56
|
+
export { type PaymentProvider as PaymentProvider, type PaymentProviderConnectResponse as PaymentProviderConnectResponse, type PaymentProviderConnectParams as PaymentProviderConnectParams, };
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=payment-providers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-providers.d.mts","sourceRoot":"","sources":["../src/resources/payment-providers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;OAQG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIjF;;;;;;;;;;;;;;OAcG;IACH,OAAO,CACL,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;CAC9C;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Let an agent pay on a customer's behalf with a single-use virtual card.
|
|
6
|
+
* Connect a customer once, then create a payment — a virtual card is minted
|
|
7
|
+
* scoped to that purchase and the card details are handed back for checkout.
|
|
8
|
+
*/
|
|
9
|
+
export declare class PaymentProviders extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns your organization's onboarding status for a payment provider.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const paymentProvider =
|
|
16
|
+
* await client.paymentProviders.retrieve('provider');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(provider: string, options?: RequestOptions): APIPromise<PaymentProvider>;
|
|
20
|
+
/**
|
|
21
|
+
* Begins connecting your organization to a payment provider (e.g. `agentcard`).
|
|
22
|
+
* Returns a hosted URL where an admin authorizes the connection; on completion the
|
|
23
|
+
* provider redirects back and Linq stores your connected credentials.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const response = await client.paymentProviders.connect(
|
|
28
|
+
* 'provider',
|
|
29
|
+
* {
|
|
30
|
+
* return_url: 'https://partner.example/settings/payments',
|
|
31
|
+
* },
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
connect(provider: string, body: PaymentProviderConnectParams, options?: RequestOptions): APIPromise<PaymentProviderConnectResponse>;
|
|
36
|
+
}
|
|
37
|
+
export interface PaymentProvider {
|
|
38
|
+
provider?: string;
|
|
39
|
+
status?: 'onboarding' | 'ready' | 'disabled';
|
|
40
|
+
}
|
|
41
|
+
export interface PaymentProviderConnectResponse {
|
|
42
|
+
/**
|
|
43
|
+
* Send the admin here to authorize the connection.
|
|
44
|
+
*/
|
|
45
|
+
hosted_url?: string;
|
|
46
|
+
session_id?: string;
|
|
47
|
+
status?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface PaymentProviderConnectParams {
|
|
50
|
+
/**
|
|
51
|
+
* Where to send the admin after they authorize the connection.
|
|
52
|
+
*/
|
|
53
|
+
return_url: string;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace PaymentProviders {
|
|
56
|
+
export { type PaymentProvider as PaymentProvider, type PaymentProviderConnectResponse as PaymentProviderConnectResponse, type PaymentProviderConnectParams as PaymentProviderConnectParams, };
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=payment-providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-providers.d.ts","sourceRoot":"","sources":["../src/resources/payment-providers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;OAQG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIjF;;;;;;;;;;;;;;OAcG;IACH,OAAO,CACL,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;CAC9C;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PaymentProviders = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Let an agent pay on a customer's behalf with a single-use virtual card.
|
|
9
|
+
* Connect a customer once, then create a payment — a virtual card is minted
|
|
10
|
+
* scoped to that purchase and the card details are handed back for checkout.
|
|
11
|
+
*/
|
|
12
|
+
class PaymentProviders extends resource_1.APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Returns your organization's onboarding status for a payment provider.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const paymentProvider =
|
|
19
|
+
* await client.paymentProviders.retrieve('provider');
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
retrieve(provider, options) {
|
|
23
|
+
return this._client.get((0, path_1.path) `/v3/payments/providers/${provider}`, options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Begins connecting your organization to a payment provider (e.g. `agentcard`).
|
|
27
|
+
* Returns a hosted URL where an admin authorizes the connection; on completion the
|
|
28
|
+
* provider redirects back and Linq stores your connected credentials.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const response = await client.paymentProviders.connect(
|
|
33
|
+
* 'provider',
|
|
34
|
+
* {
|
|
35
|
+
* return_url: 'https://partner.example/settings/payments',
|
|
36
|
+
* },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
connect(provider, body, options) {
|
|
41
|
+
return this._client.post((0, path_1.path) `/v3/payments/providers/${provider}/connect`, { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.PaymentProviders = PaymentProviders;
|
|
45
|
+
//# sourceMappingURL=payment-providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-providers.js","sourceRoot":"","sources":["../src/resources/payment-providers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;;;GAIG;AACH,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;OAQG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CACL,QAAgB,EAChB,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,0BAA0B,QAAQ,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF;AApCD,4CAoCC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Let an agent pay on a customer's behalf with a single-use virtual card.
|
|
6
|
+
* Connect a customer once, then create a payment — a virtual card is minted
|
|
7
|
+
* scoped to that purchase and the card details are handed back for checkout.
|
|
8
|
+
*/
|
|
9
|
+
export class PaymentProviders extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns your organization's onboarding status for a payment provider.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const paymentProvider =
|
|
16
|
+
* await client.paymentProviders.retrieve('provider');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(provider, options) {
|
|
20
|
+
return this._client.get(path `/v3/payments/providers/${provider}`, options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Begins connecting your organization to a payment provider (e.g. `agentcard`).
|
|
24
|
+
* Returns a hosted URL where an admin authorizes the connection; on completion the
|
|
25
|
+
* provider redirects back and Linq stores your connected credentials.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const response = await client.paymentProviders.connect(
|
|
30
|
+
* 'provider',
|
|
31
|
+
* {
|
|
32
|
+
* return_url: 'https://partner.example/settings/payments',
|
|
33
|
+
* },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
connect(provider, body, options) {
|
|
38
|
+
return this._client.post(path `/v3/payments/providers/${provider}/connect`, { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=payment-providers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-providers.mjs","sourceRoot":"","sources":["../src/resources/payment-providers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;GAIG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;OAQG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CACL,QAAgB,EAChB,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,0BAA0B,QAAQ,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF"}
|
|
@@ -20,7 +20,7 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
20
20
|
*
|
|
21
21
|
* ## Connected accounts (Stripe Standard, direct charges)
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* Payments run on **Stripe Connect Standard accounts** using **direct
|
|
24
24
|
* charges**: the charge is created on *your* connected account and **you are
|
|
25
25
|
* the merchant of record**. That means the money, the payout schedule, the
|
|
26
26
|
* customer relationship, and the compliance surface are all yours — Linq
|
|
@@ -103,7 +103,7 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
103
103
|
* no-install checkout sheet. Everywhere else (Android, desktop, iPhones
|
|
104
104
|
* without the App Clip yet) the same URL opens the web checkout, so the link
|
|
105
105
|
* always works. The App Clip experience for your payment links is registered
|
|
106
|
-
* automatically by Linq and refreshed whenever you update your
|
|
106
|
+
* automatically by Linq and refreshed whenever you update your payments
|
|
107
107
|
* branding; a newly registered experience can take up to ~24 hours to
|
|
108
108
|
* activate on Apple's side, during which links open the web checkout.
|
|
109
109
|
*
|
|
@@ -20,7 +20,7 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
20
20
|
*
|
|
21
21
|
* ## Connected accounts (Stripe Standard, direct charges)
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* Payments run on **Stripe Connect Standard accounts** using **direct
|
|
24
24
|
* charges**: the charge is created on *your* connected account and **you are
|
|
25
25
|
* the merchant of record**. That means the money, the payout schedule, the
|
|
26
26
|
* customer relationship, and the compliance surface are all yours — Linq
|
|
@@ -103,7 +103,7 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
103
103
|
* no-install checkout sheet. Everywhere else (Android, desktop, iPhones
|
|
104
104
|
* without the App Clip yet) the same URL opens the web checkout, so the link
|
|
105
105
|
* always works. The App Clip experience for your payment links is registered
|
|
106
|
-
* automatically by Linq and refreshed whenever you update your
|
|
106
|
+
* automatically by Linq and refreshed whenever you update your payments
|
|
107
107
|
* branding; a newly registered experience can take up to ~24 hours to
|
|
108
108
|
* activate on Apple's side, during which links open the web checkout.
|
|
109
109
|
*
|
|
@@ -24,7 +24,7 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
24
24
|
*
|
|
25
25
|
* ## Connected accounts (Stripe Standard, direct charges)
|
|
26
26
|
*
|
|
27
|
-
*
|
|
27
|
+
* Payments run on **Stripe Connect Standard accounts** using **direct
|
|
28
28
|
* charges**: the charge is created on *your* connected account and **you are
|
|
29
29
|
* the merchant of record**. That means the money, the payout schedule, the
|
|
30
30
|
* customer relationship, and the compliance surface are all yours — Linq
|
|
@@ -107,7 +107,7 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
107
107
|
* no-install checkout sheet. Everywhere else (Android, desktop, iPhones
|
|
108
108
|
* without the App Clip yet) the same URL opens the web checkout, so the link
|
|
109
109
|
* always works. The App Clip experience for your payment links is registered
|
|
110
|
-
* automatically by Linq and refreshed whenever you update your
|
|
110
|
+
* automatically by Linq and refreshed whenever you update your payments
|
|
111
111
|
* branding; a newly registered experience can take up to ~24 hours to
|
|
112
112
|
* activate on Apple's side, during which links open the web checkout.
|
|
113
113
|
*
|
|
@@ -21,7 +21,7 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
21
21
|
*
|
|
22
22
|
* ## Connected accounts (Stripe Standard, direct charges)
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* Payments run on **Stripe Connect Standard accounts** using **direct
|
|
25
25
|
* charges**: the charge is created on *your* connected account and **you are
|
|
26
26
|
* the merchant of record**. That means the money, the payout schedule, the
|
|
27
27
|
* customer relationship, and the compliance surface are all yours — Linq
|
|
@@ -104,7 +104,7 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
104
104
|
* no-install checkout sheet. Everywhere else (Android, desktop, iPhones
|
|
105
105
|
* without the App Clip yet) the same URL opens the web checkout, so the link
|
|
106
106
|
* always works. The App Clip experience for your payment links is registered
|
|
107
|
-
* automatically by Linq and refreshed whenever you update your
|
|
107
|
+
* automatically by Linq and refreshed whenever you update your payments
|
|
108
108
|
* branding; a newly registered experience can take up to ~24 hours to
|
|
109
109
|
* activate on Apple's side, during which links open the web checkout.
|
|
110
110
|
*
|