@vality/swag-wallets 0.1.3

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.
Files changed (128) hide show
  1. package/README.md +236 -0
  2. package/api/api.d.ts +23 -0
  3. package/api/currencies.service.d.ts +41 -0
  4. package/api/deposits.service.d.ts +171 -0
  5. package/api/downloads.service.d.ts +41 -0
  6. package/api/identities.service.d.ts +134 -0
  7. package/api/providers.service.d.ts +70 -0
  8. package/api/reports.service.d.ts +116 -0
  9. package/api/residences.service.d.ts +41 -0
  10. package/api/w2W.service.d.ts +71 -0
  11. package/api/wallets.service.d.ts +199 -0
  12. package/api/webhooks.service.d.ts +132 -0
  13. package/api/withdrawals.service.d.ts +410 -0
  14. package/api.base.service.d.ts +12 -0
  15. package/api.module.d.ts +11 -0
  16. package/configuration.d.ts +106 -0
  17. package/encoder.d.ts +11 -0
  18. package/fesm2022/vality-swag-wallets.mjs +3577 -0
  19. package/fesm2022/vality-swag-wallets.mjs.map +1 -0
  20. package/index.d.ts +6 -0
  21. package/model/asset.d.ts +22 -0
  22. package/model/badRequest.d.ts +38 -0
  23. package/model/bankCardDestinationResource.d.ts +29 -0
  24. package/model/bankCardReceiverResource.d.ts +33 -0
  25. package/model/bankCardReceiverResourceParams.d.ts +29 -0
  26. package/model/bankCardSenderResource.d.ts +33 -0
  27. package/model/bankCardSenderResourceParams.d.ts +33 -0
  28. package/model/browserGetRequest.d.ts +16 -0
  29. package/model/browserPostRequest.d.ts +21 -0
  30. package/model/browserRequest.d.ts +15 -0
  31. package/model/conflictRequest.d.ts +23 -0
  32. package/model/contactInfo.d.ts +22 -0
  33. package/model/cryptoWallet.d.ts +22 -0
  34. package/model/cryptoWalletDestinationResource.d.ts +25 -0
  35. package/model/currency.d.ts +34 -0
  36. package/model/deposit.d.ts +56 -0
  37. package/model/depositAdjustment.d.ts +40 -0
  38. package/model/depositAdjustmentFailure.d.ts +17 -0
  39. package/model/depositAdjustmentStatus.d.ts +25 -0
  40. package/model/depositAdjustmentStatusFailure.d.ts +20 -0
  41. package/model/depositAllOfBody.d.ts +22 -0
  42. package/model/depositAllOfFee.d.ts +22 -0
  43. package/model/depositFailure.d.ts +17 -0
  44. package/model/depositRevert.d.ts +51 -0
  45. package/model/depositRevertAllOfBody.d.ts +22 -0
  46. package/model/depositRevertFailure.d.ts +17 -0
  47. package/model/depositRevertStatus.d.ts +25 -0
  48. package/model/depositRevertStatusFailure.d.ts +20 -0
  49. package/model/depositStatus.d.ts +25 -0
  50. package/model/depositStatusFailure.d.ts +20 -0
  51. package/model/destination.d.ts +65 -0
  52. package/model/destinationAuthData.d.ts +24 -0
  53. package/model/destinationGrantRequest.d.ts +22 -0
  54. package/model/destinationResource.d.ts +26 -0
  55. package/model/destinationStatus.d.ts +26 -0
  56. package/model/destinationsTopic.d.ts +27 -0
  57. package/model/digitalWallet.d.ts +34 -0
  58. package/model/digitalWalletDestinationResource.d.ts +37 -0
  59. package/model/fileDownload.d.ts +19 -0
  60. package/model/getWithdrawalMethods200Response.d.ts +13 -0
  61. package/model/identity.d.ts +46 -0
  62. package/model/invalidOperationParameters.d.ts +15 -0
  63. package/model/listDepositAdjustments200Response.d.ts +20 -0
  64. package/model/listDepositReverts200Response.d.ts +20 -0
  65. package/model/listDeposits200Response.d.ts +20 -0
  66. package/model/listDestinations200Response.d.ts +20 -0
  67. package/model/listIdentities200Response.d.ts +20 -0
  68. package/model/listWallets200Response.d.ts +20 -0
  69. package/model/listWithdrawals200Response.d.ts +20 -0
  70. package/model/models.d.ts +104 -0
  71. package/model/provider.d.ts +26 -0
  72. package/model/quoteParameters.d.ts +24 -0
  73. package/model/quoteParametersBody.d.ts +22 -0
  74. package/model/receiverResource.d.ts +24 -0
  75. package/model/receiverResourceParams.d.ts +24 -0
  76. package/model/redirect.d.ts +14 -0
  77. package/model/report.d.ts +49 -0
  78. package/model/reportFilesInner.d.ts +15 -0
  79. package/model/reportParams.d.ts +29 -0
  80. package/model/residence.d.ts +26 -0
  81. package/model/securedBankCard.d.ts +26 -0
  82. package/model/senderReceiverDestinationAuthData.d.ts +25 -0
  83. package/model/senderResource.d.ts +24 -0
  84. package/model/senderResourceParams.d.ts +24 -0
  85. package/model/subFailure.d.ts +19 -0
  86. package/model/userInteraction.d.ts +15 -0
  87. package/model/userInteractionChange.d.ts +22 -0
  88. package/model/userInteractionCreated.d.ts +16 -0
  89. package/model/userInteractionFinished.d.ts +14 -0
  90. package/model/userInteractionFormInner.d.ts +19 -0
  91. package/model/w2WTransfer.d.ts +38 -0
  92. package/model/w2WTransferFailure.d.ts +20 -0
  93. package/model/w2WTransferParameters.d.ts +28 -0
  94. package/model/w2WTransferParametersBody.d.ts +22 -0
  95. package/model/w2WTransferStatus.d.ts +25 -0
  96. package/model/w2WTransferStatusFailure.d.ts +20 -0
  97. package/model/wallet.d.ts +46 -0
  98. package/model/walletAccount.d.ts +18 -0
  99. package/model/walletAccountAvailable.d.ts +22 -0
  100. package/model/walletAccountOwn.d.ts +22 -0
  101. package/model/walletGrantRequest.d.ts +24 -0
  102. package/model/walletGrantRequestAsset.d.ts +22 -0
  103. package/model/webhook.d.ts +33 -0
  104. package/model/webhookScope.d.ts +25 -0
  105. package/model/withdrawal.d.ts +58 -0
  106. package/model/withdrawalAllOfBody.d.ts +22 -0
  107. package/model/withdrawalAllOfQuote.d.ts +24 -0
  108. package/model/withdrawalEvent.d.ts +24 -0
  109. package/model/withdrawalEventChange.d.ts +24 -0
  110. package/model/withdrawalFailure.d.ts +17 -0
  111. package/model/withdrawalMethod.d.ts +23 -0
  112. package/model/withdrawalMethodBankCard.d.ts +18 -0
  113. package/model/withdrawalMethodDigitalWallet.d.ts +18 -0
  114. package/model/withdrawalMethodGeneric.d.ts +18 -0
  115. package/model/withdrawalParameters.d.ts +70 -0
  116. package/model/withdrawalQuote.d.ts +30 -0
  117. package/model/withdrawalQuoteCashFrom.d.ts +22 -0
  118. package/model/withdrawalQuoteCashTo.d.ts +22 -0
  119. package/model/withdrawalQuoteParams.d.ts +44 -0
  120. package/model/withdrawalQuoteParamsCash.d.ts +22 -0
  121. package/model/withdrawalReadQuote.d.ts +26 -0
  122. package/model/withdrawalStatus.d.ts +25 -0
  123. package/model/withdrawalStatusChanged.d.ts +29 -0
  124. package/model/withdrawalStatusFailure.d.ts +20 -0
  125. package/model/withdrawalsTopic.d.ts +31 -0
  126. package/package.json +34 -0
  127. package/param.d.ts +37 -0
  128. package/variables.d.ts +8 -0
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { SubFailure } from './subFailure';
11
+ /**
12
+ * [Error occurred during the transfer process](#tag/Error-Codes)
13
+ */
14
+ export interface W2WTransferFailure {
15
+ /**
16
+ * Main error code
17
+ */
18
+ code: string;
19
+ subError?: SubFailure;
20
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { W2WTransferParametersBody } from './w2WTransferParametersBody';
11
+ /**
12
+ * Transfer creation options
13
+ */
14
+ export interface W2WTransferParameters {
15
+ /**
16
+ * Identifier of the wallet
17
+ */
18
+ sender: string;
19
+ /**
20
+ * Identifier of the wallet
21
+ */
22
+ receiver: string;
23
+ body: W2WTransferParametersBody;
24
+ /**
25
+ * The unique identifier of the entity on your side. When specified, will be used to ensure idempotent processing of the operation.
26
+ */
27
+ externalID?: string;
28
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * Transfer amount
12
+ */
13
+ export interface W2WTransferParametersBody {
14
+ /**
15
+ * The amount of money in minor units, for example, in cents
16
+ */
17
+ amount: number;
18
+ /**
19
+ * Currency character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm).
20
+ */
21
+ currency: string;
22
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { W2WTransferStatusFailure } from './w2WTransferStatusFailure';
11
+ export interface W2WTransferStatus {
12
+ /**
13
+ * The status of the money transfer. | Meaning | Explanation | | ----------- | ------------------------------------ | | `Pending` | Transfer in progress | | `Succeeded` | Fund transfer completed successfully | | `Failed` | Fund transfer failed |
14
+ */
15
+ status: W2WTransferStatus.StatusEnum;
16
+ failure?: W2WTransferStatusFailure;
17
+ }
18
+ export declare namespace W2WTransferStatus {
19
+ type StatusEnum = 'Pending' | 'Succeeded' | 'Failed';
20
+ const StatusEnum: {
21
+ Pending: StatusEnum;
22
+ Succeeded: StatusEnum;
23
+ Failed: StatusEnum;
24
+ };
25
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { SubFailure } from './subFailure';
11
+ /**
12
+ * [Error occurred during the transfer process](#tag/Error-Codes)
13
+ */
14
+ export interface W2WTransferStatusFailure {
15
+ /**
16
+ * Main error code
17
+ */
18
+ code: string;
19
+ subError?: SubFailure;
20
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * Wallet details
12
+ */
13
+ export interface Wallet {
14
+ /**
15
+ * Identifier of the wallet
16
+ */
17
+ readonly id?: string;
18
+ /**
19
+ * Human-readable name of the wallet, by which it is easy to recognize
20
+ */
21
+ name: string;
22
+ /**
23
+ * Date and time of wallet creation
24
+ */
25
+ readonly createdAt?: string;
26
+ /**
27
+ * Is the wallet blocked?
28
+ */
29
+ readonly isBlocked?: boolean;
30
+ /**
31
+ * Identifier of wallet owner
32
+ */
33
+ identity: string;
34
+ /**
35
+ * Currency character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm).
36
+ */
37
+ currency: string;
38
+ /**
39
+ * Some non-transparent for system set of data associated with this wallet
40
+ */
41
+ metadata?: object;
42
+ /**
43
+ * The unique identifier of the entity on your side. When specified, will be used to ensure idempotent processing of the operation.
44
+ */
45
+ externalID?: string;
46
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { WalletAccountOwn } from './walletAccountOwn';
11
+ import { WalletAccountAvailable } from './walletAccountAvailable';
12
+ /**
13
+ * Wallet account status
14
+ */
15
+ export interface WalletAccount {
16
+ own: WalletAccountOwn;
17
+ available: WalletAccountAvailable;
18
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * Funds available for use. Usually equal to own funds minus the sum of all pending transactions
12
+ */
13
+ export interface WalletAccountAvailable {
14
+ /**
15
+ * The amount of money in minor units, for example, in cents
16
+ */
17
+ amount: number;
18
+ /**
19
+ * Currency character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm).
20
+ */
21
+ currency: string;
22
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * Own funds
12
+ */
13
+ export interface WalletAccountOwn {
14
+ /**
15
+ * The amount of money in minor units, for example, in cents
16
+ */
17
+ amount: number;
18
+ /**
19
+ * Currency character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm).
20
+ */
21
+ currency: string;
22
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { WalletGrantRequestAsset } from './walletGrantRequestAsset';
11
+ /**
12
+ * Request for a one-time permission to manage funds on the wallet
13
+ */
14
+ export interface WalletGrantRequest {
15
+ /**
16
+ * A token that gives the permission to one-time management of funds on the wallet
17
+ */
18
+ readonly token?: string;
19
+ asset: WalletGrantRequestAsset;
20
+ /**
21
+ * Date and time until which the granted right is valid
22
+ */
23
+ validUntil: string;
24
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * Amount of funds allowed for use
12
+ */
13
+ export interface WalletGrantRequestAsset {
14
+ /**
15
+ * The amount of money in minor units, for example, in cents
16
+ */
17
+ amount: number;
18
+ /**
19
+ * Currency character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm).
20
+ */
21
+ currency: string;
22
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { WebhookScope } from './webhookScope';
11
+ export interface Webhook {
12
+ /**
13
+ * Identifier of the webhook
14
+ */
15
+ readonly id?: string;
16
+ /**
17
+ * Identifier of wallet owner
18
+ */
19
+ identityID: string;
20
+ /**
21
+ * Is notification delivery currently enabled?
22
+ */
23
+ readonly active?: boolean;
24
+ scope: WebhookScope;
25
+ /**
26
+ * The URL that will receive notifications of events that have occurred
27
+ */
28
+ url: string;
29
+ /**
30
+ * The content of the public key used to check the authoritativeness of notifications coming to `url`
31
+ */
32
+ readonly publicKey?: string;
33
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * The scope of a webhook, limiting the set of event types, for which the notifications should be sent
12
+ */
13
+ export interface WebhookScope {
14
+ /**
15
+ * Subject of notifications
16
+ */
17
+ topic: WebhookScope.TopicEnum;
18
+ }
19
+ export declare namespace WebhookScope {
20
+ type TopicEnum = 'WithdrawalsTopic' | 'DestinationsTopic';
21
+ const TopicEnum: {
22
+ WithdrawalsTopic: TopicEnum;
23
+ DestinationsTopic: TopicEnum;
24
+ };
25
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { WithdrawalStatusFailure } from './withdrawalStatusFailure';
11
+ import { WithdrawalAllOfBody } from './withdrawalAllOfBody';
12
+ import { WithdrawalAllOfQuote } from './withdrawalAllOfQuote';
13
+ import { DepositAllOfFee } from './depositAllOfFee';
14
+ /**
15
+ * Funds withdrawal data
16
+ */
17
+ export interface Withdrawal {
18
+ /**
19
+ * Withdrawal status. | Meaning | Explanation | | ----------- | ------------------------------------ | | `Pending` | Withdrawal in progress | | `Succeeded` | Withdrawal completed successfully | | `Failed` | Withdrawal failed |
20
+ */
21
+ readonly status?: Withdrawal.StatusEnum;
22
+ failure?: WithdrawalStatusFailure;
23
+ /**
24
+ * Identifier of funds withdrawal
25
+ */
26
+ readonly id?: string;
27
+ /**
28
+ * Date and time the withdrawal started
29
+ */
30
+ readonly createdAt?: string;
31
+ /**
32
+ * Identifier of the wallet
33
+ */
34
+ wallet: string;
35
+ /**
36
+ * Destination identifier
37
+ */
38
+ destination: string;
39
+ body: WithdrawalAllOfBody;
40
+ fee?: DepositAllOfFee;
41
+ /**
42
+ * Some non-transparent for system set of data associated with this withdrawal
43
+ */
44
+ metadata?: object;
45
+ /**
46
+ * The unique identifier of the entity on your side. When specified, will be used to ensure idempotent processing of the operation.
47
+ */
48
+ externalID?: string;
49
+ quote?: WithdrawalAllOfQuote;
50
+ }
51
+ export declare namespace Withdrawal {
52
+ type StatusEnum = 'Pending' | 'Succeeded' | 'Failed';
53
+ const StatusEnum: {
54
+ Pending: StatusEnum;
55
+ Succeeded: StatusEnum;
56
+ Failed: StatusEnum;
57
+ };
58
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * Amount of funds to be withdrawn
12
+ */
13
+ export interface WithdrawalAllOfBody {
14
+ /**
15
+ * The amount of money in minor units, for example, in cents
16
+ */
17
+ amount: number;
18
+ /**
19
+ * Currency character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm).
20
+ */
21
+ currency: string;
22
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * Quote data for withdrawal
12
+ */
13
+ export interface WithdrawalAllOfQuote {
14
+ cashFrom: object;
15
+ cashTo: object;
16
+ /**
17
+ * Date and time the quote was received
18
+ */
19
+ readonly createdAt: string;
20
+ /**
21
+ * Quote expiration date and time
22
+ */
23
+ readonly expiresOn: string;
24
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { WithdrawalEventChange } from './withdrawalEventChange';
11
+ /**
12
+ * An event that occurred during the funds withdrawal process
13
+ */
14
+ export interface WithdrawalEvent {
15
+ /**
16
+ * Identifier of the funds withdrawal event
17
+ */
18
+ eventID: number;
19
+ /**
20
+ * Date and time the event occurrence
21
+ */
22
+ occuredAt: string;
23
+ changes: Array<WithdrawalEventChange>;
24
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ /**
11
+ * Change that occurred in the funds withdrawal process
12
+ */
13
+ export interface WithdrawalEventChange {
14
+ /**
15
+ * The type of change that occurred
16
+ */
17
+ type: WithdrawalEventChange.TypeEnum;
18
+ }
19
+ export declare namespace WithdrawalEventChange {
20
+ type TypeEnum = 'WithdrawalStatusChanged';
21
+ const TypeEnum: {
22
+ WithdrawalStatusChanged: TypeEnum;
23
+ };
24
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { SubFailure } from './subFailure';
11
+ export interface WithdrawalFailure {
12
+ /**
13
+ * Withdrawal error code
14
+ */
15
+ code: string;
16
+ subError?: SubFailure;
17
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ export interface WithdrawalMethod {
11
+ /**
12
+ * Withdrawal method
13
+ */
14
+ method: WithdrawalMethod.MethodEnum;
15
+ }
16
+ export declare namespace WithdrawalMethod {
17
+ type MethodEnum = 'WithdrawalMethodBankCard' | 'WithdrawalMethodDigitalWallet' | 'WithdrawalMethodGeneric';
18
+ const MethodEnum: {
19
+ WithdrawalMethodBankCard: MethodEnum;
20
+ WithdrawalMethodDigitalWallet: MethodEnum;
21
+ WithdrawalMethodGeneric: MethodEnum;
22
+ };
23
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { WithdrawalMethod } from './withdrawalMethod';
11
+ export interface WithdrawalMethodBankCard extends WithdrawalMethod {
12
+ /**
13
+ * List of payment systems
14
+ */
15
+ paymentSystems: Array<string>;
16
+ }
17
+ export declare namespace WithdrawalMethodBankCard {
18
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { WithdrawalMethod } from './withdrawalMethod';
11
+ export interface WithdrawalMethodDigitalWallet extends WithdrawalMethod {
12
+ /**
13
+ * List of digital wallet providers
14
+ */
15
+ providers: Array<string>;
16
+ }
17
+ export declare namespace WithdrawalMethodDigitalWallet {
18
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { WithdrawalMethod } from './withdrawalMethod';
11
+ export interface WithdrawalMethodGeneric extends WithdrawalMethod {
12
+ /**
13
+ * List of withdrawal service providers
14
+ */
15
+ providers: Array<string>;
16
+ }
17
+ export declare namespace WithdrawalMethodGeneric {
18
+ }
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Vality Wallet API
3
+ *
4
+ * Contact: support@vality.dev
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { WithdrawalStatusFailure } from './withdrawalStatusFailure';
11
+ import { WithdrawalAllOfBody } from './withdrawalAllOfBody';
12
+ import { WithdrawalAllOfQuote } from './withdrawalAllOfQuote';
13
+ import { DepositAllOfFee } from './depositAllOfFee';
14
+ /**
15
+ * Options of generated withdrawal
16
+ */
17
+ export interface WithdrawalParameters {
18
+ /**
19
+ * Identifier of funds withdrawal
20
+ */
21
+ readonly id?: string;
22
+ /**
23
+ * Date and time the withdrawal started
24
+ */
25
+ readonly createdAt?: string;
26
+ /**
27
+ * Identifier of the wallet
28
+ */
29
+ wallet: string;
30
+ /**
31
+ * Destination identifier
32
+ */
33
+ destination: string;
34
+ body: WithdrawalAllOfBody;
35
+ fee?: DepositAllOfFee;
36
+ /**
37
+ * Some non-transparent for system set of data associated with this withdrawal
38
+ */
39
+ metadata?: object;
40
+ /**
41
+ * The unique identifier of the entity on your side. When specified, will be used to ensure idempotent processing of the operation.
42
+ */
43
+ externalID?: string;
44
+ quote?: WithdrawalAllOfQuote;
45
+ /**
46
+ * Withdrawal status. | Meaning | Explanation | | ----------- | ------------------------------------ | | `Pending` | Withdrawal in progress | | `Succeeded` | Withdrawal completed successfully | | `Failed` | Withdrawal failed |
47
+ */
48
+ readonly status?: WithdrawalParameters.StatusEnum;
49
+ failure?: WithdrawalStatusFailure;
50
+ /**
51
+ * A token that gives the right to withdraw from the wallet to pay for the withdrawal. Must be provided if withdrawal is made at the expense of _foreign_ wallet. The owner of said wallet can [issue this right](#operation/issueWalletGrant).
52
+ */
53
+ walletGrant?: string;
54
+ /**
55
+ * A token that gives the right to withdraw. Must be provided if the withdrawal is made through a _foreign_ recipient of funds. The owner of the specified recipient can [issue this right](#operation/issueDestinationGrant).
56
+ */
57
+ destinationGrant?: string;
58
+ /**
59
+ * Quote at which funds should be withdrawn. Must be [obtained](#operation/createQuote) in advance for each individual withdrawal operation with conversion.
60
+ */
61
+ quoteToken?: string;
62
+ }
63
+ export declare namespace WithdrawalParameters {
64
+ type StatusEnum = 'Pending' | 'Succeeded' | 'Failed';
65
+ const StatusEnum: {
66
+ Pending: StatusEnum;
67
+ Succeeded: StatusEnum;
68
+ Failed: StatusEnum;
69
+ };
70
+ }