-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel_transfer_asset_request.go
30 lines (28 loc) · 1.88 KB
/
model_transfer_asset_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* QEDIT - Asset Transfers
*
* This SDK provides a programmatic way for interacting with QEDIT's _Asset Transfer_ API. The specification definition file is publicly available [in this repository](https://github.com/QED-it/asset_transfers_dev_guide/).
*
* API version: 1.7.2
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package goqedit
type TransferAssetRequest struct {
// The ID of the Wallet to transfer from
WalletId string `json:"wallet_id"`
// The authorization password for the Wallet to transfer from
Authorization string `json:"authorization"`
// The Address of the recipient of the funds
RecipientAddress string `json:"recipient_address"`
// The ID of an Asset Type. It must be a string of length 0 to 40 characters. Allowed characters are lower- and uppercase letters, digits, dot (.), and hyphen (-). It must not end with an hyphen. Asset IDs are case-sensitive.
AssetId string `json:"asset_id"`
// The amount of assets to transfer
Amount int32 `json:"amount"`
// An app-customizable field to store additional private data relating to the transfer; the memo is shared between the sender and the receiver, but is not divulged to other parties
Memo string `json:"memo"`
// The globally-unique identifiers of the Attachments to attach to the transferred Asset; the attachments must already be uploaded, and their identifiers are returned by the upload endpoint
AttachmentIds []string `json:"attachment_ids,omitempty"`
// A user may request confirmation from the receiving party. If a public key of the approver is included in this optional field, the transaction will only become valid after the received signs it. The receiver will be able to decide whether to accept or reject the transfer by calling the /node/approve_task or the /node/reject_task respectively.
RequireConfirmationFrom string `json:"require_confirmation_from,omitempty"`
}