This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Get details of a transfer with the given ID - Get a list of transfers
- Loading branch information
1 parent
d0e3372
commit fb66f9c
Showing
8 changed files
with
331 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import Foundation | ||
|
||
// swiftlint:disable:next line_length | ||
/// Ordering options available for ``ImmutableX/listTransfers(pageSize:cursor:orderBy:direction:user:receiver:status:minTimestamp:maxTimestamp:tokenType:tokenId:assetId:tokenAddress:tokenName:minQuantity:maxQuantity:metadata:)`` | ||
public enum ListTransfersOrderBy: String, CaseIterable { | ||
case transactionId = "transaction_id" | ||
case updatedAt = "updated_at" | ||
case createdAt = "created_at" | ||
case senderEtherKey = "sender_ether_key" | ||
case receiverEtherKey = "receiver_ether_key" | ||
|
||
/// Converts this enum to the type expected by the generated API code | ||
internal var asApiArgument: TransfersAPI.OrderBy_listTransfers { | ||
switch self { | ||
case .transactionId: | ||
return .transactionId | ||
case .updatedAt: | ||
return .updatedAt | ||
case .createdAt: | ||
return .createdAt | ||
case .senderEtherKey: | ||
return .senderEtherKey | ||
case .receiverEtherKey: | ||
return .receiverEtherKey | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Foundation | ||
|
||
// swiftlint:disable:next line_length | ||
/// Status options available for ``ImmutableX/listTransfers(pageSize:cursor:orderBy:direction:user:receiver:status:minTimestamp:maxTimestamp:tokenType:tokenId:assetId:tokenAddress:tokenName:minQuantity:maxQuantity:metadata:)`` | ||
public enum ListTransfersStatus: String, CaseIterable { | ||
case success | ||
case failure | ||
|
||
/// Converts this enum to the type expected by the generated API code | ||
internal var asApiArgument: TransfersAPI.Status_listTransfers { | ||
switch self { | ||
case .success: | ||
return .success | ||
case .failure: | ||
return .failure | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.