@moonpay/platform-sdk-react-native 1.11.0 → 1.13.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/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ListPaymentMethodsResponse, GetQuoteParams, Quote, ListAssetsResponse, Transaction, PaginationInfo, TransactionWithStages } from '@moonpay/platform-protocol/api';
|
|
2
|
-
export { AssetStatus, GetQuoteParams, ListAssetsResponse, ListPaymentMethodsResponse, PaginationInfo, PaymentMethodConfig, PaymentMethodType, PlatformAsset, Quote, StoredCardPaymentMethod, StoredPaymentMethod, Transaction, TransactionWithStages } from '@moonpay/platform-protocol/api';
|
|
1
|
+
import { ListPaymentMethodsResponse, GetQuoteParams, Quote, ListAssetsResponse, Transaction, PaginationInfo, TransactionWithStages, SimulateBankTransferParams } from '@moonpay/platform-protocol/api';
|
|
2
|
+
export { AssetStatus, GetQuoteParams, ListAssetsResponse, ListPaymentMethodsResponse, PaginationInfo, PaymentMethodConfig, PaymentMethodType, PlatformAsset, Quote, SimulateBankTransferOutcome, SimulateBankTransferParams, SimulateSenderBankAccount, StoredCardPaymentMethod, StoredPaymentMethod, Transaction, TransactionWithStages } from '@moonpay/platform-protocol/api';
|
|
3
3
|
import { Customer } from '@moonpay/platform-protocol/api/customer';
|
|
4
4
|
export { Customer } from '@moonpay/platform-protocol/api/customer';
|
|
5
5
|
export { CardResponse } from '@moonpay/platform-protocol/frames/add-card';
|
|
@@ -30,7 +30,7 @@ import * as WidgetSdk from '@moonpay/platform-protocol/sdks/widget';
|
|
|
30
30
|
export { SetupError as SetupWidgetError, Event as WidgetEvent } from '@moonpay/platform-protocol/sdks/widget';
|
|
31
31
|
import { FrameTransport, FrameOptions, PresentationMode, ThemeOptions, ListAssetsParams, ListTransactionsParams } from '@moonpay/platform-sdk-core';
|
|
32
32
|
export { ListAssetsParams, ThemeOptions } from '@moonpay/platform-sdk-core';
|
|
33
|
-
import { GetPaymentMethodsError, GetQuoteError, GetAssetsError, GetTransactionsError, DevPlatformApiError, GetCustomerError, SubmitCustomerKycError, GetCustomerUploadUrlError, SubmitCustomerFilesError, CreateIdentityError, GetIdentityError, UpdateIdentityError, VerifyIdentityError, GetIdentityUploadUrlError, SubmitIdentityFilesError } from '@moonpay/platform-protocol/api/errors';
|
|
33
|
+
import { GetPaymentMethodsError, GetQuoteError, GetAssetsError, GetTransactionsError, SimulateBankTransferError, DevPlatformApiError, GetCustomerError, SubmitCustomerKycError, GetCustomerUploadUrlError, SubmitCustomerFilesError, CreateIdentityError, GetIdentityError, UpdateIdentityError, VerifyIdentityError, GetIdentityUploadUrlError, SubmitIdentityFilesError } from '@moonpay/platform-protocol/api/errors';
|
|
34
34
|
import { UpdateIdentityRequestBody, IdentityFileUploadUrlRequestBody, IdentityFileUploadUrl, SubmitIdentityFilesRequestBody, CreateIdentityRequestBody, Identity, IdentityVerificationResponse } from '@moonpay/platform-protocol/api/identity';
|
|
35
35
|
import { ResetConnectionError } from '@moonpay/platform-protocol/sdks/reset';
|
|
36
36
|
import { ViewStyle } from 'react-native';
|
|
@@ -252,6 +252,10 @@ interface RNClient {
|
|
|
252
252
|
getTransaction(id: string): Promise<Result<{
|
|
253
253
|
data: TransactionWithStages;
|
|
254
254
|
}, GetTransactionsError>>;
|
|
255
|
+
/** Simulate bank-transfer settlement for a test-mode transaction (sandbox only). */
|
|
256
|
+
simulateBankTransfer(id: string, params: SimulateBankTransferParams): Promise<Result<{
|
|
257
|
+
data: TransactionWithStages;
|
|
258
|
+
}, SimulateBankTransferError>>;
|
|
255
259
|
setupWidget(options: SetupWidgetOptions): Promise<Result<WidgetFrame, WidgetSdk.SetupError>>;
|
|
256
260
|
/** @deprecated Render <MoonPayApplePayButton> instead — it mounts inline where you place it. */
|
|
257
261
|
setupApplePay(options: SetupApplePayOptions): Promise<Result<ApplePayFrame, ApplePaySdk.SetupError>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ListPaymentMethodsResponse, GetQuoteParams, Quote, ListAssetsResponse, Transaction, PaginationInfo, TransactionWithStages } from '@moonpay/platform-protocol/api';
|
|
2
|
-
export { AssetStatus, GetQuoteParams, ListAssetsResponse, ListPaymentMethodsResponse, PaginationInfo, PaymentMethodConfig, PaymentMethodType, PlatformAsset, Quote, StoredCardPaymentMethod, StoredPaymentMethod, Transaction, TransactionWithStages } from '@moonpay/platform-protocol/api';
|
|
1
|
+
import { ListPaymentMethodsResponse, GetQuoteParams, Quote, ListAssetsResponse, Transaction, PaginationInfo, TransactionWithStages, SimulateBankTransferParams } from '@moonpay/platform-protocol/api';
|
|
2
|
+
export { AssetStatus, GetQuoteParams, ListAssetsResponse, ListPaymentMethodsResponse, PaginationInfo, PaymentMethodConfig, PaymentMethodType, PlatformAsset, Quote, SimulateBankTransferOutcome, SimulateBankTransferParams, SimulateSenderBankAccount, StoredCardPaymentMethod, StoredPaymentMethod, Transaction, TransactionWithStages } from '@moonpay/platform-protocol/api';
|
|
3
3
|
import { Customer } from '@moonpay/platform-protocol/api/customer';
|
|
4
4
|
export { Customer } from '@moonpay/platform-protocol/api/customer';
|
|
5
5
|
export { CardResponse } from '@moonpay/platform-protocol/frames/add-card';
|
|
@@ -30,7 +30,7 @@ import * as WidgetSdk from '@moonpay/platform-protocol/sdks/widget';
|
|
|
30
30
|
export { SetupError as SetupWidgetError, Event as WidgetEvent } from '@moonpay/platform-protocol/sdks/widget';
|
|
31
31
|
import { FrameTransport, FrameOptions, PresentationMode, ThemeOptions, ListAssetsParams, ListTransactionsParams } from '@moonpay/platform-sdk-core';
|
|
32
32
|
export { ListAssetsParams, ThemeOptions } from '@moonpay/platform-sdk-core';
|
|
33
|
-
import { GetPaymentMethodsError, GetQuoteError, GetAssetsError, GetTransactionsError, DevPlatformApiError, GetCustomerError, SubmitCustomerKycError, GetCustomerUploadUrlError, SubmitCustomerFilesError, CreateIdentityError, GetIdentityError, UpdateIdentityError, VerifyIdentityError, GetIdentityUploadUrlError, SubmitIdentityFilesError } from '@moonpay/platform-protocol/api/errors';
|
|
33
|
+
import { GetPaymentMethodsError, GetQuoteError, GetAssetsError, GetTransactionsError, SimulateBankTransferError, DevPlatformApiError, GetCustomerError, SubmitCustomerKycError, GetCustomerUploadUrlError, SubmitCustomerFilesError, CreateIdentityError, GetIdentityError, UpdateIdentityError, VerifyIdentityError, GetIdentityUploadUrlError, SubmitIdentityFilesError } from '@moonpay/platform-protocol/api/errors';
|
|
34
34
|
import { UpdateIdentityRequestBody, IdentityFileUploadUrlRequestBody, IdentityFileUploadUrl, SubmitIdentityFilesRequestBody, CreateIdentityRequestBody, Identity, IdentityVerificationResponse } from '@moonpay/platform-protocol/api/identity';
|
|
35
35
|
import { ResetConnectionError } from '@moonpay/platform-protocol/sdks/reset';
|
|
36
36
|
import { ViewStyle } from 'react-native';
|
|
@@ -252,6 +252,10 @@ interface RNClient {
|
|
|
252
252
|
getTransaction(id: string): Promise<Result<{
|
|
253
253
|
data: TransactionWithStages;
|
|
254
254
|
}, GetTransactionsError>>;
|
|
255
|
+
/** Simulate bank-transfer settlement for a test-mode transaction (sandbox only). */
|
|
256
|
+
simulateBankTransfer(id: string, params: SimulateBankTransferParams): Promise<Result<{
|
|
257
|
+
data: TransactionWithStages;
|
|
258
|
+
}, SimulateBankTransferError>>;
|
|
255
259
|
setupWidget(options: SetupWidgetOptions): Promise<Result<WidgetFrame, WidgetSdk.SetupError>>;
|
|
256
260
|
/** @deprecated Render <MoonPayApplePayButton> instead — it mounts inline where you place it. */
|
|
257
261
|
setupApplePay(options: SetupApplePayOptions): Promise<Result<ApplePayFrame, ApplePaySdk.SetupError>>;
|
package/dist/index.js
CHANGED
|
@@ -942,6 +942,7 @@ function createRNClient(deps) {
|
|
|
942
942
|
getAssets: (params) => core.getAssets(params),
|
|
943
943
|
listTransactions: (params) => core.listTransactions(params),
|
|
944
944
|
getTransaction: (id) => core.getTransaction(id),
|
|
945
|
+
simulateBankTransfer: (id, params) => core.simulateBankTransfer(id, params),
|
|
945
946
|
setupWidget: (opts) => setupWidget(deps, opts),
|
|
946
947
|
setupApplePay: (opts) => setupApplePay(deps, opts),
|
|
947
948
|
setupBuy: (opts) => setupBuy(deps, opts),
|