Skip to content

Commit 6a325cc

Browse files
committed
Added accountKey field to Transaction List V2
1 parent ad64f88 commit 6a325cc

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

safeheron/api/apikey_manamgment_api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"github.com/Safeheron/safeheron-api-sdk-go/safeheron"
55
)
66

7-
type ApiKeyManagement struct {
7+
type ApiKeyManagementApi struct {
88
Client safeheron.Client
99
}
1010

11-
func (e *ApiKeyManagement) DisableApikey(r *ResultResponse) error {
11+
func (e *ApiKeyManagementApi) DisableApikey(r *ResultResponse) error {
1212
return e.Client.SendRequest(nil, r, "/v1/apikey/disable")
1313
}

safeheron/api/transaction_api.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,9 @@ type TransactionsRequest struct {
4545
BlockHeight int64 `json:"blockHeight"`
4646
CompletedTime int64 `json:"completedTime"`
4747
RealDestinationAccountType string `json:"realDestinationAccountType"`
48-
TransactionSubStatusDesc string `json:"transactionSubStatusDesc"`
4948
TxAmountToUsd string `json:"txAmountToUsd"`
5049
SourceAccountName string `json:"sourceAccountName"`
51-
SourceAccountTypeName string `json:"sourceAccountTypeName"`
5250
DestinationAccountName string `json:"destinationAccountName"`
53-
DestinationAccountTypeName string `json:"destinationAccountTypeName"`
5451
AuditUserName string `json:"auditUserName"`
5552
CreatedByUserName string `json:"createdByUserName"`
5653
TransactionDirection string `json:"transactionDirection"`
@@ -98,6 +95,7 @@ type ListTransactionsV2Request struct {
9895
SourceAccountType string `json:"sourceAccountType,omitempty"`
9996
DestinationAccountKey string `json:"destinationAccountKey,omitempty"`
10097
DestinationAccountType string `json:"destinationAccountType,omitempty"`
98+
AccountKey string `json:"accountKey,omitempty"`
10199
CreateTimeMin int64 `json:"createTimeMin,omitempty"`
102100
CreateTimeMax int64 `json:"createTimeMax,omitempty"`
103101
TxAmountMin string `json:"txAmountMin,omitempty"`
@@ -265,12 +263,9 @@ type OneTransactionsResponse struct {
265263
BlockHeight int64 `json:"blockHeight"`
266264
CompletedTime int64 `json:"completedTime"`
267265
RealDestinationAccountType string `json:"realDestinationAccountType"`
268-
TransactionSubStatusDesc string `json:"transactionSubStatusDesc"`
269266
TxAmountToUsd string `json:"txAmountToUsd"`
270267
SourceAccountName string `json:"sourceAccountName"`
271-
SourceAccountTypeName string `json:"sourceAccountTypeName"`
272268
DestinationAccountName string `json:"destinationAccountName"`
273-
DestinationAccountTypeName string `json:"destinationAccountTypeName"`
274269
AuditUserName string `json:"auditUserName"`
275270
CreatedByUserName string `json:"createdByUserName"`
276271
SpeedUpHistory []TransactionsRequest `json:"speedUpHistory"`

0 commit comments

Comments
 (0)