@easypayment/medusa-paypal-ui 1.2.0 → 1.2.3

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.
@@ -1,40 +1,40 @@
1
- export type PayPalConfig = {
2
- environment: "sandbox" | "live"
3
- client_id: string
4
- currency: string
5
- currency_supported: boolean
6
- currency_errors: string[]
7
- supported_currencies: string[]
8
- client_token?: string
9
- intent?: "capture" | "authorize"
10
- paypal_enabled?: boolean
11
- paypal_title?: string
12
- card_enabled?: boolean
13
- card_title?: string
14
- card_three_ds?: "sli" | "when_required" | "always"
15
- button_color?: "gold" | "blue" | "silver" | "black" | "white"
16
- button_shape?: "rect" | "pill"
17
- button_width?: string
18
- button_height?: number
19
- button_label?: "paypal" | "checkout" | "buynow" | "pay" | "installment"
20
- disable_buttons?: string[]
21
- }
22
-
23
- export type PayPalSettingsResponse = {
24
- /**
25
- * What `GET /store/paypal/settings` actually returns: the configured
26
- * payment action and whether advanced card fields are enabled.
27
- */
28
- paymentAction?: "capture" | "authorize"
29
- advancedCardEnabled?: boolean
30
- /**
31
- * @deprecated The settings endpoint has never returned a `data` envelope —
32
- * kept only so existing (already-null-safe) consumer code keeps compiling.
33
- */
34
- data?: {
35
- api_details?: { currency_code?: string }
36
- paypal_settings?: Record<string, unknown>
37
- onboarding_config?: Record<string, unknown>
38
- }
39
- [key: string]: unknown
40
- }
1
+ export type PayPalConfig = {
2
+ environment: "sandbox" | "live"
3
+ client_id: string
4
+ currency: string
5
+ currency_supported: boolean
6
+ currency_errors: string[]
7
+ supported_currencies: string[]
8
+ client_token?: string
9
+ intent?: "capture" | "authorize"
10
+ paypal_enabled?: boolean
11
+ paypal_title?: string
12
+ card_enabled?: boolean
13
+ card_title?: string
14
+ card_three_ds?: "sli" | "when_required" | "always"
15
+ button_color?: "gold" | "blue" | "silver" | "black" | "white"
16
+ button_shape?: "rect" | "pill"
17
+ button_width?: string
18
+ button_height?: number
19
+ button_label?: "paypal" | "checkout" | "buynow" | "pay" | "installment"
20
+ disable_buttons?: string[]
21
+ }
22
+
23
+ export type PayPalSettingsResponse = {
24
+ /**
25
+ * What `GET /store/paypal/settings` actually returns: the configured
26
+ * payment action and whether advanced card fields are enabled.
27
+ */
28
+ paymentAction?: "capture" | "authorize"
29
+ advancedCardEnabled?: boolean
30
+ /**
31
+ * @deprecated The settings endpoint has never returned a `data` envelope —
32
+ * kept only so existing (already-null-safe) consumer code keeps compiling.
33
+ */
34
+ data?: {
35
+ api_details?: { currency_code?: string }
36
+ paypal_settings?: Record<string, unknown>
37
+ onboarding_config?: Record<string, unknown>
38
+ }
39
+ [key: string]: unknown
40
+ }