Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
faf1c99
New translations signature.yaml (English)
tolkonepiu Aug 3, 2023
234ff05
New translations AccountID.yaml (English)
tolkonepiu Aug 3, 2023
7f9ef95
New translations AccountNumber.yaml (English)
tolkonepiu Aug 3, 2023
2d64495
New translations BankCard.yaml (English)
tolkonepiu Aug 3, 2023
47caace
New translations BankCardPaymentSystem.yaml (English)
tolkonepiu Aug 3, 2023
209e2cf
New translations BankCardTokenProvider.yaml (English)
tolkonepiu Aug 3, 2023
35a8947
New translations CryptoCurrency.yaml (English)
tolkonepiu Aug 3, 2023
422f53e
New translations CryptoWallet.yaml (English)
tolkonepiu Aug 3, 2023
e4d12ec
New translations CurrencyID.yaml (English)
tolkonepiu Aug 3, 2023
a8d91ea
New translations Destination.yaml (English)
tolkonepiu Aug 3, 2023
0e9c8b6
New translations DestinationAuthorized.yaml (English)
tolkonepiu Aug 3, 2023
3689051
New translations DestinationCreated.yaml (English)
tolkonepiu Aug 3, 2023
bd55f14
New translations DestinationID.yaml (English)
tolkonepiu Aug 3, 2023
f455fe6
New translations DestinationName.yaml (English)
tolkonepiu Aug 3, 2023
7dad69c
New translations DestinationResource.yaml (English)
tolkonepiu Aug 3, 2023
e3bf815
New translations DestinationUnauthorized.yaml (English)
tolkonepiu Aug 3, 2023
ab5955e
New translations DigitalWallet.yaml (English)
tolkonepiu Aug 3, 2023
5fa77ed
New translations Event.yaml (English)
tolkonepiu Aug 3, 2023
4795fd6
New translations ExternalID.yaml (English)
tolkonepiu Aug 3, 2023
51c3ab8
New translations GeneralError.yaml (English)
tolkonepiu Aug 3, 2023
50df465
New translations IdentityID.yaml (English)
tolkonepiu Aug 3, 2023
06baa7f
New translations WalletID.yaml (English)
tolkonepiu Aug 3, 2023
3c33269
New translations Withdrawal.yaml (English)
tolkonepiu Aug 3, 2023
82a177f
New translations WithdrawalBody.yaml (English)
tolkonepiu Aug 3, 2023
75d4ad4
New translations WithdrawalFailed.yaml (English)
tolkonepiu Aug 3, 2023
5f62067
New translations WithdrawalID.yaml (English)
tolkonepiu Aug 3, 2023
3b1b5ff
New translations WithdrawalStarted.yaml (English)
tolkonepiu Aug 3, 2023
9212e6f
New translations WithdrawalSucceeded.yaml (English)
tolkonepiu Aug 3, 2023
bff08de
New translations openapi.yaml (English)
tolkonepiu Aug 3, 2023
ac13b3a
New translations webhook-url.yaml (English)
tolkonepiu Aug 3, 2023
55361b2
New translations AccountNumber.yaml (English)
tolkonepiu Aug 3, 2023
fd4b400
New translations BankCard.yaml (English)
tolkonepiu Aug 3, 2023
abcae4e
New translations BankCardPaymentSystem.yaml (English)
tolkonepiu Aug 3, 2023
757d240
New translations BankCardTokenProvider.yaml (English)
tolkonepiu Aug 3, 2023
412dba5
New translations CryptoWallet.yaml (English)
tolkonepiu Aug 3, 2023
67efa48
New translations CurrencyID.yaml (English)
tolkonepiu Aug 3, 2023
5644477
New translations Destination.yaml (English)
tolkonepiu Aug 3, 2023
2e3b3df
New translations DestinationResource.yaml (English)
tolkonepiu Aug 3, 2023
1c8b1df
New translations DigitalWallet.yaml (English)
tolkonepiu Aug 3, 2023
447bd6e
New translations Event.yaml (English)
tolkonepiu Aug 3, 2023
835191c
New translations ExternalID.yaml (English)
tolkonepiu Aug 3, 2023
caa96dc
New translations IdentityID.yaml (English)
tolkonepiu Aug 3, 2023
f17b46e
New translations WalletID.yaml (English)
tolkonepiu Aug 3, 2023
81a37fa
New translations Withdrawal.yaml (English)
tolkonepiu Aug 3, 2023
fece918
New translations WithdrawalBody.yaml (English)
tolkonepiu Aug 3, 2023
e7fc691
New translations WithdrawalID.yaml (English)
tolkonepiu Aug 3, 2023
5d7382d
New translations AccountID.yaml (English)
tolkonepiu Aug 3, 2023
b266abf
New translations CryptoCurrency.yaml (English)
tolkonepiu Aug 3, 2023
627e56d
New translations Destination.yaml (English)
tolkonepiu Aug 3, 2023
30cc315
New translations Event.yaml (English)
tolkonepiu Aug 3, 2023
1e5a10a
New translations openapi.yaml (English)
tolkonepiu Aug 7, 2023
de7b93b
New translations signature.yaml (English)
tolkonepiu Aug 8, 2023
74d5115
New translations DestinationAuthorized.yaml (English)
tolkonepiu Aug 8, 2023
da76b58
New translations DestinationCreated.yaml (English)
tolkonepiu Aug 8, 2023
565a453
New translations DestinationID.yaml (English)
tolkonepiu Aug 8, 2023
cfe7ed3
New translations DestinationName.yaml (English)
tolkonepiu Aug 8, 2023
b85f32e
New translations DestinationResource.yaml (English)
tolkonepiu Aug 8, 2023
d54660b
New translations DestinationUnauthorized.yaml (English)
tolkonepiu Aug 8, 2023
a140759
New translations Event.yaml (English)
tolkonepiu Aug 8, 2023
bdc321e
New translations WithdrawalFailed.yaml (English)
tolkonepiu Aug 8, 2023
a56f9e2
New translations WithdrawalStarted.yaml (English)
tolkonepiu Aug 8, 2023
1b2416f
New translations WithdrawalSucceeded.yaml (English)
tolkonepiu Aug 8, 2023
767ae9f
New translations openapi.yaml (English)
tolkonepiu Aug 8, 2023
d3abc36
New translations webhook-url.yaml (English)
tolkonepiu Aug 8, 2023
0ef1ccf
New translations BankCard.yaml (English)
tolkonepiu Aug 8, 2023
b9dba3d
New translations BankCardPaymentSystem.yaml (English)
tolkonepiu Aug 8, 2023
7c7c8b4
New translations CryptoWallet.yaml (English)
tolkonepiu Aug 8, 2023
1b4d4ea
New translations CurrencyID.yaml (English)
tolkonepiu Aug 8, 2023
e26b842
New translations Destination.yaml (English)
tolkonepiu Aug 8, 2023
b280b09
New translations DestinationAuthorized.yaml (English)
tolkonepiu Aug 8, 2023
52827cf
New translations DestinationCreated.yaml (English)
tolkonepiu Aug 8, 2023
2be2e2a
New translations DestinationResource.yaml (English)
tolkonepiu Aug 8, 2023
42eca86
New translations DestinationUnauthorized.yaml (English)
tolkonepiu Aug 8, 2023
af7bae8
New translations DigitalWallet.yaml (English)
tolkonepiu Aug 8, 2023
df14920
New translations Event.yaml (English)
tolkonepiu Aug 8, 2023
cad889e
New translations Withdrawal.yaml (English)
tolkonepiu Aug 8, 2023
639bd4a
New translations WithdrawalBody.yaml (English)
tolkonepiu Aug 8, 2023
51179a9
New translations WithdrawalFailed.yaml (English)
tolkonepiu Aug 8, 2023
a1d66a0
New translations WithdrawalStarted.yaml (English)
tolkonepiu Aug 8, 2023
133dfa3
New translations WithdrawalSucceeded.yaml (English)
tolkonepiu Aug 8, 2023
64d933b
New translations openapi.yaml (English)
tolkonepiu Aug 8, 2023
548eb44
New translations webhook-url.yaml (English)
tolkonepiu Aug 8, 2023
998e56e
New translations destination.yaml (English)
tolkonepiu Jul 21, 2025
01a3cbf
New translations event.yaml (English)
tolkonepiu Jul 21, 2025
2e201ab
New translations openapi.yaml (English)
tolkonepiu Jul 21, 2025
5fe928f
New translations webhook-url.yaml (English)
tolkonepiu Jul 21, 2025
12a58fc
New translations partyid.yaml (English)
tolkonepiu Jul 21, 2025
ad88377
New translations withdrawalsucceeded.yaml (English)
tolkonepiu Jan 29, 2026
e0e36ac
New translations fee.yaml (English)
tolkonepiu Jan 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions en/openapi/components/parameters/signature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Content-Signature
in: header
description: >
Message signature formed according to the above rules
required: true
schema:
type: string
3 changes: 3 additions & 0 deletions en/openapi/components/schemas/AccountID.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: Account identifier
type: string
example: tZ0jUmlsV0
4 changes: 4 additions & 0 deletions en/openapi/components/schemas/AccountNumber.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: Account number
type: integer
format: int64
example: 1430000
26 changes: 26 additions & 0 deletions en/openapi/components/schemas/BankCard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
description: Bank card details
allOf:
-
$ref: "../schemas/DestinationResource.yaml"
-
type: object
required:
- cardNumberMask
- paymentSystem
properties:
cardNumberMask:
description: Masked card number
type: string
pattern: '^\d{6,8}\*+\d{2,4}$'
bin:
description: Card issuing bank BIN
type: string
pattern: '^\d{6,8}$'
lastDigits:
description: Card last digits
type: string
pattern: '^\d{2,4}$'
paymentSystem:
$ref: "../schemas/BankCardPaymentSystem.yaml"
tokenProvider:
$ref: "../schemas/BankCardTokenProvider.yaml"
2 changes: 2 additions & 0 deletions en/openapi/components/schemas/BankCardPaymentSystem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
description: Payment system
type: string
6 changes: 6 additions & 0 deletions en/openapi/components/schemas/BankCardTokenProvider.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: Payment token provider
type: string
enum:
- applepay
- googlepay
- samsungpay
9 changes: 9 additions & 0 deletions en/openapi/components/schemas/CryptoCurrency.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Cryptocurrency
type: string
enum:
- Bitcoin
- Litecoin
- BitcoinCash
- Ripple
- Ethereum
- Zcash
18 changes: 18 additions & 0 deletions en/openapi/components/schemas/CryptoWallet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description: Cryptocurrency wallet details
allOf:
-
$ref: "../schemas/DestinationResource.yaml"
-
type: object
required:
- cryptoWalletId
- currency
properties:
cryptoWalletId:
description: Identifier (aka address) of a cryptocurrency wallet
type: string
minLength: 16
maxLength: 256
example: zu3TcwGI71Bpaaw2XkLWZXlhMdn4zpVzMQ
currency:
$ref: "../schemas/CryptoCurrency.yaml"
5 changes: 5 additions & 0 deletions en/openapi/components/schemas/CurrencyID.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: >
Currency, character code according to [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm).
type: string
pattern: "^[A-Z]{3}$"
example: RUB
28 changes: 28 additions & 0 deletions en/openapi/components/schemas/Destination.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
description: Destination data
type: object
required:
- name
- currency
- resource
properties:
id:
$ref: "../schemas/DestinationID.yaml"
name:
description: |
A human-readable name for the receiver by which it is easily recognizable
type: string
example: Squarey plastic thingy
party:
$ref: "../schemas/PartyID.yaml"
currency:
$ref: "../schemas/CurrencyID.yaml"
resource:
$ref: "../schemas/DestinationResource.yaml"
metadata:
description: >
An arbitrary, client-specific API and non-transparent set of data associated with given receiver
type: object
example:
color_hint: olive-green
externalID:
$ref: "../schemas/ExternalID.yaml"
13 changes: 13 additions & 0 deletions en/openapi/components/schemas/DestinationAuthorized.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description: Changing the status of the destination receiver to authorized
allOf:
-
$ref: "../schemas/Event.yaml"
-
type: object
required:
- destinationID
properties:
destinationID:
$ref: "../schemas/DestinationID.yaml"
externalID:
$ref: "../schemas/ExternalID.yaml"
11 changes: 11 additions & 0 deletions en/openapi/components/schemas/DestinationCreated.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: Destination creation event
allOf:
-
$ref: "../schemas/Event.yaml"
-
type: object
required:
- destination
properties:
destination:
$ref: "../schemas/Destination.yaml"
3 changes: 3 additions & 0 deletions en/openapi/components/schemas/DestinationID.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: Destination identifier
type: string
example: "10ASF74D98"
3 changes: 3 additions & 0 deletions en/openapi/components/schemas/DestinationName.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: Human-readable name of the destination
type: string
example: "Worldwide PHP Awareness Initiative"
19 changes: 19 additions & 0 deletions en/openapi/components/schemas/DestinationResource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
description: Asset receiver resource used to make withdrawals
type: object
required:
- type
properties:
type:
description: |
Destination resource type
type: string
enum:
- BankCard
- CryptoWallet
- DigitalWallet
discriminator:
propertyName: type
mapping:
"BankCard": "../schemas/BankCard.yaml"
"CryptoWallet": "../schemas/CryptoWallet.yaml"
"DigitalWallet": "../schemas/DigitalWallet.yaml"
13 changes: 13 additions & 0 deletions en/openapi/components/schemas/DestinationUnauthorized.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description: Changing the status of the destination receiver to unauthorized
allOf:
-
$ref: "../schemas/Event.yaml"
-
type: object
required:
- destinationID
properties:
destinationID:
$ref: "../schemas/DestinationID.yaml"
externalID:
$ref: "../schemas/ExternalID.yaml"
20 changes: 20 additions & 0 deletions en/openapi/components/schemas/DigitalWallet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
description: Cryptocurrency wallet details
allOf:
-
$ref: "../schemas/DestinationResource.yaml"
-
type: object
required:
- digitalWalletId
- digitalWalletProvider
properties:
digitalWalletId:
description: E-wallet identifier
type: string
minLength: 16
maxLength: 256
example: zu3TcwGI71Bpaaw2XkLWZXlhMdn4zpVzMQ
digitalWalletProvider:
description: Electronic assets service provider
type: string
example: Paypal
35 changes: 35 additions & 0 deletions en/openapi/components/schemas/Event.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
description: Event data
type: object
required:
- occuredAt
- topic
- eventType
properties:
eventID:
description: Event identifier
type: string
occuredAt:
description: Date and time the event occurrence
type: string
format: date-time
topic:
description: Subject of notification
type: string
enum:
- WithdrawalTopic
- DestinationTopic
eventType:
type: string
description: Type of event that occurred.
enum:
- WithdrawalStarted
- WithdrawalSucceeded
- WithdrawalFailed
- DestinationCreated
discriminator:
propertyName: eventType
mapping:
"WithdrawalStarted": "../schemas/WithdrawalStarted.yaml"
"WithdrawalSucceeded": "../schemas/WithdrawalSucceeded.yaml"
"WithdrawalFailed": "../schemas/WithdrawalFailed.yaml"
"DestinationCreated": "../schemas/DestinationCreated.yaml"
6 changes: 6 additions & 0 deletions en/openapi/components/schemas/ExternalID.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: |
The unique identifier of the content on your side.

