@moonpay/platform-sdk-react-native 1.21.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -30,8 +30,8 @@ import * as GooglePaySdk from '@moonpay/platform-protocol/sdks/google-pay';
|
|
|
30
30
|
export { Event as GooglePayEvent, SetupError as SetupGooglePayError } from '@moonpay/platform-protocol/sdks/google-pay';
|
|
31
31
|
import * as WidgetSdk from '@moonpay/platform-protocol/sdks/widget';
|
|
32
32
|
export { SetupError as SetupWidgetError, Event as WidgetEvent } from '@moonpay/platform-protocol/sdks/widget';
|
|
33
|
-
import { FrameTransport, FrameOptions, PresentationMode, ThemeOptions, Credentials, GetCredentialsError, ListAssetsParams, ListTransactionsParams } from '@moonpay/platform-sdk-core';
|
|
34
|
-
export { Credentials, GetCredentialsError, ListAssetsParams, ThemeOptions } from '@moonpay/platform-sdk-core';
|
|
33
|
+
import { FrameTransport, FrameOptions, PresentationMode, ThemeOptions, Credentials, GetCredentialsError, GetPaymentMethodsParams, ListAssetsParams, ListTransactionsParams } from '@moonpay/platform-sdk-core';
|
|
34
|
+
export { Credentials, GetCredentialsError, GetPaymentMethodsParams, ListAssetsParams, ThemeOptions } from '@moonpay/platform-sdk-core';
|
|
35
35
|
import { GetPaymentMethodsError, GetQuoteError, GetAssetsError, GetTransactionsError, SimulateBankTransferError, DevPlatformApiError, GetCustomerError, SubmitCustomerKycError, GetCustomerUploadUrlError, SubmitCustomerFilesError, CreateIdentityError, GetIdentityError, UpdateIdentityError, VerifyIdentityError, GetIdentityUploadUrlError, SubmitIdentityFilesError } from '@moonpay/platform-protocol/api/errors';
|
|
36
36
|
import { UpdateIdentityRequestBody, IdentityFileUploadUrlRequestBody, IdentityFileUploadUrl, SubmitIdentityFilesRequestBody, CreateIdentityRequestBody, Identity, IdentityVerificationResponse } from '@moonpay/platform-protocol/api/identity';
|
|
37
37
|
import { ResetConnectionError } from '@moonpay/platform-protocol/sdks/reset';
|
|
@@ -252,7 +252,7 @@ interface RNClient {
|
|
|
252
252
|
* Synchronous — returns a `Result`, not a Promise.
|
|
253
253
|
*/
|
|
254
254
|
getCredentials(): Result<Credentials, GetCredentialsError>;
|
|
255
|
-
getPaymentMethods(): Promise<Result<{
|
|
255
|
+
getPaymentMethods(params?: GetPaymentMethodsParams): Promise<Result<{
|
|
256
256
|
data: ListPaymentMethodsResponse;
|
|
257
257
|
}, GetPaymentMethodsError>>;
|
|
258
258
|
getQuote(params: GetQuoteParams): Promise<Result<{
|
package/dist/index.d.ts
CHANGED
|
@@ -30,8 +30,8 @@ import * as GooglePaySdk from '@moonpay/platform-protocol/sdks/google-pay';
|
|
|
30
30
|
export { Event as GooglePayEvent, SetupError as SetupGooglePayError } from '@moonpay/platform-protocol/sdks/google-pay';
|
|
31
31
|
import * as WidgetSdk from '@moonpay/platform-protocol/sdks/widget';
|
|
32
32
|
export { SetupError as SetupWidgetError, Event as WidgetEvent } from '@moonpay/platform-protocol/sdks/widget';
|
|
33
|
-
import { FrameTransport, FrameOptions, PresentationMode, ThemeOptions, Credentials, GetCredentialsError, ListAssetsParams, ListTransactionsParams } from '@moonpay/platform-sdk-core';
|
|
34
|
-
export { Credentials, GetCredentialsError, ListAssetsParams, ThemeOptions } from '@moonpay/platform-sdk-core';
|
|
33
|
+
import { FrameTransport, FrameOptions, PresentationMode, ThemeOptions, Credentials, GetCredentialsError, GetPaymentMethodsParams, ListAssetsParams, ListTransactionsParams } from '@moonpay/platform-sdk-core';
|
|
34
|
+
export { Credentials, GetCredentialsError, GetPaymentMethodsParams, ListAssetsParams, ThemeOptions } from '@moonpay/platform-sdk-core';
|
|
35
35
|
import { GetPaymentMethodsError, GetQuoteError, GetAssetsError, GetTransactionsError, SimulateBankTransferError, DevPlatformApiError, GetCustomerError, SubmitCustomerKycError, GetCustomerUploadUrlError, SubmitCustomerFilesError, CreateIdentityError, GetIdentityError, UpdateIdentityError, VerifyIdentityError, GetIdentityUploadUrlError, SubmitIdentityFilesError } from '@moonpay/platform-protocol/api/errors';
|
|
36
36
|
import { UpdateIdentityRequestBody, IdentityFileUploadUrlRequestBody, IdentityFileUploadUrl, SubmitIdentityFilesRequestBody, CreateIdentityRequestBody, Identity, IdentityVerificationResponse } from '@moonpay/platform-protocol/api/identity';
|
|
37
37
|
import { ResetConnectionError } from '@moonpay/platform-protocol/sdks/reset';
|
|
@@ -252,7 +252,7 @@ interface RNClient {
|
|
|
252
252
|
* Synchronous — returns a `Result`, not a Promise.
|
|
253
253
|
*/
|
|
254
254
|
getCredentials(): Result<Credentials, GetCredentialsError>;
|
|
255
|
-
getPaymentMethods(): Promise<Result<{
|
|
255
|
+
getPaymentMethods(params?: GetPaymentMethodsParams): Promise<Result<{
|
|
256
256
|
data: ListPaymentMethodsResponse;
|
|
257
257
|
}, GetPaymentMethodsError>>;
|
|
258
258
|
getQuote(params: GetQuoteParams): Promise<Result<{
|
package/dist/index.js
CHANGED
|
@@ -975,7 +975,7 @@ function createRNClient(deps) {
|
|
|
975
975
|
connect: (opts) => connect(deps, opts),
|
|
976
976
|
setupAuth: (opts) => setupAuth(deps, opts),
|
|
977
977
|
getCredentials: () => core.getCredentials(),
|
|
978
|
-
getPaymentMethods: () => core.getPaymentMethods(),
|
|
978
|
+
getPaymentMethods: (params) => core.getPaymentMethods(params),
|
|
979
979
|
getQuote: (params) => core.getQuote(params),
|
|
980
980
|
getAssets: (params) => core.getAssets(params),
|
|
981
981
|
listTransactions: (params) => core.listTransactions(params),
|