@paynl/payparts-types 1.4.0-alpha.108 → 1.4.0-alpha.111

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.
@@ -53,6 +53,7 @@ export interface PaymentMethodContext {
53
53
  returnUrl: string;
54
54
  threeDs?: ThreeDsData;
55
55
  transaction?: TransactionData;
56
+ orderStatus?: OrderPaymentStatus;
56
57
  }) => void;
57
58
  onPartialPaid?: (data: PartialPaymentEventData) => void;
58
59
  onInfoUpdated?: (data: InfoUpdatedEvent['data']) => void;
@@ -207,6 +208,8 @@ export interface CheckoutConfig {
207
208
  };
208
209
  customer?: CustomerInfo;
209
210
  order?: OrderInfo;
211
+ lastUsedMethodId?: number;
212
+ lastUsedEnabled?: boolean;
210
213
  payments?: SessionPaymentInfo[];
211
214
  capturedAmount?: AmountDto;
212
215
  authorizedAmount?: AmountDto;
@@ -257,6 +260,7 @@ export interface PaymentSuccessEventData {
257
260
  returnUrl?: string;
258
261
  threeDs?: ThreeDsData;
259
262
  transaction?: TransactionData;
263
+ orderStatus?: OrderPaymentStatus;
260
264
  }
261
265
  export interface PartialPaymentEventData {
262
266
  orderId: string;
@@ -365,7 +369,7 @@ export interface PaymentStatusInfo {
365
369
  export interface PaymentSuccessEvent {
366
370
  orderId: string;
367
371
  returnUrl: string;
368
- paymentStatus?: PaymentStatusInfo;
372
+ paymentStatus: OrderPaymentStatus | undefined;
369
373
  resolve: () => void;
370
374
  reject: (error: Error) => void;
371
375
  }
@@ -646,6 +650,10 @@ export interface InitOptions {
646
650
  * Debug mode - shows disabled/hidden payment methods with min/max amounts.
647
651
  */
648
652
  debugMode?: boolean;
653
+ /**
654
+ * When enabled, the customer's last used payment method is promoted to the top of the list.
655
+ */
656
+ lastUsedEnabled?: boolean;
649
657
  /**
650
658
  * Custom translations to override or extend default translations.
651
659
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paynl/payparts-types",
3
- "version": "1.4.0-alpha.108",
3
+ "version": "1.4.0-alpha.111",
4
4
  "description": "TypeScript type definitions for the PayParts payment SDK",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",