@paygentic/sdk 0.7.11 → 0.7.13
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/dist/commonjs/funcs/paymentSessionsListPaymentSessions.d.ts +1 -1
- package/dist/commonjs/funcs/paymentSessionsListPaymentSessions.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/eventresponse.d.ts +4 -0
- package/dist/commonjs/models/eventresponse.d.ts.map +1 -1
- package/dist/commonjs/models/eventresponse.js +1 -0
- package/dist/commonjs/models/eventresponse.js.map +1 -1
- package/dist/commonjs/models/grant.d.ts +2 -2
- package/dist/commonjs/models/operations/ingestevent.d.ts +5 -0
- package/dist/commonjs/models/operations/ingestevent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/ingestevent.js +1 -0
- package/dist/commonjs/models/operations/ingestevent.js.map +1 -1
- package/dist/commonjs/models/operations/listpaymentsessions.d.ts +1 -1
- package/dist/commonjs/models/schemaspaymentsession.d.ts +8 -0
- package/dist/commonjs/models/schemaspaymentsession.d.ts.map +1 -1
- package/dist/commonjs/models/schemaspaymentsession.js +2 -0
- package/dist/commonjs/models/schemaspaymentsession.js.map +1 -1
- package/dist/commonjs/sdk/paymentsessions.d.ts +1 -1
- package/dist/commonjs/sdk/paymentsessions.js +1 -1
- package/dist/esm/funcs/paymentSessionsListPaymentSessions.d.ts +1 -1
- package/dist/esm/funcs/paymentSessionsListPaymentSessions.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/eventresponse.d.ts +4 -0
- package/dist/esm/models/eventresponse.d.ts.map +1 -1
- package/dist/esm/models/eventresponse.js +1 -0
- package/dist/esm/models/eventresponse.js.map +1 -1
- package/dist/esm/models/grant.d.ts +2 -2
- package/dist/esm/models/operations/ingestevent.d.ts +5 -0
- package/dist/esm/models/operations/ingestevent.d.ts.map +1 -1
- package/dist/esm/models/operations/ingestevent.js +1 -0
- package/dist/esm/models/operations/ingestevent.js.map +1 -1
- package/dist/esm/models/operations/listpaymentsessions.d.ts +1 -1
- package/dist/esm/models/schemaspaymentsession.d.ts +8 -0
- package/dist/esm/models/schemaspaymentsession.d.ts.map +1 -1
- package/dist/esm/models/schemaspaymentsession.js +2 -0
- package/dist/esm/models/schemaspaymentsession.js.map +1 -1
- package/dist/esm/sdk/paymentsessions.d.ts +1 -1
- package/dist/esm/sdk/paymentsessions.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/paymentSessionsListPaymentSessions.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/eventresponse.ts +5 -0
- package/src/models/grant.ts +2 -2
- package/src/models/operations/ingestevent.ts +6 -0
- package/src/models/operations/listpaymentsessions.ts +1 -1
- package/src/models/schemaspaymentsession.ts +10 -0
- package/src/sdk/paymentsessions.ts +1 -1
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* List
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice').
|
|
15
|
+
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice'). When customerId is provided the result covers the customer's full payment history: payment-link sessions (entityType='payment'), the activation sessions of the customer's subscriptions, and the sessions of those subscriptions' invoices.
|
|
16
16
|
*/
|
|
17
17
|
export declare function paymentSessionsListPaymentSessions(client: PaygenticCore, request?: operations.ListPaymentSessionsRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.ListPaymentSessionsResponse, errors.ErrorT | PaygenticError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=paymentSessionsListPaymentSessions.d.ts.map
|
|
@@ -50,7 +50,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
50
50
|
* List
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice').
|
|
53
|
+
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice'). When customerId is provided the result covers the customer's full payment history: payment-link sessions (entityType='payment'), the activation sessions of the customer's subscriptions, and the sessions of those subscriptions' invoices.
|
|
54
54
|
*/
|
|
55
55
|
function paymentSessionsListPaymentSessions(client, request, options) {
|
|
56
56
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.1.0";
|
|
34
|
-
readonly sdkVersion: "0.7.
|
|
34
|
+
readonly sdkVersion: "0.7.13";
|
|
35
35
|
readonly genVersion: "2.879.13";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.7.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.7.13 2.879.13 0.1.0 @paygentic/sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
|
|
|
35
35
|
exports.SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
37
|
openapiDocVersion: "0.1.0",
|
|
38
|
-
sdkVersion: "0.7.
|
|
38
|
+
sdkVersion: "0.7.13",
|
|
39
39
|
genVersion: "2.879.13",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.7.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.7.13 2.879.13 0.1.0 @paygentic/sdk",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -18,6 +18,10 @@ export type EventResponse = {
|
|
|
18
18
|
namespace?: string | undefined;
|
|
19
19
|
timestamp?: Date | undefined;
|
|
20
20
|
idempotencyKey?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Optional external identifier for cross-referencing with external systems. Alphanumeric characters, hyphens, and underscores only.
|
|
23
|
+
*/
|
|
24
|
+
externalId?: string | undefined;
|
|
21
25
|
};
|
|
22
26
|
/** @internal */
|
|
23
27
|
export declare const EventResponseObject$inboundSchema: z.ZodNativeEnum<typeof EventResponseObject>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventresponse.d.ts","sourceRoot":"","sources":["../../../src/models/eventresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,eAAO,MAAM,mBAAmB;;CAEtB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE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AAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -56,6 +56,7 @@ exports.EventResponse$inboundSchema = z.object({
|
|
|
56
56
|
timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
57
57
|
.optional(),
|
|
58
58
|
idempotencyKey: z.string().optional(),
|
|
59
|
+
externalId: z.string().optional(),
|
|
59
60
|
});
|
|
60
61
|
function eventResponseFromJSON(jsonString) {
|
|
61
62
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EventResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventResponse' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventresponse.js","sourceRoot":"","sources":["../../../src/models/eventresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"eventresponse.js","sourceRoot":"","sources":["../../../src/models/eventresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDH,sDAQC;AA5DD,0CAA4B;AAC5B,kDAA8C;AAKjC,QAAA,mBAAmB,GAAG;IACjC,KAAK,EAAE,OAAO;CACN,CAAC;AAqBX,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC,CAAC;AAEtC,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,MAAM,EAAE,yCAAiC,CAAC,OAAO,CAAC,OAAO,CAAC;IAC1D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SACzE,QAAQ,EAAE;IACb,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -45,11 +45,11 @@ export type Grant = {
|
|
|
45
45
|
*/
|
|
46
46
|
idempotencyKey: string | null;
|
|
47
47
|
/**
|
|
48
|
-
* Maximum balance carried over at the entitlement's reset boundary.
|
|
48
|
+
* Maximum balance carried over at the entitlement's reset boundary. A value of 999999999999 represents effectively unlimited rollover (the default for direct and purchase grants). A value of 0 means any remaining balance is discarded at each reset.
|
|
49
49
|
*/
|
|
50
50
|
resetMaxRollover?: number | undefined;
|
|
51
51
|
/**
|
|
52
|
-
* Minimum balance at the entitlement's reset boundary.
|
|
52
|
+
* Minimum balance at the entitlement's reset boundary; balances below this are floored up. 0 means no floor.
|
|
53
53
|
*/
|
|
54
54
|
resetMinRollover?: number | undefined;
|
|
55
55
|
};
|
|
@@ -24,6 +24,10 @@ export type IngestEventRequest = {
|
|
|
24
24
|
* User-provided deduplication key. If not provided, a unique key is generated.
|
|
25
25
|
*/
|
|
26
26
|
idempotencyKey?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Optional external identifier for cross-referencing with external systems. Alphanumeric characters, hyphens, and underscores only.
|
|
29
|
+
*/
|
|
30
|
+
externalId?: string | undefined;
|
|
27
31
|
/**
|
|
28
32
|
* Event payload containing the metering data.
|
|
29
33
|
*/
|
|
@@ -39,6 +43,7 @@ export type IngestEventRequest$Outbound = {
|
|
|
39
43
|
namespace?: string | undefined;
|
|
40
44
|
timestamp?: string | undefined;
|
|
41
45
|
idempotencyKey?: string | undefined;
|
|
46
|
+
externalId?: string | undefined;
|
|
42
47
|
data: {
|
|
43
48
|
[k: string]: any;
|
|
44
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingestevent.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/ingestevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EA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G,SAAS,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAUlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -47,6 +47,7 @@ exports.IngestEventRequest$outboundSchema = z.object({
|
|
|
47
47
|
namespace: z.string().optional(),
|
|
48
48
|
timestamp: z.date().transform(v => v.toISOString()).optional(),
|
|
49
49
|
idempotencyKey: z.string().optional(),
|
|
50
|
+
externalId: z.string().optional(),
|
|
50
51
|
data: z.record(z.any()),
|
|
51
52
|
});
|
|
52
53
|
function ingestEventRequestToJSON(ingestEventRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingestevent.js","sourceRoot":"","sources":["../../../../src/models/operations/ingestevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ingestevent.js","sourceRoot":"","sources":["../../../../src/models/operations/ingestevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEH,4DAMC;AAvED,0CAA4B;AAiD5B,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CACxB,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -41,7 +41,7 @@ export type ListPaymentSessionsRequest = {
|
|
|
41
41
|
*/
|
|
42
42
|
subscriptionId?: string | undefined;
|
|
43
43
|
/**
|
|
44
|
-
* Filter to sessions
|
|
44
|
+
* Filter to sessions for this customer: payment-link sessions plus the activation and invoice sessions of the customer's subscriptions.
|
|
45
45
|
*/
|
|
46
46
|
customerId?: string | undefined;
|
|
47
47
|
/**
|
|
@@ -35,6 +35,10 @@ export type SchemasPaymentSession = {
|
|
|
35
35
|
* ID of the entity the session pays for.
|
|
36
36
|
*/
|
|
37
37
|
entityId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Display label for the entity — invoice number, payment-link reference, or subscription name. Null when no label is available.
|
|
40
|
+
*/
|
|
41
|
+
entityLabel?: string | null | undefined;
|
|
38
42
|
/**
|
|
39
43
|
* Amount in decimal dollars.
|
|
40
44
|
*/
|
|
@@ -51,6 +55,10 @@ export type SchemasPaymentSession = {
|
|
|
51
55
|
* Stripe Connect account ID (acct_*) when the session is routed to a connected account.
|
|
52
56
|
*/
|
|
53
57
|
merchantPaymentAccountId?: string | null | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Provider payment intent reference — Stripe PaymentIntent ID (pi_*) or Airwallex intent ID (int_*). Null until the intent is created on first checkout load.
|
|
60
|
+
*/
|
|
61
|
+
providerPaymentRef?: string | null | undefined;
|
|
54
62
|
/**
|
|
55
63
|
* Timestamp the session reached terminal completion. Null until the session completes.
|
|
56
64
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaspaymentsession.d.ts","sourceRoot":"","sources":["../../../src/models/schemaspaymentsession.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;CAE9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;CAO9B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,2BAA2B,CAAC;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAC;IACpC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,2BAA2B,CACS,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,2BAA2B,CACS,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"schemaspaymentsession.d.ts","sourceRoot":"","sources":["../../../src/models/schemaspaymentsession.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;CAE9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;CAO9B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,2BAA2B,CAAC;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAC;IACpC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,2BAA2B,CACS,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,2BAA2B,CACS,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -64,10 +64,12 @@ exports.SchemasPaymentSession$inboundSchema = z.object({
|
|
|
64
64
|
id: z.string(),
|
|
65
65
|
entityType: z.string(),
|
|
66
66
|
entityId: z.string(),
|
|
67
|
+
entityLabel: z.nullable(z.string()).optional(),
|
|
67
68
|
amount: z.string(),
|
|
68
69
|
currency: z.string(),
|
|
69
70
|
status: exports.SchemasPaymentSessionStatus$inboundSchema,
|
|
70
71
|
merchantPaymentAccountId: z.nullable(z.string()).optional(),
|
|
72
|
+
providerPaymentRef: z.nullable(z.string()).optional(),
|
|
71
73
|
completedAt: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
|
|
72
74
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
73
75
|
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaspaymentsession.js","sourceRoot":"","sources":["../../../src/models/schemaspaymentsession.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schemaspaymentsession.js","sourceRoot":"","sources":["../../../src/models/schemaspaymentsession.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgHH,sEAQC;AAtHD,0CAA4B;AAC5B,kDAA8C;AAKjC,QAAA,2BAA2B,GAAG;IACzC,cAAc,EAAE,iBAAiB;CACzB,CAAC;AAKX;;GAEG;AACU,QAAA,2BAA2B,GAAG;IACzC,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACd,CAAC;AAsDX,gBAAgB;AACH,QAAA,yCAAyC,GAElD,CAAC,CAAC,UAAU,CAAC,mCAA2B,CAAC,CAAC;AAE9C,gBAAgB;AACH,QAAA,yCAAyC,GAElD,CAAC,CAAC,UAAU,CAAC,mCAA2B,CAAC,CAAC;AAE9C,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,iDAAyC;IACjD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,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ks
|
|
8
|
-
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice').
|
|
8
|
+
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice'). When customerId is provided the result covers the customer's full payment history: payment-link sessions (entityType='payment'), the activation sessions of the customer's subscriptions, and the sessions of those subscriptions' invoices.
|
|
9
9
|
*/
|
|
10
10
|
listPaymentSessions(request?: operations.ListPaymentSessionsRequest | undefined, options?: RequestOptions): Promise<operations.ListPaymentSessionsResponse>;
|
|
11
11
|
}
|
|
@@ -12,7 +12,7 @@ class PaymentSessions extends sdks_js_1.ClientSDK {
|
|
|
12
12
|
* List
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice').
|
|
15
|
+
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice'). When customerId is provided the result covers the customer's full payment history: payment-link sessions (entityType='payment'), the activation sessions of the customer's subscriptions, and the sessions of those subscriptions' invoices.
|
|
16
16
|
*/
|
|
17
17
|
async listPaymentSessions(request, options) {
|
|
18
18
|
return (0, fp_js_1.unwrapAsync)((0, paymentSessionsListPaymentSessions_js_1.paymentSessionsListPaymentSessions)(this, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* List
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice').
|
|
15
|
+
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice'). When customerId is provided the result covers the customer's full payment history: payment-link sessions (entityType='payment'), the activation sessions of the customer's subscriptions, and the sessions of those subscriptions' invoices.
|
|
16
16
|
*/
|
|
17
17
|
export declare function paymentSessionsListPaymentSessions(client: PaygenticCore, request?: operations.ListPaymentSessionsRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.ListPaymentSessionsResponse, errors.ErrorT | PaygenticError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=paymentSessionsListPaymentSessions.d.ts.map
|
|
@@ -14,7 +14,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
14
14
|
* List
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice').
|
|
17
|
+
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice'). When customerId is provided the result covers the customer's full payment history: payment-link sessions (entityType='payment'), the activation sessions of the customer's subscriptions, and the sessions of those subscriptions' invoices.
|
|
18
18
|
*/
|
|
19
19
|
export function paymentSessionsListPaymentSessions(client, request, options) {
|
|
20
20
|
return new APIPromise($do(client, request, options));
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.1.0";
|
|
34
|
-
readonly sdkVersion: "0.7.
|
|
34
|
+
readonly sdkVersion: "0.7.13";
|
|
35
35
|
readonly genVersion: "2.879.13";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.7.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.7.13 2.879.13 0.1.0 @paygentic/sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
|
|
|
31
31
|
export const SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.1.0",
|
|
34
|
-
sdkVersion: "0.7.
|
|
34
|
+
sdkVersion: "0.7.13",
|
|
35
35
|
genVersion: "2.879.13",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.7.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.7.13 2.879.13 0.1.0 @paygentic/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -18,6 +18,10 @@ export type EventResponse = {
|
|
|
18
18
|
namespace?: string | undefined;
|
|
19
19
|
timestamp?: Date | undefined;
|
|
20
20
|
idempotencyKey?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Optional external identifier for cross-referencing with external systems. Alphanumeric characters, hyphens, and underscores only.
|
|
23
|
+
*/
|
|
24
|
+
externalId?: string | undefined;
|
|
21
25
|
};
|
|
22
26
|
/** @internal */
|
|
23
27
|
export declare const EventResponseObject$inboundSchema: z.ZodNativeEnum<typeof EventResponseObject>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventresponse.d.ts","sourceRoot":"","sources":["../../../src/models/eventresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK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C;IACxB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,aAAa,CAC7D,OAAO,mBAAmB,CACS,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -19,6 +19,7 @@ export const EventResponse$inboundSchema = z.object({
|
|
|
19
19
|
timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
20
20
|
.optional(),
|
|
21
21
|
idempotencyKey: z.string().optional(),
|
|
22
|
+
externalId: z.string().optional(),
|
|
22
23
|
});
|
|
23
24
|
export function eventResponseFromJSON(jsonString) {
|
|
24
25
|
return safeParse(jsonString, (x) => EventResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventResponse' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventresponse.js","sourceRoot":"","sources":["../../../src/models/eventresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,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AClC,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CACnC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -45,11 +45,11 @@ export type Grant = {
|
|
|
45
45
|
*/
|
|
46
46
|
idempotencyKey: string | null;
|
|
47
47
|
/**
|
|
48
|
-
* Maximum balance carried over at the entitlement's reset boundary.
|
|
48
|
+
* Maximum balance carried over at the entitlement's reset boundary. A value of 999999999999 represents effectively unlimited rollover (the default for direct and purchase grants). A value of 0 means any remaining balance is discarded at each reset.
|
|
49
49
|
*/
|
|
50
50
|
resetMaxRollover?: number | undefined;
|
|
51
51
|
/**
|
|
52
|
-
* Minimum balance at the entitlement's reset boundary.
|
|
52
|
+
* Minimum balance at the entitlement's reset boundary; balances below this are floored up. 0 means no floor.
|
|
53
53
|
*/
|
|
54
54
|
resetMinRollover?: number | undefined;
|
|
55
55
|
};
|
|
@@ -24,6 +24,10 @@ export type IngestEventRequest = {
|
|
|
24
24
|
* User-provided deduplication key. If not provided, a unique key is generated.
|
|
25
25
|
*/
|
|
26
26
|
idempotencyKey?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Optional external identifier for cross-referencing with external systems. Alphanumeric characters, hyphens, and underscores only.
|
|
29
|
+
*/
|
|
30
|
+
externalId?: string | undefined;
|
|
27
31
|
/**
|
|
28
32
|
* Event payload containing the metering data.
|
|
29
33
|
*/
|
|
@@ -39,6 +43,7 @@ export type IngestEventRequest$Outbound = {
|
|
|
39
43
|
namespace?: string | undefined;
|
|
40
44
|
timestamp?: string | undefined;
|
|
41
45
|
idempotencyKey?: string | undefined;
|
|
46
|
+
externalId?: string | undefined;
|
|
42
47
|
data: {
|
|
43
48
|
[k: string]: any;
|
|
44
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingestevent.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/ingestevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ingestevent.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/ingestevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAUlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -10,6 +10,7 @@ export const IngestEventRequest$outboundSchema = z.object({
|
|
|
10
10
|
namespace: z.string().optional(),
|
|
11
11
|
timestamp: z.date().transform(v => v.toISOString()).optional(),
|
|
12
12
|
idempotencyKey: z.string().optional(),
|
|
13
|
+
externalId: z.string().optional(),
|
|
13
14
|
data: z.record(z.any()),
|
|
14
15
|
});
|
|
15
16
|
export function ingestEventRequestToJSON(ingestEventRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingestevent.js","sourceRoot":"","sources":["../../../../src/models/operations/ingestevent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"ingestevent.js","sourceRoot":"","sources":["../../../../src/models/operations/ingestevent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAiD5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -41,7 +41,7 @@ export type ListPaymentSessionsRequest = {
|
|
|
41
41
|
*/
|
|
42
42
|
subscriptionId?: string | undefined;
|
|
43
43
|
/**
|
|
44
|
-
* Filter to sessions
|
|
44
|
+
* Filter to sessions for this customer: payment-link sessions plus the activation and invoice sessions of the customer's subscriptions.
|
|
45
45
|
*/
|
|
46
46
|
customerId?: string | undefined;
|
|
47
47
|
/**
|
|
@@ -35,6 +35,10 @@ export type SchemasPaymentSession = {
|
|
|
35
35
|
* ID of the entity the session pays for.
|
|
36
36
|
*/
|
|
37
37
|
entityId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Display label for the entity — invoice number, payment-link reference, or subscription name. Null when no label is available.
|
|
40
|
+
*/
|
|
41
|
+
entityLabel?: string | null | undefined;
|
|
38
42
|
/**
|
|
39
43
|
* Amount in decimal dollars.
|
|
40
44
|
*/
|
|
@@ -51,6 +55,10 @@ export type SchemasPaymentSession = {
|
|
|
51
55
|
* Stripe Connect account ID (acct_*) when the session is routed to a connected account.
|
|
52
56
|
*/
|
|
53
57
|
merchantPaymentAccountId?: string | null | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Provider payment intent reference — Stripe PaymentIntent ID (pi_*) or Airwallex intent ID (int_*). Null until the intent is created on first checkout load.
|
|
60
|
+
*/
|
|
61
|
+
providerPaymentRef?: string | null | undefined;
|
|
54
62
|
/**
|
|
55
63
|
* Timestamp the session reached terminal completion. Null until the session completes.
|
|
56
64
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaspaymentsession.d.ts","sourceRoot":"","sources":["../../../src/models/schemaspaymentsession.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;CAE9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;CAO9B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,2BAA2B,CAAC;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAC;IACpC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,2BAA2B,CACS,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,2BAA2B,CACS,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"schemaspaymentsession.d.ts","sourceRoot":"","sources":["../../../src/models/schemaspaymentsession.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,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gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,2BAA2B,CACS,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -27,10 +27,12 @@ export const SchemasPaymentSession$inboundSchema = z.object({
|
|
|
27
27
|
id: z.string(),
|
|
28
28
|
entityType: z.string(),
|
|
29
29
|
entityId: z.string(),
|
|
30
|
+
entityLabel: z.nullable(z.string()).optional(),
|
|
30
31
|
amount: z.string(),
|
|
31
32
|
currency: z.string(),
|
|
32
33
|
status: SchemasPaymentSessionStatus$inboundSchema,
|
|
33
34
|
merchantPaymentAccountId: z.nullable(z.string()).optional(),
|
|
35
|
+
providerPaymentRef: z.nullable(z.string()).optional(),
|
|
34
36
|
completedAt: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
|
|
35
37
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
36
38
|
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaspaymentsession.js","sourceRoot":"","sources":["../../../src/models/schemaspaymentsession.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAK9C,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,cAAc,EAAE,iBAAiB;CACzB,CAAC;AAKX;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY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ACjD,wBAAwB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3D,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,WAAW,EAAE,CAAC,CAAC,QAAQ,CACrB,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAClE,CAAC,QAAQ,EAAE;IACZ,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;CAC7E,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -5,7 +5,7 @@ export declare class PaymentSessions extends ClientSDK {
|
|
|
5
5
|
* List
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice').
|
|
8
|
+
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice'). When customerId is provided the result covers the customer's full payment history: payment-link sessions (entityType='payment'), the activation sessions of the customer's subscriptions, and the sessions of those subscriptions' invoices.
|
|
9
9
|
*/
|
|
10
10
|
listPaymentSessions(request?: operations.ListPaymentSessionsRequest | undefined, options?: RequestOptions): Promise<operations.ListPaymentSessionsResponse>;
|
|
11
11
|
}
|
|
@@ -9,7 +9,7 @@ export class PaymentSessions extends ClientSDK {
|
|
|
9
9
|
* List
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
|
-
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice').
|
|
12
|
+
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice'). When customerId is provided the result covers the customer's full payment history: payment-link sessions (entityType='payment'), the activation sessions of the customer's subscriptions, and the sessions of those subscriptions' invoices.
|
|
13
13
|
*/
|
|
14
14
|
async listPaymentSessions(request, options) {
|
|
15
15
|
return unwrapAsync(paymentSessionsListPaymentSessions(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* List
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice').
|
|
32
|
+
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice'). When customerId is provided the result covers the customer's full payment history: payment-link sessions (entityType='payment'), the activation sessions of the customer's subscriptions, and the sessions of those subscriptions' invoices.
|
|
33
33
|
*/
|
|
34
34
|
export function paymentSessionsListPaymentSessions(
|
|
35
35
|
client: PaygenticCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "0.1.0",
|
|
68
|
-
sdkVersion: "0.7.
|
|
68
|
+
sdkVersion: "0.7.13",
|
|
69
69
|
genVersion: "2.879.13",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.7.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.7.13 2.879.13 0.1.0 @paygentic/sdk",
|
|
71
71
|
} as const;
|
|
@@ -25,6 +25,10 @@ export type EventResponse = {
|
|
|
25
25
|
namespace?: string | undefined;
|
|
26
26
|
timestamp?: Date | undefined;
|
|
27
27
|
idempotencyKey?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Optional external identifier for cross-referencing with external systems. Alphanumeric characters, hyphens, and underscores only.
|
|
30
|
+
*/
|
|
31
|
+
externalId?: string | undefined;
|
|
28
32
|
};
|
|
29
33
|
|
|
30
34
|
/** @internal */
|
|
@@ -47,6 +51,7 @@ export const EventResponse$inboundSchema: z.ZodType<
|
|
|
47
51
|
timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
48
52
|
.optional(),
|
|
49
53
|
idempotencyKey: z.string().optional(),
|
|
54
|
+
externalId: z.string().optional(),
|
|
50
55
|
});
|
|
51
56
|
|
|
52
57
|
export function eventResponseFromJSON(
|
package/src/models/grant.ts
CHANGED
|
@@ -52,11 +52,11 @@ export type Grant = {
|
|
|
52
52
|
*/
|
|
53
53
|
idempotencyKey: string | null;
|
|
54
54
|
/**
|
|
55
|
-
* Maximum balance carried over at the entitlement's reset boundary.
|
|
55
|
+
* Maximum balance carried over at the entitlement's reset boundary. A value of 999999999999 represents effectively unlimited rollover (the default for direct and purchase grants). A value of 0 means any remaining balance is discarded at each reset.
|
|
56
56
|
*/
|
|
57
57
|
resetMaxRollover?: number | undefined;
|
|
58
58
|
/**
|
|
59
|
-
* Minimum balance at the entitlement's reset boundary.
|
|
59
|
+
* Minimum balance at the entitlement's reset boundary; balances below this are floored up. 0 means no floor.
|
|
60
60
|
*/
|
|
61
61
|
resetMinRollover?: number | undefined;
|
|
62
62
|
};
|
|
@@ -29,6 +29,10 @@ export type IngestEventRequest = {
|
|
|
29
29
|
* User-provided deduplication key. If not provided, a unique key is generated.
|
|
30
30
|
*/
|
|
31
31
|
idempotencyKey?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Optional external identifier for cross-referencing with external systems. Alphanumeric characters, hyphens, and underscores only.
|
|
34
|
+
*/
|
|
35
|
+
externalId?: string | undefined;
|
|
32
36
|
/**
|
|
33
37
|
* Event payload containing the metering data.
|
|
34
38
|
*/
|
|
@@ -43,6 +47,7 @@ export type IngestEventRequest$Outbound = {
|
|
|
43
47
|
namespace?: string | undefined;
|
|
44
48
|
timestamp?: string | undefined;
|
|
45
49
|
idempotencyKey?: string | undefined;
|
|
50
|
+
externalId?: string | undefined;
|
|
46
51
|
data: { [k: string]: any };
|
|
47
52
|
};
|
|
48
53
|
|
|
@@ -58,6 +63,7 @@ export const IngestEventRequest$outboundSchema: z.ZodType<
|
|
|
58
63
|
namespace: z.string().optional(),
|
|
59
64
|
timestamp: z.date().transform(v => v.toISOString()).optional(),
|
|
60
65
|
idempotencyKey: z.string().optional(),
|
|
66
|
+
externalId: z.string().optional(),
|
|
61
67
|
data: z.record(z.any()),
|
|
62
68
|
});
|
|
63
69
|
|
|
@@ -51,7 +51,7 @@ export type ListPaymentSessionsRequest = {
|
|
|
51
51
|
*/
|
|
52
52
|
subscriptionId?: string | undefined;
|
|
53
53
|
/**
|
|
54
|
-
* Filter to sessions
|
|
54
|
+
* Filter to sessions for this customer: payment-link sessions plus the activation and invoice sessions of the customer's subscriptions.
|
|
55
55
|
*/
|
|
56
56
|
customerId?: string | undefined;
|
|
57
57
|
/**
|
|
@@ -47,6 +47,10 @@ export type SchemasPaymentSession = {
|
|
|
47
47
|
* ID of the entity the session pays for.
|
|
48
48
|
*/
|
|
49
49
|
entityId: string;
|
|
50
|
+
/**
|
|
51
|
+
* Display label for the entity — invoice number, payment-link reference, or subscription name. Null when no label is available.
|
|
52
|
+
*/
|
|
53
|
+
entityLabel?: string | null | undefined;
|
|
50
54
|
/**
|
|
51
55
|
* Amount in decimal dollars.
|
|
52
56
|
*/
|
|
@@ -63,6 +67,10 @@ export type SchemasPaymentSession = {
|
|
|
63
67
|
* Stripe Connect account ID (acct_*) when the session is routed to a connected account.
|
|
64
68
|
*/
|
|
65
69
|
merchantPaymentAccountId?: string | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Provider payment intent reference — Stripe PaymentIntent ID (pi_*) or Airwallex intent ID (int_*). Null until the intent is created on first checkout load.
|
|
72
|
+
*/
|
|
73
|
+
providerPaymentRef?: string | null | undefined;
|
|
66
74
|
/**
|
|
67
75
|
* Timestamp the session reached terminal completion. Null until the session completes.
|
|
68
76
|
*/
|
|
@@ -91,10 +99,12 @@ export const SchemasPaymentSession$inboundSchema: z.ZodType<
|
|
|
91
99
|
id: z.string(),
|
|
92
100
|
entityType: z.string(),
|
|
93
101
|
entityId: z.string(),
|
|
102
|
+
entityLabel: z.nullable(z.string()).optional(),
|
|
94
103
|
amount: z.string(),
|
|
95
104
|
currency: z.string(),
|
|
96
105
|
status: SchemasPaymentSessionStatus$inboundSchema,
|
|
97
106
|
merchantPaymentAccountId: z.nullable(z.string()).optional(),
|
|
107
|
+
providerPaymentRef: z.nullable(z.string()).optional(),
|
|
98
108
|
completedAt: z.nullable(
|
|
99
109
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
100
110
|
).optional(),
|
|
@@ -12,7 +12,7 @@ export class PaymentSessions extends ClientSDK {
|
|
|
12
12
|
* List
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice').
|
|
15
|
+
* List payment sessions for the authenticated merchant with optional filters. Supports filtering by subscriptionId, customerId, status, and entityType. When subscriptionId is provided the result includes both the subscription's own activation session (entityType='subscription') and any session attached to invoices for that subscription (entityType='invoice'). When customerId is provided the result covers the customer's full payment history: payment-link sessions (entityType='payment'), the activation sessions of the customer's subscriptions, and the sessions of those subscriptions' invoices.
|
|
16
16
|
*/
|
|
17
17
|
async listPaymentSessions(
|
|
18
18
|
request?: operations.ListPaymentSessionsRequest | undefined,
|