When specified, will be used to ensure idempotent processing of the operation.
type: string
example: "10036274"
13 changes: 13 additions & 0 deletions en/openapi/components/schemas/Fee.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description: Fee charged for the withdrawal
type: object
required:
- amount
- currency
properties:
amount:
description: The amount of money in minor units, for example, in cents
type: integer
format: int64
example: 1430000
currency:
$ref: '../schemas/CurrencyID.yaml'
6 changes: 6 additions & 0 deletions en/openapi/components/schemas/GeneralError.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: object
required:
- message
properties:
message:
type: string
3 changes: 3 additions & 0 deletions en/openapi/components/schemas/IdentityID.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: Identifier of wallet owner
type: string
example: tZ0jUmlsV0
3 changes: 3 additions & 0 deletions en/openapi/components/schemas/PartyID.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: Identifier of owner
type: string
example: tZ0jUmlsV0
3 changes: 3 additions & 0 deletions en/openapi/components/schemas/WalletID.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: Identifier of the wallet
type: string
example: "10068321"
24 changes: 24 additions & 0 deletions en/openapi/components/schemas/Withdrawal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
description: Funds withdrawal data
type: object
required:
- wallet
- destination
- body
properties:
id:
$ref: "../schemas/WithdrawalID.yaml"
createdAt:
description: Date and time the withdrawal started
type: string
format: date-time
destination:
$ref: "../schemas/DestinationID.yaml"
body:
$ref: "../schemas/WithdrawalBody.yaml"
metadata:
description: >
A custom client-specific API and a data set that is not transparent to the system, associated with this withdrawal
wallet:
$ref: "../schemas/WalletID.yaml"
externalID:
$ref: "../schemas/ExternalID.yaml"
15 changes: 15 additions & 0 deletions en/openapi/components/schemas/WithdrawalBody.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description: |
Amount of funds to be withdrawn
type: object
required:
- amount
- currency
properties:
amount:
description: |
The amount of money in minor units, for example, in cents
type: integer
format: int64
example: 1430000
currency:
$ref: "../schemas/CurrencyID.yaml"
13 changes: 13 additions & 0 deletions en/openapi/components/schemas/WithdrawalFailed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description: Unsuccessful withdrawal event
allOf:
-
$ref: "../schemas/Event.yaml"
-
type: object
required:
- withdrawalID
properties:
withdrawalID:
$ref: "../schemas/WithdrawalID.yaml"
externalID:
$ref: "../schemas/ExternalID.yaml"
3 changes: 3 additions & 0 deletions en/openapi/components/schemas/WithdrawalID.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: Identifier of funds withdrawal
type: string
example: tZ0jUmlsV0
11 changes: 11 additions & 0 deletions en/openapi/components/schemas/WithdrawalStarted.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: Withdrawal start event
allOf:
-
$ref: "../schemas/Event.yaml"
-
type: object
required:
- withdrawal
properties:
withdrawal:
$ref: "../schemas/Withdrawal.yaml"
15 changes: 15 additions & 0 deletions en/openapi/components/schemas/WithdrawalSucceeded.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description: Successful withdrawal event
allOf:
-
$ref: "../schemas/Event.yaml"
-
type: object
required:
- withdrawalID
properties:
withdrawalID:
$ref: "../schemas/WithdrawalID.yaml"
externalID:
$ref: "../schemas/ExternalID.yaml"
fee:
$ref: "../schemas/Fee.yaml"
Loading
Loading