@moonpay/platform-protocol 1.19.0 → 1.22.0
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/api/customer.d.cts +1 -1394
- package/dist/api/customer.d.ts +1 -1394
- package/dist/api/identity.d.cts +1 -1
- package/dist/api/identity.d.ts +1 -1
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +15 -1
- package/dist/api/index.d.ts +15 -1
- package/dist/frames/apple-pay.cjs.map +1 -1
- package/dist/frames/apple-pay.d.cts +19 -1
- package/dist/frames/apple-pay.d.ts +19 -1
- package/dist/identity-DIQJlm0o.d.cts +1422 -0
- package/dist/identity-DIQJlm0o.d.ts +1422 -0
- package/package.json +1 -1
package/dist/api/identity.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Z as CapabilityProduct, _ as CreateIdentityRequestBody, $ as CreateIdentityResidentialAddress, a0 as Identity, a1 as IdentityBasicDetailsSubmission, a2 as IdentityCapability, a3 as IdentityFileMimeType, a4 as IdentityFileSide, a5 as IdentityFileSubmission, a6 as IdentityFileType, a7 as IdentityFileUploadUrl, a8 as IdentityFileUploadUrlHeaders, a9 as IdentityFileUploadUrlRequestBody, aa as IdentityPhoneNumberSubmission, ab as IdentityQuestionnaireSubmission, ac as IdentityResidentialAddressSubmission, ad as IdentityStatus, ae as IdentityTaxIdentifierGenericSubmission, af as IdentityTaxIdentifierSchemeSubmission, ag as IdentityTaxIdentifierSubmission, ah as IdentityVerificationChallenge, ai as IdentityVerificationResponse, aj as IdentityVerificationStatus, ak as RequirementEntry, al as RequirementFieldName, am as RequirementItemStatus, an as Requirements, ao as SubmitIdentityFilesRequestBody, ap as UpdateIdentityRequestBody } from '../identity-DIQJlm0o.cjs';
|
package/dist/api/identity.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Z as CapabilityProduct, _ as CreateIdentityRequestBody, $ as CreateIdentityResidentialAddress, a0 as Identity, a1 as IdentityBasicDetailsSubmission, a2 as IdentityCapability, a3 as IdentityFileMimeType, a4 as IdentityFileSide, a5 as IdentityFileSubmission, a6 as IdentityFileType, a7 as IdentityFileUploadUrl, a8 as IdentityFileUploadUrlHeaders, a9 as IdentityFileUploadUrlRequestBody, aa as IdentityPhoneNumberSubmission, ab as IdentityQuestionnaireSubmission, ac as IdentityResidentialAddressSubmission, ad as IdentityStatus, ae as IdentityTaxIdentifierGenericSubmission, af as IdentityTaxIdentifierSchemeSubmission, ag as IdentityTaxIdentifierSubmission, ah as IdentityVerificationChallenge, ai as IdentityVerificationResponse, aj as IdentityVerificationStatus, ak as RequirementEntry, al as RequirementFieldName, am as RequirementItemStatus, an as Requirements, ao as SubmitIdentityFilesRequestBody, ap as UpdateIdentityRequestBody } from '../identity-DIQJlm0o.js';
|
package/dist/api/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/api/index.ts"],"sourcesContent":["/**\n * Partner-friendly type aliases re-exported from the generated OpenAPI types.\n * These drop namespace prefixes and provide consistent names across SDK versions.\n */\nexport type {\n // Assets\n Asset,\n AssetBase,\n AssetControllerListAssetsResponse as ListAssetsResponse,\n AssetStatus,\n // Transactions — bank transfer deposit info\n BankTransferDepositInfo,\n // Session\n CreateSessionTokenRequestBody,\n CreateSessionTokenResponse as CreateSessionTokenReturnType,\n // Quotes — exchange rate type\n ExchangeRateType,\n // Fees / wallet\n FeeBehavior,\n Fees,\n // Quotes\n GetQuoteBody as GetQuoteParams,\n GetQuoteResponse as Quote,\n LimitWithAsset,\n MonetaryFeeAmount,\n MoonPayCorePaginationInfo as PaginationInfo,\n // Payment methods — config catalog\n MoonPayPaymentsListPaymentMethodsResponse as ListPaymentMethodsResponse,\n MoonPayPaymentsPaymentMethod as PaymentMethodConfig,\n MoonPayPaymentsPaymentMethodAvailability as PaymentMethodAvailability,\n MoonPayPaymentsPaymentMethodCapabilities as PaymentMethodCapabilities,\n MoonPayPaymentsStoredCardPaymentMethod as StoredCardPaymentMethod,\n // Payment methods — stored cards\n MoonPayPaymentsStoredPaymentMethod as StoredPaymentMethod,\n PaymentMethodType,\n PlatformAsset,\n QuoteLimitEntry,\n QuoteLimits,\n QuotePaymentMethod,\n // Transactions — simulate bank transfer (sandbox)\n SimulateBankTransferOutcome,\n SimulateBankTransferRequest as SimulateBankTransferParams,\n SimulateSenderBankAccount,\n // Stages\n Stage,\n StageKind,\n StageStatus,\n // Transactions\n Transaction,\n TransactionCustomer,\n TransactionPaymentMethod,\n TransactionStatus,\n TransactionWithStages,\n Wallet,\n} from './gen/index.js';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/api/index.ts"],"sourcesContent":["/**\n * Partner-friendly type aliases re-exported from the generated OpenAPI types.\n * These drop namespace prefixes and provide consistent names across SDK versions.\n */\nimport type { PlatformPaymentMethodsListPaymentMethodsData } from './gen/index.js';\n\nexport type {\n // Assets\n Asset,\n AssetBase,\n AssetControllerListAssetsResponse as ListAssetsResponse,\n AssetStatus,\n // Transactions — bank transfer deposit info\n BankTransferDepositInfo,\n // Session\n CreateSessionTokenRequestBody,\n CreateSessionTokenResponse as CreateSessionTokenReturnType,\n // Quotes — exchange rate type\n ExchangeRateType,\n // Fees / wallet\n FeeBehavior,\n Fees,\n // Quotes\n GetQuoteBody as GetQuoteParams,\n GetQuoteResponse as Quote,\n LimitWithAsset,\n MonetaryFeeAmount,\n MoonPayCorePaginationInfo as PaginationInfo,\n // Payment methods — config catalog\n MoonPayPaymentsListPaymentMethodsResponse as ListPaymentMethodsResponse,\n MoonPayPaymentsPaymentMethod as PaymentMethodConfig,\n MoonPayPaymentsPaymentMethodAvailability as PaymentMethodAvailability,\n MoonPayPaymentsPaymentMethodCapabilities as PaymentMethodCapabilities,\n MoonPayPaymentsStoredCardPaymentMethod as StoredCardPaymentMethod,\n // Payment methods — stored cards\n MoonPayPaymentsStoredPaymentMethod as StoredPaymentMethod,\n PaymentMethodType,\n PlatformAsset,\n QuoteLimitEntry,\n QuoteLimits,\n QuotePaymentMethod,\n // Transactions — simulate bank transfer (sandbox)\n SimulateBankTransferOutcome,\n SimulateBankTransferRequest as SimulateBankTransferParams,\n SimulateSenderBankAccount,\n // Stages\n Stage,\n StageKind,\n StageStatus,\n // Transactions\n Transaction,\n TransactionCustomer,\n TransactionPaymentMethod,\n TransactionStatus,\n TransactionWithStages,\n Wallet,\n} from './gen/index.js';\n\n/**\n * Query parameters for `GET /platform/v1/payment-methods`, derived from the\n * generated OpenAPI operation type so the SDK stays in sync with the spec.\n */\nexport type ListPaymentMethodsQuery = NonNullable<\n PlatformPaymentMethodsListPaymentMethodsData['query']\n>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { P as PlatformPaymentMethodsListPaymentMethodsData } from '../identity-DIQJlm0o.cjs';
|
|
2
|
+
export { A as Asset, a as AssetBase, b as AssetStatus, B as BankTransferDepositInfo, C as CreateSessionTokenRequestBody, c as CreateSessionTokenReturnType, E as ExchangeRateType, F as FeeBehavior, d as Fees, G as GetQuoteParams, L as LimitWithAsset, e as ListAssetsResponse, M as ListPaymentMethodsResponse, f as MonetaryFeeAmount, g as PaginationInfo, h as PaymentMethodAvailability, i as PaymentMethodCapabilities, j as PaymentMethodConfig, k as PaymentMethodType, l as PlatformAsset, m as Quote, Q as QuoteLimitEntry, n as QuoteLimits, o as QuotePaymentMethod, S as SimulateBankTransferOutcome, p as SimulateBankTransferParams, q as SimulateSenderBankAccount, r as Stage, s as StageKind, t as StageStatus, u as StoredCardPaymentMethod, v as StoredPaymentMethod, T as Transaction, w as TransactionCustomer, x as TransactionPaymentMethod, y as TransactionStatus, z as TransactionWithStages, W as Wallet } from '../identity-DIQJlm0o.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Partner-friendly type aliases re-exported from the generated OpenAPI types.
|
|
6
|
+
* These drop namespace prefixes and provide consistent names across SDK versions.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Query parameters for `GET /platform/v1/payment-methods`, derived from the
|
|
11
|
+
* generated OpenAPI operation type so the SDK stays in sync with the spec.
|
|
12
|
+
*/
|
|
13
|
+
type ListPaymentMethodsQuery = NonNullable<PlatformPaymentMethodsListPaymentMethodsData['query']>;
|
|
14
|
+
|
|
15
|
+
export type { ListPaymentMethodsQuery };
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { P as PlatformPaymentMethodsListPaymentMethodsData } from '../identity-DIQJlm0o.js';
|
|
2
|
+
export { A as Asset, a as AssetBase, b as AssetStatus, B as BankTransferDepositInfo, C as CreateSessionTokenRequestBody, c as CreateSessionTokenReturnType, E as ExchangeRateType, F as FeeBehavior, d as Fees, G as GetQuoteParams, L as LimitWithAsset, e as ListAssetsResponse, M as ListPaymentMethodsResponse, f as MonetaryFeeAmount, g as PaginationInfo, h as PaymentMethodAvailability, i as PaymentMethodCapabilities, j as PaymentMethodConfig, k as PaymentMethodType, l as PlatformAsset, m as Quote, Q as QuoteLimitEntry, n as QuoteLimits, o as QuotePaymentMethod, S as SimulateBankTransferOutcome, p as SimulateBankTransferParams, q as SimulateSenderBankAccount, r as Stage, s as StageKind, t as StageStatus, u as StoredCardPaymentMethod, v as StoredPaymentMethod, T as Transaction, w as TransactionCustomer, x as TransactionPaymentMethod, y as TransactionStatus, z as TransactionWithStages, W as Wallet } from '../identity-DIQJlm0o.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Partner-friendly type aliases re-exported from the generated OpenAPI types.
|
|
6
|
+
* These drop namespace prefixes and provide consistent names across SDK versions.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Query parameters for `GET /platform/v1/payment-methods`, derived from the
|
|
11
|
+
* generated OpenAPI operation type so the SDK stays in sync with the spec.
|
|
12
|
+
*/
|
|
13
|
+
type ListPaymentMethodsQuery = NonNullable<PlatformPaymentMethodsListPaymentMethodsData['query']>;
|
|
14
|
+
|
|
15
|
+
export type { ListPaymentMethodsQuery };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/frames/apple-pay.ts"],"sourcesContent":["import type { ChallengeRequired } from '../models/challenge.js';\nimport type { FrameTransaction } from '../models/transaction.js';\nimport type { FrameError } from '../protocol.js';\n\nexport interface InboundMessageMap {\n ready: void;\n error: FrameError<\n 'configurationError' | 'quoteExpired' | 'invalidQuote' | 'applePayUnavailable' | 'generic'\n >;\n /**\n * Fired the instant the user taps the native Apple Pay button, BEFORE the OS\n * payment sheet is presented. This is an intent-to-buy / tap signal, distinct\n * from `complete` (the purchase outcome). It fires unconditionally on tap,\n * even if the user later cancels the sheet.\n */\n buttonPressed: void;\n /** Signals that the pipeline requires a challenge step. Load `url` in a challenge frame. */\n challenge: ChallengeRequired;\n /**\n * Fired when the user dismisses the native Apple Pay payment sheet without\n * completing the purchase. This is an explicit cancellation signal, distinct\n * from `error` (a failure) — the flow can simply be re-initiated.\n */\n cancelled: FrameError<'payment_sheet_dismissed'>;\n complete: { transaction: FrameTransaction };\n}\n\nexport interface OutboundMessageMap {\n setQuote: { quote: { signature: string } };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/frames/apple-pay.ts"],"sourcesContent":["import type { ChallengeRequired } from '../models/challenge.js';\nimport type { FrameTransaction } from '../models/transaction.js';\nimport type { FrameError } from '../protocol.js';\n\nexport interface InboundMessageMap {\n ready: void;\n error: FrameError<\n 'configurationError' | 'quoteExpired' | 'invalidQuote' | 'applePayUnavailable' | 'generic'\n >;\n /**\n * Fired the instant the user taps the native Apple Pay button, BEFORE the OS\n * payment sheet is presented. This is an intent-to-buy / tap signal, distinct\n * from `complete` (the purchase outcome). It fires unconditionally on tap,\n * even if the user later cancels the sheet.\n */\n buttonPressed: void;\n /** Signals that the pipeline requires a challenge step. Load `url` in a challenge frame. */\n challenge: ChallengeRequired;\n /**\n * Fired when the user dismisses the native Apple Pay payment sheet without\n * completing the purchase. This is an explicit cancellation signal, distinct\n * from `error` (a failure) — the flow can simply be re-initiated.\n */\n cancelled: FrameError<'payment_sheet_dismissed'>;\n complete: { transaction: FrameTransaction };\n}\n\nexport interface OutboundMessageMap {\n setQuote: { quote: { signature: string } };\n}\n\nexport interface ApplePayButtonSettings {\n /** Button width in pixels, e.g. \"320\" or \"320px\". */\n width?: string;\n /** Button height in pixels. */\n height?: string;\n /** Corner radius in pixels. */\n borderRadius?: string;\n /** Horizontal padding in pixels. */\n paddingX?: string;\n /** Vertical padding in pixels. */\n paddingY?: string;\n /** Button visual style. */\n style?: 'black' | 'white-outline' | 'white';\n /** Button label/type. */\n type?: 'plain' | 'buy' | 'top-up' | 'reload' | 'continue' | 'check-out' | 'pay';\n /** One of the Apple Pay supported locales (e.g. \"en-US\", \"fr-FR\"). */\n locale?: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -31,5 +31,23 @@ interface OutboundMessageMap {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
interface ApplePayButtonSettings {
|
|
35
|
+
/** Button width in pixels, e.g. "320" or "320px". */
|
|
36
|
+
width?: string;
|
|
37
|
+
/** Button height in pixels. */
|
|
38
|
+
height?: string;
|
|
39
|
+
/** Corner radius in pixels. */
|
|
40
|
+
borderRadius?: string;
|
|
41
|
+
/** Horizontal padding in pixels. */
|
|
42
|
+
paddingX?: string;
|
|
43
|
+
/** Vertical padding in pixels. */
|
|
44
|
+
paddingY?: string;
|
|
45
|
+
/** Button visual style. */
|
|
46
|
+
style?: 'black' | 'white-outline' | 'white';
|
|
47
|
+
/** Button label/type. */
|
|
48
|
+
type?: 'plain' | 'buy' | 'top-up' | 'reload' | 'continue' | 'check-out' | 'pay';
|
|
49
|
+
/** One of the Apple Pay supported locales (e.g. "en-US", "fr-FR"). */
|
|
50
|
+
locale?: string;
|
|
51
|
+
}
|
|
34
52
|
|
|
35
|
-
export type { InboundMessageMap, OutboundMessageMap };
|
|
53
|
+
export type { ApplePayButtonSettings, InboundMessageMap, OutboundMessageMap };
|
|
@@ -31,5 +31,23 @@ interface OutboundMessageMap {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
interface ApplePayButtonSettings {
|
|
35
|
+
/** Button width in pixels, e.g. "320" or "320px". */
|
|
36
|
+
width?: string;
|
|
37
|
+
/** Button height in pixels. */
|
|
38
|
+
height?: string;
|
|
39
|
+
/** Corner radius in pixels. */
|
|
40
|
+
borderRadius?: string;
|
|
41
|
+
/** Horizontal padding in pixels. */
|
|
42
|
+
paddingX?: string;
|
|
43
|
+
/** Vertical padding in pixels. */
|
|
44
|
+
paddingY?: string;
|
|
45
|
+
/** Button visual style. */
|
|
46
|
+
style?: 'black' | 'white-outline' | 'white';
|
|
47
|
+
/** Button label/type. */
|
|
48
|
+
type?: 'plain' | 'buy' | 'top-up' | 'reload' | 'continue' | 'check-out' | 'pay';
|
|
49
|
+
/** One of the Apple Pay supported locales (e.g. "en-US", "fr-FR"). */
|
|
50
|
+
locale?: string;
|
|
51
|
+
}
|
|
34
52
|
|
|
35
|
-
export type { InboundMessageMap, OutboundMessageMap };
|
|
53
|
+
export type { ApplePayButtonSettings, InboundMessageMap, OutboundMessageMap };
|