airwallex-payment-elements 1.96.0 → 1.119.1
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/.gitlab-ci.yml +63 -3
- package/README.md +1 -1
- package/lib/bin/airwallex.cjs.js +2 -2
- package/lib/bin/airwallex.cjs.js.map +1 -1
- package/lib/bin/airwallex.es.js +2 -2
- package/lib/bin/airwallex.es.js.map +1 -1
- package/lib/bin/airwallex.iife.js +2 -2
- package/lib/bin/airwallex.iife.js.map +1 -1
- package/package.json +2 -2
- package/typedoc.config.js +5 -0
- package/types/airwallex.d.ts +89 -8
- package/types/dropInElement.d.ts +38 -4
- package/types/element.d.ts +255 -122
- package/types/events.d.ts +742 -0
- package/types/index.d.ts +3 -0
- package/types/qrcodeElement.d.ts +12 -1
package/types/dropInElement.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PaymentMethodType, BoxStyle, Appearance,
|
|
2
|
-
import { Mode, RecurringOptions, Billing, AuthorizationType } from './airwallex';
|
|
1
|
+
import { PaymentMethodType, BoxStyle, CardNetwork, Appearance, CSSProperties, SelectorAllowed } from './element';
|
|
2
|
+
import { Mode, RecurringOptions, Billing, AuthorizationType, Layout } from './airwallex';
|
|
3
3
|
import { ApplePayHppOrDropInRequestOptions, GooglePayRequestOptions, ContactField, LPMFlows } from './element';
|
|
4
4
|
interface WeChatPayFlow {
|
|
5
5
|
desktopFlow?: LPMFlows;
|
|
@@ -12,14 +12,33 @@ interface DropinTheme {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
interface DropInAppearance extends Appearance {
|
|
16
|
+
/**
|
|
17
|
+
* Set rules to further customize the appearance of the Element.
|
|
18
|
+
*/
|
|
19
|
+
rules?: Partial<Record<SelectorAllowed, CSSProperties>>;
|
|
20
|
+
}
|
|
21
|
+
|
|
15
22
|
/**
|
|
16
23
|
* Apply to `dropIn` element type integration, interface used when `createElement` called with type `dropIn`
|
|
17
24
|
*/
|
|
18
25
|
export interface DropInElementOptions {
|
|
19
26
|
/**
|
|
20
|
-
* The layout of
|
|
27
|
+
* The layout of the DropIn element.
|
|
28
|
+
*/
|
|
29
|
+
layout?: Layout;
|
|
30
|
+
/**
|
|
31
|
+
* Customize the visual appearance of the DropIn Element to match your website's design.
|
|
32
|
+
*
|
|
33
|
+
* You can configure:
|
|
34
|
+
*
|
|
35
|
+
* - `mode`: Choose between `'dark'` and `'light'` mode.
|
|
36
|
+
*
|
|
37
|
+
* - `variables`: Set `colorBrand`, `colorText`, `colorBackground` properties.
|
|
38
|
+
*
|
|
39
|
+
* - `rules`: Customize the styles of the specific elements.
|
|
21
40
|
*/
|
|
22
|
-
appearance?:
|
|
41
|
+
appearance?: DropInAppearance;
|
|
23
42
|
/**
|
|
24
43
|
* The `client_secret` of the Payment Intent when Payment Intent is provided. Otherwise, this should be the `client_secret` of the Customer object.
|
|
25
44
|
*/
|
|
@@ -135,6 +154,21 @@ export interface DropInElementOptions {
|
|
|
135
154
|
|
|
136
155
|
/**
|
|
137
156
|
* Customize DropIn Element style.
|
|
157
|
+
* @deprecated use {@link appearance} instead
|
|
158
|
+
* @hidden
|
|
138
159
|
*/
|
|
139
160
|
theme?: DropinTheme;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Specifies whether the card payment method should be automatically saved for future transactions.
|
|
164
|
+
*
|
|
165
|
+
* This parameter is only effective in payment mode when a `customer_id` is provided.
|
|
166
|
+
*
|
|
167
|
+
* - If set to `true`, the "Save my card for future payments" checkbox will be preselected by default.
|
|
168
|
+
*
|
|
169
|
+
* -If set to `false`, the checkbox will remain unchecked, requiring the shopper to manually opt in.
|
|
170
|
+
*
|
|
171
|
+
* @defaultValue `true`
|
|
172
|
+
*/
|
|
173
|
+
autoSaveCardForFuturePayments?: boolean;
|
|
140
174
|
}
|