@paygentic/sdk 0.7.11 → 0.7.12

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.
Files changed (29) hide show
  1. package/dist/commonjs/funcs/paymentSessionsListPaymentSessions.d.ts +1 -1
  2. package/dist/commonjs/funcs/paymentSessionsListPaymentSessions.js +1 -1
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/models/operations/listpaymentsessions.d.ts +1 -1
  6. package/dist/commonjs/models/schemaspaymentsession.d.ts +8 -0
  7. package/dist/commonjs/models/schemaspaymentsession.d.ts.map +1 -1
  8. package/dist/commonjs/models/schemaspaymentsession.js +2 -0
  9. package/dist/commonjs/models/schemaspaymentsession.js.map +1 -1
  10. package/dist/commonjs/sdk/paymentsessions.d.ts +1 -1
  11. package/dist/commonjs/sdk/paymentsessions.js +1 -1
  12. package/dist/esm/funcs/paymentSessionsListPaymentSessions.d.ts +1 -1
  13. package/dist/esm/funcs/paymentSessionsListPaymentSessions.js +1 -1
  14. package/dist/esm/lib/config.d.ts +2 -2
  15. package/dist/esm/lib/config.js +2 -2
  16. package/dist/esm/models/operations/listpaymentsessions.d.ts +1 -1
  17. package/dist/esm/models/schemaspaymentsession.d.ts +8 -0
  18. package/dist/esm/models/schemaspaymentsession.d.ts.map +1 -1
  19. package/dist/esm/models/schemaspaymentsession.js +2 -0
  20. package/dist/esm/models/schemaspaymentsession.js.map +1 -1
  21. package/dist/esm/sdk/paymentsessions.d.ts +1 -1
  22. package/dist/esm/sdk/paymentsessions.js +1 -1
  23. package/jsr.json +1 -1
  24. package/package.json +1 -1
  25. package/src/funcs/paymentSessionsListPaymentSessions.ts +1 -1
  26. package/src/lib/config.ts +2 -2
  27. package/src/models/operations/listpaymentsessions.ts +1 -1
  28. package/src/models/schemaspaymentsession.ts +10 -0
  29. 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.11";
34
+ readonly sdkVersion: "0.7.12";
35
35
  readonly genVersion: "2.879.13";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.7.11 2.879.13 0.1.0 @paygentic/sdk";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.7.12 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.11",
38
+ sdkVersion: "0.7.12",
39
39
  genVersion: "2.879.13",
40
- userAgent: "speakeasy-sdk/typescript 0.7.11 2.879.13 0.1.0 @paygentic/sdk",
40
+ userAgent: "speakeasy-sdk/typescript 0.7.12 2.879.13 0.1.0 @paygentic/sdk",
41
41
  };
42
42
  //# sourceMappingURL=config.js.map
@@ -41,7 +41,7 @@ export type ListPaymentSessionsRequest = {
41
41
  */
42
42
  subscriptionId?: string | undefined;
43
43
  /**
44
- * Filter to sessions linked to a payment for this customer.
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,e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AEG;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGH,sEAQC;AA5GD,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;AA8CX,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,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,iDAAyC;IACjD,wBAAwB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3D,WAAW,EAAE,CAAC,CAAC,QAAQ,CACrB,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SA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I,IAAI,CAAC,CAAC,CAAC,CAAC;CAC7E,CAAC,CAAC;AAEH,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,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
  }
@@ -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));
@@ -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.11";
34
+ readonly sdkVersion: "0.7.12";
35
35
  readonly genVersion: "2.879.13";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.7.11 2.879.13 0.1.0 @paygentic/sdk";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.7.12 2.879.13 0.1.0 @paygentic/sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -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.11",
34
+ sdkVersion: "0.7.12",
35
35
  genVersion: "2.879.13",
36
- userAgent: "speakeasy-sdk/typescript 0.7.11 2.879.13 0.1.0 @paygentic/sdk",
36
+ userAgent: "speakeasy-sdk/typescript 0.7.12 2.879.13 0.1.0 @paygentic/sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -41,7 +41,7 @@ export type ListPaymentSessionsRequest = {
41
41
  */
42
42
  subscriptionId?: string | undefined;
43
43
  /**
44
- * Filter to sessions linked to a payment for this customer.
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,IAA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C;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"}
@@ -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;IACxB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACd,CAAC;AA8CX,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAElD,CAAC,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;AAE9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAElD,CAAC,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;AAE9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,yCAAyC;IACjD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,yCAAyC;IACjD,wBAAwB,EAAE,CAAC,CAAC,QA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C,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
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@paygentic/sdk",
5
- "version": "0.7.11",
5
+ "version": "0.7.12",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paygentic/sdk",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
4
4
  "author": "Speakeasy",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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.11",
68
+ sdkVersion: "0.7.12",
69
69
  genVersion: "2.879.13",
70
- userAgent: "speakeasy-sdk/typescript 0.7.11 2.879.13 0.1.0 @paygentic/sdk",
70
+ userAgent: "speakeasy-sdk/typescript 0.7.12 2.879.13 0.1.0 @paygentic/sdk",
71
71
  } as const;
@@ -51,7 +51,7 @@ export type ListPaymentSessionsRequest = {
51
51
  */
52
52
  subscriptionId?: string | undefined;
53
53
  /**
54
- * Filter to sessions linked to a payment for this customer.
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,