@paynl/payparts-types 1.4.0-alpha.93 → 1.4.0-alpha.95
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/src/core/types.d.ts
CHANGED
|
@@ -653,3 +653,9 @@ export interface InitOptions {
|
|
|
653
653
|
}
|
|
654
654
|
/** @deprecated Use ApplePayOptions instead */
|
|
655
655
|
export type ApplePayConfig = ApplePayOptions;
|
|
656
|
+
export type PayPartsSDK = {
|
|
657
|
+
init: (opt: InitOptions) => void;
|
|
658
|
+
mount: (options: MountOptions) => MountResult;
|
|
659
|
+
create: (options: CheckoutConfig) => MountResult;
|
|
660
|
+
prepare: (_methodOrSection: string) => PaymentComponent;
|
|
661
|
+
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { PayPartsSDK } from '../../src/core/types';
|
|
2
|
+
export type { CheckoutConfig, CheckoutOption, PaymentMethod, PaymentMethodOption, CountrySequence, CheckoutSequence, PaymentInfo, SessionPaymentInfo, OrderPaymentInfo, CheckoutState, CheckoutEventType, CheckoutEvent, InitialisingEventData, ReadyEventData, StateChangeEventData, PaymentSubmitEventData, PaymentErrorEventData, PaymentSuccessEventData, PartialPaymentEventData, ThreeDsData, TransactionData, MountOptions, MountEventHandlers, MountResult, Checkout, PaymentComponent, CheckoutEventHandlers, PaymentMethodContext, PaymentSubmitEvent, PaymentSuccessEvent, PaymentErrorEvent, FieldError, CheckoutReadyEvent, InitOptions, ShippingUpdatedEvent, InfoUpdatedEvent, PartialPaymentEvent, ApplePayOptions, ApplePayShippingMethod, ApplePayLineItem, ApplePayShippingContact, PayPalOptions, CustomerInfo, AddressInfo, OrderInfo, OrderProduct, AmountDto, MerchantInfo, LocationInfo, PayPartsSDK, } from '../../src/core/types';
|
|
2
3
|
export type { PaymentOutcome, PaymentStatusInfo } from '../../src/core/payment-status';
|
|
3
4
|
export type { ApiErrorResponse, ApiFieldError } from '../../src/core/errors/api-error-response';
|
|
4
5
|
export type { PaymentError } from '../../src/core/errors/PaymentError';
|
|
6
|
+
declare global {
|
|
7
|
+
interface Window {
|
|
8
|
+
PayPartsSDK?: PayPartsSDK;
|
|
9
|
+
}
|
|
10
|
+
}
|