diff --git a/src/Packages/ZkEvmApi/Documentation~/MetadataSearchApi.md b/src/Packages/ZkEvmApi/Documentation~/MetadataSearchApi.md index 1b0bf2b1..f5e0dc4b 100644 --- a/src/Packages/ZkEvmApi/Documentation~/MetadataSearchApi.md +++ b/src/Packages/ZkEvmApi/Documentation~/MetadataSearchApi.md @@ -218,7 +218,7 @@ No authorization required # **SearchStacks** -> SearchStacksResult SearchStacks (string chainName, List contractAddress, string? accountAddress = null, bool? onlyIncludeOwnerListings = null, bool? onlyIfHasActiveListings = null, string? traits = null, string? keyword = null, string? sortBy = null, int? pageSize = null, string? pageCursor = null) +> SearchStacksResult SearchStacks (string chainName, List contractAddress, string? accountAddress = null, bool? onlyIncludeOwnerListings = null, bool? onlyIfHasActiveListings = null, string? traits = null, string? keyword = null, string? paymentToken = null, string? sortBy = null, int? pageSize = null, string? pageCursor = null) Search NFT stacks @@ -248,6 +248,7 @@ namespace Example var onlyIfHasActiveListings = true; // bool? | Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) var traits = "traits_example"; // string? | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) var keyword = sword; // string? | Keyword to search NFT name and description. Alphanumeric characters only. (optional) + var paymentToken = NATIVE; // string? | Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE' (optional) var sortBy = "cheapest_first"; // string? | Sort results in a specific order (optional) var pageSize = 100; // int? | Number of results to return per page (optional) (default to 100) var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) @@ -255,7 +256,7 @@ namespace Example try { // Search NFT stacks - SearchStacksResult result = apiInstance.SearchStacks(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, sortBy, pageSize, pageCursor); + SearchStacksResult result = apiInstance.SearchStacks(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, paymentToken, sortBy, pageSize, pageCursor); Debug.WriteLine(result); } catch (ApiException e) @@ -276,7 +277,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Search NFT stacks - ApiResponse response = apiInstance.SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, sortBy, pageSize, pageCursor); + ApiResponse response = apiInstance.SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, paymentToken, sortBy, pageSize, pageCursor); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -300,6 +301,7 @@ catch (ApiException e) | **onlyIfHasActiveListings** | **bool?** | Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. | [optional] | | **traits** | **string?** | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) | [optional] | | **keyword** | **string?** | Keyword to search NFT name and description. Alphanumeric characters only. | [optional] | +| **paymentToken** | **string?** | Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE' | [optional] | | **sortBy** | **string?** | Sort results in a specific order | [optional] | | **pageSize** | **int?** | Number of results to return per page | [optional] [default to 100] | | **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | diff --git a/src/Packages/ZkEvmApi/Documentation~/PricingApi.md b/src/Packages/ZkEvmApi/Documentation~/PricingApi.md index 85fab6bd..ee24322e 100644 --- a/src/Packages/ZkEvmApi/Documentation~/PricingApi.md +++ b/src/Packages/ZkEvmApi/Documentation~/PricingApi.md @@ -9,7 +9,7 @@ All URIs are relative to *https://api.sandbox.immutable.com* # **QuotesForNFTs** -> QuotesForNFTsResult QuotesForNFTs (string chainName, string contractAddress, List tokenId, string? pageCursor = null) +> QuotesForNFTsResult QuotesForNFTs (string chainName, string contractAddress, List tokenId, string? paymentToken = null, string? pageCursor = null) Get pricing data for a list of token ids @@ -35,12 +35,13 @@ namespace Example var chainName = imtbl-zkevm-testnet; // string | The name of chain var contractAddress = "contractAddress_example"; // string | Contract address for collection that these token ids are on var tokenId = new List(); // List | List of token ids to get pricing data for + var paymentToken = NATIVE; // string? | Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) try { // Get pricing data for a list of token ids - QuotesForNFTsResult result = apiInstance.QuotesForNFTs(chainName, contractAddress, tokenId, pageCursor); + QuotesForNFTsResult result = apiInstance.QuotesForNFTs(chainName, contractAddress, tokenId, paymentToken, pageCursor); Debug.WriteLine(result); } catch (ApiException e) @@ -61,7 +62,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Get pricing data for a list of token ids - ApiResponse response = apiInstance.QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); + ApiResponse response = apiInstance.QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, paymentToken, pageCursor); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -81,6 +82,7 @@ catch (ApiException e) | **chainName** | **string** | The name of chain | | | **contractAddress** | **string** | Contract address for collection that these token ids are on | | | **tokenId** | [**List<string>**](string.md) | List of token ids to get pricing data for | | +| **paymentToken** | **string?** | Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. | [optional] | | **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | ### Return type @@ -112,7 +114,7 @@ No authorization required # **QuotesForStacks** -> QuotesForStacksResult QuotesForStacks (string chainName, string contractAddress, List stackId, string? pageCursor = null) +> QuotesForStacksResult QuotesForStacks (string chainName, string contractAddress, List stackId, string? paymentToken = null, string? pageCursor = null) Get pricing data for a list of stack ids @@ -138,12 +140,13 @@ namespace Example var chainName = imtbl-zkevm-testnet; // string | The name of chain var contractAddress = "contractAddress_example"; // string | Contract address for collection that these stacks are on var stackId = new List(); // List | List of stack ids to get pricing data for + var paymentToken = NATIVE; // string? | Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) var pageCursor = "pageCursor_example"; // string? | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) try { // Get pricing data for a list of stack ids - QuotesForStacksResult result = apiInstance.QuotesForStacks(chainName, contractAddress, stackId, pageCursor); + QuotesForStacksResult result = apiInstance.QuotesForStacks(chainName, contractAddress, stackId, paymentToken, pageCursor); Debug.WriteLine(result); } catch (ApiException e) @@ -164,7 +167,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Get pricing data for a list of stack ids - ApiResponse response = apiInstance.QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); + ApiResponse response = apiInstance.QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, paymentToken, pageCursor); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -184,6 +187,7 @@ catch (ApiException e) | **chainName** | **string** | The name of chain | | | **contractAddress** | **string** | Contract address for collection that these stacks are on | | | **stackId** | [**List<Guid>**](Guid.md) | List of stack ids to get pricing data for | | +| **paymentToken** | **string?** | Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. | [optional] | | **pageCursor** | **string?** | Encoded page cursor to retrieve previous or next page. Use the value returned in the response. | [optional] | ### Return type diff --git a/src/Packages/ZkEvmApi/Runtime/Api/MetadataSearchApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/MetadataSearchApi.cs index 5ffbd1fb..ca8df7c1 100644 --- a/src/Packages/ZkEvmApi/Runtime/Api/MetadataSearchApi.cs +++ b/src/Packages/ZkEvmApi/Runtime/Api/MetadataSearchApi.cs @@ -97,11 +97,12 @@ public interface IMetadataSearchApiSync : IApiAccessor /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE' (optional) /// Sort results in a specific order (optional) /// Number of results to return per page (optional, default to 100) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// SearchStacksResult - SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); + SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? paymentToken = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); /// /// Search NFT stacks @@ -117,11 +118,12 @@ public interface IMetadataSearchApiSync : IApiAccessor /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE' (optional) /// Sort results in a specific order (optional) /// Number of results to return per page (optional, default to 100) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of SearchStacksResult - ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); + ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? paymentToken = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)); #endregion Synchronous Operations } @@ -205,12 +207,13 @@ public interface IMetadataSearchApiAsync : IApiAccessor /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE' (optional) /// Sort results in a specific order (optional) /// Number of results to return per page (optional, default to 100) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of SearchStacksResult - System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? paymentToken = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Search NFT stacks @@ -226,12 +229,13 @@ public interface IMetadataSearchApiAsync : IApiAccessor /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE' (optional) /// Sort results in a specific order (optional) /// Number of results to return per page (optional, default to 100) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (SearchStacksResult) - System.Threading.Tasks.Task> SearchStacksWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> SearchStacksWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? paymentToken = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -727,13 +731,14 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE' (optional) /// Sort results in a specific order (optional) /// Number of results to return per page (optional, default to 100) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// SearchStacksResult - public SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)) + public SearchStacksResult SearchStacks(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? paymentToken = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)) { - Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, sortBy, pageSize, pageCursor); + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, paymentToken, sortBy, pageSize, pageCursor); return localVarResponse.Data; } @@ -748,11 +753,12 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE' (optional) /// Sort results in a specific order (optional) /// Number of results to return per page (optional, default to 100) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of SearchStacksResult - public Immutable.Api.ZkEvm.Client.ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)) + public Immutable.Api.ZkEvm.Client.ApiResponse SearchStacksWithHttpInfo(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? paymentToken = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?)) { // verify the required parameter 'chainName' is set if (chainName == null) @@ -800,6 +806,10 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith { localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "keyword", keyword)); } + if (paymentToken != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "payment_token", paymentToken)); + } if (sortBy != null) { localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); @@ -837,14 +847,15 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE' (optional) /// Sort results in a specific order (optional) /// Number of results to return per page (optional, default to 100) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of SearchStacksResult - public async System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SearchStacksAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? paymentToken = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - var task = SearchStacksWithHttpInfoAsync(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, sortBy, pageSize, pageCursor, cancellationToken); + var task = SearchStacksWithHttpInfoAsync(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, paymentToken, sortBy, pageSize, pageCursor, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); #else @@ -864,12 +875,13 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith /// Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional) /// JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional) /// Keyword to search NFT name and description. Alphanumeric characters only. (optional) + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE' (optional) /// Sort results in a specific order (optional) /// Number of results to return per page (optional, default to 100) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (SearchStacksResult) - public async System.Threading.Tasks.Task> SearchStacksWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> SearchStacksWithHttpInfoAsync(string chainName, List contractAddress, string? accountAddress = default(string?), bool? onlyIncludeOwnerListings = default(bool?), bool? onlyIfHasActiveListings = default(bool?), string? traits = default(string?), string? keyword = default(string?), string? paymentToken = default(string?), string? sortBy = default(string?), int? pageSize = default(int?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'chainName' is set if (chainName == null) @@ -919,6 +931,10 @@ public Immutable.Api.ZkEvm.Client.ApiResponse ListFiltersWith { localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "keyword", keyword)); } + if (paymentToken != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "payment_token", paymentToken)); + } if (sortBy != null) { localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "sort_by", sortBy)); diff --git a/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs b/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs index bdbb9d51..f5f7ade8 100644 --- a/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs +++ b/src/Packages/ZkEvmApi/Runtime/Api/PricingApi.cs @@ -37,9 +37,10 @@ public interface IPricingApiSync : IApiAccessor /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// QuotesForNFTsResult - QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)); + QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? paymentToken = default(string?), string? pageCursor = default(string?)); /// /// Get pricing data for a list of token ids @@ -51,9 +52,10 @@ public interface IPricingApiSync : IApiAccessor /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of QuotesForNFTsResult - ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)); + ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? paymentToken = default(string?), string? pageCursor = default(string?)); /// /// Get pricing data for a list of stack ids /// @@ -64,9 +66,10 @@ public interface IPricingApiSync : IApiAccessor /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// QuotesForStacksResult - QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)); + QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? paymentToken = default(string?), string? pageCursor = default(string?)); /// /// Get pricing data for a list of stack ids @@ -78,9 +81,10 @@ public interface IPricingApiSync : IApiAccessor /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of QuotesForStacksResult - ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)); + ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, List stackId, string? paymentToken = default(string?), string? pageCursor = default(string?)); #endregion Synchronous Operations } @@ -100,10 +104,11 @@ public interface IPricingApiAsync : IApiAccessor /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of QuotesForNFTsResult - System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? paymentToken = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get pricing data for a list of token ids @@ -115,10 +120,11 @@ public interface IPricingApiAsync : IApiAccessor /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (QuotesForNFTsResult) - System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? paymentToken = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get pricing data for a list of stack ids /// @@ -129,10 +135,11 @@ public interface IPricingApiAsync : IApiAccessor /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of QuotesForStacksResult - System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? paymentToken = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Get pricing data for a list of stack ids @@ -144,10 +151,11 @@ public interface IPricingApiAsync : IApiAccessor /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (QuotesForStacksResult) - System.Threading.Tasks.Task> QuotesForStacksWithHttpInfoAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> QuotesForStacksWithHttpInfoAsync(string chainName, string contractAddress, List stackId, string? paymentToken = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -299,11 +307,12 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// QuotesForNFTsResult - public QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)) + public QuotesForNFTsResult QuotesForNFTs(string chainName, string contractAddress, List tokenId, string? paymentToken = default(string?), string? pageCursor = default(string?)) { - Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, pageCursor); + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = QuotesForNFTsWithHttpInfo(chainName, contractAddress, tokenId, paymentToken, pageCursor); return localVarResponse.Data; } @@ -314,9 +323,10 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of QuotesForNFTsResult - public Immutable.Api.ZkEvm.Client.ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?)) + public Immutable.Api.ZkEvm.Client.ApiResponse QuotesForNFTsWithHttpInfo(string chainName, string contractAddress, List tokenId, string? paymentToken = default(string?), string? pageCursor = default(string?)) { // verify the required parameter 'chainName' is set if (chainName == null) @@ -349,6 +359,10 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + if (paymentToken != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "payment_token", paymentToken)); + } if (pageCursor != null) { localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); @@ -374,12 +388,13 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of QuotesForNFTsResult - public async System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task QuotesForNFTsAsync(string chainName, string contractAddress, List tokenId, string? paymentToken = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - var task = QuotesForNFTsWithHttpInfoAsync(chainName, contractAddress, tokenId, pageCursor, cancellationToken); + var task = QuotesForNFTsWithHttpInfoAsync(chainName, contractAddress, tokenId, paymentToken, pageCursor, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); #else @@ -395,10 +410,11 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory /// The name of chain /// Contract address for collection that these token ids are on /// List of token ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (QuotesForNFTsResult) - public async System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> QuotesForNFTsWithHttpInfoAsync(string chainName, string contractAddress, List tokenId, string? paymentToken = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'chainName' is set if (chainName == null) @@ -433,6 +449,10 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "token_id", tokenId)); + if (paymentToken != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "payment_token", paymentToken)); + } if (pageCursor != null) { localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); @@ -465,11 +485,12 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// QuotesForStacksResult - public QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)) + public QuotesForStacksResult QuotesForStacks(string chainName, string contractAddress, List stackId, string? paymentToken = default(string?), string? pageCursor = default(string?)) { - Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, pageCursor); + Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = QuotesForStacksWithHttpInfo(chainName, contractAddress, stackId, paymentToken, pageCursor); return localVarResponse.Data; } @@ -480,9 +501,10 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// ApiResponse of QuotesForStacksResult - public Immutable.Api.ZkEvm.Client.ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?)) + public Immutable.Api.ZkEvm.Client.ApiResponse QuotesForStacksWithHttpInfo(string chainName, string contractAddress, List stackId, string? paymentToken = default(string?), string? pageCursor = default(string?)) { // verify the required parameter 'chainName' is set if (chainName == null) @@ -515,6 +537,10 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + if (paymentToken != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "payment_token", paymentToken)); + } if (pageCursor != null) { localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); @@ -540,12 +566,13 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of QuotesForStacksResult - public async System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task QuotesForStacksAsync(string chainName, string contractAddress, List stackId, string? paymentToken = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - var task = QuotesForStacksWithHttpInfoAsync(chainName, contractAddress, stackId, pageCursor, cancellationToken); + var task = QuotesForStacksWithHttpInfoAsync(chainName, contractAddress, stackId, paymentToken, pageCursor, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL Immutable.Api.ZkEvm.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); #else @@ -561,10 +588,11 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory /// The name of chain /// Contract address for collection that these stacks are on /// List of stack ids to get pricing data for + /// Filters the active listings, bids, floor listing and top bid by the specified payment token, either the address of the payment token contract or 'NATIVE'. (optional) /// Encoded page cursor to retrieve previous or next page. Use the value returned in the response. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (QuotesForStacksResult) - public async System.Threading.Tasks.Task> QuotesForStacksWithHttpInfoAsync(string chainName, string contractAddress, List stackId, string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> QuotesForStacksWithHttpInfoAsync(string chainName, string contractAddress, List stackId, string? paymentToken = default(string?), string? pageCursor = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'chainName' is set if (chainName == null) @@ -599,6 +627,10 @@ public Immutable.Api.ZkEvm.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.PathParameters.Add("chain_name", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(chainName)); // path parameter localVarRequestOptions.PathParameters.Add("contract_address", Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToString(contractAddress)); // path parameter localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("multi", "stack_id", stackId)); + if (paymentToken != null) + { + localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "payment_token", paymentToken)); + } if (pageCursor != null) { localVarRequestOptions.QueryParameters.Add(Immutable.Api.ZkEvm.Client.ClientUtils.ParameterToMultiMap("", "page_cursor", pageCursor)); diff --git a/src/Packages/ZkEvmApi/api~/openapi.yaml b/src/Packages/ZkEvmApi/api~/openapi.yaml index c00762b2..23bf6ee0 100644 --- a/src/Packages/ZkEvmApi/api~/openapi.yaml +++ b/src/Packages/ZkEvmApi/api~/openapi.yaml @@ -3605,6 +3605,17 @@ paths: example: sword type: string style: form + - description: "Filters the active listings, bids, floor listing and top bid\ + \ by the specified payment token, either the address of the payment token\ + \ contract or 'NATIVE'" + explode: true + in: query + name: payment_token + required: false + schema: + example: NATIVE + type: string + style: form - description: Sort results in a specific order explode: true in: query @@ -3808,6 +3819,17 @@ paths: minItems: 1 type: array style: form + - description: "Filters the active listings, bids, floor listing and top bid\ + \ by the specified payment token, either the address of the payment token\ + \ contract or 'NATIVE'." + explode: true + in: query + name: payment_token + required: false + schema: + example: NATIVE + type: string + style: form - description: Encoded page cursor to retrieve previous or next page. Use the value returned in the response. explode: true @@ -3905,6 +3927,17 @@ paths: minItems: 1 type: array style: form + - description: "Filters the active listings, bids, floor listing and top bid\ + \ by the specified payment token, either the address of the payment token\ + \ contract or 'NATIVE'." + explode: true + in: query + name: payment_token + required: false + schema: + example: NATIVE + type: string + style: form - description: Encoded page cursor to retrieve previous or next page. Use the value returned in the response. explode: true