@getopenpay/openpay-js-react 0.0.14 → 0.0.15-alpha.2040cc2
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.ts +23 -16
- package/dist/index.js +1468 -1419
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,22 @@ declare const AllFieldNames: z.ZodUnion<[z.ZodNativeEnum<typeof FieldName>, z.Zo
|
|
|
5
5
|
|
|
6
6
|
declare type AllFieldNames = z.infer<typeof AllFieldNames>;
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Payment requests
|
|
10
|
+
*/
|
|
11
|
+
declare const Amount: z.ZodObject<{
|
|
12
|
+
amountAtom: z.ZodNumber;
|
|
13
|
+
currency: z.ZodString;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
currency: string;
|
|
16
|
+
amountAtom: number;
|
|
17
|
+
}, {
|
|
18
|
+
currency: string;
|
|
19
|
+
amountAtom: number;
|
|
20
|
+
}>;
|
|
21
|
+
|
|
22
|
+
declare type Amount = z.infer<typeof Amount>;
|
|
23
|
+
|
|
8
24
|
export declare const CardCvcElement: FC<ElementProps>;
|
|
9
25
|
|
|
10
26
|
export declare const CardElement: FC<ElementProps<typeof CardPlaceholder>>;
|
|
@@ -138,24 +154,15 @@ export declare enum FieldName {
|
|
|
138
154
|
PROMOTION_CODE = "promotionCode"
|
|
139
155
|
}
|
|
140
156
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
isAvailable: z.ZodBoolean;
|
|
147
|
-
startFlow: z.ZodFunction<z.ZodTuple<[], null>, z.ZodVoid>;
|
|
148
|
-
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
isLoading: boolean;
|
|
150
|
-
isAvailable: boolean;
|
|
151
|
-
startFlow: () => void;
|
|
152
|
-
}, {
|
|
157
|
+
declare type PaymentRequestStartParams = {
|
|
158
|
+
amountToDisplayForSetupMode?: Amount;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
declare type PaymentRequestStatus = {
|
|
153
162
|
isLoading: boolean;
|
|
154
163
|
isAvailable: boolean;
|
|
155
|
-
startFlow: () => void
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
declare type PaymentRequestStatus = z.infer<typeof PaymentRequestStatus>;
|
|
164
|
+
startFlow: (params?: PaymentRequestStartParams) => Promise<void>;
|
|
165
|
+
};
|
|
159
166
|
|
|
160
167
|
declare enum PrivateFieldName {
|
|
161
168
|
CARD_NUMBER = "cardNumber",
|