@bcc-code/payment-client 1.1.4 → 1.1.5

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/index.d.mts CHANGED
@@ -19,10 +19,10 @@ interface CreatePaymentRequest {
19
19
  paymentMethodDetails?: Record<string, unknown>;
20
20
  person?: PersonInfoRequest;
21
21
  lineItems?: LineItemRequest[];
22
- /** Whether to create a Tripletex invoice when payment succeeds. */
23
22
  invoiceRequested?: boolean;
24
- /** Required when invoiceRequested is true. */
25
23
  invoiceRecipient?: InvoiceRecipientRequest;
24
+ tripletexProjectId?: number;
25
+ tripletexProductId?: number;
26
26
  }
27
27
  interface PersonInfoRequest {
28
28
  payerUid: string;
@@ -65,6 +65,8 @@ interface PaymentResponse {
65
65
  lineItems?: LineItemResponse[];
66
66
  invoiceRequested?: boolean;
67
67
  tripletexInvoiceId?: string | null;
68
+ tripletexProjectId?: number | null;
69
+ tripletexProductId?: number | null;
68
70
  }
69
71
  interface LineItemResponse {
70
72
  id: string;
@@ -106,6 +108,8 @@ interface PaymentReceiptResponse {
106
108
  productName?: string;
107
109
  invoiceRequested?: boolean;
108
110
  tripletexInvoiceId?: string | null;
111
+ tripletexProjectId?: number | null;
112
+ tripletexProductId?: number | null;
109
113
  }
110
114
  interface PaymentSucceededNotification {
111
115
  paymentId: string;
package/dist/index.d.ts CHANGED
@@ -19,10 +19,10 @@ interface CreatePaymentRequest {
19
19
  paymentMethodDetails?: Record<string, unknown>;
20
20
  person?: PersonInfoRequest;
21
21
  lineItems?: LineItemRequest[];
22
- /** Whether to create a Tripletex invoice when payment succeeds. */
23
22
  invoiceRequested?: boolean;
24
- /** Required when invoiceRequested is true. */
25
23
  invoiceRecipient?: InvoiceRecipientRequest;
24
+ tripletexProjectId?: number;
25
+ tripletexProductId?: number;
26
26
  }
27
27
  interface PersonInfoRequest {
28
28
  payerUid: string;
@@ -65,6 +65,8 @@ interface PaymentResponse {
65
65
  lineItems?: LineItemResponse[];
66
66
  invoiceRequested?: boolean;
67
67
  tripletexInvoiceId?: string | null;
68
+ tripletexProjectId?: number | null;
69
+ tripletexProductId?: number | null;
68
70
  }
69
71
  interface LineItemResponse {
70
72
  id: string;
@@ -106,6 +108,8 @@ interface PaymentReceiptResponse {
106
108
  productName?: string;
107
109
  invoiceRequested?: boolean;
108
110
  tripletexInvoiceId?: string | null;
111
+ tripletexProjectId?: number | null;
112
+ tripletexProductId?: number | null;
109
113
  }
110
114
  interface PaymentSucceededNotification {
111
115
  paymentId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcc-code/payment-client",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Client SDK for BCC Payment Orchestrator API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",