@amos.com/amos-js 0.3.10 → 0.3.11
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 +52 -1
- package/package.json +1 -1
- package/dist/src/src/index.d.ts +0 -52
- /package/dist/{src/src/google-pay.d.ts → google-pay.d.ts} +0 -0
- /package/dist/{src/src/jwt.d.ts → jwt.d.ts} +0 -0
- /package/dist/{src/src/messaging.d.ts → messaging.d.ts} +0 -0
- /package/dist/{src/src/mount.d.ts → mount.d.ts} +0 -0
- /package/dist/{src/src/payment-method-form.d.ts → payment-method-form.d.ts} +0 -0
- /package/dist/{src/src/types.d.ts → types.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,53 @@
|
|
|
1
1
|
/// <reference types="googlepay" />
|
|
2
|
-
|
|
2
|
+
import { components } from '@amos.com/node';
|
|
3
|
+
export type { GooglePayButtonController, GooglePayButtonListenerOptions, } from './google-pay';
|
|
4
|
+
export { attachGooglePayButtonListeners, formatGooglePayPaymentData, getGooglePayButtonInitialHeight, getGooglePayButtonSrc, } from './google-pay';
|
|
5
|
+
export { decodeJwt, getEmbedOrigin } from './jwt';
|
|
6
|
+
export { confirmPaymentIntent, confirmSetupIntent, sendConfirmationFailed, sendParentReadyMessage, updateAmount, updateAppearance, updateMerchantName, validateForm, } from './messaging';
|
|
7
|
+
export type { AmosBankAccountPaymentMethodFormOptions, AmosCreditCardPaymentMethodFormOptions, AmosGooglePayButtonMountController, AmosGooglePayButtonOptions, AmosPaymentMethodFormMountController, } from './mount';
|
|
8
|
+
export { mountAmosBankAccountPaymentMethodForm, mountAmosCreditCardPaymentMethodForm, mountAmosGooglePayButton, } from './mount';
|
|
9
|
+
export type { CreditCardAdditionalFields, PaymentMethodFormController, PaymentMethodFormListenerOptions, } from './payment-method-form';
|
|
10
|
+
export { attachPaymentMethodFormListeners, getBankAccountFormInitialHeight, getBankAccountFormSrc, getCreditCardFormInitialHeight, getCreditCardFormSrc, } from './payment-method-form';
|
|
11
|
+
export type { Appearance, AppearanceLabels, Message, ThemeVariable, } from './types';
|
|
12
|
+
export { createMessage } from './types';
|
|
13
|
+
/**
|
|
14
|
+
* Convenience alias for `components["schemas"]["CreateCustomerInput"]`.
|
|
15
|
+
*/
|
|
16
|
+
export type CreateCustomerInput = components["schemas"]["CreateCustomerInput"];
|
|
17
|
+
/**
|
|
18
|
+
* Convenience alias for
|
|
19
|
+
* `components["schemas"]["CreatePaymentIntentInput"]`.
|
|
20
|
+
*/
|
|
21
|
+
export type CreatePaymentIntentInput = components["schemas"]["CreatePaymentIntentInput"];
|
|
22
|
+
/**
|
|
23
|
+
* Convenience alias for
|
|
24
|
+
* `components["schemas"]["CreateSetupIntentInput"]`.
|
|
25
|
+
*/
|
|
26
|
+
export type CreateSetupIntentInput = components["schemas"]["CreateSetupIntentInput"];
|
|
27
|
+
/**
|
|
28
|
+
* Convenience alias for `components["schemas"]["PaymentIntent"]`.
|
|
29
|
+
*/
|
|
30
|
+
export type PaymentIntent = components["schemas"]["PaymentIntent"];
|
|
31
|
+
/**
|
|
32
|
+
* Convenience alias for `components["schemas"]["SetupIntent"]`.
|
|
33
|
+
*/
|
|
34
|
+
export type SetupIntent = components["schemas"]["SetupIntent"];
|
|
35
|
+
/**
|
|
36
|
+
* API envelope `{ token?, ttl? }` for a minted embed JWT.
|
|
37
|
+
*
|
|
38
|
+
* `POST /payment_intents` and `POST /setup_intents` resolve to this
|
|
39
|
+
* shape. {@link confirmPaymentIntent}, {@link confirmSetupIntent}, and
|
|
40
|
+
* the Google Pay `onInitiatePaymentIntentRequest` return type use
|
|
41
|
+
* `Pick<EmbedToken, "token">` (the JWT string returned by your server).
|
|
42
|
+
*/
|
|
43
|
+
export type EmbedToken = components["schemas"]["EmbedToken"];
|
|
44
|
+
/**
|
|
45
|
+
* Decoded JWT payload for an embed token (`account_id`,
|
|
46
|
+
* `payment_intent_id`, `setup_intent_id`, etc.).
|
|
47
|
+
*/
|
|
48
|
+
export type EmbedTokenJwt = components["schemas"]["EmbedTokenJwt"];
|
|
49
|
+
/**
|
|
50
|
+
* Decoded JWT payload for the dashboard render token (`env`, `origins`,
|
|
51
|
+
* `allowed_payment_method_types`, `render_template_id`, etc.).
|
|
52
|
+
*/
|
|
53
|
+
export type RenderTokenJwt = components["schemas"]["RenderTokenJwt"];
|
package/package.json
CHANGED
package/dist/src/src/index.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { components } from '@amos.com/node';
|
|
2
|
-
export type { GooglePayButtonController, GooglePayButtonListenerOptions, } from './google-pay';
|
|
3
|
-
export { attachGooglePayButtonListeners, formatGooglePayPaymentData, getGooglePayButtonInitialHeight, getGooglePayButtonSrc, } from './google-pay';
|
|
4
|
-
export { decodeJwt, getEmbedOrigin } from './jwt';
|
|
5
|
-
export { confirmPaymentIntent, confirmSetupIntent, sendConfirmationFailed, sendParentReadyMessage, updateAmount, updateAppearance, updateMerchantName, validateForm, } from './messaging';
|
|
6
|
-
export type { AmosBankAccountPaymentMethodFormOptions, AmosCreditCardPaymentMethodFormOptions, AmosGooglePayButtonMountController, AmosGooglePayButtonOptions, AmosPaymentMethodFormMountController, } from './mount';
|
|
7
|
-
export { mountAmosBankAccountPaymentMethodForm, mountAmosCreditCardPaymentMethodForm, mountAmosGooglePayButton, } from './mount';
|
|
8
|
-
export type { CreditCardAdditionalFields, PaymentMethodFormController, PaymentMethodFormListenerOptions, } from './payment-method-form';
|
|
9
|
-
export { attachPaymentMethodFormListeners, getBankAccountFormInitialHeight, getBankAccountFormSrc, getCreditCardFormInitialHeight, getCreditCardFormSrc, } from './payment-method-form';
|
|
10
|
-
export type { Appearance, AppearanceLabels, Message, ThemeVariable, } from './types';
|
|
11
|
-
export { createMessage } from './types';
|
|
12
|
-
/**
|
|
13
|
-
* Convenience alias for `components["schemas"]["CreateCustomerInput"]`.
|
|
14
|
-
*/
|
|
15
|
-
export type CreateCustomerInput = components["schemas"]["CreateCustomerInput"];
|
|
16
|
-
/**
|
|
17
|
-
* Convenience alias for
|
|
18
|
-
* `components["schemas"]["CreatePaymentIntentInput"]`.
|
|
19
|
-
*/
|
|
20
|
-
export type CreatePaymentIntentInput = components["schemas"]["CreatePaymentIntentInput"];
|
|
21
|
-
/**
|
|
22
|
-
* Convenience alias for
|
|
23
|
-
* `components["schemas"]["CreateSetupIntentInput"]`.
|
|
24
|
-
*/
|
|
25
|
-
export type CreateSetupIntentInput = components["schemas"]["CreateSetupIntentInput"];
|
|
26
|
-
/**
|
|
27
|
-
* Convenience alias for `components["schemas"]["PaymentIntent"]`.
|
|
28
|
-
*/
|
|
29
|
-
export type PaymentIntent = components["schemas"]["PaymentIntent"];
|
|
30
|
-
/**
|
|
31
|
-
* Convenience alias for `components["schemas"]["SetupIntent"]`.
|
|
32
|
-
*/
|
|
33
|
-
export type SetupIntent = components["schemas"]["SetupIntent"];
|
|
34
|
-
/**
|
|
35
|
-
* API envelope `{ token?, ttl? }` for a minted embed JWT.
|
|
36
|
-
*
|
|
37
|
-
* `POST /payment_intents` and `POST /setup_intents` resolve to this
|
|
38
|
-
* shape. {@link confirmPaymentIntent}, {@link confirmSetupIntent}, and
|
|
39
|
-
* the Google Pay `onInitiatePaymentIntentRequest` return type use
|
|
40
|
-
* `Pick<EmbedToken, "token">` (the JWT string returned by your server).
|
|
41
|
-
*/
|
|
42
|
-
export type EmbedToken = components["schemas"]["EmbedToken"];
|
|
43
|
-
/**
|
|
44
|
-
* Decoded JWT payload for an embed token (`account_id`,
|
|
45
|
-
* `payment_intent_id`, `setup_intent_id`, etc.).
|
|
46
|
-
*/
|
|
47
|
-
export type EmbedTokenJwt = components["schemas"]["EmbedTokenJwt"];
|
|
48
|
-
/**
|
|
49
|
-
* Decoded JWT payload for the dashboard render token (`env`, `origins`,
|
|
50
|
-
* `allowed_payment_method_types`, `render_template_id`, etc.).
|
|
51
|
-
*/
|
|
52
|
-
export type RenderTokenJwt = components["schemas"]["RenderTokenJwt"];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|