From 1e3f61eba96b5441150081f1716aab5d4b8485b5 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Wed, 2 Oct 2024 19:07:53 +1300 Subject: [PATCH 1/2] Squashed commit of the following: commit 10bcf6599d35ff2ed16a10af2efb498afee1270f Merge: 357d2d13 77b4b735 Author: Natalie Bunduwongse Date: Wed Oct 2 19:06:10 2024 +1300 fix: merge conflicts commit 357d2d1302434dab84d5730a6a638bb336438244 Author: Natalie Bunduwongse Date: Wed Oct 2 17:21:27 2024 +1300 feat: change inventory to grid commit d2b1fd68fc331944f96545bff9a73362aa1d24c9 Author: Natalie Bunduwongse Date: Wed Oct 2 14:47:44 2024 +1300 feat: use orderbook package commit ae100c56187c96b218d28aa42a7d0b0ca8b4fcc5 Author: Natalie Bunduwongse Date: Mon Sep 30 14:42:28 2024 +1300 style: lint fixes --- Assets/Core/Xsolla/Browser/IInAppBrowser.cs | 7 +- .../CloseButton/CloseBrowserButton.cs | 5 +- .../SinglePageBrowser2D.cs | 408 +++-- .../Display2DBehaviour.cs | 181 +- .../Keyboard2DBehaviour.cs | 158 +- .../UserDefinedBehaviours/Mouse2DBehaviour.cs | 215 ++- .../Preloader2DBehaviour.cs | 114 +- .../XsollaBrowser/XsollaInAppBrowser.cs | 381 ++-- .../Core/Xsolla/Browser/XsollaWebBrowser.cs | 50 +- .../Core/Xsolla/Entities/BrowserCloseInfo.cs | 2 +- .../Xsolla/InputProxy/InputProxy.NewSystem.cs | 195 +- Assets/Runner/Scripts/Spawnable.cs | 2 +- .../Shared/Prefabs/UI/AssetDetailsView.prefab | 26 +- .../Shared/Prefabs/UI/InventoryScreen.prefab | 153 +- .../Scripts/AutoExpandGridLayoutGroup.cs | 1 + Assets/Shared/Scripts/ClickableView.cs | 35 +- .../src/Immutable.Search/Api/SearchApi.cs | 2 +- .../src/Immutable.Search/Client/ApiClient.cs | 18 +- .../Immutable.Search/Client/ClientUtils.cs | 11 +- .../Immutable.Search/Client/Configuration.cs | 6 +- .../Client/WebRequestPathBuilder.cs | 46 +- .../Model/NFTMetadataAttributeValue.cs | 14 +- .../Model/PriceDetailsToken.cs | 6 +- Assets/Shared/Scripts/Data/API/Ts.meta | 8 - Assets/Shared/Scripts/Data/API/Ts/.gitignore | 362 ---- .../Data/API/Ts/.openapi-generator-ignore | 23 - .../Data/API/Ts/.openapi-generator/FILES | 190 -- .../Data/API/Ts/.openapi-generator/VERSION | 1 - Assets/Shared/Scripts/Data/API/Ts/README.md | 165 -- .../Scripts/Data/API/Ts/api/openapi.yaml | 1375 -------------- .../Shared/Scripts/Data/API/Ts/docs/Action.md | 13 - .../Scripts/Data/API/Ts/docs/BigNumberish.md | 10 - .../Data/API/Ts/docs/CancellationType.md | 10 - .../CancelledOrderStatusCancellationType.md | 10 - .../Scripts/Data/API/Ts/docs/DefaultApi.md | 701 -------- .../Scripts/Data/API/Ts/docs/ERC1155Item.md | 13 - .../Scripts/Data/API/Ts/docs/ERC20Item.md | 12 - .../Scripts/Data/API/Ts/docs/ERC721Item.md | 12 - Assets/Shared/Scripts/Data/API/Ts/docs/Fee.md | 12 - .../Scripts/Data/API/Ts/docs/FeeType.md | 9 - .../Scripts/Data/API/Ts/docs/FeeValue.md | 11 - .../Scripts/Data/API/Ts/docs/ItemType.md | 9 - .../Scripts/Data/API/Ts/docs/NativeItem.md | 11 - .../Shared/Scripts/Data/API/Ts/docs/Order.md | 26 - .../Scripts/Data/API/Ts/docs/OrderChain.md | 11 - .../Data/API/Ts/docs/OrderComponents.md | 21 - .../docs/OrderComponentsConsiderationInner.md | 15 - .../API/Ts/docs/OrderComponentsOfferInner.md | 14 - .../Data/API/Ts/docs/OrderFillStatus.md | 11 - .../Data/API/Ts/docs/OrderProtocolData.md | 14 - .../Scripts/Data/API/Ts/docs/OrderStatus.md | 17 - .../Data/API/Ts/docs/OrderStatusOneOf.md | 10 - .../Data/API/Ts/docs/OrderStatusOneOf1.md | 12 - .../Data/API/Ts/docs/OrderStatusOneOf2.md | 10 - .../Data/API/Ts/docs/OrderStatusOneOf3.md | 10 - .../Data/API/Ts/docs/OrderStatusOneOf4.md | 12 - .../Data/API/Ts/docs/OrderStatusOneOf5.md | 12 - .../Scripts/Data/API/Ts/docs/OrderType.md | 9 - .../RecordStringTypedDataFieldValueInner.md | 11 - .../Data/API/Ts/docs/SignableAction.md | 12 - .../Data/API/Ts/docs/SignableActionMessage.md | 13 - .../Data/API/Ts/docs/SignablePurpose.md | 9 - .../Data/API/Ts/docs/TransactionAction.md | 12 - .../TransactionActionPopulatedTransactions.md | 23 - ...ionPopulatedTransactionsAccessListInner.md | 11 - .../Data/API/Ts/docs/TransactionPurpose.md | 9 - .../Data/API/Ts/docs/TypedDataDomain.md | 14 - .../API/Ts/docs/V1HeartbeatGet200Response.md | 11 - ...rbookCancelOrdersOnChainPost200Response.md | 11 - ...OrderbookCancelOrdersOnChainPostRequest.md | 11 - ...SdkOrderbookCancelOrdersPost200Response.md | 11 - ...erbookCancelOrdersPost200ResponseResult.md | 12 - ...0ResponseResultFailedCancellationsInner.md | 11 - ...V1TsSdkOrderbookCancelOrdersPostRequest.md | 12 - ...dkOrderbookCreateListingPost200Response.md | 11 - ...1TsSdkOrderbookCreateListingPostRequest.md | 13 - ...SdkOrderbookFulfillOrderPost200Response.md | 13 - ...V1TsSdkOrderbookFulfillOrderPostRequest.md | 13 - ...okFulfillOrderPostRequestTakerFeesInner.md | 11 - ...kOrderbookPrepareListingPost200Response.md | 13 - ...TsSdkOrderbookPrepareListingPostRequest.md | 13 - ...dkOrderbookPrepareListingPostRequestBuy.md | 12 - ...kOrderbookPrepareListingPostRequestSell.md | 13 - ...repareOrderCancellationsPost200Response.md | 11 - ...ookPrepareOrderCancellationsPostRequest.md | 10 - Assets/Shared/Scripts/Data/API/Ts/git_push.sh | 57 - .../API/Ts/src/Immutable.Ts/Api/DefaultApi.cs | 1575 ----------------- .../Ts/src/Immutable.Ts/Client/ApiClient.cs | 629 ------- .../src/Immutable.Ts/Client/ApiException.cs | 71 - .../Ts/src/Immutable.Ts/Client/ApiResponse.cs | 163 -- .../Ts/src/Immutable.Ts/Client/ClientUtils.cs | 240 --- .../src/Immutable.Ts/Client/Configuration.cs | 556 ------ .../Client/ConnectionException.cs | 30 - .../Immutable.Ts/Client/ExceptionFactory.cs | 23 - .../Client/GlobalConfiguration.cs | 70 - .../src/Immutable.Ts/Client/IApiAccessor.cs | 36 - .../Client/IAsynchronousClient.cs | 107 -- .../Client/IReadableConfiguration.cs | 143 -- .../Immutable.Ts/Client/ISynchronousClient.cs | 90 - .../Ts/src/Immutable.Ts/Client/Multimap.cs | 306 ---- .../Client/OpenAPIDateConverter.cs | 30 - .../src/Immutable.Ts/Client/RequestOptions.cs | 67 - .../Client/UnexpectedResponseException.cs | 35 - .../Client/WebRequestPathBuilder.cs | 49 - .../Ts/src/Immutable.Ts/Immutable.Ts.asmdef | 7 - .../Model/AbstractOpenAPISchema.cs | 76 - .../API/Ts/src/Immutable.Ts/Model/Action.cs | 226 --- .../Ts/src/Immutable.Ts/Model/BigNumberish.cs | 231 --- .../Immutable.Ts/Model/CancellationType.cs | 40 - .../CancelledOrderStatusCancellationType.cs | 40 - .../Ts/src/Immutable.Ts/Model/ERC1155Item.cs | 122 -- .../Ts/src/Immutable.Ts/Model/ERC20Item.cs | 109 -- .../Ts/src/Immutable.Ts/Model/ERC721Item.cs | 109 -- .../Data/API/Ts/src/Immutable.Ts/Model/Fee.cs | 79 - .../API/Ts/src/Immutable.Ts/Model/FeeType.cs | 46 - .../API/Ts/src/Immutable.Ts/Model/FeeValue.cs | 86 - .../API/Ts/src/Immutable.Ts/Model/ItemType.cs | 54 - .../Ts/src/Immutable.Ts/Model/NativeItem.cs | 96 - .../API/Ts/src/Immutable.Ts/Model/Order.cs | 256 --- .../Ts/src/Immutable.Ts/Model/OrderChain.cs | 70 - .../src/Immutable.Ts/Model/OrderComponents.cs | 215 --- .../OrderComponentsConsiderationInner.cs | 137 -- .../Model/OrderComponentsOfferInner.cs | 123 -- .../src/Immutable.Ts/Model/OrderFillStatus.cs | 70 - .../Immutable.Ts/Model/OrderProtocolData.cs | 119 -- .../Ts/src/Immutable.Ts/Model/OrderStatus.cs | 406 ----- .../Immutable.Ts/Model/OrderStatusOneOf.cs | 77 - .../Immutable.Ts/Model/OrderStatusOneOf1.cs | 97 - .../Immutable.Ts/Model/OrderStatusOneOf2.cs | 77 - .../Immutable.Ts/Model/OrderStatusOneOf3.cs | 77 - .../Immutable.Ts/Model/OrderStatusOneOf4.cs | 98 - .../Immutable.Ts/Model/OrderStatusOneOf5.cs | 97 - .../Ts/src/Immutable.Ts/Model/OrderType.cs | 44 - .../RecordStringTypedDataFieldValueInner.cs | 87 - .../src/Immutable.Ts/Model/SignableAction.cs | 102 -- .../Model/SignableActionMessage.cs | 91 - .../src/Immutable.Ts/Model/SignablePurpose.cs | 35 - .../Immutable.Ts/Model/TransactionAction.cs | 102 -- .../TransactionActionPopulatedTransactions.cs | 184 -- ...ionPopulatedTransactionsAccessListInner.cs | 72 - .../Immutable.Ts/Model/TransactionPurpose.cs | 39 - .../src/Immutable.Ts/Model/TypedDataDomain.cs | 98 - .../Model/V1HeartbeatGet200Response.cs | 70 - ...rbookCancelOrdersOnChainPost200Response.cs | 61 - ...OrderbookCancelOrdersOnChainPostRequest.cs | 89 - ...SdkOrderbookCancelOrdersPost200Response.cs | 62 - ...erbookCancelOrdersPost200ResponseResult.cs | 89 - ...0ResponseResultFailedCancellationsInner.cs | 89 - ...V1TsSdkOrderbookCancelOrdersPostRequest.cs | 102 -- ...dkOrderbookCreateListingPost200Response.cs | 61 - ...1TsSdkOrderbookCreateListingPostRequest.cs | 115 -- ...SdkOrderbookFulfillOrderPost200Response.cs | 89 - ...V1TsSdkOrderbookFulfillOrderPostRequest.cs | 116 -- ...okFulfillOrderPostRequestTakerFeesInner.cs | 88 - ...kOrderbookPrepareListingPost200Response.cs | 102 -- ...TsSdkOrderbookPrepareListingPostRequest.cs | 111 -- ...dkOrderbookPrepareListingPostRequestBuy.cs | 231 --- ...kOrderbookPrepareListingPostRequestSell.cs | 235 --- ...repareOrderCancellationsPost200Response.cs | 61 - ...ookPrepareOrderCancellationsPostRequest.cs | 75 - .../Shared/Scripts/InfiniteScrollGridView.cs | 86 + .../Scripts/InfiniteScrollGridView.cs.meta | 3 + Assets/Shared/Scripts/InfiniteScrollView.cs | 7 +- Assets/Shared/Scripts/Model/Config.cs | 10 +- Assets/Shared/Scripts/UI/AssetDetailsView.cs | 45 +- Assets/Shared/Scripts/UI/AssetListObject.cs | 50 +- Assets/Shared/Scripts/UI/BalanceObject.cs | 2 +- Assets/Shared/Scripts/UI/InventoryScreen.cs | 6 +- Assets/Shared/Scripts/UI/OrderDetailsView.cs | 16 +- .../Shared/Scripts/UI/UnlockedSkinScreen.cs | 2 +- Assets/Unity.Hypercasual.asmdef | 9 +- Packages/manifest.json | 3 +- Packages/packages-lock.json | 18 +- 173 files changed, 1253 insertions(+), 14744 deletions(-) delete mode 100644 Assets/Shared/Scripts/Data/API/Ts.meta delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/.gitignore delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/.openapi-generator-ignore delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/.openapi-generator/FILES delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/.openapi-generator/VERSION delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/README.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/api/openapi.yaml delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/Action.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/BigNumberish.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/CancellationType.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/CancelledOrderStatusCancellationType.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/DefaultApi.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/ERC1155Item.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/ERC20Item.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/ERC721Item.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/Fee.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/FeeType.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/FeeValue.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/ItemType.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/NativeItem.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/Order.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderChain.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponents.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponentsConsiderationInner.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponentsOfferInner.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderFillStatus.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderProtocolData.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatus.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf1.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf2.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf3.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf4.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf5.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/OrderType.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/RecordStringTypedDataFieldValueInner.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/SignableAction.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/SignableActionMessage.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/SignablePurpose.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/TransactionAction.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/TransactionActionPopulatedTransactions.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/TransactionActionPopulatedTransactionsAccessListInner.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/TransactionPurpose.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/TypedDataDomain.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1HeartbeatGet200Response.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersOnChainPost200Response.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersOnChainPostRequest.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200Response.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200ResponseResult.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPostRequest.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCreateListingPost200Response.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCreateListingPostRequest.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPost200Response.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPostRequest.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPost200Response.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequest.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequestBuy.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequestSell.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.md delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/git_push.sh delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Api/DefaultApi.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiClient.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiException.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiResponse.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ClientUtils.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/Configuration.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ConnectionException.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ExceptionFactory.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/GlobalConfiguration.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IApiAccessor.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IAsynchronousClient.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IReadableConfiguration.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ISynchronousClient.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/Multimap.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/OpenAPIDateConverter.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/RequestOptions.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/UnexpectedResponseException.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/WebRequestPathBuilder.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Immutable.Ts.asmdef delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/AbstractOpenAPISchema.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Action.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/BigNumberish.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/CancellationType.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/CancelledOrderStatusCancellationType.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC1155Item.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC20Item.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC721Item.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Fee.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/FeeType.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/FeeValue.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ItemType.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/NativeItem.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Order.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderChain.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponents.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponentsConsiderationInner.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponentsOfferInner.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderFillStatus.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderProtocolData.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatus.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf1.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf2.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf3.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf4.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf5.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderType.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/RecordStringTypedDataFieldValueInner.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignableAction.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignableActionMessage.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignablePurpose.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionAction.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionActionPopulatedTransactions.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionActionPopulatedTransactionsAccessListInner.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionPurpose.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TypedDataDomain.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1HeartbeatGet200Response.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersOnChainPost200Response.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersOnChainPostRequest.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200Response.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResult.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPostRequest.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCreateListingPost200Response.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCreateListingPostRequest.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPost200Response.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPostRequest.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPost200Response.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequest.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequestBuy.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequestSell.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.cs delete mode 100644 Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.cs create mode 100644 Assets/Shared/Scripts/InfiniteScrollGridView.cs create mode 100644 Assets/Shared/Scripts/InfiniteScrollGridView.cs.meta diff --git a/Assets/Core/Xsolla/Browser/IInAppBrowser.cs b/Assets/Core/Xsolla/Browser/IInAppBrowser.cs index 9a7e2da8..6830829d 100644 --- a/Assets/Core/Xsolla/Browser/IInAppBrowser.cs +++ b/Assets/Core/Xsolla/Browser/IInAppBrowser.cs @@ -4,6 +4,9 @@ namespace Xsolla.Core { public interface IInAppBrowser { + bool IsOpened { get; } + + bool IsFullScreen { get; } event Action OpenEvent; event Action CloseEvent; @@ -14,10 +17,6 @@ public interface IInAppBrowser event Action ConfirmDialogEvent; - bool IsOpened { get; } - - bool IsFullScreen { get; } - void Open(string url); void Close(float delay = 0f, bool isManually = false); diff --git a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/CloseButton/CloseBrowserButton.cs b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/CloseButton/CloseBrowserButton.cs index ec630ba0..3f6b0b79 100644 --- a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/CloseButton/CloseBrowserButton.cs +++ b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/CloseButton/CloseBrowserButton.cs @@ -9,10 +9,7 @@ internal class CloseBrowserButton : MonoBehaviour private void Start() { - if (CloseButton != null) - { - CloseButton.onClick.AddListener(() => Destroy(gameObject, 0.01f)); - } + if (CloseButton != null) CloseButton.onClick.AddListener(() => Destroy(gameObject, 0.01f)); } } } \ No newline at end of file diff --git a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/SinglePageBrowser2D.cs b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/SinglePageBrowser2D.cs index 6511d75f..8990b429 100644 --- a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/SinglePageBrowser2D.cs +++ b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/SinglePageBrowser2D.cs @@ -10,7 +10,7 @@ internal class SinglePageBrowser2D : MonoBehaviour [SerializeField] private Button CloseButton; [SerializeField] private Button FullscreenButton; [SerializeField] private Button BackButton; - [SerializeField] private Vector2Int Viewport = new Vector2Int(1920, 1080); + [SerializeField] private Vector2Int Viewport = new(1920, 1080); [SerializeField] private GameObject PreloaderPrefab; #pragma warning disable CS0067 @@ -23,118 +23,116 @@ internal class SinglePageBrowser2D : MonoBehaviour #pragma warning restore CS0067 #if UNITY_EDITOR || UNITY_STANDALONE - private XsollaBrowser xsollaBrowser; - private Display2DBehaviour display; - private Keyboard2DBehaviour keyboard; - private Mouse2DBehaviour mouse; - private string urlBeforePopup; - private Preloader2DBehaviour preloader; - - private void Awake() - { - CloseButton.onClick.AddListener(OnCloseButtonPressed); - CloseButton.gameObject.SetActive(false); - - BackButton.onClick.AddListener(OnBackButtonPressed); - BackButton.gameObject.SetActive(false); - - FullscreenButton.onClick.AddListener(OnFullscreenButtonPressed); - FullscreenButton.gameObject.SetActive(false); - - xsollaBrowser = this.GetOrAddComponent(); - xsollaBrowser.LogEvent += s => XDebug.Log(s); - - xsollaBrowser.Launch - ( - Viewport.x, - Viewport.y, - GetBrowserPlatform(), - GetBrowserPath(), - Constants.BROWSER_REVISION, - Constants.CUSTOM_BROWSER_USER_AGENT - ); - - xsollaBrowser.Navigate.SetOnPopupListener(popupUrl => - { - xsollaBrowser.Navigate.GetUrl(currentUrl => - { - if (string.IsNullOrEmpty(urlBeforePopup)) - { - urlBeforePopup = currentUrl; - } - }); - xsollaBrowser.Navigate.To(popupUrl, newUrl => { BackButton.gameObject.SetActive(true); }); - }); - - xsollaBrowser.SetDialogHandler(HandleBrowserDialog); - - display = this.GetOrAddComponent(); - } - - private IEnumerator Start() - { - yield return new WaitForEndOfFrame(); - - preloader = gameObject.AddComponent(); - preloader.SetPrefab(PreloaderPrefab); - yield return new WaitWhile(() => xsollaBrowser.FetchingProgress < 100); - - display.StartRedraw(Viewport.x, Viewport.y); - display.RedrawFrameCompleteEvent += DestroyPreloader; - display.RedrawFrameCompleteEvent += EnableCloseButton; - display.RedrawFrameCompleteEvent += EnableFullScreenButton; - display.ViewportChangedEvent += (width, height) => XDebug.Log("Display viewport changed: " + width + "x" + height); - - mouse = this.GetOrAddComponent(); - keyboard = this.GetOrAddComponent(); - keyboard.EscapePressed += OnKeyboardEscapePressed; - BrowserInitEvent?.Invoke(xsollaBrowser); - } - - private void OnDestroy() - { - StopAllCoroutines(); - - if (mouse != null) - { - Destroy(mouse); - mouse = null; - } - - if (display != null) - { - Destroy(display); - display = null; - } - - if (keyboard != null) - { - keyboard.EscapePressed -= OnKeyboardEscapePressed; - Destroy(keyboard); - keyboard = null; - } - - if (xsollaBrowser != null) - { - Destroy(xsollaBrowser); - xsollaBrowser = null; - } - } - - public void SetViewport(Vector2Int viewport) - { - Viewport = viewport; - if (display) - display.StartRedraw(Viewport.x, Viewport.y); - } - - public Vector2Int GetViewport() - { - return Viewport; - } - - private string GetBrowserPlatform() - { + private XsollaBrowser xsollaBrowser; + private Display2DBehaviour display; + private Keyboard2DBehaviour keyboard; + private Mouse2DBehaviour mouse; + private string urlBeforePopup; + private Preloader2DBehaviour preloader; + + private void Awake() + { + CloseButton.onClick.AddListener(OnCloseButtonPressed); + CloseButton.gameObject.SetActive(false); + + BackButton.onClick.AddListener(OnBackButtonPressed); + BackButton.gameObject.SetActive(false); + + FullscreenButton.onClick.AddListener(OnFullscreenButtonPressed); + FullscreenButton.gameObject.SetActive(false); + + xsollaBrowser = this.GetOrAddComponent(); + xsollaBrowser.LogEvent += s => XDebug.Log(s); + + xsollaBrowser.Launch + ( + Viewport.x, + Viewport.y, + GetBrowserPlatform(), + GetBrowserPath(), + Constants.BROWSER_REVISION, + Constants.CUSTOM_BROWSER_USER_AGENT + ); + + xsollaBrowser.Navigate.SetOnPopupListener(popupUrl => + { + xsollaBrowser.Navigate.GetUrl(currentUrl => + { + if (string.IsNullOrEmpty(urlBeforePopup)) urlBeforePopup = currentUrl; + }); + xsollaBrowser.Navigate.To(popupUrl, newUrl => { BackButton.gameObject.SetActive(true); }); + }); + + xsollaBrowser.SetDialogHandler(HandleBrowserDialog); + + display = this.GetOrAddComponent(); + } + + private IEnumerator Start() + { + yield return new WaitForEndOfFrame(); + + preloader = gameObject.AddComponent(); + preloader.SetPrefab(PreloaderPrefab); + yield return new WaitWhile(() => xsollaBrowser.FetchingProgress < 100); + + display.StartRedraw(Viewport.x, Viewport.y); + display.RedrawFrameCompleteEvent += DestroyPreloader; + display.RedrawFrameCompleteEvent += EnableCloseButton; + display.RedrawFrameCompleteEvent += EnableFullScreenButton; + display.ViewportChangedEvent += (width, height) => + XDebug.Log("Display viewport changed: " + width + "x" + height); + + mouse = this.GetOrAddComponent(); + keyboard = this.GetOrAddComponent(); + keyboard.EscapePressed += OnKeyboardEscapePressed; + BrowserInitEvent?.Invoke(xsollaBrowser); + } + + private void OnDestroy() + { + StopAllCoroutines(); + + if (mouse != null) + { + Destroy(mouse); + mouse = null; + } + + if (display != null) + { + Destroy(display); + display = null; + } + + if (keyboard != null) + { + keyboard.EscapePressed -= OnKeyboardEscapePressed; + Destroy(keyboard); + keyboard = null; + } + + if (xsollaBrowser != null) + { + Destroy(xsollaBrowser); + xsollaBrowser = null; + } + } + + public void SetViewport(Vector2Int viewport) + { + Viewport = viewport; + if (display) + display.StartRedraw(Viewport.x, Viewport.y); + } + + public Vector2Int GetViewport() + { + return Viewport; + } + + private string GetBrowserPlatform() + { #if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN #if UNITY_64 return "Win64"; @@ -144,109 +142,109 @@ private string GetBrowserPlatform() #endif #if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX - return "MacOS"; + return "MacOS"; #endif #if UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX return "Linux"; #endif - } + } private string GetBrowserPath() { return Application.persistentDataPath; } - private void DestroyPreloader() - { - display.RedrawFrameCompleteEvent -= DestroyPreloader; - - if (preloader != null) - { - Destroy(preloader, 0.001f); - preloader = null; - } - } - - private void EnableCloseButton() - { - display.RedrawFrameCompleteEvent -= EnableCloseButton; - CloseButton.gameObject.SetActive(true); - } - - private void EnableFullScreenButton() - { - display.RedrawFrameCompleteEvent -= EnableFullScreenButton; - FullscreenButton.gameObject.SetActive(true); - } - - private void OnCloseButtonPressed() - { - XDebug.Log("`Close` button pressed"); - BrowserCloseRequest?.Invoke(); - } - - private void OnBackButtonPressed() - { - XDebug.Log("`Back` button pressed"); - xsollaBrowser.Navigate.Back(newUrl => - { - if (newUrl.Equals(urlBeforePopup)) - { - BackButton.gameObject.SetActive(false); - urlBeforePopup = string.Empty; - } - }); - } - - private void OnFullscreenButtonPressed() - { - XDebug.Log("`Fullscreen` button pressed"); - ToggleFullscreenRequest?.Invoke(); - } - - private void OnKeyboardEscapePressed() - { - BrowserCloseRequest?.Invoke(); - } - - private void HandleBrowserDialog(XsollaBrowserDialog dialog) - { - switch (dialog.Type) - { - case XsollaBrowserDialogType.Alert: - ShowSimpleAlertPopup(dialog); - break; - case XsollaBrowserDialogType.Prompt: - CloseAlert(dialog); - break; - case XsollaBrowserDialogType.Confirm: - ShowConfirmAlertPopup(dialog); - break; - case XsollaBrowserDialogType.BeforeUnload: - CloseAlert(dialog); - break; - default: - CloseAlert(dialog); - break; - } - } - - private void ShowSimpleAlertPopup(XsollaBrowserDialog dialog) - { - AlertDialogEvent?.Invoke(dialog.Message, dialog.Accept); - } - - private void ShowConfirmAlertPopup(XsollaBrowserDialog dialog) - { - ConfirmDialogEvent?.Invoke(dialog.Message, dialog.Accept, dialog.Dismiss); - } - - private void CloseAlert(XsollaBrowserDialog dialog) - { - XDebug.Log("Browser alert was closed automatically"); - dialog.Accept(); - } + private void DestroyPreloader() + { + display.RedrawFrameCompleteEvent -= DestroyPreloader; + + if (preloader != null) + { + Destroy(preloader, 0.001f); + preloader = null; + } + } + + private void EnableCloseButton() + { + display.RedrawFrameCompleteEvent -= EnableCloseButton; + CloseButton.gameObject.SetActive(true); + } + + private void EnableFullScreenButton() + { + display.RedrawFrameCompleteEvent -= EnableFullScreenButton; + FullscreenButton.gameObject.SetActive(true); + } + + private void OnCloseButtonPressed() + { + XDebug.Log("`Close` button pressed"); + BrowserCloseRequest?.Invoke(); + } + + private void OnBackButtonPressed() + { + XDebug.Log("`Back` button pressed"); + xsollaBrowser.Navigate.Back(newUrl => + { + if (newUrl.Equals(urlBeforePopup)) + { + BackButton.gameObject.SetActive(false); + urlBeforePopup = string.Empty; + } + }); + } + + private void OnFullscreenButtonPressed() + { + XDebug.Log("`Fullscreen` button pressed"); + ToggleFullscreenRequest?.Invoke(); + } + + private void OnKeyboardEscapePressed() + { + BrowserCloseRequest?.Invoke(); + } + + private void HandleBrowserDialog(XsollaBrowserDialog dialog) + { + switch (dialog.Type) + { + case XsollaBrowserDialogType.Alert: + ShowSimpleAlertPopup(dialog); + break; + case XsollaBrowserDialogType.Prompt: + CloseAlert(dialog); + break; + case XsollaBrowserDialogType.Confirm: + ShowConfirmAlertPopup(dialog); + break; + case XsollaBrowserDialogType.BeforeUnload: + CloseAlert(dialog); + break; + default: + CloseAlert(dialog); + break; + } + } + + private void ShowSimpleAlertPopup(XsollaBrowserDialog dialog) + { + AlertDialogEvent?.Invoke(dialog.Message, dialog.Accept); + } + + private void ShowConfirmAlertPopup(XsollaBrowserDialog dialog) + { + ConfirmDialogEvent?.Invoke(dialog.Message, dialog.Accept, dialog.Dismiss); + } + + private void CloseAlert(XsollaBrowserDialog dialog) + { + XDebug.Log("Browser alert was closed automatically"); + dialog.Accept(); + } #endif } } \ No newline at end of file diff --git a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Display2DBehaviour.cs b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Display2DBehaviour.cs index 64f37dbc..0c89b2e3 100644 --- a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Display2DBehaviour.cs +++ b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Display2DBehaviour.cs @@ -6,96 +6,95 @@ namespace Xsolla.Core.Browser { - internal class Display2DBehaviour : MonoBehaviour - { - private IXsollaBrowserRender xsollaRender; - public RawImage renderImage; - - public Vector2Int CurrentRenderSize { get; private set; } - - public event Action ViewportChangedEvent; - public event Action RedrawFrameCompleteEvent; - public event Action FirstRedrawFrameCompleteEvent; - - private IEnumerator Start() - { - if (!GetComponentInParent()) - { - XDebug.LogError("Canvas not found. This browser for 2D project."); - Destroy(gameObject); - yield break; - } - - renderImage = gameObject.GetComponent(); - SetOpacity(0); - - yield return new WaitWhile(() => !GetComponent()); - var xsollaBrowser = GetComponent(); - - yield return new WaitWhile(() => xsollaBrowser.Render == null); - xsollaRender = xsollaBrowser.Render; - } - - private void OnDestroy() - { - StopRedraw(); - } - - public void StartRedraw(int width, int height) - { - if (xsollaRender == null) - return; - - StopRedraw(); - xsollaRender.SetResolution(width, height, OnRenderResolutionChanged); - } - - private void StopRedraw() - { - if (xsollaRender != null) - StopAllCoroutines(); - } - - private void SetOpacity(float opacity) - { - if (renderImage == null) - return; - - var color = renderImage.color; - color.a = opacity; - renderImage.color = color; - } - - private void OnRenderResolutionChanged(int width, int height) - { - CurrentRenderSize = new Vector2Int(width, height); - ViewportChangedEvent?.Invoke(width, height); - StartCoroutine(RedrawCoroutine()); - } - - private IEnumerator RedrawCoroutine() - { - var isFirstRedraw = true; - while (enabled) - { - yield return ActionExtensions.WaitMethod( - xsollaRender.To, - texture => { - if (renderImage != null && texture != null) - { - SetOpacity(1.0f); - renderImage.texture = texture; - } - - RedrawFrameCompleteEvent?.Invoke(); - if (isFirstRedraw) - { - FirstRedrawFrameCompleteEvent?.Invoke(); - isFirstRedraw = false; - } - }); - } - } - } + internal class Display2DBehaviour : MonoBehaviour + { + public RawImage renderImage; + private IXsollaBrowserRender xsollaRender; + + public Vector2Int CurrentRenderSize { get; private set; } + + private IEnumerator Start() + { + if (!GetComponentInParent()) + { + XDebug.LogError("Canvas not found. This browser for 2D project."); + Destroy(gameObject); + yield break; + } + + renderImage = gameObject.GetComponent(); + SetOpacity(0); + + yield return new WaitWhile(() => !GetComponent()); + var xsollaBrowser = GetComponent(); + + yield return new WaitWhile(() => xsollaBrowser.Render == null); + xsollaRender = xsollaBrowser.Render; + } + + private void OnDestroy() + { + StopRedraw(); + } + + public event Action ViewportChangedEvent; + public event Action RedrawFrameCompleteEvent; + public event Action FirstRedrawFrameCompleteEvent; + + public void StartRedraw(int width, int height) + { + if (xsollaRender == null) + return; + + StopRedraw(); + xsollaRender.SetResolution(width, height, OnRenderResolutionChanged); + } + + private void StopRedraw() + { + if (xsollaRender != null) + StopAllCoroutines(); + } + + private void SetOpacity(float opacity) + { + if (renderImage == null) + return; + + var color = renderImage.color; + color.a = opacity; + renderImage.color = color; + } + + private void OnRenderResolutionChanged(int width, int height) + { + CurrentRenderSize = new Vector2Int(width, height); + ViewportChangedEvent?.Invoke(width, height); + StartCoroutine(RedrawCoroutine()); + } + + private IEnumerator RedrawCoroutine() + { + var isFirstRedraw = true; + while (enabled) + yield return ActionExtensions.WaitMethod( + xsollaRender.To, + texture => + { + if (renderImage != null && texture != null) + { + SetOpacity(1.0f); + renderImage.texture = texture; + } + + RedrawFrameCompleteEvent?.Invoke(); + if (isFirstRedraw) + { + FirstRedrawFrameCompleteEvent?.Invoke(); + isFirstRedraw = false; + } + }); + } + } } #endif \ No newline at end of file diff --git a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Keyboard2DBehaviour.cs b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Keyboard2DBehaviour.cs index 1ff08039..338dbdb9 100644 --- a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Keyboard2DBehaviour.cs +++ b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Keyboard2DBehaviour.cs @@ -6,83 +6,85 @@ namespace Xsolla.Core.Browser { - internal class Keyboard2DBehaviour : MonoBehaviour - { - private IXsollaBrowserKeyboardInput keyboardInput; - - public event Action EscapePressed; - - private static readonly List SystemKeys = new List { - KeyCode.Escape - }; - - // @formatter:off - private static readonly Dictionary ModificationKeys = new Dictionary{ - {KeyCode.LeftShift, "Shift"}, - {KeyCode.RightShift, "Shift"}, - {KeyCode.LeftAlt, "Alt"}, - {KeyCode.RightAlt, "Alt"}, - {KeyCode.LeftControl, "Control"}, - {KeyCode.RightControl, "Control"} - }; - - private static readonly Dictionary NumpadKeys = new Dictionary{ - {KeyCode.Keypad0, "Digit0"}, - {KeyCode.Keypad1, "Digit1"}, - {KeyCode.Keypad2, "Digit2"}, - {KeyCode.Keypad3, "Digit3"}, - {KeyCode.Keypad4, "Digit4"}, - {KeyCode.Keypad5, "Digit5"}, - {KeyCode.Keypad6, "Digit6"}, - {KeyCode.Keypad7, "Digit7"}, - {KeyCode.Keypad8, "Digit8"}, - {KeyCode.Keypad9, "Digit9"} - }; - // @formatter:on - - private static readonly List AllKeyCodes = Enum.GetValues(typeof(KeyCode)).OfType() - .Where(key => key < KeyCode.Mouse0) - .Except(SystemKeys) - .Except(ModificationKeys.Keys) - .Except(NumpadKeys.Keys) - .ToList(); - - private void Awake() - { - keyboardInput = GetComponent().Input.Keyboard; - } - - private void Update() - { - if (InputProxy.GetKeyUp(KeyCode.Escape)) - { - EscapePressed?.Invoke(); - } - - foreach (var pair in ModificationKeys) - { - if (InputProxy.GetKeyDown(pair.Key)) - keyboardInput.KeyDown(pair.Value); - - if (InputProxy.GetKeyUp(pair.Key)) - keyboardInput.KeyUp(pair.Value); - } - - foreach (var pair in NumpadKeys) - { - if (InputProxy.GetKeyDown(pair.Key)) - keyboardInput.PressKey(pair.Value); - } - - AllKeyCodes.ForEach(code => - { - if (InputProxy.GetKeyDown(code)) - { - var key = KeysConverter.Convert(code); - keyboardInput.PressKey(key); - } - }); - } - } + internal class Keyboard2DBehaviour : MonoBehaviour + { + private static readonly List SystemKeys = new() + { + KeyCode.Escape + }; + + private static readonly Dictionary ModificationKeys = new() + { + { KeyCode.LeftShift, "Shift" }, + { KeyCode.RightShift, "Shift" }, + { KeyCode.LeftAlt, "Alt" }, + { KeyCode.RightAlt, "Alt" }, + { KeyCode.LeftControl, "Control" }, + { KeyCode.RightControl, "Control" } + }; + + private static readonly Dictionary NumpadKeys = new() + { + { KeyCode.Keypad0, "Digit0" }, + { KeyCode.Keypad1, "Digit1" }, + { KeyCode.Keypad2, "Digit2" }, + { KeyCode.Keypad3, "Digit3" }, + { KeyCode.Keypad4, "Digit4" }, + { KeyCode.Keypad5, "Digit5" }, + { KeyCode.Keypad6, "Digit6" }, + { KeyCode.Keypad7, "Digit7" }, + { KeyCode.Keypad8, "Digit8" }, + { KeyCode.Keypad9, "Digit9" } + }; + + private static readonly List AllKeyCodes = Enum.GetValues(typeof(KeyCode)).OfType() + .Where(key => key < KeyCode.Mouse0) + .Except(SystemKeys) + .Except(ModificationKeys.Keys) + .Except(NumpadKeys.Keys) + .ToList(); + + private IXsollaBrowserKeyboardInput keyboardInput; + + private void Awake() + { + keyboardInput = GetComponent().Input.Keyboard; + } + + private void Update() + { + if (InputProxy.GetKeyUp(KeyCode.Escape)) EscapePressed?.Invoke(); + + foreach (var pair in ModificationKeys) + { + if (InputProxy.GetKeyDown(pair.Key)) + keyboardInput.KeyDown(pair.Value); + + if (InputProxy.GetKeyUp(pair.Key)) + keyboardInput.KeyUp(pair.Value); + } + + foreach (var pair in NumpadKeys) + if (InputProxy.GetKeyDown(pair.Key)) + keyboardInput.PressKey(pair.Value); + + AllKeyCodes.ForEach(code => + { + if (InputProxy.GetKeyDown(code)) + { + var key = KeysConverter.Convert(code); + keyboardInput.PressKey(key); + } + }); + } + + public event Action EscapePressed; + + // @formatter:off + + + + // @formatter:on + } } #endif \ No newline at end of file diff --git a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Mouse2DBehaviour.cs b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Mouse2DBehaviour.cs index 5cea6473..3b880003 100644 --- a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Mouse2DBehaviour.cs +++ b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Mouse2DBehaviour.cs @@ -6,114 +6,111 @@ namespace Xsolla.Core.Browser { - internal class Mouse2DBehaviour : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerClickHandler, IScrollHandler - { - private Canvas canvas; - private RectTransform selfRectTransform; - - private IXsollaBrowserKeyboardInput browserKeyboard; - private IXsollaBrowserMouseInput browserMouse; - private Display2DBehaviour displayBehaviour; - - private Coroutine mouseMovementCoroutine; - - private void Awake() - { - canvas = GetComponentInParent(); - selfRectTransform = transform as RectTransform; - - var xsollaBrowser = GetComponent(); - browserKeyboard = xsollaBrowser.Input.Keyboard; - browserMouse = xsollaBrowser.Input.Mouse; - - displayBehaviour = GetComponent(); - } - - private void OnDestroy() - { - StopAllCoroutines(); - } - - void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData) - { - if (mouseMovementCoroutine != null) - { - StopCoroutine(mouseMovementCoroutine); - } - - mouseMovementCoroutine = StartCoroutine(MouseMovementCoroutine()); - } - - void IPointerExitHandler.OnPointerExit(PointerEventData eventData) - { - if (mouseMovementCoroutine != null) - { - StopCoroutine(mouseMovementCoroutine); - mouseMovementCoroutine = null; - } - } - - void IPointerClickHandler.OnPointerClick(PointerEventData eventData) - { - var mousePosition = CalculateBrowserMousePosition(eventData.position); - browserMouse.Click(mousePosition, pos => XDebug.Log("Click handled by: " + pos)); - } - - void IScrollHandler.OnScroll(PointerEventData eventData) - { - var key = eventData.scrollDelta.y > 0 - ? KeysConverter.Convert(KeyCode.UpArrow) - : KeysConverter.Convert(KeyCode.DownArrow); - - browserKeyboard.KeyDown(key); - } - - private IEnumerator MouseMovementCoroutine() - { - var lastPosition = Vector2.zero; - while (enabled) - { - yield return Display2DInitializationCoroutine(); - yield return null; - - var mousePosition = CalculateBrowserMousePosition(InputProxy.MousePosition); - yield return MouseMovementCoroutine(lastPosition, mousePosition, pos => lastPosition = pos); - } - } - - private IEnumerator Display2DInitializationCoroutine() - { - yield return new WaitWhile(() => displayBehaviour.CurrentRenderSize.x == 0 || displayBehaviour.CurrentRenderSize.y == 0); - } - - private IEnumerator MouseMovementCoroutine(Vector2 lastPosition, Vector2 mousePosition, Action callback = null) - { - if ((mousePosition - lastPosition).sqrMagnitude > 1.0f) - { - yield return ActionExtensions.WaitMethod( - browserMouse.MoveTo, - mousePosition, - pos => callback?.Invoke(pos) - ); - } - else - { - yield return null; - } - } - - private Vector2 CalculateBrowserMousePosition(Vector3 inputMousePosition) - { - if (RectTransformUtility.ScreenPointToLocalPointInRectangle(selfRectTransform, inputMousePosition, canvas.worldCamera, out var point)) - { - point += selfRectTransform.sizeDelta * 0.5f; // Transform's anchors in the center of the rect - point.y = displayBehaviour.CurrentRenderSize.y - point.y; // Browser's axis are differs from Unity's axis - return point; - } - - XDebug.LogWarning("You try get mouse position, but mouse not over canvas"); - return Vector2.zero; - } - } + internal class Mouse2DBehaviour : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerClickHandler, + IScrollHandler + { + private IXsollaBrowserKeyboardInput browserKeyboard; + private IXsollaBrowserMouseInput browserMouse; + private Canvas canvas; + private Display2DBehaviour displayBehaviour; + + private Coroutine mouseMovementCoroutine; + private RectTransform selfRectTransform; + + private void Awake() + { + canvas = GetComponentInParent(); + selfRectTransform = transform as RectTransform; + + var xsollaBrowser = GetComponent(); + browserKeyboard = xsollaBrowser.Input.Keyboard; + browserMouse = xsollaBrowser.Input.Mouse; + + displayBehaviour = GetComponent(); + } + + private void OnDestroy() + { + StopAllCoroutines(); + } + + void IPointerClickHandler.OnPointerClick(PointerEventData eventData) + { + var mousePosition = CalculateBrowserMousePosition(eventData.position); + browserMouse.Click(mousePosition, pos => XDebug.Log("Click handled by: " + pos)); + } + + void IPointerEnterHandler.OnPointerEnter(PointerEventData eventData) + { + if (mouseMovementCoroutine != null) StopCoroutine(mouseMovementCoroutine); + + mouseMovementCoroutine = StartCoroutine(MouseMovementCoroutine()); + } + + void IPointerExitHandler.OnPointerExit(PointerEventData eventData) + { + if (mouseMovementCoroutine != null) + { + StopCoroutine(mouseMovementCoroutine); + mouseMovementCoroutine = null; + } + } + + void IScrollHandler.OnScroll(PointerEventData eventData) + { + var key = eventData.scrollDelta.y > 0 + ? KeysConverter.Convert(KeyCode.UpArrow) + : KeysConverter.Convert(KeyCode.DownArrow); + + browserKeyboard.KeyDown(key); + } + + private IEnumerator MouseMovementCoroutine() + { + var lastPosition = Vector2.zero; + while (enabled) + { + yield return Display2DInitializationCoroutine(); + yield return null; + + var mousePosition = CalculateBrowserMousePosition(InputProxy.MousePosition); + yield return MouseMovementCoroutine(lastPosition, mousePosition, pos => lastPosition = pos); + } + } + + private IEnumerator Display2DInitializationCoroutine() + { + yield return new WaitWhile(() => + displayBehaviour.CurrentRenderSize.x == 0 || displayBehaviour.CurrentRenderSize.y == 0); + } + + private IEnumerator MouseMovementCoroutine(Vector2 lastPosition, Vector2 mousePosition, + Action callback = null) + { + if ((mousePosition - lastPosition).sqrMagnitude > 1.0f) + yield return ActionExtensions.WaitMethod( + browserMouse.MoveTo, + mousePosition, + pos => callback?.Invoke(pos) + ); + else + yield return null; + } + + private Vector2 CalculateBrowserMousePosition(Vector3 inputMousePosition) + { + if (RectTransformUtility.ScreenPointToLocalPointInRectangle(selfRectTransform, inputMousePosition, + canvas.worldCamera, out var point)) + { + point += selfRectTransform.sizeDelta * 0.5f; // Transform's anchors in the center of the rect + point.y = displayBehaviour.CurrentRenderSize.y - + point.y; // Browser's axis are differs from Unity's axis + return point; + } + + XDebug.LogWarning("You try get mouse position, but mouse not over canvas"); + return Vector2.zero; + } + } } #endif \ No newline at end of file diff --git a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Preloader2DBehaviour.cs b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Preloader2DBehaviour.cs index f2a30e76..d93ac005 100644 --- a/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Preloader2DBehaviour.cs +++ b/Assets/Core/Xsolla/Browser/XsollaBrowser/Examples/2D/SinglePageBrowser2D/UserDefinedBehaviours/Preloader2DBehaviour.cs @@ -4,76 +4,76 @@ namespace Xsolla.Core.Browser { - internal class Preloader2DBehaviour : MonoBehaviour - { - private int lastProgress; - private object progressLocker; - private GameObject preloaderObject; - private XsollaBrowser xsollaBrowser; - private GameObject prefab; + internal class Preloader2DBehaviour : MonoBehaviour + { + private int lastProgress; + private GameObject prefab; + private GameObject preloaderObject; + private object progressLocker; + private XsollaBrowser xsollaBrowser; - private void Awake() - { - progressLocker = new object(); - lastProgress = 0; + private void Awake() + { + progressLocker = new object(); + lastProgress = 0; - xsollaBrowser = GetComponent(); - xsollaBrowser.FetchingBrowserEvent += OnBrowserFetchingEvent; + xsollaBrowser = GetComponent(); + xsollaBrowser.FetchingBrowserEvent += OnBrowserFetchingEvent; - StartCoroutine(PreloaderInstantiateCoroutine()); - } + StartCoroutine(PreloaderInstantiateCoroutine()); + } - private void OnDestroy() - { - xsollaBrowser.FetchingBrowserEvent -= OnBrowserFetchingEvent; - StopAllCoroutines(); + private void OnDestroy() + { + xsollaBrowser.FetchingBrowserEvent -= OnBrowserFetchingEvent; + StopAllCoroutines(); - if (preloaderObject) - { - Destroy(preloaderObject); - preloaderObject = null; - } + if (preloaderObject) + { + Destroy(preloaderObject); + preloaderObject = null; + } - progressLocker = null; - } + progressLocker = null; + } - public void SetPrefab(GameObject obj) - { - prefab = obj; - } + public void SetPrefab(GameObject obj) + { + prefab = obj; + } - private void OnBrowserFetchingEvent(int progress) - { - lock (progressLocker) - { - if (lastProgress >= progress) - return; + private void OnBrowserFetchingEvent(int progress) + { + lock (progressLocker) + { + if (lastProgress >= progress) + return; - XDebug.Log($"Update[%]: {lastProgress} => {progress}"); - lastProgress = progress; + XDebug.Log($"Update[%]: {lastProgress} => {progress}"); + lastProgress = progress; - StartCoroutine(PreloaderCoroutine(progress)); - } - } + StartCoroutine(PreloaderCoroutine(progress)); + } + } - private IEnumerator PreloaderCoroutine(int progress) - { - yield return new WaitForEndOfFrame(); + private IEnumerator PreloaderCoroutine(int progress) + { + yield return new WaitForEndOfFrame(); - if (preloaderObject == null) - yield break; + if (preloaderObject == null) + yield break; - if (progress < 99) - preloaderObject.GetComponent().SetPercent((int) progress); - else - preloaderObject.GetComponent().SetText(string.Empty); - } + if (progress < 99) + preloaderObject.GetComponent().SetPercent(progress); + else + preloaderObject.GetComponent().SetText(string.Empty); + } - private IEnumerator PreloaderInstantiateCoroutine() - { - yield return new WaitWhile(() => prefab == null); - preloaderObject = Instantiate(prefab, transform); - } - } + private IEnumerator PreloaderInstantiateCoroutine() + { + yield return new WaitWhile(() => prefab == null); + preloaderObject = Instantiate(prefab, transform); + } + } } #endif \ No newline at end of file diff --git a/Assets/Core/Xsolla/Browser/XsollaBrowser/XsollaInAppBrowser.cs b/Assets/Core/Xsolla/Browser/XsollaBrowser/XsollaInAppBrowser.cs index c8ac32e4..3a9a3dbb 100644 --- a/Assets/Core/Xsolla/Browser/XsollaBrowser/XsollaInAppBrowser.cs +++ b/Assets/Core/Xsolla/Browser/XsollaBrowser/XsollaInAppBrowser.cs @@ -7,196 +7,195 @@ namespace Xsolla.Core.Browser #if !(UNITY_EDITOR || UNITY_STANDALONE) internal class XsollaInAppBrowser : MonoBehaviour { } #else - internal class XsollaInAppBrowser : MonoBehaviour, IInAppBrowser - { - [SerializeField] private GameObject BrowserPrefab; - [SerializeField] private bool IsDontDestroyOnLoad; - private GameObject BrowserObject; - private SinglePageBrowser2D SinglePageBrowser; - private XsollaBrowser XsollaBrowser; - - private CanvasScaler CanvasScaler; - private Vector2 ScalerOriginalReferenceSize; - private Vector2Int FramedModeDisplaySize; - private Vector2Int FullscreenModeDisplaySize; - private Display2DBehaviour Display2DBehaviour; - - public event Action OpenEvent; - public event Action CloseEvent; - public event Action UrlChangeEvent; - - public event Action AlertDialogEvent; - public event Action ConfirmDialogEvent; - - public bool IsOpened => BrowserObject; - - public bool IsFullScreen { get; private set; } - - public void Close(float delay = 0f, bool isManually = false) - { - if (SinglePageBrowser) - { - SinglePageBrowser.BrowserCloseRequest -= OnBrowserCloseRequest; - SinglePageBrowser.AlertDialogEvent -= OnAlertDialogEvent; - SinglePageBrowser.ConfirmDialogEvent -= OnConfirmDialogEvent; - SinglePageBrowser.ToggleFullscreenRequest -= OnToggleFullscreenRequest; - } - - if (XsollaBrowser && XsollaBrowser.Navigate != null) - XsollaBrowser.Navigate.UrlChangedEvent -= OnUrlChanged; - - if (BrowserObject) - Destroy(BrowserObject, delay); - - var info = new BrowserCloseInfo { - isManually = isManually - }; - CloseEvent?.Invoke(info); - - OpenEvent = null; - CloseEvent = null; - UrlChangeEvent = null; - AlertDialogEvent = null; - ConfirmDialogEvent = null; - - IsFullScreen = false; - } - - public void Open(string url) - { - if (!IsOpened) - CreateBrowser(); - - XsollaBrowser.Navigate.To(url); - OpenEvent?.Invoke(); - } - - public void AddCloseHandler(Action action) - { - if (IsOpened) - CloseEvent += _ => action?.Invoke(); - } - - public void AddUrlChangeHandler(Action callback) - { - if (IsOpened) - XsollaBrowser.Navigate.UrlChangedEvent += (browser, url) => callback?.Invoke(url); - } - - public void AddInitHandler(Action callback) - { - if (IsOpened) - SinglePageBrowser.BrowserInitEvent += browser => callback?.Invoke(); - } - - public void UpdateSize(int width, int height) - { - if (!IsFullScreen) - { - FramedModeDisplaySize = new Vector2Int(width, height); - } - - if (IsOpened) - SinglePageBrowser.SetViewport(new Vector2Int(width, height)); - } - - public void SetFullscreenMode(bool isFullscreen) - { - IsFullScreen = isFullscreen; - - if (isFullscreen) - { - FramedModeDisplaySize = SinglePageBrowser.GetViewport(); - ScalerOriginalReferenceSize = CanvasScaler.referenceResolution; - - var displaySize = new Vector2Int(Screen.width, Screen.height); - if (displaySize.x > 1920 || displaySize.y > 1080) - { - var ratio = (float) displaySize.x / displaySize.y; - var isWidthRule = displaySize.x > displaySize.y; - if (isWidthRule) - { - displaySize.x = 1920; - displaySize.y = (int) (displaySize.x / ratio); - } - else - { - displaySize.y = 1080; - displaySize.x = (int) (displaySize.y * ratio); - } - } - - FullscreenModeDisplaySize = displaySize; - UpdateSize(displaySize.x, displaySize.y); - } - else - { - UpdateSize(FramedModeDisplaySize.x, FramedModeDisplaySize.y); - } - } - - private void CreateBrowser() - { - BrowserObject = Instantiate(BrowserPrefab); - BrowserObject.name = "XsollaInAppBrowser"; - if (IsDontDestroyOnLoad) - DontDestroyOnLoad(BrowserObject); - - SinglePageBrowser = BrowserObject.GetComponentInChildren(); - SinglePageBrowser.BrowserCloseRequest += OnBrowserCloseRequest; - SinglePageBrowser.AlertDialogEvent += OnAlertDialogEvent; - SinglePageBrowser.ConfirmDialogEvent += OnConfirmDialogEvent; - SinglePageBrowser.ToggleFullscreenRequest += OnToggleFullscreenRequest; - - XsollaBrowser = BrowserObject.GetComponentInChildren(); - XsollaBrowser.Navigate.UrlChangedEvent += OnUrlChanged; - - Display2DBehaviour = BrowserObject.GetComponentInChildren(); - Display2DBehaviour.FirstRedrawFrameCompleteEvent += () => { - if (IsFullScreen) - { - CanvasScaler.referenceResolution = FullscreenModeDisplaySize; - Display2DBehaviour.renderImage.rectTransform.sizeDelta = FullscreenModeDisplaySize; - } - else - { - CanvasScaler.referenceResolution = ScalerOriginalReferenceSize; - Display2DBehaviour.renderImage.rectTransform.sizeDelta = FramedModeDisplaySize; - } - }; - - CanvasScaler = BrowserObject.GetComponent(); - FramedModeDisplaySize = SinglePageBrowser.GetViewport(); - ScalerOriginalReferenceSize = CanvasScaler.referenceResolution; - } - - private void OnToggleFullscreenRequest() - { - SetFullscreenMode(!IsFullScreen); - } - - private void OnBrowserCloseRequest() - { - if (IsFullScreen) - SetFullscreenMode(false); - else - Close(0, true); - } - - private void OnUrlChanged(IXsollaBrowser browser, string url) - { - UrlChangeEvent?.Invoke(url); - } - - private void OnAlertDialogEvent(string message, Action acceptAction) - { - AlertDialogEvent?.Invoke(message, acceptAction); - } - - private void OnConfirmDialogEvent(string message, Action acceptAction, Action cancelAction) - { - ConfirmDialogEvent?.Invoke(message, acceptAction, cancelAction); - } - } + internal class XsollaInAppBrowser : MonoBehaviour, IInAppBrowser + { + [SerializeField] private GameObject BrowserPrefab; + [SerializeField] private bool IsDontDestroyOnLoad; + private GameObject BrowserObject; + + private CanvasScaler CanvasScaler; + private Display2DBehaviour Display2DBehaviour; + private Vector2Int FramedModeDisplaySize; + private Vector2Int FullscreenModeDisplaySize; + private Vector2 ScalerOriginalReferenceSize; + private SinglePageBrowser2D SinglePageBrowser; + private XsollaBrowser XsollaBrowser; + + public event Action OpenEvent; + public event Action CloseEvent; + public event Action UrlChangeEvent; + + public event Action AlertDialogEvent; + public event Action ConfirmDialogEvent; + + public bool IsOpened => BrowserObject; + + public bool IsFullScreen { get; private set; } + + public void Close(float delay = 0f, bool isManually = false) + { + if (SinglePageBrowser) + { + SinglePageBrowser.BrowserCloseRequest -= OnBrowserCloseRequest; + SinglePageBrowser.AlertDialogEvent -= OnAlertDialogEvent; + SinglePageBrowser.ConfirmDialogEvent -= OnConfirmDialogEvent; + SinglePageBrowser.ToggleFullscreenRequest -= OnToggleFullscreenRequest; + } + + if (XsollaBrowser && XsollaBrowser.Navigate != null) + XsollaBrowser.Navigate.UrlChangedEvent -= OnUrlChanged; + + if (BrowserObject) + Destroy(BrowserObject, delay); + + var info = new BrowserCloseInfo + { + isManually = isManually + }; + CloseEvent?.Invoke(info); + + OpenEvent = null; + CloseEvent = null; + UrlChangeEvent = null; + AlertDialogEvent = null; + ConfirmDialogEvent = null; + + IsFullScreen = false; + } + + public void Open(string url) + { + if (!IsOpened) + CreateBrowser(); + + XsollaBrowser.Navigate.To(url); + OpenEvent?.Invoke(); + } + + public void AddCloseHandler(Action action) + { + if (IsOpened) + CloseEvent += _ => action?.Invoke(); + } + + public void AddUrlChangeHandler(Action callback) + { + if (IsOpened) + XsollaBrowser.Navigate.UrlChangedEvent += (browser, url) => callback?.Invoke(url); + } + + public void AddInitHandler(Action callback) + { + if (IsOpened) + SinglePageBrowser.BrowserInitEvent += browser => callback?.Invoke(); + } + + public void UpdateSize(int width, int height) + { + if (!IsFullScreen) FramedModeDisplaySize = new Vector2Int(width, height); + + if (IsOpened) + SinglePageBrowser.SetViewport(new Vector2Int(width, height)); + } + + public void SetFullscreenMode(bool isFullscreen) + { + IsFullScreen = isFullscreen; + + if (isFullscreen) + { + FramedModeDisplaySize = SinglePageBrowser.GetViewport(); + ScalerOriginalReferenceSize = CanvasScaler.referenceResolution; + + var displaySize = new Vector2Int(Screen.width, Screen.height); + if (displaySize.x > 1920 || displaySize.y > 1080) + { + var ratio = (float)displaySize.x / displaySize.y; + var isWidthRule = displaySize.x > displaySize.y; + if (isWidthRule) + { + displaySize.x = 1920; + displaySize.y = (int)(displaySize.x / ratio); + } + else + { + displaySize.y = 1080; + displaySize.x = (int)(displaySize.y * ratio); + } + } + + FullscreenModeDisplaySize = displaySize; + UpdateSize(displaySize.x, displaySize.y); + } + else + { + UpdateSize(FramedModeDisplaySize.x, FramedModeDisplaySize.y); + } + } + + private void CreateBrowser() + { + BrowserObject = Instantiate(BrowserPrefab); + BrowserObject.name = "XsollaInAppBrowser"; + if (IsDontDestroyOnLoad) + DontDestroyOnLoad(BrowserObject); + + SinglePageBrowser = BrowserObject.GetComponentInChildren(); + SinglePageBrowser.BrowserCloseRequest += OnBrowserCloseRequest; + SinglePageBrowser.AlertDialogEvent += OnAlertDialogEvent; + SinglePageBrowser.ConfirmDialogEvent += OnConfirmDialogEvent; + SinglePageBrowser.ToggleFullscreenRequest += OnToggleFullscreenRequest; + + XsollaBrowser = BrowserObject.GetComponentInChildren(); + XsollaBrowser.Navigate.UrlChangedEvent += OnUrlChanged; + + Display2DBehaviour = BrowserObject.GetComponentInChildren(); + Display2DBehaviour.FirstRedrawFrameCompleteEvent += () => + { + if (IsFullScreen) + { + CanvasScaler.referenceResolution = FullscreenModeDisplaySize; + Display2DBehaviour.renderImage.rectTransform.sizeDelta = FullscreenModeDisplaySize; + } + else + { + CanvasScaler.referenceResolution = ScalerOriginalReferenceSize; + Display2DBehaviour.renderImage.rectTransform.sizeDelta = FramedModeDisplaySize; + } + }; + + CanvasScaler = BrowserObject.GetComponent(); + FramedModeDisplaySize = SinglePageBrowser.GetViewport(); + ScalerOriginalReferenceSize = CanvasScaler.referenceResolution; + } + + private void OnToggleFullscreenRequest() + { + SetFullscreenMode(!IsFullScreen); + } + + private void OnBrowserCloseRequest() + { + if (IsFullScreen) + SetFullscreenMode(false); + else + Close(0, true); + } + + private void OnUrlChanged(IXsollaBrowser browser, string url) + { + UrlChangeEvent?.Invoke(url); + } + + private void OnAlertDialogEvent(string message, Action acceptAction) + { + AlertDialogEvent?.Invoke(message, acceptAction); + } + + private void OnConfirmDialogEvent(string message, Action acceptAction, Action cancelAction) + { + ConfirmDialogEvent?.Invoke(message, acceptAction, cancelAction); + } + } #endif } \ No newline at end of file diff --git a/Assets/Core/Xsolla/Browser/XsollaWebBrowser.cs b/Assets/Core/Xsolla/Browser/XsollaWebBrowser.cs index d48a9784..00f012b5 100644 --- a/Assets/Core/Xsolla/Browser/XsollaWebBrowser.cs +++ b/Assets/Core/Xsolla/Browser/XsollaWebBrowser.cs @@ -1,7 +1,5 @@ -using System; using UnityEngine; #if UNITY_WEBGL || UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX -using System.Runtime.InteropServices; #endif namespace Xsolla.Core @@ -17,23 +15,23 @@ public static IInAppBrowser InAppBrowser #if !(UNITY_EDITOR || UNITY_STANDALONE) return null; #else - if (_inAppBrowser == null) - { - var prefab = Resources.Load(Constants.WEB_BROWSER_RESOURCE_PATH); - if (prefab == null) - { - XDebug.LogError("Prefab InAppBrowser not found in Resources folder."); - } - else - { - var go = Instantiate(prefab); - go.name = "XsollaWebBrowser"; - DontDestroyOnLoad(go); - _inAppBrowser = go.GetComponent(); - } - } + if (_inAppBrowser == null) + { + var prefab = Resources.Load(Constants.WEB_BROWSER_RESOURCE_PATH); + if (prefab == null) + { + XDebug.LogError("Prefab InAppBrowser not found in Resources folder."); + } + else + { + var go = Instantiate(prefab); + go.name = "XsollaWebBrowser"; + DontDestroyOnLoad(go); + _inAppBrowser = go.GetComponent(); + } + } - return _inAppBrowser; + return _inAppBrowser; #endif } } @@ -42,13 +40,15 @@ public static void Open(string url, bool forcePlatformBrowser = false) { XDebug.Log($"WebBrowser. Open url: {url}"); #if UNITY_EDITOR || UNITY_STANDALONE - if (InAppBrowser != null && !forcePlatformBrowser) - { - InAppBrowser.Open(url); - InAppBrowser.AddInitHandler(() => InAppBrowser.UpdateSize(450, 760)); - } - else - Application.OpenURL(url); + if (InAppBrowser != null && !forcePlatformBrowser) + { + InAppBrowser.Open(url); + InAppBrowser.AddInitHandler(() => InAppBrowser.UpdateSize(450, 760)); + } + else + { + Application.OpenURL(url); + } #elif UNITY_WEBGL #pragma warning disable 0618 Application.ExternalEval($"window.open(\"{url}\",\"_blank\")"); diff --git a/Assets/Core/Xsolla/Entities/BrowserCloseInfo.cs b/Assets/Core/Xsolla/Entities/BrowserCloseInfo.cs index 76d8387c..85d174bc 100644 --- a/Assets/Core/Xsolla/Entities/BrowserCloseInfo.cs +++ b/Assets/Core/Xsolla/Entities/BrowserCloseInfo.cs @@ -5,4 +5,4 @@ public class BrowserCloseInfo // Whether the browser is closed manually by a user. public bool isManually; } -} +} \ No newline at end of file diff --git a/Assets/Core/Xsolla/InputProxy/InputProxy.NewSystem.cs b/Assets/Core/Xsolla/InputProxy/InputProxy.NewSystem.cs index 3d89ec5a..d390c9fc 100644 --- a/Assets/Core/Xsolla/InputProxy/InputProxy.NewSystem.cs +++ b/Assets/Core/Xsolla/InputProxy/InputProxy.NewSystem.cs @@ -8,105 +8,102 @@ namespace Xsolla.Core { - public static class InputProxy - { - private static readonly Dictionary Controls; - - public static bool GetKeyDown(KeyCode code) - { - return Controls.ContainsKey(code) && Controls[code].wasPressedThisFrame; - } - - public static bool GetKeyUp(KeyCode code) - { - return Controls.ContainsKey(code) && Controls[code].wasReleasedThisFrame; - } - - public static Vector3 MousePosition - { - get => Mouse.current.position.ReadValue(); - } - - private static void AddKeyboardControls() - { - var keys = Keyboard.current.allKeys.ToList(); - var codes = Enum.GetValues(typeof(KeyCode)).Cast(); - - foreach (var code in codes) - { - var codeName = code.ToString(); - codeName = char.ToLower(codeName[0]) + codeName.Substring(1); - - if (codeName.StartsWith("joystick")) - continue; - - if (codeName.StartsWith("mouse")) - continue; - - if (TryAddKeyControl(code, keys.FirstOrDefault(x => x.name == codeName))) - continue; - - if (codeName.StartsWith("alpha")) - { - var name = codeName.Replace("alpha", string.Empty); - if (TryAddKeyControl(code, keys.FirstOrDefault(x => x.name == name))) - continue; - } - - if (codeName.StartsWith("keypad")) - { - var name = codeName.Replace("keypad", "numpad"); - if (TryAddKeyControl(code, keys.FirstOrDefault(x => x.name == name))) - continue; - } - - TryAddKeyControl(KeyCode.Return, keys.FirstOrDefault(x => x.name == "enter")); - TryAddKeyControl(KeyCode.KeypadEnter, keys.FirstOrDefault(x => x.name == "enter")); - TryAddKeyControl(KeyCode.BackQuote, keys.FirstOrDefault(x => x.name == "backquote")); - - TryAddKeyControl(KeyCode.LeftControl, keys.FirstOrDefault(x => x.name == "leftCtrl")); - TryAddKeyControl(KeyCode.RightControl, keys.FirstOrDefault(x => x.name == "rightCtrl")); - - TryAddKeyControl(KeyCode.LeftCommand, keys.FirstOrDefault(x => x.name == "leftMeta")); - TryAddKeyControl(KeyCode.LeftWindows, keys.FirstOrDefault(x => x.name == "leftMeta")); - TryAddKeyControl(KeyCode.LeftApple, keys.FirstOrDefault(x => x.name == "leftMeta")); - - TryAddKeyControl(KeyCode.RightCommand, keys.FirstOrDefault(x => x.name == "rightMeta")); - TryAddKeyControl(KeyCode.RightWindows, keys.FirstOrDefault(x => x.name == "rightMeta")); - TryAddKeyControl(KeyCode.RightApple, keys.FirstOrDefault(x => x.name == "rightMeta")); - - TryAddKeyControl(KeyCode.Print, keys.FirstOrDefault(x => x.name == "printScreen")); - TryAddKeyControl(KeyCode.Numlock, keys.FirstOrDefault(x => x.name == "numLock")); - TryAddKeyControl(KeyCode.Menu, keys.FirstOrDefault(x => x.name == "contextMenu")); - } - } - - private static void AddMouseControls() - { - TryAddKeyControl(KeyCode.Mouse0, Mouse.current.leftButton); - TryAddKeyControl(KeyCode.Mouse1, Mouse.current.rightButton); - TryAddKeyControl(KeyCode.Mouse2, Mouse.current.middleButton); - } - - private static bool TryAddKeyControl(KeyCode code, ButtonControl control) - { - if (control == null) - return false; - - if (Controls.ContainsKey(code)) - return false; - - Controls.Add(code, control); - return true; - } - - static InputProxy() - { - Controls = new Dictionary(); - AddKeyboardControls(); - AddMouseControls(); - } - } + public static class InputProxy + { + private static readonly Dictionary Controls; + + static InputProxy() + { + Controls = new Dictionary(); + AddKeyboardControls(); + AddMouseControls(); + } + + public static Vector3 MousePosition => Mouse.current.position.ReadValue(); + + public static bool GetKeyDown(KeyCode code) + { + return Controls.ContainsKey(code) && Controls[code].wasPressedThisFrame; + } + + public static bool GetKeyUp(KeyCode code) + { + return Controls.ContainsKey(code) && Controls[code].wasReleasedThisFrame; + } + + private static void AddKeyboardControls() + { + var keys = Keyboard.current.allKeys.ToList(); + var codes = Enum.GetValues(typeof(KeyCode)).Cast(); + + foreach (var code in codes) + { + var codeName = code.ToString(); + codeName = char.ToLower(codeName[0]) + codeName.Substring(1); + + if (codeName.StartsWith("joystick")) + continue; + + if (codeName.StartsWith("mouse")) + continue; + + if (TryAddKeyControl(code, keys.FirstOrDefault(x => x.name == codeName))) + continue; + + if (codeName.StartsWith("alpha")) + { + var name = codeName.Replace("alpha", string.Empty); + if (TryAddKeyControl(code, keys.FirstOrDefault(x => x.name == name))) + continue; + } + + if (codeName.StartsWith("keypad")) + { + var name = codeName.Replace("keypad", "numpad"); + if (TryAddKeyControl(code, keys.FirstOrDefault(x => x.name == name))) + continue; + } + + TryAddKeyControl(KeyCode.Return, keys.FirstOrDefault(x => x.name == "enter")); + TryAddKeyControl(KeyCode.KeypadEnter, keys.FirstOrDefault(x => x.name == "enter")); + TryAddKeyControl(KeyCode.BackQuote, keys.FirstOrDefault(x => x.name == "backquote")); + + TryAddKeyControl(KeyCode.LeftControl, keys.FirstOrDefault(x => x.name == "leftCtrl")); + TryAddKeyControl(KeyCode.RightControl, keys.FirstOrDefault(x => x.name == "rightCtrl")); + + TryAddKeyControl(KeyCode.LeftCommand, keys.FirstOrDefault(x => x.name == "leftMeta")); + TryAddKeyControl(KeyCode.LeftWindows, keys.FirstOrDefault(x => x.name == "leftMeta")); + TryAddKeyControl(KeyCode.LeftApple, keys.FirstOrDefault(x => x.name == "leftMeta")); + + TryAddKeyControl(KeyCode.RightCommand, keys.FirstOrDefault(x => x.name == "rightMeta")); + TryAddKeyControl(KeyCode.RightWindows, keys.FirstOrDefault(x => x.name == "rightMeta")); + TryAddKeyControl(KeyCode.RightApple, keys.FirstOrDefault(x => x.name == "rightMeta")); + + TryAddKeyControl(KeyCode.Print, keys.FirstOrDefault(x => x.name == "printScreen")); + TryAddKeyControl(KeyCode.Numlock, keys.FirstOrDefault(x => x.name == "numLock")); + TryAddKeyControl(KeyCode.Menu, keys.FirstOrDefault(x => x.name == "contextMenu")); + } + } + + private static void AddMouseControls() + { + TryAddKeyControl(KeyCode.Mouse0, Mouse.current.leftButton); + TryAddKeyControl(KeyCode.Mouse1, Mouse.current.rightButton); + TryAddKeyControl(KeyCode.Mouse2, Mouse.current.middleButton); + } + + private static bool TryAddKeyControl(KeyCode code, ButtonControl control) + { + if (control == null) + return false; + + if (Controls.ContainsKey(code)) + return false; + + Controls.Add(code, control); + return true; + } + } } #endif \ No newline at end of file diff --git a/Assets/Runner/Scripts/Spawnable.cs b/Assets/Runner/Scripts/Spawnable.cs index ff2e61a9..25ef41be 100644 --- a/Assets/Runner/Scripts/Spawnable.cs +++ b/Assets/Runner/Scripts/Spawnable.cs @@ -51,7 +51,7 @@ protected virtual void Awake() #if UNITY_EDITOR if (PrefabUtility.IsPartOfNonAssetPrefabInstance(gameObject)) #endif - m_Transform.SetParent(LevelManager.Instance.transform); + m_Transform.SetParent(LevelManager.Instance.transform); } } diff --git a/Assets/Shared/Prefabs/UI/AssetDetailsView.prefab b/Assets/Shared/Prefabs/UI/AssetDetailsView.prefab index c5a1aaff..c42039e9 100644 --- a/Assets/Shared/Prefabs/UI/AssetDetailsView.prefab +++ b/Assets/Shared/Prefabs/UI/AssetDetailsView.prefab @@ -40,8 +40,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 332, y: 0} - m_SizeDelta: {x: 664, y: 0} + m_AnchoredPosition: {x: 347, y: 0} + m_SizeDelta: {x: 694, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &3352626542042760297 MonoBehaviour: @@ -343,8 +343,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 674, y: 0} - m_SizeDelta: {x: 1284, y: 0} + m_AnchoredPosition: {x: 689, y: 0} + m_SizeDelta: {x: 1314, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &252963699134835464 MonoBehaviour: @@ -427,8 +427,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 332, y: 0} - m_SizeDelta: {x: 664, y: 0} + m_AnchoredPosition: {x: 347, y: 0} + m_SizeDelta: {x: 694, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &5193090064696615538 MonoBehaviour: @@ -599,8 +599,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 332, y: 0} - m_SizeDelta: {x: 664, y: 0} + m_AnchoredPosition: {x: 347, y: 0} + m_SizeDelta: {x: 694, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &8160481178246513353 MonoBehaviour: @@ -853,7 +853,7 @@ MonoBehaviour: m_HandleRect: {fileID: 2602276242752267194} m_Direction: 2 m_Value: 1 - m_Size: 0.7972491 + m_Size: 0.8618421 m_NumberOfSteps: 0 m_OnValueChanged: m_PersistentCalls: @@ -2687,8 +2687,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 332, y: 0} - m_SizeDelta: {x: 664, y: 0} + m_AnchoredPosition: {x: 347, y: 0} + m_SizeDelta: {x: 694, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &6037295063887235274 MonoBehaviour: @@ -3877,8 +3877,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 952, y: 0} - m_SizeDelta: {x: 664, y: 0} + m_AnchoredPosition: {x: 967, y: 0} + m_SizeDelta: {x: 694, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!223 &806595924551922813 Canvas: diff --git a/Assets/Shared/Prefabs/UI/InventoryScreen.prefab b/Assets/Shared/Prefabs/UI/InventoryScreen.prefab index 9fb542cf..fc2a3720 100644 --- a/Assets/Shared/Prefabs/UI/InventoryScreen.prefab +++ b/Assets/Shared/Prefabs/UI/InventoryScreen.prefab @@ -136,9 +136,12 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 124898515646383462} - - component: {fileID: 1308100842664201262} + - component: {fileID: 2309112819181697901} + - component: {fileID: 7630345454729826563} + - component: {fileID: 1292714773983510938} + - component: {fileID: 4360933624931449514} m_Layer: 5 - m_Name: Horizontal + m_Name: Card m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -166,7 +169,7 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1308100842664201262 +--- !u!114 &2309112819181697901 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -175,7 +178,7 @@ MonoBehaviour: m_GameObject: {fileID: 998293692609945372} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3} + m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} m_Name: m_EditorClassIdentifier: m_Padding: @@ -183,15 +186,67 @@ MonoBehaviour: m_Right: 20 m_Top: 20 m_Bottom: 20 - m_ChildAlignment: 3 + m_ChildAlignment: 4 m_Spacing: 20 m_ChildForceExpandWidth: 0 - m_ChildForceExpandHeight: 1 + m_ChildForceExpandHeight: 0 m_ChildControlWidth: 1 m_ChildControlHeight: 1 m_ChildScaleWidth: 0 m_ChildScaleHeight: 0 m_ReverseArrangement: 0 +--- !u!222 &7630345454729826563 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 998293692609945372} + m_CullTransparentMesh: 1 +--- !u!114 &1292714773983510938 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 998293692609945372} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.09411765, g: 0.09411765, b: 0.09411765, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &4360933624931449514 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 998293692609945372} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3} + m_Name: + m_EditorClassIdentifier: + radius: 40 + image: {fileID: 1292714773983510938} --- !u!1 &1048792326114649233 GameObject: m_ObjectHideFlags: 0 @@ -838,7 +893,7 @@ GameObject: - component: {fileID: 6046904525841126385} - component: {fileID: 2823423808506140996} - component: {fileID: 2364620168419014579} - - component: {fileID: 2174789502373950655} + - component: {fileID: 6011150636714096262} m_Layer: 5 m_Name: Scroll View m_TagString: Untagged @@ -957,7 +1012,7 @@ MonoBehaviour: m_FlexibleWidth: -1 m_FlexibleHeight: 1 m_LayoutPriority: 1 ---- !u!114 &2174789502373950655 +--- !u!114 &6011150636714096262 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -966,7 +1021,7 @@ MonoBehaviour: m_GameObject: {fileID: 5346749973347251154} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: e274f834c9d5e4bcaab969fc18ec8c61, type: 3} + m_Script: {fileID: 11500000, guid: 75f119064b224bbb941358391ceb37f3, type: 3} m_Name: m_EditorClassIdentifier: m_ScrollRect: {fileID: 2823423808506140996} @@ -984,7 +1039,7 @@ GameObject: - component: {fileID: 5238757583122523125} - component: {fileID: 7316047818373545485} m_Layer: 5 - m_Name: Collection + m_Name: Amount m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -1038,7 +1093,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: Collection + m_text: '-' m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -1072,7 +1127,7 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_HorizontalAlignment: 1 + m_HorizontalAlignment: 2 m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 @@ -1327,14 +1382,14 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 32 - m_fontSizeBase: 32 + m_fontSize: 28 + m_fontSizeBase: 28 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 1 - m_HorizontalAlignment: 1 + m_HorizontalAlignment: 2 m_VerticalAlignment: 512 m_textAlignment: 65535 m_characterSpacing: 0 @@ -1345,7 +1400,7 @@ MonoBehaviour: m_charWidthMaxAdj: 0 m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 - m_overflowMode: 0 + m_overflowMode: 1 m_linkedTextComponent: {fileID: 0} parentLinkedComponent: {fileID: 0} m_enableKerning: 1 @@ -1605,7 +1660,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 300} + m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!223 &7128034387661637353 Canvas: @@ -1682,7 +1737,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_NameText: {fileID: 1004618502816312996} m_TokenIdText: {fileID: 0} - m_CollectionText: {fileID: 7316047818373545485} + m_AmountText: {fileID: 7316047818373545485} m_Image: {fileID: 6397923807468355234} --- !u!222 &2122244342755322900 CanvasRenderer: @@ -1855,7 +1910,7 @@ MonoBehaviour: m_Balance: {fileID: 7413814428584860172} m_AssetObj: {fileID: 9215591978314449373} m_ListParent: {fileID: 3995018089020746221} - m_ScrollView: {fileID: 2174789502373950655} + m_ScrollView: {fileID: 6011150636714096262} m_AddFunds: {fileID: 0} --- !u!1 &9098808456760454047 GameObject: @@ -1866,8 +1921,8 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 3995018089020746221} - - component: {fileID: 5077597802358542606} - component: {fileID: 3968692256837451674} + - component: {fileID: 1219826702581762634} m_Layer: 5 m_Name: List m_TagString: Untagged @@ -1896,7 +1951,7 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 1} ---- !u!114 &5077597802358542606 +--- !u!114 &3968692256837451674 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -1905,24 +1960,12 @@ MonoBehaviour: m_GameObject: {fileID: 9098808456760454047} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3} + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} m_Name: m_EditorClassIdentifier: - m_Padding: - m_Left: 0 - m_Right: 0 - m_Top: 0 - m_Bottom: 0 - m_ChildAlignment: 0 - m_Spacing: 8 - m_ChildForceExpandWidth: 1 - m_ChildForceExpandHeight: 1 - m_ChildControlWidth: 1 - m_ChildControlHeight: 0 - m_ChildScaleWidth: 1 - m_ChildScaleHeight: 0 - m_ReverseArrangement: 0 ---- !u!114 &3968692256837451674 + m_HorizontalFit: 0 + m_VerticalFit: 1 +--- !u!114 &1219826702581762634 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -1931,11 +1974,21 @@ MonoBehaviour: m_GameObject: {fileID: 9098808456760454047} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Script: {fileID: 11500000, guid: 12be5eba2613f4eaab720d437dae2199, type: 3} m_Name: m_EditorClassIdentifier: - m_HorizontalFit: 0 - m_VerticalFit: 1 + m_Padding: + m_Left: 20 + m_Right: 20 + m_Top: 20 + m_Bottom: 20 + m_ChildAlignment: 0 + m_StartCorner: 0 + m_StartAxis: 0 + m_CellSize: {x: 100, y: 500} + m_Spacing: {x: 20, y: 20} + m_Constraint: 1 + m_ConstraintCount: 4 --- !u!1001 &182049691359175541 PrefabInstance: m_ObjectHideFlags: 0 @@ -2312,8 +2365,8 @@ MonoBehaviour: m_IgnoreLayout: 0 m_MinWidth: -1 m_MinHeight: -1 - m_PreferredWidth: 250 - m_PreferredHeight: 250 + m_PreferredWidth: 300 + m_PreferredHeight: 300 m_FlexibleWidth: -1 m_FlexibleHeight: -1 m_LayoutPriority: 1 @@ -2327,17 +2380,17 @@ PrefabInstance: - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 15.63 objectReference: {fileID: 0} - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} @@ -2347,7 +2400,7 @@ PrefabInstance: - target: {fileID: 2838428771016816845, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -20 objectReference: {fileID: 0} - target: {fileID: 2910761123095850727, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} @@ -2357,22 +2410,22 @@ PrefabInstance: - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 109.07 objectReference: {fileID: 0} - target: {fileID: 4174385919738700553, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -20 objectReference: {fileID: 0} - target: {fileID: 4440215232704856282, guid: df2ad67e481ca43feb8579d2885cb381, type: 3} diff --git a/Assets/Shared/Scripts/AutoExpandGridLayoutGroup.cs b/Assets/Shared/Scripts/AutoExpandGridLayoutGroup.cs index de70bbcc..d7487cb1 100644 --- a/Assets/Shared/Scripts/AutoExpandGridLayoutGroup.cs +++ b/Assets/Shared/Scripts/AutoExpandGridLayoutGroup.cs @@ -115,6 +115,7 @@ public override void CalculateLayoutInputVertical() var minRows = 0; if (m_Constraint == Constraint.FixedColumnCount) { + minRows = Mathf.CeilToInt(rectChildren.Count / (float)m_ConstraintCount - 0.001f); } else if (m_Constraint == Constraint.FixedRowCount) diff --git a/Assets/Shared/Scripts/ClickableView.cs b/Assets/Shared/Scripts/ClickableView.cs index b7b27783..627c3c65 100644 --- a/Assets/Shared/Scripts/ClickableView.cs +++ b/Assets/Shared/Scripts/ClickableView.cs @@ -1,22 +1,51 @@ using UnityEngine; using UnityEngine.EventSystems; +using UnityEngine.UI; namespace HyperCasual.Runner { - public class ClickableView : MonoBehaviour + public class ClickableView : MonoBehaviour, IPointerClickHandler, IBeginDragHandler, IDragHandler, IEndDragHandler { public delegate void OnClickAction(); public event OnClickAction OnClick; + private ScrollRect m_ParentScrollRect; + private bool m_IsDragging; + + private void Awake() + { + m_ParentScrollRect = GetComponentInParent(); + } + public void ClearAllSubscribers() { OnClick = null; } - public void OnPointerClick(BaseEventData eventData) + public void OnPointerClick(PointerEventData eventData) + { + if (!m_IsDragging) + { + OnClick?.Invoke(); + } + } + + public void OnBeginDrag(PointerEventData eventData) + { + m_IsDragging = true; + m_ParentScrollRect?.OnBeginDrag(eventData); + } + + public void OnDrag(PointerEventData eventData) + { + m_ParentScrollRect?.OnDrag(eventData); + } + + public void OnEndDrag(PointerEventData eventData) { - OnClick?.Invoke(); + m_IsDragging = false; + m_ParentScrollRect?.OnEndDrag(eventData); } } } \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs index 21ed8fde..e3ec97bd 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Api/SearchApi.cs @@ -311,7 +311,7 @@ public SearchApi(string basePath) new Immutable.Search.Client.Configuration { BasePath = basePath } ); this.ApiClient = new Immutable.Search.Client.ApiClient(this.Configuration.BasePath); - this.Client = this.ApiClient; + this.Client = this.ApiClient; this.AsynchronousClient = this.ApiClient; this.ExceptionFactory = Immutable.Search.Client.Configuration.DefaultExceptionFactory; } diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs index 5d3796e9..9ecd4902 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ApiClient.cs @@ -84,7 +84,7 @@ public string Serialize(object obj) public T Deserialize(UnityWebRequest request) { - var result = (T)Deserialize(request, typeof(T)); + var result = (T) Deserialize(request, typeof(T)); return result; } @@ -148,7 +148,7 @@ internal object Deserialize(UnityWebRequest request, Type type) throw new ApiException((int)request.responseCode, request.error, text); } } - + if (type != typeof(global::System.Object) && request.responseCode >= 200 && request.responseCode < 300) { throw new UnexpectedResponseException(request, type); @@ -333,16 +333,16 @@ private UnityWebRequest NewRequest( if (options.Cookies != null && options.Cookies.Count > 0) { -#if UNITY_WEBGL + #if UNITY_WEBGL throw new System.InvalidOperationException("UnityWebRequest does not support setting cookies in WebGL"); -#else + #else if (options.Cookies.Count != 1) { UnityEngine.Debug.LogError("Only one cookie supported, ignoring others"); } request.SetRequestHeader("Cookie", options.Cookies[0].ToString()); -#endif + #endif } return request; @@ -354,7 +354,7 @@ private UnityWebRequest NewRequest( private ApiResponse ToApiResponse(UnityWebRequest request, object responseData) { - T result = (T)responseData; + T result = (T) responseData; var transformed = new ApiResponse((HttpStatusCode)request.responseCode, new Multimap(), result, request.downloadHandler?.text ?? "") { @@ -418,7 +418,7 @@ private async Task> ExecAsync( { await tsc.Task; } - + if (request.result == UnityWebRequest.Result.ConnectionError || request.result == UnityWebRequest.Result.DataProcessingError) { @@ -430,11 +430,11 @@ private async Task> ExecAsync( // if the response type is oneOf/anyOf, call FromJSON to deserialize the data if (typeof(Immutable.Search.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) { - responseData = (T)typeof(T).GetMethod("FromJson").Invoke(null, new object[] { new ByteArrayContent(request.downloadHandler.data) }); + responseData = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { new ByteArrayContent(request.downloadHandler.data) }); } else if (typeof(T).Name == "Stream") // for binary response { - responseData = (T)(object)new MemoryStream(request.downloadHandler.data); + responseData = (T) (object) new MemoryStream(request.downloadHandler.data); } InterceptResponse(request, path, options, configuration, ref responseData); diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs index 159add8b..9404748b 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/ClientUtils.cs @@ -58,15 +58,13 @@ public static Multimap ParameterToMultiMap(string collectionForm } else if (value is IDictionary dictionary) { - if (collectionFormat == "deepObject") - { + if(collectionFormat == "deepObject") { foreach (DictionaryEntry entry in dictionary) { parameters.Add(name + "[" + entry.Key + "]", ParameterToString(entry.Value)); } } - else - { + else { foreach (DictionaryEntry entry in dictionary) { parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); @@ -105,8 +103,7 @@ public static string ParameterToString(object obj, IReadableConfiguration config return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is bool boolean) return boolean ? "true" : "false"; - if (obj is ICollection collection) - { + if (obj is ICollection collection) { List entries = new List(); foreach (var entry in collection) entries.Add(ParameterToString(entry, configuration)); @@ -226,7 +223,7 @@ private static bool HasEnumMemberAttrValue(object enumVal) var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType().FirstOrDefault(); if (attr != null) return true; - return false; + return false; } /// diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs index 92ba34d1..1be54412 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/Configuration.cs @@ -196,7 +196,7 @@ public Configuration( /// /// Gets or sets the base path for API access. /// - public virtual string BasePath + public virtual string BasePath { get { return _basePath; } set { _basePath = value; } @@ -534,7 +534,7 @@ private string GetServerUrl(IList> servers, return url; } - + /// /// Gets and Sets the RemoteCertificateValidationCallback /// @@ -551,7 +551,7 @@ public static string ToDebugReport() { string report = "C# SDK (Immutable.Search) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; - report += " .NET Framework Version: " + System.Environment.Version + "\n"; + report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 1.0\n"; report += " SDK Package Version: 1.0.0\n"; diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs index d12b579c..546c9c9e 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Client/WebRequestPathBuilder.cs @@ -18,37 +18,37 @@ namespace Immutable.Search.Client /// class WebRequestPathBuilder { - private string _baseUrl; - private string _path; - private string _query = "?"; - public WebRequestPathBuilder(string baseUrl, string path) - { - _baseUrl = baseUrl; - _path = path; - } + private string _baseUrl; + private string _path; + private string _query = "?"; + public WebRequestPathBuilder(string baseUrl, string path) + { + _baseUrl = baseUrl; + _path = path; + } - public void AddPathParameters(Dictionary parameters) - { - foreach (var parameter in parameters) + public void AddPathParameters(Dictionary parameters) { - _path = _path.Replace("{" + parameter.Key + "}", Uri.EscapeDataString(parameter.Value)); + foreach (var parameter in parameters) + { + _path = _path.Replace("{" + parameter.Key + "}", Uri.EscapeDataString(parameter.Value)); + } } - } - public void AddQueryParameters(Multimap parameters) - { - foreach (var parameter in parameters) + public void AddQueryParameters(Multimap parameters) { - foreach (var value in parameter.Value) + foreach (var parameter in parameters) { - _query = _query + parameter.Key + "=" + Uri.EscapeDataString(value) + "&"; + foreach (var value in parameter.Value) + { + _query = _query + parameter.Key + "=" + Uri.EscapeDataString(value) + "&"; + } } } - } - public string GetFullUri() - { - return _baseUrl + _path + _query.Substring(0, _query.Length - 1); - } + public string GetFullUri() + { + return _baseUrl + _path + _query.Substring(0, _query.Length - 1); + } } } diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs index 294a68aa..255895e9 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/NFTMetadataAttributeValue.cs @@ -41,7 +41,7 @@ public partial class NFTMetadataAttributeValue : AbstractOpenAPISchema public NFTMetadataAttributeValue(string actualInstance) { this.IsNullable = false; - this.SchemaType = "oneOf"; + this.SchemaType= "oneOf"; this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } @@ -53,7 +53,7 @@ public NFTMetadataAttributeValue(string actualInstance) public NFTMetadataAttributeValue(decimal actualInstance) { this.IsNullable = false; - this.SchemaType = "oneOf"; + this.SchemaType= "oneOf"; this.ActualInstance = actualInstance; } @@ -65,7 +65,7 @@ public NFTMetadataAttributeValue(decimal actualInstance) public NFTMetadataAttributeValue(bool actualInstance) { this.IsNullable = false; - this.SchemaType = "oneOf"; + this.SchemaType= "oneOf"; this.ActualInstance = actualInstance; } @@ -271,13 +271,13 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s /// The object converted from the JSON string public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - switch (reader.TokenType) + switch(reader.TokenType) { - case JsonToken.String: + case JsonToken.String: return new NFTMetadataAttributeValue(Convert.ToString(reader.Value)); - case JsonToken.Float: + case JsonToken.Float: return new NFTMetadataAttributeValue(Convert.ToDecimal(reader.Value)); - case JsonToken.Boolean: + case JsonToken.Boolean: return new NFTMetadataAttributeValue(Convert.ToBoolean(reader.Value)); case JsonToken.StartObject: return NFTMetadataAttributeValue.FromJson(JObject.Load(reader).ToString(Formatting.None)); diff --git a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs index e9c3edf5..834857b5 100644 --- a/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs +++ b/Assets/Shared/Scripts/Data/API/Search/src/Immutable.Search/Model/PriceDetailsToken.cs @@ -41,7 +41,7 @@ public partial class PriceDetailsToken : AbstractOpenAPISchema public PriceDetailsToken(NativeToken actualInstance) { this.IsNullable = false; - this.SchemaType = "oneOf"; + this.SchemaType= "oneOf"; this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } @@ -53,7 +53,7 @@ public PriceDetailsToken(NativeToken actualInstance) public PriceDetailsToken(ERC20Token actualInstance) { this.IsNullable = false; - this.SchemaType = "oneOf"; + this.SchemaType= "oneOf"; this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } @@ -225,7 +225,7 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s /// The object converted from the JSON string public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - switch (reader.TokenType) + switch(reader.TokenType) { case JsonToken.StartObject: return PriceDetailsToken.FromJson(JObject.Load(reader).ToString(Formatting.None)); diff --git a/Assets/Shared/Scripts/Data/API/Ts.meta b/Assets/Shared/Scripts/Data/API/Ts.meta deleted file mode 100644 index 3a2ef089..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9fb44a74b77d44208b0526e510d62210 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Shared/Scripts/Data/API/Ts/.gitignore b/Assets/Shared/Scripts/Data/API/Ts/.gitignore deleted file mode 100644 index 1ee53850..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/.gitignore +++ /dev/null @@ -1,362 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Mono auto generated files -mono_crash.* - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Ww][Ii][Nn]32/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ -[Ll]ogs/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUnit -*.VisualState.xml -TestResult.xml -nunit-*.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# ASP.NET Scaffolding -ScaffoldingReadMe.txt - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Coverlet is a free, cross platform Code Coverage Tool -coverage*.json -coverage*.xml -coverage*.info - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# NuGet Symbol Packages -*.snupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx -*.appxbundle -*.appxupload - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser -*- [Bb]ackup.rdl -*- [Bb]ackup ([0-9]).rdl -*- [Bb]ackup ([0-9][0-9]).rdl - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb - -# Backup folder for Package Reference Convert tool in Visual Studio 2017 -MigrationBackup/ - -# Ionide (cross platform F# VS Code tools) working folder -.ionide/ - -# Fody - auto-generated XML schema -FodyWeavers.xsd diff --git a/Assets/Shared/Scripts/Data/API/Ts/.openapi-generator-ignore b/Assets/Shared/Scripts/Data/API/Ts/.openapi-generator-ignore deleted file mode 100644 index 7484ee59..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/Assets/Shared/Scripts/Data/API/Ts/.openapi-generator/FILES b/Assets/Shared/Scripts/Data/API/Ts/.openapi-generator/FILES deleted file mode 100644 index 7505e85e..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/.openapi-generator/FILES +++ /dev/null @@ -1,190 +0,0 @@ -.gitignore -.openapi-generator-ignore -README.md -api/openapi.yaml -docs/Action.md -docs/BigNumberish.md -docs/CancellationType.md -docs/CancelledOrderStatusCancellationType.md -docs/DefaultApi.md -docs/ERC1155Item.md -docs/ERC20Item.md -docs/ERC721Item.md -docs/Fee.md -docs/FeeType.md -docs/FeeValue.md -docs/ItemType.md -docs/NativeItem.md -docs/Order.md -docs/OrderChain.md -docs/OrderComponents.md -docs/OrderComponentsConsiderationInner.md -docs/OrderComponentsOfferInner.md -docs/OrderFillStatus.md -docs/OrderProtocolData.md -docs/OrderStatus.md -docs/OrderStatusOneOf.md -docs/OrderStatusOneOf1.md -docs/OrderStatusOneOf2.md -docs/OrderStatusOneOf3.md -docs/OrderStatusOneOf4.md -docs/OrderStatusOneOf5.md -docs/OrderType.md -docs/RecordStringTypedDataFieldValueInner.md -docs/SignableAction.md -docs/SignableActionMessage.md -docs/SignablePurpose.md -docs/TransactionAction.md -docs/TransactionActionPopulatedTransactions.md -docs/TransactionActionPopulatedTransactionsAccessListInner.md -docs/TransactionPurpose.md -docs/TypedDataDomain.md -docs/V1HeartbeatGet200Response.md -docs/V1TsSdkOrderbookCancelOrdersOnChainPost200Response.md -docs/V1TsSdkOrderbookCancelOrdersOnChainPostRequest.md -docs/V1TsSdkOrderbookCancelOrdersPost200Response.md -docs/V1TsSdkOrderbookCancelOrdersPost200ResponseResult.md -docs/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.md -docs/V1TsSdkOrderbookCancelOrdersPostRequest.md -docs/V1TsSdkOrderbookCreateListingPost200Response.md -docs/V1TsSdkOrderbookCreateListingPostRequest.md -docs/V1TsSdkOrderbookFulfillOrderPost200Response.md -docs/V1TsSdkOrderbookFulfillOrderPostRequest.md -docs/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.md -docs/V1TsSdkOrderbookPrepareListingPost200Response.md -docs/V1TsSdkOrderbookPrepareListingPostRequest.md -docs/V1TsSdkOrderbookPrepareListingPostRequestBuy.md -docs/V1TsSdkOrderbookPrepareListingPostRequestSell.md -docs/V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.md -docs/V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.md -git_push.sh -src/Immutable.Ts.Test/Api/DefaultApiTests.cs -src/Immutable.Ts.Test/Immutable.Ts.Test.asmdef -src/Immutable.Ts.Test/Model/ActionTests.cs -src/Immutable.Ts.Test/Model/BigNumberishTests.cs -src/Immutable.Ts.Test/Model/CancellationTypeTests.cs -src/Immutable.Ts.Test/Model/CancelledOrderStatusCancellationTypeTests.cs -src/Immutable.Ts.Test/Model/ERC1155ItemTests.cs -src/Immutable.Ts.Test/Model/ERC20ItemTests.cs -src/Immutable.Ts.Test/Model/ERC721ItemTests.cs -src/Immutable.Ts.Test/Model/FeeTests.cs -src/Immutable.Ts.Test/Model/FeeTypeTests.cs -src/Immutable.Ts.Test/Model/FeeValueTests.cs -src/Immutable.Ts.Test/Model/ItemTypeTests.cs -src/Immutable.Ts.Test/Model/NativeItemTests.cs -src/Immutable.Ts.Test/Model/OrderChainTests.cs -src/Immutable.Ts.Test/Model/OrderComponentsConsiderationInnerTests.cs -src/Immutable.Ts.Test/Model/OrderComponentsOfferInnerTests.cs -src/Immutable.Ts.Test/Model/OrderComponentsTests.cs -src/Immutable.Ts.Test/Model/OrderFillStatusTests.cs -src/Immutable.Ts.Test/Model/OrderProtocolDataTests.cs -src/Immutable.Ts.Test/Model/OrderStatusOneOf1Tests.cs -src/Immutable.Ts.Test/Model/OrderStatusOneOf2Tests.cs -src/Immutable.Ts.Test/Model/OrderStatusOneOf3Tests.cs -src/Immutable.Ts.Test/Model/OrderStatusOneOf4Tests.cs -src/Immutable.Ts.Test/Model/OrderStatusOneOf5Tests.cs -src/Immutable.Ts.Test/Model/OrderStatusOneOfTests.cs -src/Immutable.Ts.Test/Model/OrderStatusTests.cs -src/Immutable.Ts.Test/Model/OrderTests.cs -src/Immutable.Ts.Test/Model/OrderTypeTests.cs -src/Immutable.Ts.Test/Model/RecordStringTypedDataFieldValueInnerTests.cs -src/Immutable.Ts.Test/Model/SignableActionMessageTests.cs -src/Immutable.Ts.Test/Model/SignableActionTests.cs -src/Immutable.Ts.Test/Model/SignablePurposeTests.cs -src/Immutable.Ts.Test/Model/TransactionActionPopulatedTransactionsAccessListInnerTests.cs -src/Immutable.Ts.Test/Model/TransactionActionPopulatedTransactionsTests.cs -src/Immutable.Ts.Test/Model/TransactionActionTests.cs -src/Immutable.Ts.Test/Model/TransactionPurposeTests.cs -src/Immutable.Ts.Test/Model/TypedDataDomainTests.cs -src/Immutable.Ts.Test/Model/V1HeartbeatGet200ResponseTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookCancelOrdersOnChainPost200ResponseTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookCancelOrdersOnChainPostRequestTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInnerTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResultTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookCancelOrdersPostRequestTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookCreateListingPost200ResponseTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookCreateListingPostRequestTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookFulfillOrderPost200ResponseTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInnerTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookFulfillOrderPostRequestTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookPrepareListingPost200ResponseTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookPrepareListingPostRequestBuyTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookPrepareListingPostRequestSellTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookPrepareListingPostRequestTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookPrepareOrderCancellationsPost200ResponseTests.cs -src/Immutable.Ts.Test/Model/V1TsSdkOrderbookPrepareOrderCancellationsPostRequestTests.cs -src/Immutable.Ts/Api/DefaultApi.cs -src/Immutable.Ts/Client/ApiClient.cs -src/Immutable.Ts/Client/ApiException.cs -src/Immutable.Ts/Client/ApiResponse.cs -src/Immutable.Ts/Client/ClientUtils.cs -src/Immutable.Ts/Client/Configuration.cs -src/Immutable.Ts/Client/ConnectionException.cs -src/Immutable.Ts/Client/ExceptionFactory.cs -src/Immutable.Ts/Client/GlobalConfiguration.cs -src/Immutable.Ts/Client/IApiAccessor.cs -src/Immutable.Ts/Client/IAsynchronousClient.cs -src/Immutable.Ts/Client/IReadableConfiguration.cs -src/Immutable.Ts/Client/ISynchronousClient.cs -src/Immutable.Ts/Client/Multimap.cs -src/Immutable.Ts/Client/OpenAPIDateConverter.cs -src/Immutable.Ts/Client/RequestOptions.cs -src/Immutable.Ts/Client/UnexpectedResponseException.cs -src/Immutable.Ts/Client/WebRequestPathBuilder.cs -src/Immutable.Ts/Immutable.Ts.asmdef -src/Immutable.Ts/Model/AbstractOpenAPISchema.cs -src/Immutable.Ts/Model/Action.cs -src/Immutable.Ts/Model/BigNumberish.cs -src/Immutable.Ts/Model/CancellationType.cs -src/Immutable.Ts/Model/CancelledOrderStatusCancellationType.cs -src/Immutable.Ts/Model/ERC1155Item.cs -src/Immutable.Ts/Model/ERC20Item.cs -src/Immutable.Ts/Model/ERC721Item.cs -src/Immutable.Ts/Model/Fee.cs -src/Immutable.Ts/Model/FeeType.cs -src/Immutable.Ts/Model/FeeValue.cs -src/Immutable.Ts/Model/ItemType.cs -src/Immutable.Ts/Model/NativeItem.cs -src/Immutable.Ts/Model/Order.cs -src/Immutable.Ts/Model/OrderChain.cs -src/Immutable.Ts/Model/OrderComponents.cs -src/Immutable.Ts/Model/OrderComponentsConsiderationInner.cs -src/Immutable.Ts/Model/OrderComponentsOfferInner.cs -src/Immutable.Ts/Model/OrderFillStatus.cs -src/Immutable.Ts/Model/OrderProtocolData.cs -src/Immutable.Ts/Model/OrderStatus.cs -src/Immutable.Ts/Model/OrderStatusOneOf.cs -src/Immutable.Ts/Model/OrderStatusOneOf1.cs -src/Immutable.Ts/Model/OrderStatusOneOf2.cs -src/Immutable.Ts/Model/OrderStatusOneOf3.cs -src/Immutable.Ts/Model/OrderStatusOneOf4.cs -src/Immutable.Ts/Model/OrderStatusOneOf5.cs -src/Immutable.Ts/Model/OrderType.cs -src/Immutable.Ts/Model/RecordStringTypedDataFieldValueInner.cs -src/Immutable.Ts/Model/SignableAction.cs -src/Immutable.Ts/Model/SignableActionMessage.cs -src/Immutable.Ts/Model/SignablePurpose.cs -src/Immutable.Ts/Model/TransactionAction.cs -src/Immutable.Ts/Model/TransactionActionPopulatedTransactions.cs -src/Immutable.Ts/Model/TransactionActionPopulatedTransactionsAccessListInner.cs -src/Immutable.Ts/Model/TransactionPurpose.cs -src/Immutable.Ts/Model/TypedDataDomain.cs -src/Immutable.Ts/Model/V1HeartbeatGet200Response.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersOnChainPost200Response.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersOnChainPostRequest.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200Response.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResult.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPostRequest.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookCreateListingPost200Response.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookCreateListingPostRequest.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPost200Response.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPostRequest.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPost200Response.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequest.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequestBuy.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequestSell.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.cs -src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.cs diff --git a/Assets/Shared/Scripts/Data/API/Ts/.openapi-generator/VERSION b/Assets/Shared/Scripts/Data/API/Ts/.openapi-generator/VERSION deleted file mode 100644 index 09a6d308..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.8.0 diff --git a/Assets/Shared/Scripts/Data/API/Ts/README.md b/Assets/Shared/Scripts/Data/API/Ts/README.md deleted file mode 100644 index 6093bf78..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/README.md +++ /dev/null @@ -1,165 +0,0 @@ -# Immutable.Ts - the C# library for the TS SDK API - -running ts sdk as an api - -This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 1.0.0 -- SDK version: 1.0.0 -- Generator version: 7.8.0 -- Build package: org.openapitools.codegen.languages.CSharpClientCodegen - For more information, please visit [https://immutable.com](https://immutable.com) - - -## Version support -This generator should support all current LTS versions of Unity -- Unity 2020.3 (LTS) and up -- .NET Standard 2.1 / .NET Framework - - -## Dependencies - -- [Newtonsoft.Json](https://docs.unity3d.com/Packages/com.unity.nuget.newtonsoft-json@3.0/manual/index.html) - 3.0.2 or later -- [Unity Test Framework](https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/index.html) - 1.1.33 or later - - -## Installation -Add the dependencies to `Packages/manifest.json` -``` -{ - "dependencies": { - ... - "com.unity.nuget.newtonsoft-json": "3.0.2", - "com.unity.test-framework": "1.1.33", - } -} -``` - -Then use the namespaces: -```csharp -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; -``` - - -## Getting Started - -```csharp -using System; -using System.Collections.Generic; -using UnityEngine; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; - -namespace Immutable.TsExample -{ - - public class V1HeartbeatGetExample : MonoBehaviour - { - async void Start() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new DefaultApi(config); - - try - { - V1HeartbeatGet200Response result = await apiInstance.V1HeartbeatGetAsync(); - Debug.Log(result); - Debug.Log("Done!"); - } - catch (ApiException e) - { - Debug.LogError("Exception when calling DefaultApi.V1HeartbeatGet: " + e.Message ); - Debug.LogError("Status Code: "+ e.ErrorCode); - Debug.LogError(e.StackTrace); - } - - } - } -} -``` - - -## Documentation for API Endpoints - -All URIs are relative to *https://api.immutable.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*DefaultApi* | [**V1HeartbeatGet**](DefaultApi.md#v1heartbeatget) | **GET** /v1/heartbeat | -*DefaultApi* | [**V1HeartbeatHead**](DefaultApi.md#v1heartbeathead) | **HEAD** /v1/heartbeat | -*DefaultApi* | [**V1TsSdkOrderbookCancelOrdersOnChainPost**](DefaultApi.md#v1tssdkorderbookcancelordersonchainpost) | **POST** /v1/ts-sdk/orderbook/cancelOrdersOnChain | -*DefaultApi* | [**V1TsSdkOrderbookCancelOrdersPost**](DefaultApi.md#v1tssdkorderbookcancelorderspost) | **POST** /v1/ts-sdk/orderbook/cancelOrders | -*DefaultApi* | [**V1TsSdkOrderbookCreateListingPost**](DefaultApi.md#v1tssdkorderbookcreatelistingpost) | **POST** /v1/ts-sdk/orderbook/createListing | -*DefaultApi* | [**V1TsSdkOrderbookFulfillOrderPost**](DefaultApi.md#v1tssdkorderbookfulfillorderpost) | **POST** /v1/ts-sdk/orderbook/fulfillOrder | -*DefaultApi* | [**V1TsSdkOrderbookPrepareListingPost**](DefaultApi.md#v1tssdkorderbookpreparelistingpost) | **POST** /v1/ts-sdk/orderbook/prepareListing | -*DefaultApi* | [**V1TsSdkOrderbookPrepareOrderCancellationsPost**](DefaultApi.md#v1tssdkorderbookprepareordercancellationspost) | **POST** /v1/ts-sdk/orderbook/prepareOrderCancellations | - - - -## Documentation for Models - - - [Model.Action](Action.md) - - [Model.BigNumberish](BigNumberish.md) - - [Model.CancellationType](CancellationType.md) - - [Model.CancelledOrderStatusCancellationType](CancelledOrderStatusCancellationType.md) - - [Model.ERC1155Item](ERC1155Item.md) - - [Model.ERC20Item](ERC20Item.md) - - [Model.ERC721Item](ERC721Item.md) - - [Model.Fee](Fee.md) - - [Model.FeeType](FeeType.md) - - [Model.FeeValue](FeeValue.md) - - [Model.ItemType](ItemType.md) - - [Model.NativeItem](NativeItem.md) - - [Model.Order](Order.md) - - [Model.OrderChain](OrderChain.md) - - [Model.OrderComponents](OrderComponents.md) - - [Model.OrderComponentsConsiderationInner](OrderComponentsConsiderationInner.md) - - [Model.OrderComponentsOfferInner](OrderComponentsOfferInner.md) - - [Model.OrderFillStatus](OrderFillStatus.md) - - [Model.OrderProtocolData](OrderProtocolData.md) - - [Model.OrderStatus](OrderStatus.md) - - [Model.OrderStatusOneOf](OrderStatusOneOf.md) - - [Model.OrderStatusOneOf1](OrderStatusOneOf1.md) - - [Model.OrderStatusOneOf2](OrderStatusOneOf2.md) - - [Model.OrderStatusOneOf3](OrderStatusOneOf3.md) - - [Model.OrderStatusOneOf4](OrderStatusOneOf4.md) - - [Model.OrderStatusOneOf5](OrderStatusOneOf5.md) - - [Model.OrderType](OrderType.md) - - [Model.RecordStringTypedDataFieldValueInner](RecordStringTypedDataFieldValueInner.md) - - [Model.SignableAction](SignableAction.md) - - [Model.SignableActionMessage](SignableActionMessage.md) - - [Model.SignablePurpose](SignablePurpose.md) - - [Model.TransactionAction](TransactionAction.md) - - [Model.TransactionActionPopulatedTransactions](TransactionActionPopulatedTransactions.md) - - [Model.TransactionActionPopulatedTransactionsAccessListInner](TransactionActionPopulatedTransactionsAccessListInner.md) - - [Model.TransactionPurpose](TransactionPurpose.md) - - [Model.TypedDataDomain](TypedDataDomain.md) - - [Model.V1HeartbeatGet200Response](V1HeartbeatGet200Response.md) - - [Model.V1TsSdkOrderbookCancelOrdersOnChainPost200Response](V1TsSdkOrderbookCancelOrdersOnChainPost200Response.md) - - [Model.V1TsSdkOrderbookCancelOrdersOnChainPostRequest](V1TsSdkOrderbookCancelOrdersOnChainPostRequest.md) - - [Model.V1TsSdkOrderbookCancelOrdersPost200Response](V1TsSdkOrderbookCancelOrdersPost200Response.md) - - [Model.V1TsSdkOrderbookCancelOrdersPost200ResponseResult](V1TsSdkOrderbookCancelOrdersPost200ResponseResult.md) - - [Model.V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner](V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.md) - - [Model.V1TsSdkOrderbookCancelOrdersPostRequest](V1TsSdkOrderbookCancelOrdersPostRequest.md) - - [Model.V1TsSdkOrderbookCreateListingPost200Response](V1TsSdkOrderbookCreateListingPost200Response.md) - - [Model.V1TsSdkOrderbookCreateListingPostRequest](V1TsSdkOrderbookCreateListingPostRequest.md) - - [Model.V1TsSdkOrderbookFulfillOrderPost200Response](V1TsSdkOrderbookFulfillOrderPost200Response.md) - - [Model.V1TsSdkOrderbookFulfillOrderPostRequest](V1TsSdkOrderbookFulfillOrderPostRequest.md) - - [Model.V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner](V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.md) - - [Model.V1TsSdkOrderbookPrepareListingPost200Response](V1TsSdkOrderbookPrepareListingPost200Response.md) - - [Model.V1TsSdkOrderbookPrepareListingPostRequest](V1TsSdkOrderbookPrepareListingPostRequest.md) - - [Model.V1TsSdkOrderbookPrepareListingPostRequestBuy](V1TsSdkOrderbookPrepareListingPostRequestBuy.md) - - [Model.V1TsSdkOrderbookPrepareListingPostRequestSell](V1TsSdkOrderbookPrepareListingPostRequestSell.md) - - [Model.V1TsSdkOrderbookPrepareOrderCancellationsPost200Response](V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.md) - - [Model.V1TsSdkOrderbookPrepareOrderCancellationsPostRequest](V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.md) - - - -## Documentation for Authorization - -Endpoints do not require authorization. - diff --git a/Assets/Shared/Scripts/Data/API/Ts/api/openapi.yaml b/Assets/Shared/Scripts/Data/API/Ts/api/openapi.yaml deleted file mode 100644 index 2b83ab18..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/api/openapi.yaml +++ /dev/null @@ -1,1375 +0,0 @@ -openapi: 3.0.3 -info: - contact: - email: contact@immutable.com - name: Support - url: https://immutable.com - description: running ts sdk as an api - title: TS SDK API - version: 1.0.0 -servers: -- description: Production Server - url: https://api.immutable.com -- description: Sandbox Server - url: https://api.sandbox.immutable.com -tags: -- name: ts sdk api -paths: - /v1/heartbeat: - get: - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_heartbeat_get_200_response' - description: heartbeat - head: - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_heartbeat_get_200_response' - description: heartbeat - /v1/ts-sdk/orderbook/cancelOrders: - post: - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_cancelOrders_post_request' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_cancelOrders_post_200_response' - description: Response schema for the cancelOrder endpoint - /v1/ts-sdk/orderbook/cancelOrdersOnChain: - post: - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_cancelOrdersOnChain_post_request' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_cancelOrdersOnChain_post_200_response' - description: Response schema for the cancelOrder endpoint - /v1/ts-sdk/orderbook/createListing: - post: - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_createListing_post_request' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_createListing_post_200_response' - description: The response schema for the create listing endpoint - /v1/ts-sdk/orderbook/fulfillOrder: - post: - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_fulfillOrder_post_request' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_fulfillOrder_post_200_response' - description: Response schema for the fulfillOrder endpoint - /v1/ts-sdk/orderbook/prepareListing: - post: - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_prepareListing_post_request' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_prepareListing_post_200_response' - description: Response schema for the prepareListing endpoint - /v1/ts-sdk/orderbook/prepareOrderCancellations: - post: - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_prepareOrderCancellations_post_request' - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_prepareOrderCancellations_post_200_response' - description: Response schema for the prepareOrderCancellations endpoint -components: - schemas: - ERC1155Item: - example: - amount: amount - tokenId: tokenId - contractAddress: contractAddress - type: ERC1155 - properties: - amount: - type: string - contractAddress: - type: string - tokenId: - type: string - type: - enum: - - ERC1155 - type: string - required: - - amount - - contractAddress - - tokenId - - type - type: object - ERC20Item: - example: - amount: amount - contractAddress: contractAddress - type: ERC20 - properties: - amount: - type: string - contractAddress: - type: string - type: - enum: - - ERC20 - type: string - required: - - amount - - contractAddress - - type - type: object - ERC721Item: - properties: - contractAddress: - type: string - tokenId: - type: string - type: - enum: - - ERC721 - type: string - required: - - contractAddress - - tokenId - - type - type: object - NativeItem: - properties: - amount: - type: string - type: - enum: - - NATIVE - type: string - required: - - amount - - type - type: object - Action: - oneOf: - - $ref: '#/components/schemas/TransactionAction' - - $ref: '#/components/schemas/SignableAction' - BigNumber: - type: string - BytesLike: - type: string - ItemType: - enum: - - 0 - - 1 - - 2 - - 3 - - 4 - - 5 - type: number - OrderComponents: - example: - offer: - - itemType: null - startAmount: startAmount - identifierOrCriteria: identifierOrCriteria - endAmount: endAmount - token: token - - itemType: null - startAmount: startAmount - identifierOrCriteria: identifierOrCriteria - endAmount: endAmount - token: token - orderType: 6.027456183070403 - salt: salt - zoneHash: zoneHash - zone: zone - conduitKey: conduitKey - offerer: offerer - consideration: - - itemType: 0.8008281904610115 - startAmount: startAmount - identifierOrCriteria: identifierOrCriteria - recipient: recipient - endAmount: endAmount - token: token - - itemType: 0.8008281904610115 - startAmount: startAmount - identifierOrCriteria: identifierOrCriteria - recipient: recipient - endAmount: endAmount - token: token - startTime: startTime - endTime: endTime - totalOriginalConsiderationItems: totalOriginalConsiderationItems - counter: counter - properties: - conduitKey: - type: string - consideration: - items: - $ref: '#/components/schemas/OrderComponents_consideration_inner' - type: array - endTime: - type: string - offer: - items: - $ref: '#/components/schemas/OrderComponents_offer_inner' - type: array - offerer: - type: string - orderType: - $ref: '#/components/schemas/OrderType' - salt: - type: string - startTime: - type: string - totalOriginalConsiderationItems: - type: string - zone: - type: string - zoneHash: - type: string - counter: - type: string - required: - - conduitKey - - consideration - - counter - - endTime - - offer - - offerer - - orderType - - salt - - startTime - - totalOriginalConsiderationItems - - zone - - zoneHash - type: object - OrderType: - enum: - - 0 - - 1 - - 2 - - 3 - type: number - RecordStringTypedDataField: - additionalProperties: - items: - $ref: '#/components/schemas/RecordStringTypedDataField_value_inner' - type: array - type: object - RecordStringAny: - additionalProperties: true - type: object - SignableAction: - example: - purpose: CREATE_LISTING - message: - types: - key: - - name: name - type: type - - name: name - type: type - primaryType: primaryType - domain: - salt: salt - chainId: chainId - name: name - version: version - verifyingContract: verifyingContract - message: - key: "" - type: SIGNABLE - properties: - message: - $ref: '#/components/schemas/SignableAction_message' - purpose: - $ref: '#/components/schemas/SignablePurpose' - type: - enum: - - SIGNABLE - type: string - required: - - type - type: object - SignablePurpose: - enum: - - CREATE_LISTING - - OFF_CHAIN_CANCELLATION - type: string - TransactionAction: - example: - populatedTransactions: - data: data - accessList: - - address: address - storageKeys: - - storageKeys - - storageKeys - - address: address - storageKeys: - - storageKeys - - storageKeys - customData: - key: "" - type: 1.4658129805029452 - nonce: 0.8008281904610115 - gasLimit: gasLimit - chainId: 6.027456183070403 - maxPriorityFeePerGas: maxPriorityFeePerGas - from: from - to: to - maxFeePerGas: maxFeePerGas - value: value - gasPrice: gasPrice - ccipReadEnabled: true - purpose: APPROVAL - type: TRANSACTION - properties: - populatedTransactions: - $ref: '#/components/schemas/TransactionAction_populatedTransactions' - purpose: - $ref: '#/components/schemas/TransactionPurpose' - type: - enum: - - TRANSACTION - type: string - required: - - type - type: object - TransactionPurpose: - enum: - - APPROVAL - - FULFILL_ORDER - - CANCEL - type: string - TypedDataDomain: - example: - salt: salt - chainId: chainId - name: name - version: version - verifyingContract: verifyingContract - properties: - chainId: - type: string - name: - type: string - salt: - type: string - verifyingContract: - type: string - version: - type: string - type: object - BigNumberish: - description: Any type that can be used where a big number is needed. - oneOf: - - type: string - - type: number - FeeValue: - properties: - amount: - type: string - recipientAddress: - type: string - required: - - amount - - recipientAddress - type: object - CancellationType: - description: Whether the cancellation was done on-chain or off-chain or as a - result of an underfunded account - enum: - - ON_CHAIN - - OFF_CHAIN - - UNDERFUNDED - type: string - Fee: - example: - amount: amount - recipientAddress: recipientAddress - type: MAKER_ECOSYSTEM - properties: - amount: - type: string - recipientAddress: - type: string - type: - $ref: '#/components/schemas/FeeType' - type: object - FeeType: - enum: - - MAKER_ECOSYSTEM - - TAKER_ECOSYSTEM - - PROTOCOL - - ROYALTY - type: string - Order: - example: - chain: - name: name - id: id - fees: - - amount: amount - recipientAddress: recipientAddress - type: MAKER_ECOSYSTEM - - amount: amount - recipientAddress: recipientAddress - type: MAKER_ECOSYSTEM - salt: salt - accountAddress: accountAddress - signature: signature - buy: - - amount: amount - contractAddress: contractAddress - type: ERC20 - - amount: amount - contractAddress: contractAddress - type: ERC20 - sell: - - amount: amount - tokenId: tokenId - contractAddress: contractAddress - type: ERC1155 - - amount: amount - tokenId: tokenId - contractAddress: contractAddress - type: ERC1155 - endAt: endAt - type: LISTING - createdAt: createdAt - fillStatus: - denominator: denominator - numerator: numerator - protocolData: - seaportVersion: seaportVersion - orderType: FULL_RESTRICTED - counter: counter - zoneAddress: zoneAddress - seaportAddress: seaportAddress - id: id - startAt: startAt - orderHash: orderHash - status: - name: ACTIVE - updatedAt: updatedAt - properties: - accountAddress: - type: string - buy: - items: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_prepareListing_post_request_buy' - type: array - chain: - $ref: '#/components/schemas/Order_chain' - createdAt: - type: string - endAt: - description: Time after which the Order is expired - type: string - fees: - items: - $ref: '#/components/schemas/Fee' - type: array - fillStatus: - $ref: '#/components/schemas/Order_fillStatus' - id: - type: string - orderHash: - type: string - protocolData: - $ref: '#/components/schemas/Order_protocolData' - salt: - type: string - sell: - items: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_prepareListing_post_request_sell' - type: array - signature: - type: string - startAt: - description: Time after which the Order is considered active - type: string - status: - $ref: '#/components/schemas/OrderStatus' - type: - enum: - - LISTING - type: string - updatedAt: - type: string - required: - - id - - orderHash - - sell - - signature - - startAt - - status - - type - - updatedAt - type: object - OrderStatus: - description: The Order status - oneOf: - - $ref: '#/components/schemas/OrderStatus_oneOf' - - $ref: '#/components/schemas/OrderStatus_oneOf_1' - - $ref: '#/components/schemas/OrderStatus_oneOf_2' - - $ref: '#/components/schemas/OrderStatus_oneOf_3' - - $ref: '#/components/schemas/OrderStatus_oneOf_4' - - $ref: '#/components/schemas/OrderStatus_oneOf_5' - CancelledOrderStatusCancellationType: - description: Whether the cancellation was done on-chain or off-chain or as a - result of an underfunded account - enum: - - ON_CHAIN - - OFF_CHAIN - - UNDERFUNDED - type: string - _v1_heartbeat_get_200_response: - additionalProperties: true - description: heartbeat - example: - status: status - properties: - status: - type: string - type: object - _v1_ts_sdk_orderbook_cancelOrders_post_request: - properties: - orderIds: - items: - type: string - type: array - accountAddress: - type: string - signature: - type: string - required: - - accountAddress - - orderIds - - signature - type: object - _v1_ts_sdk_orderbook_cancelOrders_post_200_response_result_failed_cancellations_inner: - example: - reason_code: FILLED - order: order - properties: - order: - description: ID of the order which failed to be cancelled - type: string - reason_code: - description: Reason code indicating why the order failed to be cancelled - enum: - - FILLED - type: string - type: object - _v1_ts_sdk_orderbook_cancelOrders_post_200_response_result: - example: - failed_cancellations: - - reason_code: FILLED - order: order - - reason_code: FILLED - order: order - successful_cancellations: - - successful_cancellations - - successful_cancellations - pending_cancellations: - - pending_cancellations - - pending_cancellations - properties: - failed_cancellations: - description: Orders which failed to be cancelled - items: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_cancelOrders_post_200_response_result_failed_cancellations_inner' - type: array - pending_cancellations: - description: Orders which are marked for cancellation but the cancellation - cannot be guaranteed - items: - type: string - type: array - successful_cancellations: - description: Orders which were successfully cancelled - items: - type: string - type: array - type: object - _v1_ts_sdk_orderbook_cancelOrders_post_200_response: - description: Response schema for the cancelOrder endpoint - example: - result: - failed_cancellations: - - reason_code: FILLED - order: order - - reason_code: FILLED - order: order - successful_cancellations: - - successful_cancellations - - successful_cancellations - pending_cancellations: - - pending_cancellations - - pending_cancellations - properties: - result: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_cancelOrders_post_200_response_result' - type: object - _v1_ts_sdk_orderbook_cancelOrdersOnChain_post_request: - properties: - orderIds: - items: - type: string - type: array - accountAddress: - type: string - required: - - accountAddress - - orderIds - type: object - _v1_ts_sdk_orderbook_cancelOrdersOnChain_post_200_response: - description: Response schema for the cancelOrder endpoint - example: - cancellationAction: - populatedTransactions: - data: data - accessList: - - address: address - storageKeys: - - storageKeys - - storageKeys - - address: address - storageKeys: - - storageKeys - - storageKeys - customData: - key: "" - type: 1.4658129805029452 - nonce: 0.8008281904610115 - gasLimit: gasLimit - chainId: 6.027456183070403 - maxPriorityFeePerGas: maxPriorityFeePerGas - from: from - to: to - maxFeePerGas: maxFeePerGas - value: value - gasPrice: gasPrice - ccipReadEnabled: true - purpose: APPROVAL - type: TRANSACTION - properties: - cancellationAction: - $ref: '#/components/schemas/TransactionAction' - type: object - _v1_ts_sdk_orderbook_createListing_post_request: - properties: - makerFees: - items: - $ref: '#/components/schemas/FeeValue' - type: array - orderComponents: - $ref: '#/components/schemas/OrderComponents' - orderHash: - type: string - orderSignature: - type: string - required: - - makerFees - - orderComponents - - orderHash - - orderSignature - type: object - _v1_ts_sdk_orderbook_createListing_post_200_response: - description: The response schema for the create listing endpoint - example: - result: - chain: - name: name - id: id - fees: - - amount: amount - recipientAddress: recipientAddress - type: MAKER_ECOSYSTEM - - amount: amount - recipientAddress: recipientAddress - type: MAKER_ECOSYSTEM - salt: salt - accountAddress: accountAddress - signature: signature - buy: - - amount: amount - contractAddress: contractAddress - type: ERC20 - - amount: amount - contractAddress: contractAddress - type: ERC20 - sell: - - amount: amount - tokenId: tokenId - contractAddress: contractAddress - type: ERC1155 - - amount: amount - tokenId: tokenId - contractAddress: contractAddress - type: ERC1155 - endAt: endAt - type: LISTING - createdAt: createdAt - fillStatus: - denominator: denominator - numerator: numerator - protocolData: - seaportVersion: seaportVersion - orderType: FULL_RESTRICTED - counter: counter - zoneAddress: zoneAddress - seaportAddress: seaportAddress - id: id - startAt: startAt - orderHash: orderHash - status: - name: ACTIVE - updatedAt: updatedAt - properties: - result: - $ref: '#/components/schemas/Order' - type: object - _v1_ts_sdk_orderbook_fulfillOrder_post_request_takerFees_inner: - properties: - amount: - type: string - recipientAddress: - type: string - required: - - amount - - recipientAddress - type: object - _v1_ts_sdk_orderbook_fulfillOrder_post_request: - properties: - listingId: - description: listingId - type: string - takerAddress: - description: takerAddress - type: string - takerFees: - description: takerFees - items: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_fulfillOrder_post_request_takerFees_inner' - type: array - amountToFill: - description: amountToFill - type: string - required: - - listingId - - takerAddress - - takerFees - type: object - _v1_ts_sdk_orderbook_fulfillOrder_post_200_response: - description: Response schema for the fulfillOrder endpoint - example: - expiration: expiration - actions: - - populatedTransactions: - data: data - accessList: - - address: address - storageKeys: - - storageKeys - - storageKeys - - address: address - storageKeys: - - storageKeys - - storageKeys - customData: - key: "" - type: 1.4658129805029452 - nonce: 0.8008281904610115 - gasLimit: gasLimit - chainId: 6.027456183070403 - maxPriorityFeePerGas: maxPriorityFeePerGas - from: from - to: to - maxFeePerGas: maxFeePerGas - value: value - gasPrice: gasPrice - ccipReadEnabled: true - purpose: APPROVAL - type: TRANSACTION - - populatedTransactions: - data: data - accessList: - - address: address - storageKeys: - - storageKeys - - storageKeys - - address: address - storageKeys: - - storageKeys - - storageKeys - customData: - key: "" - type: 1.4658129805029452 - nonce: 0.8008281904610115 - gasLimit: gasLimit - chainId: 6.027456183070403 - maxPriorityFeePerGas: maxPriorityFeePerGas - from: from - to: to - maxFeePerGas: maxFeePerGas - value: value - gasPrice: gasPrice - ccipReadEnabled: true - purpose: APPROVAL - type: TRANSACTION - order: - chain: - name: name - id: id - fees: - - amount: amount - recipientAddress: recipientAddress - type: MAKER_ECOSYSTEM - - amount: amount - recipientAddress: recipientAddress - type: MAKER_ECOSYSTEM - salt: salt - accountAddress: accountAddress - signature: signature - buy: - - amount: amount - contractAddress: contractAddress - type: ERC20 - - amount: amount - contractAddress: contractAddress - type: ERC20 - sell: - - amount: amount - tokenId: tokenId - contractAddress: contractAddress - type: ERC1155 - - amount: amount - tokenId: tokenId - contractAddress: contractAddress - type: ERC1155 - endAt: endAt - type: LISTING - createdAt: createdAt - fillStatus: - denominator: denominator - numerator: numerator - protocolData: - seaportVersion: seaportVersion - orderType: FULL_RESTRICTED - counter: counter - zoneAddress: zoneAddress - seaportAddress: seaportAddress - id: id - startAt: startAt - orderHash: orderHash - status: - name: ACTIVE - updatedAt: updatedAt - properties: - actions: - items: - $ref: '#/components/schemas/TransactionAction' - type: array - expiration: - description: |- - User MUST submit the fulfillment transaction before the expiration - Submitting after the expiration will result in a on chain revert - type: string - order: - $ref: '#/components/schemas/Order' - type: object - _v1_ts_sdk_orderbook_prepareListing_post_request_buy: - oneOf: - - $ref: '#/components/schemas/ERC20Item' - - $ref: '#/components/schemas/NativeItem' - _v1_ts_sdk_orderbook_prepareListing_post_request_sell: - oneOf: - - $ref: '#/components/schemas/ERC1155Item' - - $ref: '#/components/schemas/ERC721Item' - _v1_ts_sdk_orderbook_prepareListing_post_request: - properties: - buy: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_prepareListing_post_request_buy' - makerAddress: - type: string - orderExpiry: - format: date-time - type: string - sell: - $ref: '#/components/schemas/_v1_ts_sdk_orderbook_prepareListing_post_request_sell' - required: - - buy - - makerAddress - - sell - type: object - _v1_ts_sdk_orderbook_prepareListing_post_200_response: - description: Response schema for the prepareListing endpoint - example: - actions: - - populatedTransactions: - data: data - accessList: - - address: address - storageKeys: - - storageKeys - - storageKeys - - address: address - storageKeys: - - storageKeys - - storageKeys - customData: - key: "" - type: 1.4658129805029452 - nonce: 0.8008281904610115 - gasLimit: gasLimit - chainId: 6.027456183070403 - maxPriorityFeePerGas: maxPriorityFeePerGas - from: from - to: to - maxFeePerGas: maxFeePerGas - value: value - gasPrice: gasPrice - ccipReadEnabled: true - purpose: APPROVAL - type: TRANSACTION - - populatedTransactions: - data: data - accessList: - - address: address - storageKeys: - - storageKeys - - storageKeys - - address: address - storageKeys: - - storageKeys - - storageKeys - customData: - key: "" - type: 1.4658129805029452 - nonce: 0.8008281904610115 - gasLimit: gasLimit - chainId: 6.027456183070403 - maxPriorityFeePerGas: maxPriorityFeePerGas - from: from - to: to - maxFeePerGas: maxFeePerGas - value: value - gasPrice: gasPrice - ccipReadEnabled: true - purpose: APPROVAL - type: TRANSACTION - orderComponents: - offer: - - itemType: null - startAmount: startAmount - identifierOrCriteria: identifierOrCriteria - endAmount: endAmount - token: token - - itemType: null - startAmount: startAmount - identifierOrCriteria: identifierOrCriteria - endAmount: endAmount - token: token - orderType: 6.027456183070403 - salt: salt - zoneHash: zoneHash - zone: zone - conduitKey: conduitKey - offerer: offerer - consideration: - - itemType: 0.8008281904610115 - startAmount: startAmount - identifierOrCriteria: identifierOrCriteria - recipient: recipient - endAmount: endAmount - token: token - - itemType: 0.8008281904610115 - startAmount: startAmount - identifierOrCriteria: identifierOrCriteria - recipient: recipient - endAmount: endAmount - token: token - startTime: startTime - endTime: endTime - totalOriginalConsiderationItems: totalOriginalConsiderationItems - counter: counter - orderHash: orderHash - properties: - actions: - items: - $ref: '#/components/schemas/Action' - type: array - orderComponents: - $ref: '#/components/schemas/OrderComponents' - orderHash: - type: string - required: - - actions - - orderComponents - - orderHash - type: object - _v1_ts_sdk_orderbook_prepareOrderCancellations_post_request: - properties: - orderIds: - items: - type: string - minItems: 1 - type: array - required: - - orderIds - type: object - _v1_ts_sdk_orderbook_prepareOrderCancellations_post_200_response: - description: Response schema for the prepareOrderCancellations endpoint - example: - signableAction: - purpose: CREATE_LISTING - message: - types: - key: - - name: name - type: type - - name: name - type: type - primaryType: primaryType - domain: - salt: salt - chainId: chainId - name: name - version: version - verifyingContract: verifyingContract - message: - key: "" - type: SIGNABLE - properties: - signableAction: - $ref: '#/components/schemas/SignableAction' - type: object - OrderComponents_consideration_inner: - example: - itemType: 0.8008281904610115 - startAmount: startAmount - identifierOrCriteria: identifierOrCriteria - recipient: recipient - endAmount: endAmount - token: token - properties: - endAmount: - type: string - identifierOrCriteria: - type: string - itemType: - $ref: '#/components/schemas/ItemType' - recipient: - type: string - startAmount: - type: string - token: - type: string - required: - - endAmount - - identifierOrCriteria - - itemType - - recipient - - startAmount - - token - type: object - OrderComponents_offer_inner: - example: - itemType: null - startAmount: startAmount - identifierOrCriteria: identifierOrCriteria - endAmount: endAmount - token: token - properties: - endAmount: - type: string - identifierOrCriteria: - type: string - itemType: - $ref: '#/components/schemas/ItemType' - startAmount: - type: string - token: - type: string - required: - - endAmount - - identifierOrCriteria - - itemType - - startAmount - - token - type: object - RecordStringTypedDataField_value_inner: - additionalProperties: false - example: - name: name - type: type - properties: - name: - type: string - type: - type: string - required: - - name - - type - type: object - SignableAction_message: - example: - types: - key: - - name: name - type: type - - name: name - type: type - primaryType: primaryType - domain: - salt: salt - chainId: chainId - name: name - version: version - verifyingContract: verifyingContract - message: - key: "" - properties: - domain: - $ref: '#/components/schemas/TypedDataDomain' - types: - additionalProperties: - items: - $ref: '#/components/schemas/RecordStringTypedDataField_value_inner' - type: array - type: object - message: - additionalProperties: true - type: object - primaryType: - type: string - type: object - TransactionAction_populatedTransactions_accessList_inner: - example: - address: address - storageKeys: - - storageKeys - - storageKeys - properties: - address: - type: string - storageKeys: - items: - type: string - type: array - type: object - TransactionAction_populatedTransactions: - example: - data: data - accessList: - - address: address - storageKeys: - - storageKeys - - storageKeys - - address: address - storageKeys: - - storageKeys - - storageKeys - customData: - key: "" - type: 1.4658129805029452 - nonce: 0.8008281904610115 - gasLimit: gasLimit - chainId: 6.027456183070403 - maxPriorityFeePerGas: maxPriorityFeePerGas - from: from - to: to - maxFeePerGas: maxFeePerGas - value: value - gasPrice: gasPrice - ccipReadEnabled: true - properties: - to: - type: string - from: - type: string - nonce: - type: number - gasLimit: - type: string - gasPrice: - type: string - data: - type: string - value: - type: string - chainId: - type: number - type: - type: number - accessList: - items: - $ref: '#/components/schemas/TransactionAction_populatedTransactions_accessList_inner' - type: array - maxFeePerGas: - type: string - maxPriorityFeePerGas: - type: string - customData: - additionalProperties: true - type: object - ccipReadEnabled: - type: boolean - type: object - Order_chain: - example: - name: name - id: id - properties: - id: - type: string - name: - type: string - type: object - Order_fillStatus: - example: - denominator: denominator - numerator: numerator - properties: - denominator: - type: string - numerator: - type: string - type: object - Order_protocolData: - example: - seaportVersion: seaportVersion - orderType: FULL_RESTRICTED - counter: counter - zoneAddress: zoneAddress - seaportAddress: seaportAddress - properties: - counter: - type: string - orderType: - enum: - - FULL_RESTRICTED - - PARTIAL_RESTRICTED - type: string - seaportAddress: - type: string - seaportVersion: - type: string - zoneAddress: - type: string - type: object - OrderStatus_oneOf: - example: - name: ACTIVE - properties: - name: - description: The order status that indicates an order can be fulfilled. - enum: - - ACTIVE - type: string - type: object - OrderStatus_oneOf_1: - properties: - cancellation_type: - $ref: '#/components/schemas/CancellationType' - name: - description: The order status indicating a order is has been cancelled or - about to be cancelled. - enum: - - CANCELLED - type: string - pending: - description: Whether the cancellation of the order is pending - type: boolean - type: object - OrderStatus_oneOf_2: - properties: - name: - description: A terminal order status indicating that an order cannot be - fulfilled due to expiry. - enum: - - EXPIRED - type: string - type: object - OrderStatus_oneOf_3: - properties: - name: - description: A terminal order status indicating that an order has been fulfilled. - enum: - - FILLED - type: string - type: object - OrderStatus_oneOf_4: - properties: - name: - description: The order status that indicates an order cannot be fulfilled. - enum: - - INACTIVE - type: string - sufficient_approvals: - description: Whether the order offerer has sufficient approvals - type: boolean - sufficient_balances: - description: Whether the order offerer still has sufficient balance to complete - the order - type: boolean - type: object - OrderStatus_oneOf_5: - properties: - evaluated: - description: Whether the order has been evaluated after its creation - type: boolean - name: - description: The order status that indicates the order is yet to be active - due to various reasons. - enum: - - PENDING - type: string - started: - description: Whether the order has reached its specified start time - type: boolean - type: object - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/Action.md b/Assets/Shared/Scripts/Data/API/Ts/docs/Action.md deleted file mode 100644 index 6ffa62ff..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/Action.md +++ /dev/null @@ -1,13 +0,0 @@ -# Immutable.Ts.Model.Action - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PopulatedTransactions** | [**TransactionActionPopulatedTransactions**](TransactionActionPopulatedTransactions.md) | | [optional] -**Purpose** | **SignablePurpose** | | [optional] -**Type** | **string** | | -**Message** | [**SignableActionMessage**](SignableActionMessage.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/BigNumberish.md b/Assets/Shared/Scripts/Data/API/Ts/docs/BigNumberish.md deleted file mode 100644 index d5d70bf8..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/BigNumberish.md +++ /dev/null @@ -1,10 +0,0 @@ -# Immutable.Ts.Model.BigNumberish -Any type that can be used where a big number is needed. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/CancellationType.md b/Assets/Shared/Scripts/Data/API/Ts/docs/CancellationType.md deleted file mode 100644 index 383bc610..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/CancellationType.md +++ /dev/null @@ -1,10 +0,0 @@ -# Immutable.Ts.Model.CancellationType -Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/CancelledOrderStatusCancellationType.md b/Assets/Shared/Scripts/Data/API/Ts/docs/CancelledOrderStatusCancellationType.md deleted file mode 100644 index 02d6889a..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/CancelledOrderStatusCancellationType.md +++ /dev/null @@ -1,10 +0,0 @@ -# Immutable.Ts.Model.CancelledOrderStatusCancellationType -Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/DefaultApi.md b/Assets/Shared/Scripts/Data/API/Ts/docs/DefaultApi.md deleted file mode 100644 index 83690905..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/DefaultApi.md +++ /dev/null @@ -1,701 +0,0 @@ -# Immutable.Ts.Api.DefaultApi - -All URIs are relative to *https://api.immutable.com* - -| Method | HTTP request | Description | -|--------|--------------|-------------| -| [**V1HeartbeatGet**](DefaultApi.md#v1heartbeatget) | **GET** /v1/heartbeat | | -| [**V1HeartbeatHead**](DefaultApi.md#v1heartbeathead) | **HEAD** /v1/heartbeat | | -| [**V1TsSdkOrderbookCancelOrdersOnChainPost**](DefaultApi.md#v1tssdkorderbookcancelordersonchainpost) | **POST** /v1/ts-sdk/orderbook/cancelOrdersOnChain | | -| [**V1TsSdkOrderbookCancelOrdersPost**](DefaultApi.md#v1tssdkorderbookcancelorderspost) | **POST** /v1/ts-sdk/orderbook/cancelOrders | | -| [**V1TsSdkOrderbookCreateListingPost**](DefaultApi.md#v1tssdkorderbookcreatelistingpost) | **POST** /v1/ts-sdk/orderbook/createListing | | -| [**V1TsSdkOrderbookFulfillOrderPost**](DefaultApi.md#v1tssdkorderbookfulfillorderpost) | **POST** /v1/ts-sdk/orderbook/fulfillOrder | | -| [**V1TsSdkOrderbookPrepareListingPost**](DefaultApi.md#v1tssdkorderbookpreparelistingpost) | **POST** /v1/ts-sdk/orderbook/prepareListing | | -| [**V1TsSdkOrderbookPrepareOrderCancellationsPost**](DefaultApi.md#v1tssdkorderbookprepareordercancellationspost) | **POST** /v1/ts-sdk/orderbook/prepareOrderCancellations | | - - -# **V1HeartbeatGet** -> V1HeartbeatGet200Response V1HeartbeatGet () - - - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; - -namespace Example -{ - public class V1HeartbeatGetExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new DefaultApi(config); - - try - { - V1HeartbeatGet200Response result = apiInstance.V1HeartbeatGet(); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling DefaultApi.V1HeartbeatGet: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the V1HeartbeatGetWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - ApiResponse response = apiInstance.V1HeartbeatGetWithHttpInfo(); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling DefaultApi.V1HeartbeatGetWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters -This endpoint does not need any parameter. -### Return type - -[**V1HeartbeatGet200Response**](V1HeartbeatGet200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | heartbeat | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **V1HeartbeatHead** -> V1HeartbeatGet200Response V1HeartbeatHead () - - - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; - -namespace Example -{ - public class V1HeartbeatHeadExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new DefaultApi(config); - - try - { - V1HeartbeatGet200Response result = apiInstance.V1HeartbeatHead(); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling DefaultApi.V1HeartbeatHead: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the V1HeartbeatHeadWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - ApiResponse response = apiInstance.V1HeartbeatHeadWithHttpInfo(); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling DefaultApi.V1HeartbeatHeadWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters -This endpoint does not need any parameter. -### Return type - -[**V1HeartbeatGet200Response**](V1HeartbeatGet200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | heartbeat | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **V1TsSdkOrderbookCancelOrdersOnChainPost** -> V1TsSdkOrderbookCancelOrdersOnChainPost200Response V1TsSdkOrderbookCancelOrdersOnChainPost (V1TsSdkOrderbookCancelOrdersOnChainPostRequest? v1TsSdkOrderbookCancelOrdersOnChainPostRequest = null) - - - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; - -namespace Example -{ - public class V1TsSdkOrderbookCancelOrdersOnChainPostExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new DefaultApi(config); - var v1TsSdkOrderbookCancelOrdersOnChainPostRequest = new V1TsSdkOrderbookCancelOrdersOnChainPostRequest?(); // V1TsSdkOrderbookCancelOrdersOnChainPostRequest? | (optional) - - try - { - V1TsSdkOrderbookCancelOrdersOnChainPost200Response result = apiInstance.V1TsSdkOrderbookCancelOrdersOnChainPost(v1TsSdkOrderbookCancelOrdersOnChainPostRequest); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookCancelOrdersOnChainPost: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the V1TsSdkOrderbookCancelOrdersOnChainPostWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - ApiResponse response = apiInstance.V1TsSdkOrderbookCancelOrdersOnChainPostWithHttpInfo(v1TsSdkOrderbookCancelOrdersOnChainPostRequest); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookCancelOrdersOnChainPostWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **v1TsSdkOrderbookCancelOrdersOnChainPostRequest** | [**V1TsSdkOrderbookCancelOrdersOnChainPostRequest?**](V1TsSdkOrderbookCancelOrdersOnChainPostRequest?.md) | | [optional] | - -### Return type - -[**V1TsSdkOrderbookCancelOrdersOnChainPost200Response**](V1TsSdkOrderbookCancelOrdersOnChainPost200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Response schema for the cancelOrder endpoint | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **V1TsSdkOrderbookCancelOrdersPost** -> V1TsSdkOrderbookCancelOrdersPost200Response V1TsSdkOrderbookCancelOrdersPost (V1TsSdkOrderbookCancelOrdersPostRequest? v1TsSdkOrderbookCancelOrdersPostRequest = null) - - - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; - -namespace Example -{ - public class V1TsSdkOrderbookCancelOrdersPostExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new DefaultApi(config); - var v1TsSdkOrderbookCancelOrdersPostRequest = new V1TsSdkOrderbookCancelOrdersPostRequest?(); // V1TsSdkOrderbookCancelOrdersPostRequest? | (optional) - - try - { - V1TsSdkOrderbookCancelOrdersPost200Response result = apiInstance.V1TsSdkOrderbookCancelOrdersPost(v1TsSdkOrderbookCancelOrdersPostRequest); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookCancelOrdersPost: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the V1TsSdkOrderbookCancelOrdersPostWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - ApiResponse response = apiInstance.V1TsSdkOrderbookCancelOrdersPostWithHttpInfo(v1TsSdkOrderbookCancelOrdersPostRequest); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookCancelOrdersPostWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **v1TsSdkOrderbookCancelOrdersPostRequest** | [**V1TsSdkOrderbookCancelOrdersPostRequest?**](V1TsSdkOrderbookCancelOrdersPostRequest?.md) | | [optional] | - -### Return type - -[**V1TsSdkOrderbookCancelOrdersPost200Response**](V1TsSdkOrderbookCancelOrdersPost200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Response schema for the cancelOrder endpoint | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **V1TsSdkOrderbookCreateListingPost** -> V1TsSdkOrderbookCreateListingPost200Response V1TsSdkOrderbookCreateListingPost (V1TsSdkOrderbookCreateListingPostRequest? v1TsSdkOrderbookCreateListingPostRequest = null) - - - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; - -namespace Example -{ - public class V1TsSdkOrderbookCreateListingPostExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new DefaultApi(config); - var v1TsSdkOrderbookCreateListingPostRequest = new V1TsSdkOrderbookCreateListingPostRequest?(); // V1TsSdkOrderbookCreateListingPostRequest? | (optional) - - try - { - V1TsSdkOrderbookCreateListingPost200Response result = apiInstance.V1TsSdkOrderbookCreateListingPost(v1TsSdkOrderbookCreateListingPostRequest); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookCreateListingPost: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the V1TsSdkOrderbookCreateListingPostWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - ApiResponse response = apiInstance.V1TsSdkOrderbookCreateListingPostWithHttpInfo(v1TsSdkOrderbookCreateListingPostRequest); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookCreateListingPostWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **v1TsSdkOrderbookCreateListingPostRequest** | [**V1TsSdkOrderbookCreateListingPostRequest?**](V1TsSdkOrderbookCreateListingPostRequest?.md) | | [optional] | - -### Return type - -[**V1TsSdkOrderbookCreateListingPost200Response**](V1TsSdkOrderbookCreateListingPost200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | The response schema for the create listing endpoint | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **V1TsSdkOrderbookFulfillOrderPost** -> V1TsSdkOrderbookFulfillOrderPost200Response V1TsSdkOrderbookFulfillOrderPost (V1TsSdkOrderbookFulfillOrderPostRequest? v1TsSdkOrderbookFulfillOrderPostRequest = null) - - - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; - -namespace Example -{ - public class V1TsSdkOrderbookFulfillOrderPostExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new DefaultApi(config); - var v1TsSdkOrderbookFulfillOrderPostRequest = new V1TsSdkOrderbookFulfillOrderPostRequest?(); // V1TsSdkOrderbookFulfillOrderPostRequest? | (optional) - - try - { - V1TsSdkOrderbookFulfillOrderPost200Response result = apiInstance.V1TsSdkOrderbookFulfillOrderPost(v1TsSdkOrderbookFulfillOrderPostRequest); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookFulfillOrderPost: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the V1TsSdkOrderbookFulfillOrderPostWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - ApiResponse response = apiInstance.V1TsSdkOrderbookFulfillOrderPostWithHttpInfo(v1TsSdkOrderbookFulfillOrderPostRequest); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookFulfillOrderPostWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **v1TsSdkOrderbookFulfillOrderPostRequest** | [**V1TsSdkOrderbookFulfillOrderPostRequest?**](V1TsSdkOrderbookFulfillOrderPostRequest?.md) | | [optional] | - -### Return type - -[**V1TsSdkOrderbookFulfillOrderPost200Response**](V1TsSdkOrderbookFulfillOrderPost200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Response schema for the fulfillOrder endpoint | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **V1TsSdkOrderbookPrepareListingPost** -> V1TsSdkOrderbookPrepareListingPost200Response V1TsSdkOrderbookPrepareListingPost (V1TsSdkOrderbookPrepareListingPostRequest? v1TsSdkOrderbookPrepareListingPostRequest = null) - - - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; - -namespace Example -{ - public class V1TsSdkOrderbookPrepareListingPostExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new DefaultApi(config); - var v1TsSdkOrderbookPrepareListingPostRequest = new V1TsSdkOrderbookPrepareListingPostRequest?(); // V1TsSdkOrderbookPrepareListingPostRequest? | (optional) - - try - { - V1TsSdkOrderbookPrepareListingPost200Response result = apiInstance.V1TsSdkOrderbookPrepareListingPost(v1TsSdkOrderbookPrepareListingPostRequest); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookPrepareListingPost: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the V1TsSdkOrderbookPrepareListingPostWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - ApiResponse response = apiInstance.V1TsSdkOrderbookPrepareListingPostWithHttpInfo(v1TsSdkOrderbookPrepareListingPostRequest); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookPrepareListingPostWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **v1TsSdkOrderbookPrepareListingPostRequest** | [**V1TsSdkOrderbookPrepareListingPostRequest?**](V1TsSdkOrderbookPrepareListingPostRequest?.md) | | [optional] | - -### Return type - -[**V1TsSdkOrderbookPrepareListingPost200Response**](V1TsSdkOrderbookPrepareListingPost200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Response schema for the prepareListing endpoint | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **V1TsSdkOrderbookPrepareOrderCancellationsPost** -> V1TsSdkOrderbookPrepareOrderCancellationsPost200Response V1TsSdkOrderbookPrepareOrderCancellationsPost (V1TsSdkOrderbookPrepareOrderCancellationsPostRequest? v1TsSdkOrderbookPrepareOrderCancellationsPostRequest = null) - - - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; - -namespace Example -{ - public class V1TsSdkOrderbookPrepareOrderCancellationsPostExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://api.immutable.com"; - var apiInstance = new DefaultApi(config); - var v1TsSdkOrderbookPrepareOrderCancellationsPostRequest = new V1TsSdkOrderbookPrepareOrderCancellationsPostRequest?(); // V1TsSdkOrderbookPrepareOrderCancellationsPostRequest? | (optional) - - try - { - V1TsSdkOrderbookPrepareOrderCancellationsPost200Response result = apiInstance.V1TsSdkOrderbookPrepareOrderCancellationsPost(v1TsSdkOrderbookPrepareOrderCancellationsPostRequest); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookPrepareOrderCancellationsPost: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the V1TsSdkOrderbookPrepareOrderCancellationsPostWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - ApiResponse response = apiInstance.V1TsSdkOrderbookPrepareOrderCancellationsPostWithHttpInfo(v1TsSdkOrderbookPrepareOrderCancellationsPostRequest); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling DefaultApi.V1TsSdkOrderbookPrepareOrderCancellationsPostWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **v1TsSdkOrderbookPrepareOrderCancellationsPostRequest** | [**V1TsSdkOrderbookPrepareOrderCancellationsPostRequest?**](V1TsSdkOrderbookPrepareOrderCancellationsPostRequest?.md) | | [optional] | - -### Return type - -[**V1TsSdkOrderbookPrepareOrderCancellationsPost200Response**](V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Response schema for the prepareOrderCancellations endpoint | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/ERC1155Item.md b/Assets/Shared/Scripts/Data/API/Ts/docs/ERC1155Item.md deleted file mode 100644 index 96d9c8a9..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/ERC1155Item.md +++ /dev/null @@ -1,13 +0,0 @@ -# Immutable.Ts.Model.ERC1155Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **string** | | -**ContractAddress** | **string** | | -**TokenId** | **string** | | -**Type** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/ERC20Item.md b/Assets/Shared/Scripts/Data/API/Ts/docs/ERC20Item.md deleted file mode 100644 index 16475c08..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/ERC20Item.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.ERC20Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **string** | | -**ContractAddress** | **string** | | -**Type** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/ERC721Item.md b/Assets/Shared/Scripts/Data/API/Ts/docs/ERC721Item.md deleted file mode 100644 index 1b22e956..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/ERC721Item.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.ERC721Item - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ContractAddress** | **string** | | -**TokenId** | **string** | | -**Type** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/Fee.md b/Assets/Shared/Scripts/Data/API/Ts/docs/Fee.md deleted file mode 100644 index b658f5ce..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/Fee.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.Fee - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **string** | | [optional] -**RecipientAddress** | **string** | | [optional] -**Type** | **FeeType** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/FeeType.md b/Assets/Shared/Scripts/Data/API/Ts/docs/FeeType.md deleted file mode 100644 index 2c16322b..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/FeeType.md +++ /dev/null @@ -1,9 +0,0 @@ -# Immutable.Ts.Model.FeeType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/FeeValue.md b/Assets/Shared/Scripts/Data/API/Ts/docs/FeeValue.md deleted file mode 100644 index 2fe9abf4..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/FeeValue.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.FeeValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **string** | | -**RecipientAddress** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/ItemType.md b/Assets/Shared/Scripts/Data/API/Ts/docs/ItemType.md deleted file mode 100644 index e0c96558..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/ItemType.md +++ /dev/null @@ -1,9 +0,0 @@ -# Immutable.Ts.Model.ItemType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/NativeItem.md b/Assets/Shared/Scripts/Data/API/Ts/docs/NativeItem.md deleted file mode 100644 index 465e8194..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/NativeItem.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.NativeItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **string** | | -**Type** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/Order.md b/Assets/Shared/Scripts/Data/API/Ts/docs/Order.md deleted file mode 100644 index 7f3e3c50..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/Order.md +++ /dev/null @@ -1,26 +0,0 @@ -# Immutable.Ts.Model.Order - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountAddress** | **string** | | [optional] -**Buy** | [**List<V1TsSdkOrderbookPrepareListingPostRequestBuy>**](V1TsSdkOrderbookPrepareListingPostRequestBuy.md) | | [optional] -**Chain** | [**OrderChain**](OrderChain.md) | | [optional] -**CreatedAt** | **string** | | [optional] -**EndAt** | **string** | Time after which the Order is expired | [optional] -**Fees** | [**List<Fee>**](Fee.md) | | [optional] -**FillStatus** | [**OrderFillStatus**](OrderFillStatus.md) | | [optional] -**Id** | **string** | | -**OrderHash** | **string** | | -**ProtocolData** | [**OrderProtocolData**](OrderProtocolData.md) | | [optional] -**Salt** | **string** | | [optional] -**Sell** | [**List<V1TsSdkOrderbookPrepareListingPostRequestSell>**](V1TsSdkOrderbookPrepareListingPostRequestSell.md) | | -**Signature** | **string** | | -**StartAt** | **string** | Time after which the Order is considered active | -**Status** | [**OrderStatus**](OrderStatus.md) | | -**Type** | **string** | | -**UpdatedAt** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderChain.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderChain.md deleted file mode 100644 index 144db5ce..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderChain.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.OrderChain - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] -**Name** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponents.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponents.md deleted file mode 100644 index 8805d2d3..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponents.md +++ /dev/null @@ -1,21 +0,0 @@ -# Immutable.Ts.Model.OrderComponents - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ConduitKey** | **string** | | -**Consideration** | [**List<OrderComponentsConsiderationInner>**](OrderComponentsConsiderationInner.md) | | -**EndTime** | **string** | | -**Offer** | [**List<OrderComponentsOfferInner>**](OrderComponentsOfferInner.md) | | -**Offerer** | **string** | | -**OrderType** | **OrderType** | | -**Salt** | **string** | | -**StartTime** | **string** | | -**TotalOriginalConsiderationItems** | **string** | | -**Zone** | **string** | | -**ZoneHash** | **string** | | -**Counter** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponentsConsiderationInner.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponentsConsiderationInner.md deleted file mode 100644 index 6b61d219..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponentsConsiderationInner.md +++ /dev/null @@ -1,15 +0,0 @@ -# Immutable.Ts.Model.OrderComponentsConsiderationInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**EndAmount** | **string** | | -**IdentifierOrCriteria** | **string** | | -**ItemType** | **ItemType** | | -**Recipient** | **string** | | -**StartAmount** | **string** | | -**Token** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponentsOfferInner.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponentsOfferInner.md deleted file mode 100644 index 51c63e12..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderComponentsOfferInner.md +++ /dev/null @@ -1,14 +0,0 @@ -# Immutable.Ts.Model.OrderComponentsOfferInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**EndAmount** | **string** | | -**IdentifierOrCriteria** | **string** | | -**ItemType** | **ItemType** | | -**StartAmount** | **string** | | -**Token** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderFillStatus.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderFillStatus.md deleted file mode 100644 index 1b20ddb6..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderFillStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.OrderFillStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Denominator** | **string** | | [optional] -**Numerator** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderProtocolData.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderProtocolData.md deleted file mode 100644 index 3fbe71e8..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderProtocolData.md +++ /dev/null @@ -1,14 +0,0 @@ -# Immutable.Ts.Model.OrderProtocolData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Counter** | **string** | | [optional] -**OrderType** | **string** | | [optional] -**SeaportAddress** | **string** | | [optional] -**SeaportVersion** | **string** | | [optional] -**ZoneAddress** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatus.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatus.md deleted file mode 100644 index 40b851c1..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatus.md +++ /dev/null @@ -1,17 +0,0 @@ -# Immutable.Ts.Model.OrderStatus -The Order status - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | The order status that indicates the order is yet to be active due to various reasons. | [optional] -**CancellationType** | **CancellationType** | | [optional] -**Pending** | **bool** | Whether the cancellation of the order is pending | [optional] -**SufficientApprovals** | **bool** | Whether the order offerer has sufficient approvals | [optional] -**SufficientBalances** | **bool** | Whether the order offerer still has sufficient balance to complete the order | [optional] -**Evaluated** | **bool** | Whether the order has been evaluated after its creation | [optional] -**Started** | **bool** | Whether the order has reached its specified start time | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf.md deleted file mode 100644 index dde5ebe1..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Immutable.Ts.Model.OrderStatusOneOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | The order status that indicates an order can be fulfilled. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf1.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf1.md deleted file mode 100644 index eada6608..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf1.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.OrderStatusOneOf1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CancellationType** | **CancellationType** | | [optional] -**Name** | **string** | The order status indicating a order is has been cancelled or about to be cancelled. | [optional] -**Pending** | **bool** | Whether the cancellation of the order is pending | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf2.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf2.md deleted file mode 100644 index 9ebd0b52..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf2.md +++ /dev/null @@ -1,10 +0,0 @@ -# Immutable.Ts.Model.OrderStatusOneOf2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | A terminal order status indicating that an order cannot be fulfilled due to expiry. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf3.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf3.md deleted file mode 100644 index d978d5ce..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf3.md +++ /dev/null @@ -1,10 +0,0 @@ -# Immutable.Ts.Model.OrderStatusOneOf3 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | A terminal order status indicating that an order has been fulfilled. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf4.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf4.md deleted file mode 100644 index 0e084ff8..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf4.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.OrderStatusOneOf4 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | The order status that indicates an order cannot be fulfilled. | [optional] -**SufficientApprovals** | **bool** | Whether the order offerer has sufficient approvals | [optional] -**SufficientBalances** | **bool** | Whether the order offerer still has sufficient balance to complete the order | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf5.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf5.md deleted file mode 100644 index c15d3ca9..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderStatusOneOf5.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.OrderStatusOneOf5 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Evaluated** | **bool** | Whether the order has been evaluated after its creation | [optional] -**Name** | **string** | The order status that indicates the order is yet to be active due to various reasons. | [optional] -**Started** | **bool** | Whether the order has reached its specified start time | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderType.md b/Assets/Shared/Scripts/Data/API/Ts/docs/OrderType.md deleted file mode 100644 index ad24e353..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/OrderType.md +++ /dev/null @@ -1,9 +0,0 @@ -# Immutable.Ts.Model.OrderType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/RecordStringTypedDataFieldValueInner.md b/Assets/Shared/Scripts/Data/API/Ts/docs/RecordStringTypedDataFieldValueInner.md deleted file mode 100644 index e794bc34..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/RecordStringTypedDataFieldValueInner.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.RecordStringTypedDataFieldValueInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | -**Type** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/SignableAction.md b/Assets/Shared/Scripts/Data/API/Ts/docs/SignableAction.md deleted file mode 100644 index b64fd897..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/SignableAction.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.SignableAction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Message** | [**SignableActionMessage**](SignableActionMessage.md) | | [optional] -**Purpose** | **SignablePurpose** | | [optional] -**Type** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/SignableActionMessage.md b/Assets/Shared/Scripts/Data/API/Ts/docs/SignableActionMessage.md deleted file mode 100644 index 838de28a..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/SignableActionMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# Immutable.Ts.Model.SignableActionMessage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Domain** | [**TypedDataDomain**](TypedDataDomain.md) | | [optional] -**Types** | **Dictionary<string, List<RecordStringTypedDataFieldValueInner>>** | | [optional] -**Message** | **Dictionary<string, Object>** | | [optional] -**PrimaryType** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/SignablePurpose.md b/Assets/Shared/Scripts/Data/API/Ts/docs/SignablePurpose.md deleted file mode 100644 index 6f69185b..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/SignablePurpose.md +++ /dev/null @@ -1,9 +0,0 @@ -# Immutable.Ts.Model.SignablePurpose - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionAction.md b/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionAction.md deleted file mode 100644 index bff39724..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionAction.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.TransactionAction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PopulatedTransactions** | [**TransactionActionPopulatedTransactions**](TransactionActionPopulatedTransactions.md) | | [optional] -**Purpose** | **TransactionPurpose** | | [optional] -**Type** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionActionPopulatedTransactions.md b/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionActionPopulatedTransactions.md deleted file mode 100644 index da2e36a1..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionActionPopulatedTransactions.md +++ /dev/null @@ -1,23 +0,0 @@ -# Immutable.Ts.Model.TransactionActionPopulatedTransactions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**To** | **string** | | [optional] -**From** | **string** | | [optional] -**Nonce** | **decimal** | | [optional] -**GasLimit** | **string** | | [optional] -**GasPrice** | **string** | | [optional] -**Data** | **string** | | [optional] -**Value** | **string** | | [optional] -**ChainId** | **decimal** | | [optional] -**Type** | **decimal** | | [optional] -**AccessList** | [**List<TransactionActionPopulatedTransactionsAccessListInner>**](TransactionActionPopulatedTransactionsAccessListInner.md) | | [optional] -**MaxFeePerGas** | **string** | | [optional] -**MaxPriorityFeePerGas** | **string** | | [optional] -**CustomData** | **Dictionary<string, Object>** | | [optional] -**CcipReadEnabled** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionActionPopulatedTransactionsAccessListInner.md b/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionActionPopulatedTransactionsAccessListInner.md deleted file mode 100644 index 6ff1ada4..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionActionPopulatedTransactionsAccessListInner.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.TransactionActionPopulatedTransactionsAccessListInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Address** | **string** | | [optional] -**StorageKeys** | **List<string>** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionPurpose.md b/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionPurpose.md deleted file mode 100644 index 7ca62052..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/TransactionPurpose.md +++ /dev/null @@ -1,9 +0,0 @@ -# Immutable.Ts.Model.TransactionPurpose - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/TypedDataDomain.md b/Assets/Shared/Scripts/Data/API/Ts/docs/TypedDataDomain.md deleted file mode 100644 index 4b469d89..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/TypedDataDomain.md +++ /dev/null @@ -1,14 +0,0 @@ -# Immutable.Ts.Model.TypedDataDomain - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ChainId** | **string** | | [optional] -**Name** | **string** | | [optional] -**Salt** | **string** | | [optional] -**VerifyingContract** | **string** | | [optional] -**VarVersion** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1HeartbeatGet200Response.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1HeartbeatGet200Response.md deleted file mode 100644 index 1cd346b5..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1HeartbeatGet200Response.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.V1HeartbeatGet200Response -heartbeat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersOnChainPost200Response.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersOnChainPost200Response.md deleted file mode 100644 index 04b8c128..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersOnChainPost200Response.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookCancelOrdersOnChainPost200Response -Response schema for the cancelOrder endpoint - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CancellationAction** | [**TransactionAction**](TransactionAction.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersOnChainPostRequest.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersOnChainPostRequest.md deleted file mode 100644 index 96fbf2bf..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersOnChainPostRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookCancelOrdersOnChainPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**OrderIds** | **List<string>** | | -**AccountAddress** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200Response.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200Response.md deleted file mode 100644 index 62c157bb..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200Response.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookCancelOrdersPost200Response -Response schema for the cancelOrder endpoint - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Result** | [**V1TsSdkOrderbookCancelOrdersPost200ResponseResult**](V1TsSdkOrderbookCancelOrdersPost200ResponseResult.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200ResponseResult.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200ResponseResult.md deleted file mode 100644 index d5d0f807..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200ResponseResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookCancelOrdersPost200ResponseResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FailedCancellations** | [**List<V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner>**](V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.md) | Orders which failed to be cancelled | [optional] -**PendingCancellations** | **List<string>** | Orders which are marked for cancellation but the cancellation cannot be guaranteed | [optional] -**SuccessfulCancellations** | **List<string>** | Orders which were successfully cancelled | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.md deleted file mode 100644 index 92a431fd..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Order** | **string** | ID of the order which failed to be cancelled | [optional] -**ReasonCode** | **string** | Reason code indicating why the order failed to be cancelled | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPostRequest.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPostRequest.md deleted file mode 100644 index 7f9d650b..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCancelOrdersPostRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookCancelOrdersPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**OrderIds** | **List<string>** | | -**AccountAddress** | **string** | | -**Signature** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCreateListingPost200Response.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCreateListingPost200Response.md deleted file mode 100644 index e3670523..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCreateListingPost200Response.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookCreateListingPost200Response -The response schema for the create listing endpoint - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Result** | [**Order**](Order.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCreateListingPostRequest.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCreateListingPostRequest.md deleted file mode 100644 index 411eebd5..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookCreateListingPostRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookCreateListingPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MakerFees** | [**List<FeeValue>**](FeeValue.md) | | -**OrderComponents** | [**OrderComponents**](OrderComponents.md) | | -**OrderHash** | **string** | | -**OrderSignature** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPost200Response.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPost200Response.md deleted file mode 100644 index 12f8909d..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPost200Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookFulfillOrderPost200Response -Response schema for the fulfillOrder endpoint - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Actions** | [**List<TransactionAction>**](TransactionAction.md) | | [optional] -**Expiration** | **string** | User MUST submit the fulfillment transaction before the expiration Submitting after the expiration will result in a on chain revert | [optional] -**Order** | [**Order**](Order.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPostRequest.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPostRequest.md deleted file mode 100644 index e288f1dc..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPostRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookFulfillOrderPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ListingId** | **string** | listingId | -**TakerAddress** | **string** | takerAddress | -**TakerFees** | [**List<V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner>**](V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.md) | takerFees | -**AmountToFill** | **string** | amountToFill | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.md deleted file mode 100644 index 39e74293..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **string** | | -**RecipientAddress** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPost200Response.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPost200Response.md deleted file mode 100644 index 9191967e..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPost200Response.md +++ /dev/null @@ -1,13 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookPrepareListingPost200Response -Response schema for the prepareListing endpoint - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Actions** | [**List<Action>**](Action.md) | | -**OrderComponents** | [**OrderComponents**](OrderComponents.md) | | -**OrderHash** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequest.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequest.md deleted file mode 100644 index a2697554..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookPrepareListingPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Buy** | [**V1TsSdkOrderbookPrepareListingPostRequestBuy**](V1TsSdkOrderbookPrepareListingPostRequestBuy.md) | | -**MakerAddress** | **string** | | -**OrderExpiry** | **DateTime** | | [optional] -**Sell** | [**V1TsSdkOrderbookPrepareListingPostRequestSell**](V1TsSdkOrderbookPrepareListingPostRequestSell.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequestBuy.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequestBuy.md deleted file mode 100644 index b7450670..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequestBuy.md +++ /dev/null @@ -1,12 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookPrepareListingPostRequestBuy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **string** | | -**ContractAddress** | **string** | | -**Type** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequestSell.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequestSell.md deleted file mode 100644 index 36342b7a..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareListingPostRequestSell.md +++ /dev/null @@ -1,13 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookPrepareListingPostRequestSell - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **string** | | -**ContractAddress** | **string** | | -**TokenId** | **string** | | -**Type** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.md deleted file mode 100644 index 4b1195b0..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.md +++ /dev/null @@ -1,11 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookPrepareOrderCancellationsPost200Response -Response schema for the prepareOrderCancellations endpoint - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SignableAction** | [**SignableAction**](SignableAction.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.md b/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.md deleted file mode 100644 index 981edd0d..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/docs/V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# Immutable.Ts.Model.V1TsSdkOrderbookPrepareOrderCancellationsPostRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**OrderIds** | **List<string>** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/Assets/Shared/Scripts/Data/API/Ts/git_push.sh b/Assets/Shared/Scripts/Data/API/Ts/git_push.sh deleted file mode 100644 index f53a75d4..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/git_push.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=$(git remote) -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Api/DefaultApi.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Api/DefaultApi.cs deleted file mode 100644 index c0a5fd70..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Api/DefaultApi.cs +++ /dev/null @@ -1,1575 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Threading; -using System.Threading.Tasks; -using Immutable.Ts.Client; -using Immutable.Ts.Model; - -namespace Immutable.Ts.Api -{ - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDefaultApiSync : IApiAccessor - { - #region Synchronous Operations - - /// - /// - /// Thrown when fails to make API call - /// V1HeartbeatGet200Response - V1HeartbeatGet200Response V1HeartbeatGet(); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of V1HeartbeatGet200Response - ApiResponse V1HeartbeatGetWithHttpInfo(); - - /// - /// - /// Thrown when fails to make API call - /// V1HeartbeatGet200Response - V1HeartbeatGet200Response V1HeartbeatHead(); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of V1HeartbeatGet200Response - ApiResponse V1HeartbeatHeadWithHttpInfo(); - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookCancelOrdersOnChainPost200Response - V1TsSdkOrderbookCancelOrdersOnChainPost200Response V1TsSdkOrderbookCancelOrdersOnChainPost( - V1TsSdkOrderbookCancelOrdersOnChainPostRequest? v1TsSdkOrderbookCancelOrdersOnChainPostRequest = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookCancelOrdersOnChainPost200Response - ApiResponse - V1TsSdkOrderbookCancelOrdersOnChainPostWithHttpInfo( - V1TsSdkOrderbookCancelOrdersOnChainPostRequest? v1TsSdkOrderbookCancelOrdersOnChainPostRequest = - default); - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookCancelOrdersPost200Response - V1TsSdkOrderbookCancelOrdersPost200Response V1TsSdkOrderbookCancelOrdersPost( - V1TsSdkOrderbookCancelOrdersPostRequest? v1TsSdkOrderbookCancelOrdersPostRequest = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookCancelOrdersPost200Response - ApiResponse V1TsSdkOrderbookCancelOrdersPostWithHttpInfo( - V1TsSdkOrderbookCancelOrdersPostRequest? v1TsSdkOrderbookCancelOrdersPostRequest = default); - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookCreateListingPost200Response - V1TsSdkOrderbookCreateListingPost200Response V1TsSdkOrderbookCreateListingPost( - V1TsSdkOrderbookCreateListingPostRequest? v1TsSdkOrderbookCreateListingPostRequest = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookCreateListingPost200Response - ApiResponse V1TsSdkOrderbookCreateListingPostWithHttpInfo( - V1TsSdkOrderbookCreateListingPostRequest? v1TsSdkOrderbookCreateListingPostRequest = default); - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookFulfillOrderPost200Response - V1TsSdkOrderbookFulfillOrderPost200Response V1TsSdkOrderbookFulfillOrderPost( - V1TsSdkOrderbookFulfillOrderPostRequest? v1TsSdkOrderbookFulfillOrderPostRequest = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookFulfillOrderPost200Response - ApiResponse V1TsSdkOrderbookFulfillOrderPostWithHttpInfo( - V1TsSdkOrderbookFulfillOrderPostRequest? v1TsSdkOrderbookFulfillOrderPostRequest = default); - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookPrepareListingPost200Response - V1TsSdkOrderbookPrepareListingPost200Response V1TsSdkOrderbookPrepareListingPost( - V1TsSdkOrderbookPrepareListingPostRequest? v1TsSdkOrderbookPrepareListingPostRequest = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookPrepareListingPost200Response - ApiResponse V1TsSdkOrderbookPrepareListingPostWithHttpInfo( - V1TsSdkOrderbookPrepareListingPostRequest? v1TsSdkOrderbookPrepareListingPostRequest = default); - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookPrepareOrderCancellationsPost200Response - V1TsSdkOrderbookPrepareOrderCancellationsPost200Response V1TsSdkOrderbookPrepareOrderCancellationsPost( - V1TsSdkOrderbookPrepareOrderCancellationsPostRequest? v1TsSdkOrderbookPrepareOrderCancellationsPostRequest = - default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookPrepareOrderCancellationsPost200Response - ApiResponse - V1TsSdkOrderbookPrepareOrderCancellationsPostWithHttpInfo( - V1TsSdkOrderbookPrepareOrderCancellationsPostRequest? - v1TsSdkOrderbookPrepareOrderCancellationsPostRequest = - default); - - #endregion Synchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDefaultApiAsync : IApiAccessor - { - #region Asynchronous Operations - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Cancellation Token to cancel the request. - /// Task of V1HeartbeatGet200Response - Task V1HeartbeatGetAsync(CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1HeartbeatGet200Response) - Task> V1HeartbeatGetWithHttpInfoAsync( - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Cancellation Token to cancel the request. - /// Task of V1HeartbeatGet200Response - Task V1HeartbeatHeadAsync(CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1HeartbeatGet200Response) - Task> V1HeartbeatHeadWithHttpInfoAsync( - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookCancelOrdersOnChainPost200Response - Task V1TsSdkOrderbookCancelOrdersOnChainPostAsync( - V1TsSdkOrderbookCancelOrdersOnChainPostRequest? v1TsSdkOrderbookCancelOrdersOnChainPostRequest = default, - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookCancelOrdersOnChainPost200Response) - Task> - V1TsSdkOrderbookCancelOrdersOnChainPostWithHttpInfoAsync( - V1TsSdkOrderbookCancelOrdersOnChainPostRequest? v1TsSdkOrderbookCancelOrdersOnChainPostRequest = - default, - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookCancelOrdersPost200Response - Task V1TsSdkOrderbookCancelOrdersPostAsync( - V1TsSdkOrderbookCancelOrdersPostRequest? v1TsSdkOrderbookCancelOrdersPostRequest = default, - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookCancelOrdersPost200Response) - Task> - V1TsSdkOrderbookCancelOrdersPostWithHttpInfoAsync( - V1TsSdkOrderbookCancelOrdersPostRequest? v1TsSdkOrderbookCancelOrdersPostRequest = default, - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookCreateListingPost200Response - Task V1TsSdkOrderbookCreateListingPostAsync( - V1TsSdkOrderbookCreateListingPostRequest? v1TsSdkOrderbookCreateListingPostRequest = default, - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookCreateListingPost200Response) - Task> - V1TsSdkOrderbookCreateListingPostWithHttpInfoAsync( - V1TsSdkOrderbookCreateListingPostRequest? v1TsSdkOrderbookCreateListingPostRequest = default, - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookFulfillOrderPost200Response - Task V1TsSdkOrderbookFulfillOrderPostAsync( - V1TsSdkOrderbookFulfillOrderPostRequest? v1TsSdkOrderbookFulfillOrderPostRequest = default, - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookFulfillOrderPost200Response) - Task> - V1TsSdkOrderbookFulfillOrderPostWithHttpInfoAsync( - V1TsSdkOrderbookFulfillOrderPostRequest? v1TsSdkOrderbookFulfillOrderPostRequest = default, - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookPrepareListingPost200Response - Task V1TsSdkOrderbookPrepareListingPostAsync( - V1TsSdkOrderbookPrepareListingPostRequest? v1TsSdkOrderbookPrepareListingPostRequest = default, - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookPrepareListingPost200Response) - Task> - V1TsSdkOrderbookPrepareListingPostWithHttpInfoAsync( - V1TsSdkOrderbookPrepareListingPostRequest? v1TsSdkOrderbookPrepareListingPostRequest = default, - CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookPrepareOrderCancellationsPost200Response - Task - V1TsSdkOrderbookPrepareOrderCancellationsPostAsync( - V1TsSdkOrderbookPrepareOrderCancellationsPostRequest? - v1TsSdkOrderbookPrepareOrderCancellationsPostRequest = - default, CancellationToken cancellationToken = default); - - /// - /// - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookPrepareOrderCancellationsPost200Response) - Task> - V1TsSdkOrderbookPrepareOrderCancellationsPostWithHttpInfoAsync( - V1TsSdkOrderbookPrepareOrderCancellationsPostRequest? - v1TsSdkOrderbookPrepareOrderCancellationsPostRequest = - default, CancellationToken cancellationToken = default); - - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface IDefaultApi : IDefaultApiSync, IDefaultApiAsync - { - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public class DefaultApi : IDisposable, IDefaultApi - { - private ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. - /// It's better to reuse the - /// - /// HttpClient - /// and HttpClientHandler - /// - /// . - /// - /// - public DefaultApi() : this((string)null) - { - } - - /// - /// Initializes a new instance of the class. - /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. - /// It's better to reuse the - /// - /// HttpClient - /// and HttpClientHandler - /// - /// . - /// - /// The target service's base path in URL format. - /// - /// - public DefaultApi(string basePath) - { - Configuration = Ts.Client.Configuration.MergeConfigurations( - GlobalConfiguration.Instance, - new Configuration { BasePath = basePath } - ); - ApiClient = new ApiClient(Configuration.BasePath); - Client = ApiClient; - AsynchronousClient = ApiClient; - ExceptionFactory = Ts.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class using Configuration object. - /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. - /// It's better to reuse the - /// - /// HttpClient - /// and HttpClientHandler - /// - /// . - /// - /// An instance of Configuration. - /// - /// - public DefaultApi(Configuration configuration) - { - if (configuration == null) throw new ArgumentNullException("configuration"); - - Configuration = Ts.Client.Configuration.MergeConfigurations( - GlobalConfiguration.Instance, - configuration - ); - ApiClient = new ApiClient(Configuration.BasePath); - Client = ApiClient; - AsynchronousClient = ApiClient; - ExceptionFactory = Ts.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using a Configuration object and client instance. - /// - /// The client interface for synchronous API access. - /// The client interface for asynchronous API access. - /// The configuration object. - /// - public DefaultApi(ISynchronousClient client, IAsynchronousClient asyncClient, - IReadableConfiguration configuration) - { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); - - Client = client; - AsynchronousClient = asyncClient; - Configuration = configuration; - ExceptionFactory = Ts.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Holds the ApiClient if created - /// - public ApiClient ApiClient { get; set; } - - /// - /// The client for accessing this underlying API asynchronously. - /// - public IAsynchronousClient AsynchronousClient { get; set; } - - /// - /// The client for accessing this underlying API synchronously. - /// - public ISynchronousClient Client { get; set; } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public string GetBasePath() - { - return Configuration.BasePath; - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public IReadableConfiguration Configuration { get; set; } - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - return _exceptionFactory; - } - set => _exceptionFactory = value; - } - - /// - /// - /// Thrown when fails to make API call - /// V1HeartbeatGet200Response - public V1HeartbeatGet200Response V1HeartbeatGet() - { - var localVarResponse = V1HeartbeatGetWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of V1HeartbeatGet200Response - public ApiResponse V1HeartbeatGetWithHttpInfo() - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - - // make the HTTP request - var localVarResponse = - Client.Get("/v1/heartbeat", localVarRequestOptions, Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1HeartbeatGet", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// Cancellation Token to cancel the request. - /// Task of V1HeartbeatGet200Response - public async Task V1HeartbeatGetAsync(CancellationToken cancellationToken = default) - { - var task = V1HeartbeatGetWithHttpInfoAsync(cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Ts.Client.ApiResponse localVarResponse = await task; -#endif - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1HeartbeatGet200Response) - public async Task> V1HeartbeatGetWithHttpInfoAsync( - CancellationToken cancellationToken = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - - // make the HTTP request - - var task = AsynchronousClient.GetAsync("/v1/heartbeat", localVarRequestOptions, - Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1HeartbeatGet", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// V1HeartbeatGet200Response - public V1HeartbeatGet200Response V1HeartbeatHead() - { - var localVarResponse = V1HeartbeatHeadWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// ApiResponse of V1HeartbeatGet200Response - public ApiResponse V1HeartbeatHeadWithHttpInfo() - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - - // make the HTTP request - var localVarResponse = - Client.Head("/v1/heartbeat", localVarRequestOptions, Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1HeartbeatHead", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// Cancellation Token to cancel the request. - /// Task of V1HeartbeatGet200Response - public async Task V1HeartbeatHeadAsync(CancellationToken cancellationToken = default) - { - var task = V1HeartbeatHeadWithHttpInfoAsync(cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Ts.Client.ApiResponse localVarResponse = await task; -#endif - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1HeartbeatGet200Response) - public async Task> V1HeartbeatHeadWithHttpInfoAsync( - CancellationToken cancellationToken = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - - // make the HTTP request - - var task = AsynchronousClient.HeadAsync("/v1/heartbeat", localVarRequestOptions, - Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1HeartbeatHead", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookCancelOrdersOnChainPost200Response - public V1TsSdkOrderbookCancelOrdersOnChainPost200Response V1TsSdkOrderbookCancelOrdersOnChainPost( - V1TsSdkOrderbookCancelOrdersOnChainPostRequest? v1TsSdkOrderbookCancelOrdersOnChainPostRequest = default) - { - var localVarResponse = - V1TsSdkOrderbookCancelOrdersOnChainPostWithHttpInfo(v1TsSdkOrderbookCancelOrdersOnChainPostRequest); - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookCancelOrdersOnChainPost200Response - public ApiResponse - V1TsSdkOrderbookCancelOrdersOnChainPostWithHttpInfo( - V1TsSdkOrderbookCancelOrdersOnChainPostRequest? v1TsSdkOrderbookCancelOrdersOnChainPostRequest = - default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookCancelOrdersOnChainPostRequest; - - - // make the HTTP request - var localVarResponse = - Client.Post( - "/v1/ts-sdk/orderbook/cancelOrdersOnChain", localVarRequestOptions, Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookCancelOrdersOnChainPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookCancelOrdersOnChainPost200Response - public async Task - V1TsSdkOrderbookCancelOrdersOnChainPostAsync( - V1TsSdkOrderbookCancelOrdersOnChainPostRequest? v1TsSdkOrderbookCancelOrdersOnChainPostRequest = - default, - CancellationToken cancellationToken = default) - { - var task = V1TsSdkOrderbookCancelOrdersOnChainPostWithHttpInfoAsync( - v1TsSdkOrderbookCancelOrdersOnChainPostRequest, cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Ts.Client.ApiResponse localVarResponse = - await task; -#endif - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookCancelOrdersOnChainPost200Response) - public async Task> - V1TsSdkOrderbookCancelOrdersOnChainPostWithHttpInfoAsync( - V1TsSdkOrderbookCancelOrdersOnChainPostRequest? v1TsSdkOrderbookCancelOrdersOnChainPostRequest = - default, - CancellationToken cancellationToken = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookCancelOrdersOnChainPostRequest; - - - // make the HTTP request - - var task = AsynchronousClient.PostAsync( - "/v1/ts-sdk/orderbook/cancelOrdersOnChain", localVarRequestOptions, Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookCancelOrdersOnChainPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookCancelOrdersPost200Response - public V1TsSdkOrderbookCancelOrdersPost200Response V1TsSdkOrderbookCancelOrdersPost( - V1TsSdkOrderbookCancelOrdersPostRequest? v1TsSdkOrderbookCancelOrdersPostRequest = default) - { - var localVarResponse = - V1TsSdkOrderbookCancelOrdersPostWithHttpInfo(v1TsSdkOrderbookCancelOrdersPostRequest); - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookCancelOrdersPost200Response - public ApiResponse V1TsSdkOrderbookCancelOrdersPostWithHttpInfo( - V1TsSdkOrderbookCancelOrdersPostRequest? v1TsSdkOrderbookCancelOrdersPostRequest = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookCancelOrdersPostRequest; - - - // make the HTTP request - var localVarResponse = - Client.Post("/v1/ts-sdk/orderbook/cancelOrders", - localVarRequestOptions, Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookCancelOrdersPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookCancelOrdersPost200Response - public async Task V1TsSdkOrderbookCancelOrdersPostAsync( - V1TsSdkOrderbookCancelOrdersPostRequest? v1TsSdkOrderbookCancelOrdersPostRequest = default, - CancellationToken cancellationToken = default) - { - var task = V1TsSdkOrderbookCancelOrdersPostWithHttpInfoAsync(v1TsSdkOrderbookCancelOrdersPostRequest, - cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Ts.Client.ApiResponse localVarResponse = await task; -#endif - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookCancelOrdersPost200Response) - public async Task> - V1TsSdkOrderbookCancelOrdersPostWithHttpInfoAsync( - V1TsSdkOrderbookCancelOrdersPostRequest? v1TsSdkOrderbookCancelOrdersPostRequest = default, - CancellationToken cancellationToken = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookCancelOrdersPostRequest; - - - // make the HTTP request - - var task = AsynchronousClient.PostAsync( - "/v1/ts-sdk/orderbook/cancelOrders", localVarRequestOptions, Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookCancelOrdersPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookCreateListingPost200Response - public V1TsSdkOrderbookCreateListingPost200Response V1TsSdkOrderbookCreateListingPost( - V1TsSdkOrderbookCreateListingPostRequest? v1TsSdkOrderbookCreateListingPostRequest = default) - { - var localVarResponse = - V1TsSdkOrderbookCreateListingPostWithHttpInfo(v1TsSdkOrderbookCreateListingPostRequest); - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookCreateListingPost200Response - public ApiResponse V1TsSdkOrderbookCreateListingPostWithHttpInfo( - V1TsSdkOrderbookCreateListingPostRequest? v1TsSdkOrderbookCreateListingPostRequest = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookCreateListingPostRequest; - - - // make the HTTP request - var localVarResponse = - Client.Post("/v1/ts-sdk/orderbook/createListing", - localVarRequestOptions, Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookCreateListingPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookCreateListingPost200Response - public async Task V1TsSdkOrderbookCreateListingPostAsync( - V1TsSdkOrderbookCreateListingPostRequest? v1TsSdkOrderbookCreateListingPostRequest = default, - CancellationToken cancellationToken = default) - { - var task = V1TsSdkOrderbookCreateListingPostWithHttpInfoAsync(v1TsSdkOrderbookCreateListingPostRequest, - cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Ts.Client.ApiResponse localVarResponse = await task; -#endif - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookCreateListingPost200Response) - public async Task> - V1TsSdkOrderbookCreateListingPostWithHttpInfoAsync( - V1TsSdkOrderbookCreateListingPostRequest? v1TsSdkOrderbookCreateListingPostRequest = default, - CancellationToken cancellationToken = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookCreateListingPostRequest; - - - // make the HTTP request - - var task = AsynchronousClient.PostAsync( - "/v1/ts-sdk/orderbook/createListing", localVarRequestOptions, Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookCreateListingPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookFulfillOrderPost200Response - public V1TsSdkOrderbookFulfillOrderPost200Response V1TsSdkOrderbookFulfillOrderPost( - V1TsSdkOrderbookFulfillOrderPostRequest? v1TsSdkOrderbookFulfillOrderPostRequest = default) - { - var localVarResponse = - V1TsSdkOrderbookFulfillOrderPostWithHttpInfo(v1TsSdkOrderbookFulfillOrderPostRequest); - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookFulfillOrderPost200Response - public ApiResponse V1TsSdkOrderbookFulfillOrderPostWithHttpInfo( - V1TsSdkOrderbookFulfillOrderPostRequest? v1TsSdkOrderbookFulfillOrderPostRequest = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookFulfillOrderPostRequest; - - - // make the HTTP request - var localVarResponse = - Client.Post("/v1/ts-sdk/orderbook/fulfillOrder", - localVarRequestOptions, Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookFulfillOrderPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookFulfillOrderPost200Response - public async Task V1TsSdkOrderbookFulfillOrderPostAsync( - V1TsSdkOrderbookFulfillOrderPostRequest? v1TsSdkOrderbookFulfillOrderPostRequest = default, - CancellationToken cancellationToken = default) - { - var task = V1TsSdkOrderbookFulfillOrderPostWithHttpInfoAsync(v1TsSdkOrderbookFulfillOrderPostRequest, - cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Ts.Client.ApiResponse localVarResponse = await task; -#endif - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookFulfillOrderPost200Response) - public async Task> - V1TsSdkOrderbookFulfillOrderPostWithHttpInfoAsync( - V1TsSdkOrderbookFulfillOrderPostRequest? v1TsSdkOrderbookFulfillOrderPostRequest = default, - CancellationToken cancellationToken = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookFulfillOrderPostRequest; - - - // make the HTTP request - - var task = AsynchronousClient.PostAsync( - "/v1/ts-sdk/orderbook/fulfillOrder", localVarRequestOptions, Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookFulfillOrderPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookPrepareListingPost200Response - public V1TsSdkOrderbookPrepareListingPost200Response V1TsSdkOrderbookPrepareListingPost( - V1TsSdkOrderbookPrepareListingPostRequest? v1TsSdkOrderbookPrepareListingPostRequest = default) - { - var localVarResponse = - V1TsSdkOrderbookPrepareListingPostWithHttpInfo(v1TsSdkOrderbookPrepareListingPostRequest); - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookPrepareListingPost200Response - public ApiResponse - V1TsSdkOrderbookPrepareListingPostWithHttpInfo( - V1TsSdkOrderbookPrepareListingPostRequest? v1TsSdkOrderbookPrepareListingPostRequest = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookPrepareListingPostRequest; - - - // make the HTTP request - var localVarResponse = - Client.Post("/v1/ts-sdk/orderbook/prepareListing", - localVarRequestOptions, Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookPrepareListingPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookPrepareListingPost200Response - public async Task V1TsSdkOrderbookPrepareListingPostAsync( - V1TsSdkOrderbookPrepareListingPostRequest? v1TsSdkOrderbookPrepareListingPostRequest = default, - CancellationToken cancellationToken = default) - { - var task = V1TsSdkOrderbookPrepareListingPostWithHttpInfoAsync(v1TsSdkOrderbookPrepareListingPostRequest, - cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Ts.Client.ApiResponse localVarResponse = - await task; -#endif - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookPrepareListingPost200Response) - public async Task> - V1TsSdkOrderbookPrepareListingPostWithHttpInfoAsync( - V1TsSdkOrderbookPrepareListingPostRequest? v1TsSdkOrderbookPrepareListingPostRequest = default, - CancellationToken cancellationToken = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookPrepareListingPostRequest; - - - // make the HTTP request - - var task = AsynchronousClient.PostAsync( - "/v1/ts-sdk/orderbook/prepareListing", localVarRequestOptions, Configuration, cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookPrepareListingPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// V1TsSdkOrderbookPrepareOrderCancellationsPost200Response - public V1TsSdkOrderbookPrepareOrderCancellationsPost200Response V1TsSdkOrderbookPrepareOrderCancellationsPost( - V1TsSdkOrderbookPrepareOrderCancellationsPostRequest? v1TsSdkOrderbookPrepareOrderCancellationsPostRequest = - default) - { - var localVarResponse = - V1TsSdkOrderbookPrepareOrderCancellationsPostWithHttpInfo( - v1TsSdkOrderbookPrepareOrderCancellationsPostRequest); - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of V1TsSdkOrderbookPrepareOrderCancellationsPost200Response - public ApiResponse - V1TsSdkOrderbookPrepareOrderCancellationsPostWithHttpInfo( - V1TsSdkOrderbookPrepareOrderCancellationsPostRequest? - v1TsSdkOrderbookPrepareOrderCancellationsPostRequest = - default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookPrepareOrderCancellationsPostRequest; - - - // make the HTTP request - var localVarResponse = - Client.Post( - "/v1/ts-sdk/orderbook/prepareOrderCancellations", localVarRequestOptions, Configuration); - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookPrepareOrderCancellationsPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of V1TsSdkOrderbookPrepareOrderCancellationsPost200Response - public async Task - V1TsSdkOrderbookPrepareOrderCancellationsPostAsync( - V1TsSdkOrderbookPrepareOrderCancellationsPostRequest? - v1TsSdkOrderbookPrepareOrderCancellationsPostRequest = - default, CancellationToken cancellationToken = default) - { - var task = V1TsSdkOrderbookPrepareOrderCancellationsPostWithHttpInfoAsync( - v1TsSdkOrderbookPrepareOrderCancellationsPostRequest, cancellationToken); -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - Immutable.Ts.Client.ApiResponse localVarResponse = - await task; -#endif - return localVarResponse.Data; - } - - /// - /// - /// Thrown when fails to make API call - /// (optional) - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (V1TsSdkOrderbookPrepareOrderCancellationsPost200Response) - public async Task> - V1TsSdkOrderbookPrepareOrderCancellationsPostWithHttpInfoAsync( - V1TsSdkOrderbookPrepareOrderCancellationsPostRequest? - v1TsSdkOrderbookPrepareOrderCancellationsPostRequest = - default, CancellationToken cancellationToken = default) - { - var localVarRequestOptions = new RequestOptions(); - - string[] _contentTypes = - { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = - { - "application/json" - }; - - - var localVarContentType = ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.Data = v1TsSdkOrderbookPrepareOrderCancellationsPostRequest; - - - // make the HTTP request - - var task = AsynchronousClient.PostAsync( - "/v1/ts-sdk/orderbook/prepareOrderCancellations", localVarRequestOptions, Configuration, - cancellationToken); - -#if UNITY_EDITOR || !UNITY_WEBGL - var localVarResponse = await task.ConfigureAwait(false); -#else - var localVarResponse = await task; -#endif - - if (ExceptionFactory != null) - { - var _exception = ExceptionFactory("V1TsSdkOrderbookPrepareOrderCancellationsPost", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Disposes resources if they were created by us - /// - public void Dispose() - { - ApiClient?.Dispose(); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiClient.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiClient.cs deleted file mode 100644 index 5effb582..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiClient.cs +++ /dev/null @@ -1,629 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Linq; -using System.Net; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; -using Immutable.Ts.Model; -using Newtonsoft.Json; -using Newtonsoft.Json.Serialization; -using UnityEngine; -using UnityEngine.Networking; - -namespace Immutable.Ts.Client -{ - /// - /// To Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. - /// - internal class CustomJsonCodec - { - private static readonly string _contentType = "application/json"; - private readonly IReadableConfiguration _configuration; - - private readonly JsonSerializerSettings _serializerSettings = new() - { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - ContractResolver = new DefaultContractResolver - { - NamingStrategy = new CamelCaseNamingStrategy - { - OverrideSpecifiedNames = false - } - } - }; - - public CustomJsonCodec(IReadableConfiguration configuration) - { - _configuration = configuration; - } - - public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfiguration configuration) - { - _serializerSettings = serializerSettings; - _configuration = configuration; - } - - public string RootElement { get; set; } - public string Namespace { get; set; } - public string DateFormat { get; set; } - - public string ContentType - { - get => _contentType; - set => throw new InvalidOperationException("Not allowed to set content type."); - } - - /// - /// Serialize the object into a JSON string. - /// - /// Object to be serialized. - /// A JSON string. - public string Serialize(object obj) - { - if (obj != null && obj is AbstractOpenAPISchema) - // the object to be serialized is an oneOf/anyOf schema - return ((AbstractOpenAPISchema)obj).ToJson(); - return JsonConvert.SerializeObject(obj, _serializerSettings); - } - - public T Deserialize(UnityWebRequest request) - { - var result = (T)Deserialize(request, typeof(T)); - return result; - } - - /// - /// Deserialize the JSON string into a proper object. - /// - /// The UnityWebRequest after it has a response. - /// Object type. - /// Object representation of the JSON string. - internal object Deserialize(UnityWebRequest request, Type type) - { - if (type == typeof(byte[])) // return byte array - return request.downloadHandler.data; - - // TODO: ? if (type.IsAssignableFrom(typeof(Stream))) - if (type == typeof(Stream)) - // NOTE: Ignoring Content-Disposition filename support, since not all platforms - // have a location on disk to write arbitrary data (tvOS, consoles). - return new MemoryStream(request.downloadHandler.data); - - if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object - return DateTime.Parse(request.downloadHandler.text, null, DateTimeStyles.RoundtripKind); - - if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type - return Convert.ChangeType(request.downloadHandler.text, type); - - var contentType = request.GetResponseHeader("Content-Type"); - - if (!string.IsNullOrEmpty(contentType) && contentType.Contains("application/json")) - { - var text = request.downloadHandler?.text; - - // Generated APIs that don't expect a return value provide System.Object as the type - if (type == typeof(object) && (string.IsNullOrEmpty(text) || text.Trim() == "null")) return null; - - if (request.responseCode >= 200 && request.responseCode < 300) - try - { - // Deserialize as a model - return JsonConvert.DeserializeObject(text, type, _serializerSettings); - } - catch (Exception e) - { - throw new UnexpectedResponseException(request, type, e.ToString()); - } - - throw new ApiException((int)request.responseCode, request.error, text); - } - - if (type != typeof(object) && request.responseCode >= 200 && request.responseCode < 300) - throw new UnexpectedResponseException(request, type); - - return null; - } - } - - /// - /// Provides a default implementation of an Api client (both synchronous and asynchronous implementations), - /// encapsulating general REST accessor use cases. - /// - /// - /// The Dispose method will manage the HttpClient lifecycle when not passed by constructor. - /// - public partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousClient - { - private readonly string _baseUrl; - - /// - /// Initializes a new instance of the , defaulting to the global configurations' base url. - /// - public ApiClient() : - this(GlobalConfiguration.Instance.BasePath) - { - } - - /// - /// Initializes a new instance of the . - /// - /// The target service's base path in URL format. - /// - public ApiClient(string basePath) - { - if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty"); - - _baseUrl = basePath; - } - - /// - /// Specifies the settings on a object. - /// These settings can be adjusted to accommodate custom serialization rules. - /// - public JsonSerializerSettings SerializerSettings { get; set; } = new() - { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - ContractResolver = new DefaultContractResolver - { - NamingStrategy = new CamelCaseNamingStrategy - { - OverrideSpecifiedNames = false - } - } - }; - - /// - /// Disposes resources if they were created by us - /// - public void Dispose() - { - } - - /// - /// Provides all logic for constructing a new UnityWebRequest. - /// At this point, all information for querying the service is known. Here, it is simply - /// mapped into the UnityWebRequest. - /// - /// The http verb. - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// [private] A new UnityWebRequest instance. - /// - private UnityWebRequest NewRequest( - string method, - string path, - RequestOptions options, - IReadableConfiguration configuration) - { - if (path == null) throw new ArgumentNullException("path"); - if (options == null) throw new ArgumentNullException("options"); - if (configuration == null) throw new ArgumentNullException("configuration"); - - var builder = new WebRequestPathBuilder(_baseUrl, path); - - builder.AddPathParameters(options.PathParameters); - - builder.AddQueryParameters(options.QueryParameters); - - string contentType = null; - if (options.HeaderParameters != null && options.HeaderParameters.ContainsKey("Content-Type")) - { - var contentTypes = options.HeaderParameters["Content-Type"]; - contentType = contentTypes.FirstOrDefault(); - } - - var uri = builder.GetFullUri(); - UnityWebRequest request = null; - - if (contentType == "multipart/form-data") - { - var formData = new List(); - foreach (var formParameter in options.FormParameters) - formData.Add(new MultipartFormDataSection(formParameter.Key, formParameter.Value)); - - request = UnityWebRequest.Post(uri, formData); - request.method = method; - } - else if (contentType == "application/x-www-form-urlencoded") - { - var form = new WWWForm(); - foreach (var kvp in options.FormParameters) form.AddField(kvp.Key, kvp.Value); - - request = UnityWebRequest.Post(uri, form); - request.method = method; - } - else if (options.Data != null) - { - var serializer = new CustomJsonCodec(SerializerSettings, configuration); - var jsonData = serializer.Serialize(options.Data); - - // Making a post body application/json encoded is whack with UnityWebRequest. - // See: https://stackoverflow.com/questions/68156230/unitywebrequest-post-not-sending-body - request = UnityWebRequest.Put(uri, jsonData); - request.method = method; - request.SetRequestHeader("Content-Type", "application/json"); - } - else - { - request = new UnityWebRequest(builder.GetFullUri(), method); - } - - if (request.downloadHandler == null && typeof(T) != typeof(object)) - request.downloadHandler = new DownloadHandlerBuffer(); - -#if UNITY_EDITOR || !UNITY_WEBGL - if (configuration.UserAgent != null) request.SetRequestHeader("User-Agent", configuration.UserAgent); -#endif - - if (configuration.DefaultHeaders != null) - foreach (var headerParam in configuration.DefaultHeaders) - request.SetRequestHeader(headerParam.Key, headerParam.Value); - - if (options.HeaderParameters != null) - foreach (var headerParam in options.HeaderParameters) - foreach (var value in headerParam.Value) - // Todo make content headers actually content headers - request.SetRequestHeader(headerParam.Key, value); - - if (options.Cookies != null && options.Cookies.Count > 0) - { -#if UNITY_WEBGL - throw new System.InvalidOperationException("UnityWebRequest does not support setting cookies in WebGL"); -#else - if (options.Cookies.Count != 1) Debug.LogError("Only one cookie supported, ignoring others"); - - request.SetRequestHeader("Cookie", options.Cookies[0].ToString()); -#endif - } - - return request; - } - - partial void InterceptRequest(UnityWebRequest req, string path, RequestOptions options, - IReadableConfiguration configuration); - - partial void InterceptResponse(UnityWebRequest req, string path, RequestOptions options, - IReadableConfiguration configuration, ref object responseData); - - private ApiResponse ToApiResponse(UnityWebRequest request, object responseData) - { - var result = (T)responseData; - - var transformed = new ApiResponse((HttpStatusCode)request.responseCode, new Multimap(), - result, request.downloadHandler?.text ?? "") - { - ErrorText = request.error, - Cookies = new List() - }; - - // process response headers, e.g. Access-Control-Allow-Methods - var responseHeaders = request.GetResponseHeaders(); - if (responseHeaders != null) - foreach (var responseHeader in request.GetResponseHeaders()) - transformed.Headers.Add(responseHeader.Key, ClientUtils.ParameterToString(responseHeader.Value)); - - return transformed; - } - - private async Task> ExecAsync( - UnityWebRequest request, - string path, - RequestOptions options, - IReadableConfiguration configuration, - CancellationToken cancellationToken = default) - { - var deserializer = new CustomJsonCodec(SerializerSettings, configuration); - - using (request) - { - if (configuration.Timeout > 0) request.timeout = (int)Math.Ceiling(configuration.Timeout / 1000.0f); - - if (configuration.Proxy != null) - throw new InvalidOperationException("Configuration `Proxy` not supported by UnityWebRequest"); - - if (configuration.ClientCertificates != null) - // Only Android/iOS/tvOS/Standalone players can support certificates, and this - // implementation is intended to work on all platforms. - // - // TODO: Could optionally allow support for this on these platforms. - // - // See: https://docs.unity3d.com/ScriptReference/Networking.CertificateHandler.html - throw new InvalidOperationException( - "Configuration `ClientCertificates` not supported by UnityWebRequest on all platforms"); - - InterceptRequest(request, path, options, configuration); - - var asyncOp = request.SendWebRequest(); - - var tsc = new TaskCompletionSource(); - asyncOp.completed += _ => tsc.TrySetResult(request.result); - - using (var tokenRegistration = cancellationToken.Register(request.Abort, true)) - { - await tsc.Task; - } - - if (request.result == UnityWebRequest.Result.ConnectionError || - request.result == UnityWebRequest.Result.DataProcessingError) - throw new ConnectionException(request); - - object responseData = deserializer.Deserialize(request); - - // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) - responseData = (T)typeof(T).GetMethod("FromJson").Invoke(null, - new object[] { new ByteArrayContent(request.downloadHandler.data) }); - else if (typeof(T).Name == "Stream") // for binary response - responseData = (T)(object)new MemoryStream(request.downloadHandler.data); - - InterceptResponse(request, path, options, configuration, ref responseData); - - return ToApiResponse(request, responseData); - } - } - - #region IAsynchronousClient - - /// - /// Make a HTTP GET request (async). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// Token that enables callers to cancel the request. - /// A Task containing ApiResponse - public Task> GetAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) - { - var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest("GET", path, options, config), path, options, config, cancellationToken); - } - - /// - /// Make a HTTP POST request (async). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// Token that enables callers to cancel the request. - /// A Task containing ApiResponse - public Task> PostAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) - { - var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest("POST", path, options, config), path, options, config, cancellationToken); - } - - /// - /// Make a HTTP PUT request (async). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// Token that enables callers to cancel the request. - /// A Task containing ApiResponse - public Task> PutAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) - { - var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest("PUT", path, options, config), path, options, config, cancellationToken); - } - - /// - /// Make a HTTP DELETE request (async). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// Token that enables callers to cancel the request. - /// A Task containing ApiResponse - public Task> DeleteAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) - { - var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest("DELETE", path, options, config), path, options, config, - cancellationToken); - } - - /// - /// Make a HTTP HEAD request (async). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// Token that enables callers to cancel the request. - /// A Task containing ApiResponse - public Task> HeadAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) - { - var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest("HEAD", path, options, config), path, options, config, cancellationToken); - } - - /// - /// Make a HTTP OPTION request (async). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// Token that enables callers to cancel the request. - /// A Task containing ApiResponse - public Task> OptionsAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) - { - var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest("OPTIONS", path, options, config), path, options, config, - cancellationToken); - } - - /// - /// Make a HTTP PATCH request (async). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// Token that enables callers to cancel the request. - /// A Task containing ApiResponse - public Task> PatchAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default) - { - var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest("PATCH", path, options, config), path, options, config, - cancellationToken); - } - - #endregion IAsynchronousClient - - #region ISynchronousClient - - /// - /// Make a HTTP GET request (synchronous). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// A Task containing ApiResponse - public ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null) - { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); - } - - /// - /// Make a HTTP POST request (synchronous). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// A Task containing ApiResponse - public ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null) - { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); - } - - /// - /// Make a HTTP PUT request (synchronous). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// A Task containing ApiResponse - public ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null) - { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); - } - - /// - /// Make a HTTP DELETE request (synchronous). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// A Task containing ApiResponse - public ApiResponse Delete(string path, RequestOptions options, - IReadableConfiguration configuration = null) - { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); - } - - /// - /// Make a HTTP HEAD request (synchronous). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// A Task containing ApiResponse - public ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null) - { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); - } - - /// - /// Make a HTTP OPTION request (synchronous). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// A Task containing ApiResponse - public ApiResponse Options(string path, RequestOptions options, - IReadableConfiguration configuration = null) - { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); - } - - /// - /// Make a HTTP PATCH request (synchronous). - /// - /// The target path (or resource). - /// The additional request options. - /// - /// A per-request configuration object. It is assumed that any merge with - /// GlobalConfiguration has been done before calling this method. - /// - /// A Task containing ApiResponse - public ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null) - { - throw new NotImplementedException("UnityWebRequest does not support synchronous operation"); - } - - #endregion ISynchronousClient - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiException.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiException.cs deleted file mode 100644 index 96113770..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiException.cs +++ /dev/null @@ -1,71 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; - -namespace Immutable.Ts.Client -{ - /// - /// API Exception - /// - public class ApiException : Exception - { - /// - /// Initializes a new instance of the class. - /// - public ApiException() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// Error message. - public ApiException(int errorCode, string message) : base(message) - { - ErrorCode = errorCode; - } - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// Error message. - /// Error content. - /// HTTP Headers. - public ApiException(int errorCode, string message, object errorContent = null, - Multimap headers = null) : base(message) - { - ErrorCode = errorCode; - ErrorContent = errorContent; - Headers = headers; - } - - /// - /// Gets or sets the error code (HTTP status code) - /// - /// The error code (HTTP status code). - public int ErrorCode { get; set; } - - /// - /// Gets or sets the error content (body json object) - /// - /// The error content (Http response body). - public object ErrorContent { get; private set; } - - /// - /// Gets or sets the HTTP headers - /// - /// HTTP headers - public Multimap Headers { get; private set; } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiResponse.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiResponse.cs deleted file mode 100644 index f39b0506..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ApiResponse.cs +++ /dev/null @@ -1,163 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Net; - -namespace Immutable.Ts.Client -{ - /// - /// Provides a non-generic contract for the ApiResponse wrapper. - /// - public interface IApiResponse - { - /// - /// The data type of - /// - Type ResponseType { get; } - - /// - /// The content of this response - /// - object Content { get; } - - /// - /// Gets or sets the status code (HTTP status code) - /// - /// The status code. - HttpStatusCode StatusCode { get; } - - /// - /// Gets or sets the HTTP headers - /// - /// HTTP headers - Multimap Headers { get; } - - /// - /// Gets or sets any error text defined by the calling client. - /// - string ErrorText { get; set; } - - /// - /// Gets or sets any cookies passed along on the response. - /// - List Cookies { get; set; } - - /// - /// The raw content of this response - /// - string RawContent { get; } - } - - /// - /// API Response - /// - public class ApiResponse : IApiResponse - { - #region Properties - - /// - /// Gets or sets the status code (HTTP status code) - /// - /// The status code. - public HttpStatusCode StatusCode { get; } - - /// - /// Gets or sets the HTTP headers - /// - /// HTTP headers - public Multimap Headers { get; } - - /// - /// Gets or sets the data (parsed HTTP body) - /// - /// The data. - public T Data { get; } - - /// - /// Gets or sets any error text defined by the calling client. - /// - public string ErrorText { get; set; } - - /// - /// Gets or sets any cookies passed along on the response. - /// - public List Cookies { get; set; } - - /// - /// The content of this response - /// - public Type ResponseType => typeof(T); - - /// - /// The data type of - /// - public object Content => Data; - - /// - /// The raw content - /// - public string RawContent { get; } - - #endregion Properties - - #region Constructors - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// HTTP headers. - /// Data (parsed HTTP body) - /// Raw content. - public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data, string rawContent) - { - StatusCode = statusCode; - Headers = headers; - Data = data; - RawContent = rawContent; - } - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// HTTP headers. - /// Data (parsed HTTP body) - public ApiResponse(HttpStatusCode statusCode, Multimap headers, T data) : this(statusCode, - headers, data, null) - { - } - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// Data (parsed HTTP body) - /// Raw content. - public ApiResponse(HttpStatusCode statusCode, T data, string rawContent) : this(statusCode, null, data, - rawContent) - { - } - - /// - /// Initializes a new instance of the class. - /// - /// HTTP status code. - /// Data (parsed HTTP body) - public ApiResponse(HttpStatusCode statusCode, T data) : this(statusCode, data, null) - { - } - - #endregion Constructors - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ClientUtils.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ClientUtils.cs deleted file mode 100644 index 00927ff0..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ClientUtils.cs +++ /dev/null @@ -1,240 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; - -namespace Immutable.Ts.Client -{ - /// - /// Utility functions providing some benefit to API client consumers. - /// - public static class ClientUtils - { - /// - /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. - /// - public static readonly Regex JsonRegex = new("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); - - /// - /// Sanitize filename by removing the path - /// - /// Filename - /// Filename - public static string SanitizeFilename(string filename) - { - var match = Regex.Match(filename, @".*[/\\](.*)$"); - return match.Success ? match.Groups[1].Value : filename; - } - - /// - /// Convert params to key/value pairs. - /// Use collectionFormat to properly format lists and collections. - /// - /// The swagger-supported collection format, one of: csv, tsv, ssv, pipes, multi - /// Key name. - /// Value object. - /// A multimap of keys with 1..n associated values. - public static Multimap ParameterToMultiMap(string collectionFormat, string name, object value) - { - var parameters = new Multimap(); - - if (value is ICollection collection && collectionFormat == "multi") - { - foreach (var item in collection) parameters.Add(name, ParameterToString(item)); - } - else if (value is IDictionary dictionary) - { - if (collectionFormat == "deepObject") - foreach (DictionaryEntry entry in dictionary) - parameters.Add(name + "[" + entry.Key + "]", ParameterToString(entry.Value)); - else - foreach (DictionaryEntry entry in dictionary) - parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); - } - else - { - parameters.Add(name, ParameterToString(value)); - } - - return parameters; - } - - /// - /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with - /// Configuration.DateTime. - /// If parameter is a list, join the list with ",". - /// Otherwise just return the string. - /// - /// The parameter (header, path, query, form). - /// An optional configuration instance, providing formatting options used in processing. - /// Formatted string. - public static string ParameterToString(object obj, IReadableConfiguration configuration = null) - { - if (obj is DateTime dateTime) - // Return a formatted date string - Can be customized with Configuration.DateTimeFormat - // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") - // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 - // For example: 2009-06-15T13:45:30.0000000 - return dateTime.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); - if (obj is DateTimeOffset dateTimeOffset) - // Return a formatted date string - Can be customized with Configuration.DateTimeFormat - // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") - // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 - // For example: 2009-06-15T13:45:30.0000000 - return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); - if (obj is bool boolean) - return boolean ? "true" : "false"; - if (obj is ICollection collection) - { - var entries = new List(); - foreach (var entry in collection) - entries.Add(ParameterToString(entry, configuration)); - return string.Join(",", entries); - } - - if (obj is Enum && HasEnumMemberAttrValue(obj)) - return GetEnumMemberAttrValue(obj); - - return Convert.ToString(obj, CultureInfo.InvariantCulture); - } - - /// - /// Serializes the given object when not null. Otherwise return null. - /// - /// The object to serialize. - /// Serialized string. - public static string Serialize(object obj) - { - return obj != null ? JsonConvert.SerializeObject(obj) : null; - } - - /// - /// Encode string in base64 format. - /// - /// string to be encoded. - /// Encoded string. - public static string Base64Encode(string text) - { - return Convert.ToBase64String(Encoding.UTF8.GetBytes(text)); - } - - /// - /// Convert stream to byte array - /// - /// Input stream to be converted - /// Byte array - public static byte[] ReadAsBytes(Stream inputStream) - { - using (var ms = new MemoryStream()) - { - inputStream.CopyTo(ms); - return ms.ToArray(); - } - } - - /// - /// Select the Content-Type header's value from the given content-type array: - /// if JSON type exists in the given array, use it; - /// otherwise use the first one defined in 'consumes' - /// - /// The Content-Type array to select from. - /// The Content-Type header to use. - public static string SelectHeaderContentType(string[] contentTypes) - { - if (contentTypes.Length == 0) - return null; - - foreach (var contentType in contentTypes) - if (IsJsonMime(contentType)) - return contentType; - - return contentTypes[0]; // use the first content type specified in 'consumes' - } - - /// - /// Select the Accept header's value from the given accepts array: - /// if JSON exists in the given array, use it; - /// otherwise use all of them (joining into a string) - /// - /// The accepts array to select from. - /// The Accept header to use. - public static string SelectHeaderAccept(string[] accepts) - { - if (accepts.Length == 0) - return null; - - if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) - return "application/json"; - - return string.Join(",", accepts); - } - - /// - /// Check if the given MIME is a JSON MIME. - /// JSON MIME examples: - /// application/json - /// application/json; charset=UTF8 - /// APPLICATION/JSON - /// application/vnd.company+json - /// - /// MIME - /// Returns True if MIME type is json. - public static bool IsJsonMime(string mime) - { - if (string.IsNullOrWhiteSpace(mime)) return false; - - return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"); - } - - /// - /// Is the Enum decorated with EnumMember Attribute - /// - /// - /// true if found - private static bool HasEnumMemberAttrValue(object enumVal) - { - if (enumVal == null) - throw new ArgumentNullException(nameof(enumVal)); - var enumType = enumVal.GetType(); - var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); - var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType() - .FirstOrDefault(); - if (attr != null) return true; - return false; - } - - /// - /// Get the EnumMember value - /// - /// - /// EnumMember value as string otherwise null - private static string GetEnumMemberAttrValue(object enumVal) - { - if (enumVal == null) - throw new ArgumentNullException(nameof(enumVal)); - var enumType = enumVal.GetType(); - var memInfo = enumType.GetMember(enumVal.ToString() ?? throw new InvalidOperationException()); - var attr = memInfo.FirstOrDefault()?.GetCustomAttributes(false).OfType() - .FirstOrDefault(); - if (attr != null) return attr.Value; - return null; - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/Configuration.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/Configuration.cs deleted file mode 100644 index 77e7bcfc..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/Configuration.cs +++ /dev/null @@ -1,556 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.IO; -using System.Linq; -using System.Net; -using System.Net.Security; -using System.Security.Cryptography.X509Certificates; - -namespace Immutable.Ts.Client -{ - /// - /// Represents a set of configuration settings - /// - public class Configuration : IReadableConfiguration - { - #region Static Members - - /// - /// Default creation of exceptions for a given method name and response object - /// - public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) => - { - var status = (int)response.StatusCode; - if (status >= 400) - return new ApiException(status, - string.Format("Error calling {0}: {1}", methodName, response.RawContent), - response.RawContent, response.Headers); - if (status == 0) - return new ApiException(status, - string.Format("Error calling {0}: {1}", methodName, response.ErrorText), response.ErrorText); - return null; - }; - - #endregion Static Members - - #region Static Members - - /// - /// Merge configurations. - /// - /// First configuration. - /// Second configuration. - /// Merged configuration. - public static IReadableConfiguration MergeConfigurations(IReadableConfiguration first, - IReadableConfiguration second) - { - if (second == null) return first ?? GlobalConfiguration.Instance; - - var apiKey = first.ApiKey.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); - var apiKeyPrefix = first.ApiKeyPrefix.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); - var defaultHeaders = first.DefaultHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); - - foreach (var kvp in second.ApiKey) apiKey[kvp.Key] = kvp.Value; - foreach (var kvp in second.ApiKeyPrefix) apiKeyPrefix[kvp.Key] = kvp.Value; - foreach (var kvp in second.DefaultHeaders) defaultHeaders[kvp.Key] = kvp.Value; - - var config = new Configuration - { - ApiKey = apiKey, - ApiKeyPrefix = apiKeyPrefix, - DefaultHeaders = defaultHeaders, - BasePath = second.BasePath ?? first.BasePath, - Timeout = second.Timeout, - Proxy = second.Proxy ?? first.Proxy, - UserAgent = second.UserAgent ?? first.UserAgent, - Username = second.Username ?? first.Username, - Password = second.Password ?? first.Password, - AccessToken = second.AccessToken ?? first.AccessToken, - TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, - ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, - UseDefaultCredentials = second.UseDefaultCredentials, - RemoteCertificateValidationCallback = second.RemoteCertificateValidationCallback ?? - first.RemoteCertificateValidationCallback - }; - return config; - } - - #endregion Static Members - - #region Constants - - /// - /// Version of the package. - /// - /// Version of the package. - public const string Version = "1.0.0"; - - /// - /// Identifier for ISO 8601 DateTime Format - /// - /// See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information. - // ReSharper disable once InconsistentNaming - public const string ISO8601_DATETIME_FORMAT = "o"; - - #endregion Constants - - #region Private Members - - /// - /// Defines the base path of the target API server. - /// Example: http://localhost:3000/v1/ - /// - private string _basePath; - - /// - /// Gets or sets the API key based on the authentication name. - /// This is the key and value comprising the "secret" for accessing an API. - /// - /// The API key. - private IDictionary _apiKey; - - /// - /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. - /// - /// The prefix of the API key. - private IDictionary _apiKeyPrefix; - - private string _dateTimeFormat = ISO8601_DATETIME_FORMAT; - private string _tempFolderPath = Path.GetTempPath(); - - /// - /// Gets or sets the servers defined in the OpenAPI spec. - /// - /// The servers - private IList> _servers; - - /// - /// Gets or sets the operation servers defined in the OpenAPI spec. - /// - /// The operation servers - private IReadOnlyDictionary>> _operationServers; - - #endregion Private Members - - #region Constructors - - /// - /// Initializes a new instance of the class - /// - [SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] - public Configuration() - { - Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.0.0/csharp"); - BasePath = "https://api.immutable.com"; - DefaultHeaders = new ConcurrentDictionary(); - ApiKey = new ConcurrentDictionary(); - ApiKeyPrefix = new ConcurrentDictionary(); - Servers = new List> - { - new Dictionary - { - { "url", "https://api.immutable.com" }, - { "description", "Production Server" } - }, - new Dictionary - { - { "url", "https://api.sandbox.immutable.com" }, - { "description", "Sandbox Server" } - } - }; - OperationServers = new Dictionary>>(); - - // Setting Timeout has side effects (forces ApiClient creation). - Timeout = 100000; - } - - /// - /// Initializes a new instance of the class - /// - [SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")] - public Configuration( - IDictionary defaultHeaders, - IDictionary apiKey, - IDictionary apiKeyPrefix, - string basePath = "https://api.immutable.com") : this() - { - if (string.IsNullOrWhiteSpace(basePath)) - throw new ArgumentException("The provided basePath is invalid.", "basePath"); - if (defaultHeaders == null) - throw new ArgumentNullException("defaultHeaders"); - if (apiKey == null) - throw new ArgumentNullException("apiKey"); - if (apiKeyPrefix == null) - throw new ArgumentNullException("apiKeyPrefix"); - - BasePath = basePath; - - foreach (var keyValuePair in defaultHeaders) DefaultHeaders.Add(keyValuePair); - - foreach (var keyValuePair in apiKey) ApiKey.Add(keyValuePair); - - foreach (var keyValuePair in apiKeyPrefix) ApiKeyPrefix.Add(keyValuePair); - } - - #endregion Constructors - - #region Properties - - /// - /// Gets or sets the base path for API access. - /// - public virtual string BasePath - { - get => _basePath; - set => _basePath = value; - } - - /// - /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is - /// running) will be sent along to the server. The default is false. - /// - public virtual bool UseDefaultCredentials { get; set; } - - /// - /// Gets or sets the default header. - /// - [Obsolete("Use DefaultHeaders instead.")] - public virtual IDictionary DefaultHeader - { - get => DefaultHeaders; - set => DefaultHeaders = value; - } - - /// - /// Gets or sets the default headers. - /// - public virtual IDictionary DefaultHeaders { get; set; } - - /// - /// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds. - /// - public virtual int Timeout { get; set; } - - /// - /// Gets or sets the proxy - /// - /// Proxy. - public virtual WebProxy Proxy { get; set; } - - /// - /// Gets or sets the HTTP user agent. - /// - /// Http user agent. - public virtual string UserAgent { get; set; } - - /// - /// Gets or sets the username (HTTP basic authentication). - /// - /// The username. - public virtual string Username { get; set; } - - /// - /// Gets or sets the password (HTTP basic authentication). - /// - /// The password. - public virtual string Password { get; set; } - - /// - /// Gets the API key with prefix. - /// - /// API key identifier (authentication scheme). - /// API key with prefix. - public string GetApiKeyWithPrefix(string apiKeyIdentifier) - { - string apiKeyValue; - ApiKey.TryGetValue(apiKeyIdentifier, out apiKeyValue); - string apiKeyPrefix; - if (ApiKeyPrefix.TryGetValue(apiKeyIdentifier, out apiKeyPrefix)) return apiKeyPrefix + " " + apiKeyValue; - - return apiKeyValue; - } - - /// - /// Gets or sets certificate collection to be sent with requests. - /// - /// X509 Certificate collection. - public X509CertificateCollection ClientCertificates { get; set; } - - /// - /// Gets or sets the access token for OAuth2 authentication. - /// This helper property simplifies code generation. - /// - /// The access token. - public virtual string AccessToken { get; set; } - - /// - /// Gets or sets the temporary folder path to store the files downloaded from the server. - /// - /// Folder path. - public virtual string TempFolderPath - { - get => _tempFolderPath; - - set - { - if (string.IsNullOrEmpty(value)) - { - _tempFolderPath = Path.GetTempPath(); - return; - } - - // create the directory if it does not exist - if (!Directory.Exists(value)) Directory.CreateDirectory(value); - - // check if the path contains directory separator at the end - if (value[value.Length - 1] == Path.DirectorySeparatorChar) - _tempFolderPath = value; - else - _tempFolderPath = value + Path.DirectorySeparatorChar; - } - } - - /// - /// Gets or sets the date time format used when serializing in the ApiClient - /// By default, it's set to ISO 8601 - "o", for others see: - /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx - /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx - /// No validation is done to ensure that the string you're providing is valid - /// - /// The DateTimeFormat string - public virtual string DateTimeFormat - { - get => _dateTimeFormat; - set - { - if (string.IsNullOrEmpty(value)) - { - // Never allow a blank or null string, go back to the default - _dateTimeFormat = ISO8601_DATETIME_FORMAT; - return; - } - - // Caution, no validation when you choose date time format other than ISO 8601 - // Take a look at the above links - _dateTimeFormat = value; - } - } - - /// - /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name. - /// Whatever you set here will be prepended to the value defined in AddApiKey. - /// An example invocation here might be: - /// - /// ApiKeyPrefix["Authorization"] = "Bearer"; - /// - /// … where ApiKey["Authorization"] would then be used to set the value of your bearer token. - /// - /// OAuth2 workflows should set tokens via AccessToken. - /// - /// - /// The prefix of the API key. - public virtual IDictionary ApiKeyPrefix - { - get => _apiKeyPrefix; - set - { - if (value == null) throw new InvalidOperationException("ApiKeyPrefix collection may not be null."); - _apiKeyPrefix = value; - } - } - - /// - /// Gets or sets the API key based on the authentication name. - /// - /// The API key. - public virtual IDictionary ApiKey - { - get => _apiKey; - set - { - if (value == null) throw new InvalidOperationException("ApiKey collection may not be null."); - _apiKey = value; - } - } - - /// - /// Gets or sets the servers. - /// - /// The servers. - public virtual IList> Servers - { - get => _servers; - set - { - if (value == null) throw new InvalidOperationException("Servers may not be null."); - _servers = value; - } - } - - /// - /// Gets or sets the operation servers. - /// - /// The operation servers. - public virtual IReadOnlyDictionary>> OperationServers - { - get => _operationServers; - set - { - if (value == null) throw new InvalidOperationException("Operation servers may not be null."); - _operationServers = value; - } - } - - /// - /// Returns URL based on server settings without providing values - /// for the variables - /// - /// Array index of the server settings. - /// The server URL. - public string GetServerUrl(int index) - { - return GetServerUrl(Servers, index, null); - } - - /// - /// Returns URL based on server settings. - /// - /// Array index of the server settings. - /// Dictionary of the variables and the corresponding values. - /// The server URL. - public string GetServerUrl(int index, Dictionary inputVariables) - { - return GetServerUrl(Servers, index, inputVariables); - } - - /// - /// Returns URL based on operation server settings. - /// - /// Operation associated with the request path. - /// Array index of the server settings. - /// The operation server URL. - public string GetOperationServerUrl(string operation, int index) - { - return GetOperationServerUrl(operation, index, null); - } - - /// - /// Returns URL based on operation server settings. - /// - /// Operation associated with the request path. - /// Array index of the server settings. - /// Dictionary of the variables and the corresponding values. - /// The operation server URL. - public string GetOperationServerUrl(string operation, int index, Dictionary inputVariables) - { - if (operation != null && OperationServers.TryGetValue(operation, out var operationServer)) - return GetServerUrl(operationServer, index, inputVariables); - - return null; - } - - /// - /// Returns URL based on server settings. - /// - /// Dictionary of server settings. - /// Array index of the server settings. - /// Dictionary of the variables and the corresponding values. - /// The server URL. - private string GetServerUrl(IList> servers, int index, - Dictionary inputVariables) - { - if (index < 0 || index >= servers.Count) - throw new InvalidOperationException( - $"Invalid index {index} when selecting the server. Must be less than {servers.Count}."); - - if (inputVariables == null) inputVariables = new Dictionary(); - - var server = servers[index]; - var url = (string)server["url"]; - - if (server.ContainsKey("variables")) - // go through each variable and assign a value - foreach (var variable in (IReadOnlyDictionary)server["variables"]) - { - var serverVariables = (IReadOnlyDictionary)variable.Value; - - if (inputVariables.ContainsKey(variable.Key)) - { - if (((List)serverVariables["enum_values"]).Contains(inputVariables[variable.Key])) - url = url.Replace("{" + variable.Key + "}", inputVariables[variable.Key]); - else - throw new InvalidOperationException( - $"The variable `{variable.Key}` in the server URL has invalid value #{inputVariables[variable.Key]}. Must be {(List)serverVariables["enum_values"]}"); - } - else - { - // use default value - url = url.Replace("{" + variable.Key + "}", (string)serverVariables["default_value"]); - } - } - - return url; - } - - /// - /// Gets and Sets the RemoteCertificateValidationCallback - /// - public RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; set; } - - #endregion Properties - - #region Methods - - /// - /// Returns a string with essential information for debugging. - /// - public static string ToDebugReport() - { - var report = "C# SDK (Immutable.Ts) Debug Report:\n"; - report += " OS: " + Environment.OSVersion + "\n"; - report += " .NET Framework Version: " + Environment.Version + "\n"; - report += " Version of the API: 1.0.0\n"; - report += " SDK Package Version: 1.0.0\n"; - - return report; - } - - /// - /// Add Api Key Header. - /// - /// Api Key name. - /// Api Key value. - /// - public void AddApiKey(string key, string value) - { - ApiKey[key] = value; - } - - /// - /// Sets the API key prefix. - /// - /// Api Key name. - /// Api Key value. - public void AddApiKeyPrefix(string key, string value) - { - ApiKeyPrefix[key] = value; - } - - #endregion Methods - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ConnectionException.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ConnectionException.cs deleted file mode 100644 index 8b4fd2b5..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ConnectionException.cs +++ /dev/null @@ -1,30 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using UnityEngine.Networking; - -namespace Immutable.Ts.Client -{ - public class ConnectionException : Exception - { - // NOTE: Cannot keep reference to the request since it will be disposed. - public ConnectionException(UnityWebRequest request) - : base($"result={request.result} error={request.error}") - { - Result = request.result; - Error = request.error ?? ""; - } - - public UnityWebRequest.Result Result { get; private set; } - public string Error { get; private set; } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ExceptionFactory.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ExceptionFactory.cs deleted file mode 100644 index cf26893f..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ExceptionFactory.cs +++ /dev/null @@ -1,23 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; - -namespace Immutable.Ts.Client -{ - /// - /// A delegate to ExceptionFactory method - /// - /// Method name - /// Response - /// Exceptions - public delegate Exception ExceptionFactory(string methodName, IApiResponse response); -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/GlobalConfiguration.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/GlobalConfiguration.cs deleted file mode 100644 index b4116084..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/GlobalConfiguration.cs +++ /dev/null @@ -1,70 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Collections.Generic; - -namespace Immutable.Ts.Client -{ - /// - /// provides a compile-time extension point for globally configuring - /// API Clients. - /// - /// - /// A customized implementation via partial class may reside in another file and may - /// be excluded from automatic generation via a .openapi-generator-ignore file. - /// - public class GlobalConfiguration : Configuration - { - /// - /// Gets or sets the default Configuration. - /// - /// Configuration. - public static IReadableConfiguration Instance - { - get => _globalConfiguration; - set - { - lock (GlobalConfigSync) - { - _globalConfiguration = value; - } - } - } - - #region Private Members - - private static readonly object GlobalConfigSync = new { }; - private static IReadableConfiguration _globalConfiguration; - - #endregion Private Members - - #region Constructors - - /// - private GlobalConfiguration() - { - } - - /// - public GlobalConfiguration(IDictionary defaultHeader, IDictionary apiKey, - IDictionary apiKeyPrefix, string basePath = "http://localhost:3000/api") : base( - defaultHeader, apiKey, apiKeyPrefix, basePath) - { - } - - static GlobalConfiguration() - { - Instance = new GlobalConfiguration(); - } - - #endregion Constructors - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IApiAccessor.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IApiAccessor.cs deleted file mode 100644 index d62b3481..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IApiAccessor.cs +++ /dev/null @@ -1,36 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -namespace Immutable.Ts.Client -{ - /// - /// Represents configuration aspects required to interact with the API endpoints. - /// - public interface IApiAccessor - { - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - IReadableConfiguration Configuration { get; set; } - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - ExceptionFactory ExceptionFactory { get; set; } - - /// - /// Gets the base path of the API client. - /// - /// The base path - string GetBasePath(); - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IAsynchronousClient.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IAsynchronousClient.cs deleted file mode 100644 index a372ae82..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IAsynchronousClient.cs +++ /dev/null @@ -1,107 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Threading; -using System.Threading.Tasks; - -namespace Immutable.Ts.Client -{ - /// - /// Contract for Asynchronous RESTful API interactions. - /// This interface allows consumers to provide a custom API accessor client. - /// - public interface IAsynchronousClient - { - /// - /// Executes a non-blocking call to some using the GET http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// Cancellation Token to cancel the request. - /// The return type. - /// A task eventually representing the response data, decorated with - Task> GetAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); - - /// - /// Executes a non-blocking call to some using the POST http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// Cancellation Token to cancel the request. - /// The return type. - /// A task eventually representing the response data, decorated with - Task> PostAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); - - /// - /// Executes a non-blocking call to some using the PUT http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// Cancellation Token to cancel the request. - /// The return type. - /// A task eventually representing the response data, decorated with - Task> PutAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); - - /// - /// Executes a non-blocking call to some using the DELETE http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// Cancellation Token to cancel the request. - /// The return type. - /// A task eventually representing the response data, decorated with - Task> DeleteAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); - - /// - /// Executes a non-blocking call to some using the HEAD http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// Cancellation Token to cancel the request. - /// The return type. - /// A task eventually representing the response data, decorated with - Task> HeadAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); - - /// - /// Executes a non-blocking call to some using the OPTIONS http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// Cancellation Token to cancel the request. - /// The return type. - /// A task eventually representing the response data, decorated with - Task> OptionsAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); - - /// - /// Executes a non-blocking call to some using the PATCH http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// Cancellation Token to cancel the request. - /// The return type. - /// A task eventually representing the response data, decorated with - Task> PatchAsync(string path, RequestOptions options, - IReadableConfiguration configuration = null, CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IReadableConfiguration.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IReadableConfiguration.cs deleted file mode 100644 index e467f4be..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/IReadableConfiguration.cs +++ /dev/null @@ -1,143 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Net; -using System.Net.Security; -using System.Security.Cryptography.X509Certificates; - -namespace Immutable.Ts.Client -{ - /// - /// Represents a readable-only configuration contract. - /// - public interface IReadableConfiguration - { - /// - /// Gets the access token. - /// - /// Access token. - string AccessToken { get; } - - /// - /// Gets the API key. - /// - /// API key. - IDictionary ApiKey { get; } - - /// - /// Gets the API key prefix. - /// - /// API key prefix. - IDictionary ApiKeyPrefix { get; } - - /// - /// Gets the base path. - /// - /// Base path. - string BasePath { get; } - - /// - /// Gets the date time format. - /// - /// Date time format. - string DateTimeFormat { get; } - - /// - /// Gets the default header. - /// - /// Default header. - [Obsolete("Use DefaultHeaders instead.")] - IDictionary DefaultHeader { get; } - - /// - /// Gets the default headers. - /// - /// Default headers. - IDictionary DefaultHeaders { get; } - - /// - /// Gets the temp folder path. - /// - /// Temp folder path. - string TempFolderPath { get; } - - /// - /// Gets the HTTP connection timeout (in milliseconds) - /// - /// HTTP connection timeout. - int Timeout { get; } - - /// - /// Gets the proxy. - /// - /// Proxy. - WebProxy Proxy { get; } - - /// - /// Gets the user agent. - /// - /// User agent. - string UserAgent { get; } - - /// - /// Gets the username. - /// - /// Username. - string Username { get; } - - /// - /// Gets the password. - /// - /// Password. - string Password { get; } - - /// - /// Determine whether or not the "default credentials" (e.g. the user account under which the current process is - /// running) will be sent along to the server. The default is false. - /// - bool UseDefaultCredentials { get; } - - /// - /// Get the servers associated with the operation. - /// - /// Operation servers. - IReadOnlyDictionary>> OperationServers { get; } - - /// - /// Gets certificate collection to be sent with requests. - /// - /// X509 Certificate collection. - X509CertificateCollection ClientCertificates { get; } - - /// - /// Callback function for handling the validation of remote certificates. Useful for certificate pinning and - /// overriding certificate errors in the scope of a request. - /// - RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; } - - /// - /// Gets the API key with prefix. - /// - /// API key identifier (authentication scheme). - /// API key with prefix. - string GetApiKeyWithPrefix(string apiKeyIdentifier); - - /// - /// Gets the Operation server url at the provided index. - /// - /// Operation server name. - /// Index of the operation server settings. - /// - string GetOperationServerUrl(string operation, int index); - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ISynchronousClient.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ISynchronousClient.cs deleted file mode 100644 index 203b0fbe..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/ISynchronousClient.cs +++ /dev/null @@ -1,90 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -namespace Immutable.Ts.Client -{ - /// - /// Contract for Synchronous RESTful API interactions. - /// This interface allows consumers to provide a custom API accessor client. - /// - public interface ISynchronousClient - { - /// - /// Executes a blocking call to some using the GET http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// The return type. - /// The response data, decorated with - ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null); - - /// - /// Executes a blocking call to some using the POST http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// The return type. - /// The response data, decorated with - ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null); - - /// - /// Executes a blocking call to some using the PUT http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// The return type. - /// The response data, decorated with - ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null); - - /// - /// Executes a blocking call to some using the DELETE http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// The return type. - /// The response data, decorated with - ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null); - - /// - /// Executes a blocking call to some using the HEAD http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// The return type. - /// The response data, decorated with - ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null); - - /// - /// Executes a blocking call to some using the OPTIONS http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// The return type. - /// The response data, decorated with - ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null); - - /// - /// Executes a blocking call to some using the PATCH http verb. - /// - /// The relative path to invoke. - /// The request parameters to pass along to the client. - /// Per-request configurable settings. - /// The return type. - /// The response data, decorated with - ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null); - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/Multimap.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/Multimap.cs deleted file mode 100644 index fd504b3b..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/Multimap.cs +++ /dev/null @@ -1,306 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; - -namespace Immutable.Ts.Client -{ - /// - /// A dictionary in which one key has many associated values. - /// - /// The type of the key - /// The type of the value associated with the key. - public class Multimap : IDictionary> - { - #region Private Fields - - private readonly Dictionary> _dictionary; - - #endregion Private Fields - - #region Constructors - - /// - /// Empty Constructor. - /// - public Multimap() - { - _dictionary = new Dictionary>(); - } - - /// - /// Constructor with comparer. - /// - /// - public Multimap(IEqualityComparer comparer) - { - _dictionary = new Dictionary>(comparer); - } - - #endregion Constructors - - #region Enumerators - - /// - /// To get the enumerator. - /// - /// Enumerator - public IEnumerator>> GetEnumerator() - { - return _dictionary.GetEnumerator(); - } - - /// - /// To get the enumerator. - /// - /// Enumerator - IEnumerator IEnumerable.GetEnumerator() - { - return _dictionary.GetEnumerator(); - } - - #endregion Enumerators - - #region Public Members - - /// - /// Add values to Multimap - /// - /// Key value pair - public void Add(KeyValuePair> item) - { - if (!TryAdd(item.Key, item.Value)) - throw new InvalidOperationException("Could not add values to Multimap."); - } - - /// - /// Add Multimap to Multimap - /// - /// Multimap - public void Add(Multimap multimap) - { - foreach (var item in multimap) - if (!TryAdd(item.Key, item.Value)) - throw new InvalidOperationException("Could not add values to Multimap."); - } - - /// - /// Clear Multimap - /// - public void Clear() - { - _dictionary.Clear(); - } - - /// - /// Determines whether Multimap contains the specified item. - /// - /// Key value pair - /// Method needs to be implemented - /// true if the Multimap contains the item; otherwise, false. - public bool Contains(KeyValuePair> item) - { - throw new NotImplementedException(); - } - - /// - /// Copy items of the Multimap to an array, - /// starting at a particular array index. - /// - /// - /// The array that is the destination of the items copied - /// from Multimap. The array must have zero-based indexing. - /// - /// The zero-based index in array at which copying begins. - /// Method needs to be implemented - public void CopyTo(KeyValuePair>[] array, int arrayIndex) - { - throw new NotImplementedException(); - } - - /// - /// Removes the specified item from the Multimap. - /// - /// Key value pair - /// true if the item is successfully removed; otherwise, false. - /// Method needs to be implemented - public bool Remove(KeyValuePair> item) - { - throw new NotImplementedException(); - } - - /// - /// Gets the number of items contained in the Multimap. - /// - public int Count => _dictionary.Count; - - /// - /// Gets a value indicating whether the Multimap is read-only. - /// - public bool IsReadOnly => false; - - /// - /// Adds an item with the provided key and value to the Multimap. - /// - /// The object to use as the key of the item to add. - /// The object to use as the value of the item to add. - /// Thrown when couldn't add the value to Multimap. - public void Add(TKey key, IList value) - { - if (value != null && value.Count > 0) - { - if (_dictionary.TryGetValue(key, out var list)) - { - foreach (var k in value) list.Add(k); - } - else - { - list = new List(value); - if (!TryAdd(key, list)) - throw new InvalidOperationException("Could not add values to Multimap."); - } - } - } - - /// - /// Determines whether the Multimap contains an item with the specified key. - /// - /// The key to locate in the Multimap. - /// - /// true if the Multimap contains an item with - /// the key; otherwise, false. - /// - public bool ContainsKey(TKey key) - { - return _dictionary.ContainsKey(key); - } - - /// - /// Removes item with the specified key from the Multimap. - /// - /// The key to locate in the Multimap. - /// true if the item is successfully removed; otherwise, false. - public bool Remove(TKey key) - { - return TryRemove(key, out var _); - } - - /// - /// Gets the value associated with the specified key. - /// - /// The key whose value to get. - /// - /// When this method returns, the value associated with the specified key, if the - /// key is found; otherwise, the default value for the type of the value parameter. - /// This parameter is passed uninitialized. - /// - /// - /// true if the object that implements Multimap contains - /// an item with the specified key; otherwise, false. - /// - public bool TryGetValue(TKey key, out IList value) - { - return _dictionary.TryGetValue(key, out value); - } - - /// - /// Gets or sets the item with the specified key. - /// - /// The key of the item to get or set. - /// The value of the specified key. - public IList this[TKey key] - { - get => _dictionary[key]; - set => _dictionary[key] = value; - } - - /// - /// Gets a System.Collections.Generic.ICollection containing the keys of the Multimap. - /// - public ICollection Keys => _dictionary.Keys; - - /// - /// Gets a System.Collections.Generic.ICollection containing the values of the Multimap. - /// - public ICollection> Values => _dictionary.Values; - - /// - /// Copy the items of the Multimap to an System.Array, - /// starting at a particular System.Array index. - /// - /// - /// The one-dimensional System.Array that is the destination of the items copied - /// from Multimap. The System.Array must have zero-based indexing. - /// - /// The zero-based index in array at which copying begins. - public void CopyTo(Array array, int index) - { - ((ICollection)_dictionary).CopyTo(array, index); - } - - /// - /// Adds an item with the provided key and value to the Multimap. - /// - /// The object to use as the key of the item to add. - /// The object to use as the value of the item to add. - /// Thrown when couldn't add value to Multimap. - public void Add(TKey key, TValue value) - { - if (value != null) - { - if (_dictionary.TryGetValue(key, out var list)) - { - list.Add(value); - } - else - { - list = new List { value }; - if (!TryAdd(key, list)) - throw new InvalidOperationException("Could not add value to Multimap."); - } - } - } - - #endregion Public Members - - #region Private Members - - /** - * Helper method to encapsulate generator differences between dictionary types. - */ - private bool TryRemove(TKey key, out IList value) - { - _dictionary.TryGetValue(key, out value); - return _dictionary.Remove(key); - } - - /** - * Helper method to encapsulate generator differences between dictionary types. - */ - private bool TryAdd(TKey key, IList value) - { - try - { - _dictionary.Add(key, value); - } - catch (ArgumentException) - { - return false; - } - - return true; - } - - #endregion Private Members - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/OpenAPIDateConverter.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/OpenAPIDateConverter.cs deleted file mode 100644 index 23f5c4e2..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/OpenAPIDateConverter.cs +++ /dev/null @@ -1,30 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Client -{ - /// - /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 - /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types - /// - public class OpenAPIDateConverter : IsoDateTimeConverter - { - /// - /// Initializes a new instance of the class. - /// - public OpenAPIDateConverter() - { - // full-date = date-fullyear "-" date-month "-" date-mday - DateTimeFormat = "yyyy-MM-dd"; - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/RequestOptions.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/RequestOptions.cs deleted file mode 100644 index 02d8b230..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/RequestOptions.cs +++ /dev/null @@ -1,67 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Collections.Generic; -using System.Net; - -namespace Immutable.Ts.Client -{ - /// - /// A container for generalized request inputs. This type allows consumers to extend the request functionality - /// by abstracting away from the default (built-in) request framework (e.g. RestSharp). - /// - public class RequestOptions - { - /// - /// Constructs a new instance of - /// - public RequestOptions() - { - PathParameters = new Dictionary(); - QueryParameters = new Multimap(); - HeaderParameters = new Multimap(); - FormParameters = new Dictionary(); - Cookies = new List(); - } - - /// - /// Parameters to be bound to path parts of the Request's URL - /// - public Dictionary PathParameters { get; set; } - - /// - /// Query parameters to be applied to the request. - /// Keys may have 1 or more values associated. - /// - public Multimap QueryParameters { get; set; } - - /// - /// Header parameters to be applied to to the request. - /// Keys may have 1 or more values associated. - /// - public Multimap HeaderParameters { get; set; } - - /// - /// Form parameters to be sent along with the request. - /// - public Dictionary FormParameters { get; set; } - - /// - /// Cookies to be sent along with the request. - /// - public List Cookies { get; set; } - - /// - /// Any data associated with a request body. - /// - public object Data { get; set; } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/UnexpectedResponseException.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/UnexpectedResponseException.cs deleted file mode 100644 index 7aa41524..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/UnexpectedResponseException.cs +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using UnityEngine.Networking; - -namespace Immutable.Ts.Client -{ - // Thrown when a backend doesn't return an expected response based on the expected type - // of the response data. - public class UnexpectedResponseException : Exception - { - // NOTE: Cannot keep reference to the request since it will be disposed. - public UnexpectedResponseException(UnityWebRequest request, Type type, string extra = "") - : base(CreateMessage(request, type, extra)) - { - ErrorCode = (int)request.responseCode; - } - - public int ErrorCode { get; private set; } - - private static string CreateMessage(UnityWebRequest request, Type type, string extra) - { - return $"httpcode={request.responseCode}, expected {type.Name} but got data: {extra}"; - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/WebRequestPathBuilder.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/WebRequestPathBuilder.cs deleted file mode 100644 index a0de792e..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Client/WebRequestPathBuilder.cs +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - -using System; -using System.Collections.Generic; - -namespace Immutable.Ts.Client -{ - /// - /// A URI builder - /// - internal class WebRequestPathBuilder - { - private readonly string _baseUrl; - private string _path; - private string _query = "?"; - - public WebRequestPathBuilder(string baseUrl, string path) - { - _baseUrl = baseUrl; - _path = path; - } - - public void AddPathParameters(Dictionary parameters) - { - foreach (var parameter in parameters) - _path = _path.Replace("{" + parameter.Key + "}", Uri.EscapeDataString(parameter.Value)); - } - - public void AddQueryParameters(Multimap parameters) - { - foreach (var parameter in parameters) - foreach (var value in parameter.Value) - _query = _query + parameter.Key + "=" + Uri.EscapeDataString(value) + "&"; - } - - public string GetFullUri() - { - return _baseUrl + _path + _query.Substring(0, _query.Length - 1); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Immutable.Ts.asmdef b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Immutable.Ts.asmdef deleted file mode 100644 index 32c885b4..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Immutable.Ts.asmdef +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Immutable.Ts", - "overrideReferences": true, - "precompiledReferences": [ - "Newtonsoft.Json.dll" - ] -} diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/AbstractOpenAPISchema.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/AbstractOpenAPISchema.cs deleted file mode 100644 index 799fb3a6..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/AbstractOpenAPISchema.cs +++ /dev/null @@ -1,76 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using Newtonsoft.Json; -using Newtonsoft.Json.Serialization; - -namespace Immutable.Ts.Model -{ - /// - /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification - /// - public abstract class AbstractOpenAPISchema - { - /// - /// Custom JSON serializer - /// - public static readonly JsonSerializerSettings SerializerSettings = new() - { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - MissingMemberHandling = MissingMemberHandling.Error, - ContractResolver = new DefaultContractResolver - { - NamingStrategy = new CamelCaseNamingStrategy - { - OverrideSpecifiedNames = false - } - } - }; - - /// - /// Custom JSON serializer for objects with additional properties - /// - public static readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new() - { - // OpenAPI generated types generally hide default constructors. - ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, - MissingMemberHandling = MissingMemberHandling.Ignore, - ContractResolver = new DefaultContractResolver - { - NamingStrategy = new CamelCaseNamingStrategy - { - OverrideSpecifiedNames = false - } - } - }; - - /// - /// Gets or Sets the actual instance - /// - public abstract object ActualInstance { get; set; } - - /// - /// Gets or Sets IsNullable to indicate whether the instance is nullable - /// - public bool IsNullable { get; protected set; } - - /// - /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf` - /// - public string SchemaType { get; protected set; } - - /// - /// Converts the instance into JSON string. - /// - public abstract string ToJson(); - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Action.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Action.cs deleted file mode 100644 index 8e900dc4..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Action.cs +++ /dev/null @@ -1,226 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - -namespace Immutable.Ts.Model -{ - /// - /// Action - /// - [JsonConverter(typeof(ActionJsonConverter))] - [DataContract(Name = "Action")] - public class Action : AbstractOpenAPISchema - { - private object _actualInstance; - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of TransactionAction. - public Action(TransactionAction actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of SignableAction. - public Action(SignableAction actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Gets or Sets ActualInstance - /// - public override object ActualInstance - { - get => _actualInstance; - set - { - if (value.GetType() == typeof(SignableAction) || value is SignableAction) - _actualInstance = value; - else if (value.GetType() == typeof(TransactionAction) || value is TransactionAction) - _actualInstance = value; - else - throw new ArgumentException( - "Invalid instance found. Must be the following types: SignableAction, TransactionAction"); - } - } - - /// - /// Get the actual instance of `TransactionAction`. If the actual instance is not `TransactionAction`, - /// the InvalidClassException will be thrown - /// - /// An instance of TransactionAction - public TransactionAction GetTransactionAction() - { - return (TransactionAction)ActualInstance; - } - - /// - /// Get the actual instance of `SignableAction`. If the actual instance is not `SignableAction`, - /// the InvalidClassException will be thrown - /// - /// An instance of SignableAction - public SignableAction GetSignableAction() - { - return (SignableAction)ActualInstance; - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Action {\n"); - sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(ActualInstance, SerializerSettings); - } - - /// - /// Converts the JSON string into an instance of Action - /// - /// JSON string - /// An instance of Action - public static Action FromJson(string jsonString) - { - Action newAction = null; - - if (string.IsNullOrEmpty(jsonString)) return newAction; - var match = 0; - var matchedTypes = new List(); - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(SignableAction).GetProperty("AdditionalProperties") == null) - newAction = new Action( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newAction = new Action(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("SignableAction"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into SignableAction: {1}", jsonString, exception); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(TransactionAction).GetProperty("AdditionalProperties") == null) - newAction = new Action( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newAction = new Action(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("TransactionAction"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into TransactionAction: {1}", jsonString, exception); - } - - if (match == 0) - throw new InvalidDataException("The JSON string `" + jsonString + - "` cannot be deserialized into any schema defined."); - if (match > 1) - throw new InvalidDataException("The JSON string `" + jsonString + - "` incorrectly matches more than one schema (should be exactly one match): " + - string.Join(",", matchedTypes)); - - // deserialization is considered successful at this point if no exception has been thrown. - return newAction; - } - } - - /// - /// Custom JSON converter for Action - /// - public class ActionJsonConverter : JsonConverter - { - /// - /// To write the JSON string - /// - /// JSON writer - /// Object to be converted into a JSON string - /// JSON Serializer - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteRawValue((string)typeof(Action).GetMethod("ToJson").Invoke(value, null)); - } - - /// - /// To convert a JSON string into an object - /// - /// JSON reader - /// Object type - /// Existing value - /// JSON Serializer - /// The object converted from the JSON string - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) - { - switch (reader.TokenType) - { - case JsonToken.StartObject: - return Action.FromJson(JObject.Load(reader).ToString(Formatting.None)); - case JsonToken.StartArray: - return Action.FromJson(JArray.Load(reader).ToString(Formatting.None)); - default: - return null; - } - } - - /// - /// Check if the object can be converted - /// - /// Object type - /// True if the object can be converted - public override bool CanConvert(Type objectType) - { - return false; - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/BigNumberish.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/BigNumberish.cs deleted file mode 100644 index 2211d339..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/BigNumberish.cs +++ /dev/null @@ -1,231 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - -namespace Immutable.Ts.Model -{ - /// - /// Any type that can be used where a big number is needed. - /// - [JsonConverter(typeof(BigNumberishJsonConverter))] - [DataContract(Name = "BigNumberish")] - public class BigNumberish : AbstractOpenAPISchema - { - private object _actualInstance; - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of string. - public BigNumberish(string actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of decimal. - public BigNumberish(decimal actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance; - } - - /// - /// Gets or Sets ActualInstance - /// - public override object ActualInstance - { - get => _actualInstance; - set - { - if (value.GetType() == typeof(decimal) || value is decimal) - _actualInstance = value; - else if (value.GetType() == typeof(string) || value is string) - _actualInstance = value; - else - throw new ArgumentException("Invalid instance found. Must be the following types: decimal, string"); - } - } - - /// - /// Get the actual instance of `string`. If the actual instance is not `string`, - /// the InvalidClassException will be thrown - /// - /// An instance of string - public string GetString() - { - return (string)ActualInstance; - } - - /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, - /// the InvalidClassException will be thrown - /// - /// An instance of decimal - public decimal GetDecimal() - { - return (decimal)ActualInstance; - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BigNumberish {\n"); - sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(ActualInstance, SerializerSettings); - } - - /// - /// Converts the JSON string into an instance of BigNumberish - /// - /// JSON string - /// An instance of BigNumberish - public static BigNumberish FromJson(string jsonString) - { - BigNumberish newBigNumberish = null; - - if (string.IsNullOrEmpty(jsonString)) return newBigNumberish; - var match = 0; - var matchedTypes = new List(); - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(decimal).GetProperty("AdditionalProperties") == null) - newBigNumberish = - new BigNumberish(JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newBigNumberish = - new BigNumberish(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("decimal"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(string).GetProperty("AdditionalProperties") == null) - newBigNumberish = - new BigNumberish(JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newBigNumberish = - new BigNumberish(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("string"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into string: {1}", jsonString, exception); - } - - if (match == 0) - throw new InvalidDataException("The JSON string `" + jsonString + - "` cannot be deserialized into any schema defined."); - if (match > 1) - throw new InvalidDataException("The JSON string `" + jsonString + - "` incorrectly matches more than one schema (should be exactly one match): " + - string.Join(",", matchedTypes)); - - // deserialization is considered successful at this point if no exception has been thrown. - return newBigNumberish; - } - } - - /// - /// Custom JSON converter for BigNumberish - /// - public class BigNumberishJsonConverter : JsonConverter - { - /// - /// To write the JSON string - /// - /// JSON writer - /// Object to be converted into a JSON string - /// JSON Serializer - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteRawValue((string)typeof(BigNumberish).GetMethod("ToJson").Invoke(value, null)); - } - - /// - /// To convert a JSON string into an object - /// - /// JSON reader - /// Object type - /// Existing value - /// JSON Serializer - /// The object converted from the JSON string - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) - { - switch (reader.TokenType) - { - case JsonToken.String: - return new BigNumberish(Convert.ToString(reader.Value)); - case JsonToken.Float: - return new BigNumberish(Convert.ToDecimal(reader.Value)); - case JsonToken.StartObject: - return BigNumberish.FromJson(JObject.Load(reader).ToString(Formatting.None)); - case JsonToken.StartArray: - return BigNumberish.FromJson(JArray.Load(reader).ToString(Formatting.None)); - default: - return null; - } - } - - /// - /// Check if the object can be converted - /// - /// Object type - /// True if the object can be converted - public override bool CanConvert(Type objectType) - { - return false; - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/CancellationType.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/CancellationType.cs deleted file mode 100644 index c71f45f6..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/CancellationType.cs +++ /dev/null @@ -1,40 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account - /// - /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account - [JsonConverter(typeof(StringEnumConverter))] - public enum CancellationType - { - /// - /// Enum ONCHAIN for value: ON_CHAIN - /// - [EnumMember(Value = "ON_CHAIN")] ONCHAIN, - - /// - /// Enum OFFCHAIN for value: OFF_CHAIN - /// - [EnumMember(Value = "OFF_CHAIN")] OFFCHAIN, - - /// - /// Enum UNDERFUNDED for value: UNDERFUNDED - /// - [EnumMember(Value = "UNDERFUNDED")] UNDERFUNDED - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/CancelledOrderStatusCancellationType.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/CancelledOrderStatusCancellationType.cs deleted file mode 100644 index 878482cf..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/CancelledOrderStatusCancellationType.cs +++ /dev/null @@ -1,40 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account - /// - /// Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account - [JsonConverter(typeof(StringEnumConverter))] - public enum CancelledOrderStatusCancellationType - { - /// - /// Enum ONCHAIN for value: ON_CHAIN - /// - [EnumMember(Value = "ON_CHAIN")] ONCHAIN, - - /// - /// Enum OFFCHAIN for value: OFF_CHAIN - /// - [EnumMember(Value = "OFF_CHAIN")] OFFCHAIN, - - /// - /// Enum UNDERFUNDED for value: UNDERFUNDED - /// - [EnumMember(Value = "UNDERFUNDED")] UNDERFUNDED - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC1155Item.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC1155Item.cs deleted file mode 100644 index 74b11bb8..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC1155Item.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// ERC1155Item - /// - [DataContract(Name = "ERC1155Item")] - public class ERC1155Item - { - /// - /// Defines Type - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum TypeEnum - { - /// - /// Enum ERC1155 for value: ERC1155 - /// - [EnumMember(Value = "ERC1155")] ERC1155 - } - - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ERC1155Item() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// amount (required). - /// contractAddress (required). - /// tokenId (required). - /// type (required). - public ERC1155Item(string amount = default, string contractAddress = default, string tokenId = default, - TypeEnum type = default) - { - // to ensure "amount" is required (not null) - if (amount == null) - throw new ArgumentNullException("amount is a required property for ERC1155Item and cannot be null"); - Amount = amount; - // to ensure "contractAddress" is required (not null) - if (contractAddress == null) - throw new ArgumentNullException( - "contractAddress is a required property for ERC1155Item and cannot be null"); - ContractAddress = contractAddress; - // to ensure "tokenId" is required (not null) - if (tokenId == null) - throw new ArgumentNullException("tokenId is a required property for ERC1155Item and cannot be null"); - TokenId = tokenId; - Type = type; - } - - - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public TypeEnum Type { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] - public string Amount { get; set; } - - /// - /// Gets or Sets ContractAddress - /// - [DataMember(Name = "contractAddress", IsRequired = true, EmitDefaultValue = true)] - public string ContractAddress { get; set; } - - /// - /// Gets or Sets TokenId - /// - [DataMember(Name = "tokenId", IsRequired = true, EmitDefaultValue = true)] - public string TokenId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ERC1155Item {\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); - sb.Append(" TokenId: ").Append(TokenId).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC20Item.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC20Item.cs deleted file mode 100644 index a824dab4..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC20Item.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// ERC20Item - /// - [DataContract(Name = "ERC20Item")] - public class ERC20Item - { - /// - /// Defines Type - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum TypeEnum - { - /// - /// Enum ERC20 for value: ERC20 - /// - [EnumMember(Value = "ERC20")] ERC20 - } - - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ERC20Item() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// amount (required). - /// contractAddress (required). - /// type (required). - public ERC20Item(string amount = default, string contractAddress = default, TypeEnum type = default) - { - // to ensure "amount" is required (not null) - if (amount == null) - throw new ArgumentNullException("amount is a required property for ERC20Item and cannot be null"); - Amount = amount; - // to ensure "contractAddress" is required (not null) - if (contractAddress == null) - throw new ArgumentNullException( - "contractAddress is a required property for ERC20Item and cannot be null"); - ContractAddress = contractAddress; - Type = type; - } - - - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public TypeEnum Type { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] - public string Amount { get; set; } - - /// - /// Gets or Sets ContractAddress - /// - [DataMember(Name = "contractAddress", IsRequired = true, EmitDefaultValue = true)] - public string ContractAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ERC20Item {\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC721Item.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC721Item.cs deleted file mode 100644 index 226016b8..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ERC721Item.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// ERC721Item - /// - [DataContract(Name = "ERC721Item")] - public class ERC721Item - { - /// - /// Defines Type - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum TypeEnum - { - /// - /// Enum ERC721 for value: ERC721 - /// - [EnumMember(Value = "ERC721")] ERC721 - } - - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected ERC721Item() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// contractAddress (required). - /// tokenId (required). - /// type (required). - public ERC721Item(string contractAddress = default, string tokenId = default, TypeEnum type = default) - { - // to ensure "contractAddress" is required (not null) - if (contractAddress == null) - throw new ArgumentNullException( - "contractAddress is a required property for ERC721Item and cannot be null"); - ContractAddress = contractAddress; - // to ensure "tokenId" is required (not null) - if (tokenId == null) - throw new ArgumentNullException("tokenId is a required property for ERC721Item and cannot be null"); - TokenId = tokenId; - Type = type; - } - - - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public TypeEnum Type { get; set; } - - /// - /// Gets or Sets ContractAddress - /// - [DataMember(Name = "contractAddress", IsRequired = true, EmitDefaultValue = true)] - public string ContractAddress { get; set; } - - /// - /// Gets or Sets TokenId - /// - [DataMember(Name = "tokenId", IsRequired = true, EmitDefaultValue = true)] - public string TokenId { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class ERC721Item {\n"); - sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n"); - sb.Append(" TokenId: ").Append(TokenId).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Fee.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Fee.cs deleted file mode 100644 index 5d1e3c71..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Fee.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// Fee - /// - [DataContract(Name = "Fee")] - public class Fee - { - /// - /// Initializes a new instance of the class. - /// - /// amount. - /// recipientAddress. - /// type. - public Fee(string amount = default, string recipientAddress = default, FeeType? type = default) - { - Amount = amount; - RecipientAddress = recipientAddress; - Type = type; - } - - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", EmitDefaultValue = false)] - public FeeType? Type { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name = "amount", EmitDefaultValue = false)] - public string Amount { get; set; } - - /// - /// Gets or Sets RecipientAddress - /// - [DataMember(Name = "recipientAddress", EmitDefaultValue = false)] - public string RecipientAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Fee {\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" RecipientAddress: ").Append(RecipientAddress).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/FeeType.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/FeeType.cs deleted file mode 100644 index 16bb2957..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/FeeType.cs +++ /dev/null @@ -1,46 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// Defines FeeType - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum FeeType - { - /// - /// Enum MAKERECOSYSTEM for value: MAKER_ECOSYSTEM - /// - [EnumMember(Value = "MAKER_ECOSYSTEM")] - MAKERECOSYSTEM, - - /// - /// Enum TAKERECOSYSTEM for value: TAKER_ECOSYSTEM - /// - [EnumMember(Value = "TAKER_ECOSYSTEM")] - TAKERECOSYSTEM, - - /// - /// Enum PROTOCOL for value: PROTOCOL - /// - [EnumMember(Value = "PROTOCOL")] PROTOCOL, - - /// - /// Enum ROYALTY for value: ROYALTY - /// - [EnumMember(Value = "ROYALTY")] ROYALTY - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/FeeValue.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/FeeValue.cs deleted file mode 100644 index b8f8e88b..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/FeeValue.cs +++ /dev/null @@ -1,86 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// FeeValue - /// - [DataContract(Name = "FeeValue")] - public class FeeValue - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected FeeValue() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// amount (required). - /// recipientAddress (required). - public FeeValue(string amount = default, string recipientAddress = default) - { - // to ensure "amount" is required (not null) - if (amount == null) - throw new ArgumentNullException("amount is a required property for FeeValue and cannot be null"); - Amount = amount; - // to ensure "recipientAddress" is required (not null) - if (recipientAddress == null) - throw new ArgumentNullException( - "recipientAddress is a required property for FeeValue and cannot be null"); - RecipientAddress = recipientAddress; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] - public string Amount { get; set; } - - /// - /// Gets or Sets RecipientAddress - /// - [DataMember(Name = "recipientAddress", IsRequired = true, EmitDefaultValue = true)] - public string RecipientAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class FeeValue {\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" RecipientAddress: ").Append(RecipientAddress).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ItemType.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ItemType.cs deleted file mode 100644 index 9d5885fc..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/ItemType.cs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// Defines ItemType - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum ItemType - { - /// - /// Enum _0 for value: 0 - /// - [EnumMember(Value = "0")] _0, - - /// - /// Enum _1 for value: 1 - /// - [EnumMember(Value = "1")] _1, - - /// - /// Enum _2 for value: 2 - /// - [EnumMember(Value = "2")] _2, - - /// - /// Enum _3 for value: 3 - /// - [EnumMember(Value = "3")] _3, - - /// - /// Enum _4 for value: 4 - /// - [EnumMember(Value = "4")] _4, - - /// - /// Enum _5 for value: 5 - /// - [EnumMember(Value = "5")] _5 - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/NativeItem.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/NativeItem.cs deleted file mode 100644 index 128ce1b5..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/NativeItem.cs +++ /dev/null @@ -1,96 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// NativeItem - /// - [DataContract(Name = "NativeItem")] - public class NativeItem - { - /// - /// Defines Type - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum TypeEnum - { - /// - /// Enum NATIVE for value: NATIVE - /// - [EnumMember(Value = "NATIVE")] NATIVE - } - - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected NativeItem() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// amount (required). - /// type (required). - public NativeItem(string amount = default, TypeEnum type = default) - { - // to ensure "amount" is required (not null) - if (amount == null) - throw new ArgumentNullException("amount is a required property for NativeItem and cannot be null"); - Amount = amount; - Type = type; - } - - - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public TypeEnum Type { get; set; } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] - public string Amount { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class NativeItem {\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Order.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Order.cs deleted file mode 100644 index 58864a2f..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/Order.cs +++ /dev/null @@ -1,256 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// Order - /// - [DataContract(Name = "Order")] - public class Order - { - /// - /// Defines Type - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum TypeEnum - { - /// - /// Enum LISTING for value: LISTING - /// - [EnumMember(Value = "LISTING")] LISTING - } - - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected Order() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// accountAddress. - /// buy. - /// chain. - /// createdAt. - /// Time after which the Order is expired. - /// fees. - /// fillStatus. - /// id (required). - /// orderHash (required). - /// protocolData. - /// salt. - /// sell (required). - /// signature (required). - /// Time after which the Order is considered active (required). - /// status (required). - /// type (required). - /// updatedAt (required). - public Order(string accountAddress = default, List buy = default, - OrderChain chain = default, string createdAt = default, string endAt = default, List fees = default, - OrderFillStatus fillStatus = default, string id = default, string orderHash = default, - OrderProtocolData protocolData = default, string salt = default, - List sell = default, string signature = default, - string startAt = default, OrderStatus status = default, TypeEnum type = default, string updatedAt = default) - { - // to ensure "id" is required (not null) - if (id == null) throw new ArgumentNullException("id is a required property for Order and cannot be null"); - Id = id; - // to ensure "orderHash" is required (not null) - if (orderHash == null) - throw new ArgumentNullException("orderHash is a required property for Order and cannot be null"); - OrderHash = orderHash; - // to ensure "sell" is required (not null) - if (sell == null) - throw new ArgumentNullException("sell is a required property for Order and cannot be null"); - Sell = sell; - // to ensure "signature" is required (not null) - if (signature == null) - throw new ArgumentNullException("signature is a required property for Order and cannot be null"); - Signature = signature; - // to ensure "startAt" is required (not null) - if (startAt == null) - throw new ArgumentNullException("startAt is a required property for Order and cannot be null"); - StartAt = startAt; - // to ensure "status" is required (not null) - if (status == null) - throw new ArgumentNullException("status is a required property for Order and cannot be null"); - Status = status; - Type = type; - // to ensure "updatedAt" is required (not null) - if (updatedAt == null) - throw new ArgumentNullException("updatedAt is a required property for Order and cannot be null"); - UpdatedAt = updatedAt; - AccountAddress = accountAddress; - Buy = buy; - Chain = chain; - CreatedAt = createdAt; - EndAt = endAt; - Fees = fees; - FillStatus = fillStatus; - ProtocolData = protocolData; - Salt = salt; - } - - - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public TypeEnum Type { get; set; } - - /// - /// Gets or Sets AccountAddress - /// - [DataMember(Name = "accountAddress", EmitDefaultValue = false)] - public string AccountAddress { get; set; } - - /// - /// Gets or Sets Buy - /// - [DataMember(Name = "buy", EmitDefaultValue = false)] - public List Buy { get; set; } - - /// - /// Gets or Sets Chain - /// - [DataMember(Name = "chain", EmitDefaultValue = false)] - public OrderChain Chain { get; set; } - - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name = "createdAt", EmitDefaultValue = false)] - public string CreatedAt { get; set; } - - /// - /// Time after which the Order is expired - /// - /// Time after which the Order is expired - [DataMember(Name = "endAt", EmitDefaultValue = false)] - public string EndAt { get; set; } - - /// - /// Gets or Sets Fees - /// - [DataMember(Name = "fees", EmitDefaultValue = false)] - public List Fees { get; set; } - - /// - /// Gets or Sets FillStatus - /// - [DataMember(Name = "fillStatus", EmitDefaultValue = false)] - public OrderFillStatus FillStatus { get; set; } - - /// - /// Gets or Sets Id - /// - [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] - public string Id { get; set; } - - /// - /// Gets or Sets OrderHash - /// - [DataMember(Name = "orderHash", IsRequired = true, EmitDefaultValue = true)] - public string OrderHash { get; set; } - - /// - /// Gets or Sets ProtocolData - /// - [DataMember(Name = "protocolData", EmitDefaultValue = false)] - public OrderProtocolData ProtocolData { get; set; } - - /// - /// Gets or Sets Salt - /// - [DataMember(Name = "salt", EmitDefaultValue = false)] - public string Salt { get; set; } - - /// - /// Gets or Sets Sell - /// - [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] - public List Sell { get; set; } - - /// - /// Gets or Sets Signature - /// - [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] - public string Signature { get; set; } - - /// - /// Time after which the Order is considered active - /// - /// Time after which the Order is considered active - [DataMember(Name = "startAt", IsRequired = true, EmitDefaultValue = true)] - public string StartAt { get; set; } - - /// - /// Gets or Sets Status - /// - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] - public OrderStatus Status { get; set; } - - /// - /// Gets or Sets UpdatedAt - /// - [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] - public string UpdatedAt { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Order {\n"); - sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); - sb.Append(" Buy: ").Append(Buy).Append("\n"); - sb.Append(" Chain: ").Append(Chain).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" EndAt: ").Append(EndAt).Append("\n"); - sb.Append(" Fees: ").Append(Fees).Append("\n"); - sb.Append(" FillStatus: ").Append(FillStatus).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); - sb.Append(" ProtocolData: ").Append(ProtocolData).Append("\n"); - sb.Append(" Salt: ").Append(Salt).Append("\n"); - sb.Append(" Sell: ").Append(Sell).Append("\n"); - sb.Append(" Signature: ").Append(Signature).Append("\n"); - sb.Append(" StartAt: ").Append(StartAt).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderChain.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderChain.cs deleted file mode 100644 index 79d9200f..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderChain.cs +++ /dev/null @@ -1,70 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// OrderChain - /// - [DataContract(Name = "Order_chain")] - public class OrderChain - { - /// - /// Initializes a new instance of the class. - /// - /// id. - /// name. - public OrderChain(string id = default, string name = default) - { - Id = id; - Name = name; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderChain {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponents.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponents.cs deleted file mode 100644 index 12a0f558..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponents.cs +++ /dev/null @@ -1,215 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// OrderComponents - /// - [DataContract(Name = "OrderComponents")] - public class OrderComponents - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected OrderComponents() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// conduitKey (required). - /// consideration (required). - /// endTime (required). - /// offer (required). - /// offerer (required). - /// orderType (required). - /// salt (required). - /// startTime (required). - /// totalOriginalConsiderationItems (required). - /// zone (required). - /// zoneHash (required). - /// counter (required). - public OrderComponents(string conduitKey = default, - List consideration = default, string endTime = default, - List offer = default, string offerer = default, OrderType orderType = default, - string salt = default, string startTime = default, string totalOriginalConsiderationItems = default, - string zone = default, string zoneHash = default, string counter = default) - { - // to ensure "conduitKey" is required (not null) - if (conduitKey == null) - throw new ArgumentNullException( - "conduitKey is a required property for OrderComponents and cannot be null"); - ConduitKey = conduitKey; - // to ensure "consideration" is required (not null) - if (consideration == null) - throw new ArgumentNullException( - "consideration is a required property for OrderComponents and cannot be null"); - Consideration = consideration; - // to ensure "endTime" is required (not null) - if (endTime == null) - throw new ArgumentNullException( - "endTime is a required property for OrderComponents and cannot be null"); - EndTime = endTime; - // to ensure "offer" is required (not null) - if (offer == null) - throw new ArgumentNullException("offer is a required property for OrderComponents and cannot be null"); - Offer = offer; - // to ensure "offerer" is required (not null) - if (offerer == null) - throw new ArgumentNullException( - "offerer is a required property for OrderComponents and cannot be null"); - Offerer = offerer; - OrderType = orderType; - // to ensure "salt" is required (not null) - if (salt == null) - throw new ArgumentNullException("salt is a required property for OrderComponents and cannot be null"); - Salt = salt; - // to ensure "startTime" is required (not null) - if (startTime == null) - throw new ArgumentNullException( - "startTime is a required property for OrderComponents and cannot be null"); - StartTime = startTime; - // to ensure "totalOriginalConsiderationItems" is required (not null) - if (totalOriginalConsiderationItems == null) - throw new ArgumentNullException( - "totalOriginalConsiderationItems is a required property for OrderComponents and cannot be null"); - TotalOriginalConsiderationItems = totalOriginalConsiderationItems; - // to ensure "zone" is required (not null) - if (zone == null) - throw new ArgumentNullException("zone is a required property for OrderComponents and cannot be null"); - Zone = zone; - // to ensure "zoneHash" is required (not null) - if (zoneHash == null) - throw new ArgumentNullException( - "zoneHash is a required property for OrderComponents and cannot be null"); - ZoneHash = zoneHash; - // to ensure "counter" is required (not null) - if (counter == null) - throw new ArgumentNullException( - "counter is a required property for OrderComponents and cannot be null"); - Counter = counter; - } - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name = "orderType", IsRequired = true, EmitDefaultValue = true)] - public OrderType OrderType { get; set; } - - /// - /// Gets or Sets ConduitKey - /// - [DataMember(Name = "conduitKey", IsRequired = true, EmitDefaultValue = true)] - public string ConduitKey { get; set; } - - /// - /// Gets or Sets Consideration - /// - [DataMember(Name = "consideration", IsRequired = true, EmitDefaultValue = true)] - public List Consideration { get; set; } - - /// - /// Gets or Sets EndTime - /// - [DataMember(Name = "endTime", IsRequired = true, EmitDefaultValue = true)] - public string EndTime { get; set; } - - /// - /// Gets or Sets Offer - /// - [DataMember(Name = "offer", IsRequired = true, EmitDefaultValue = true)] - public List Offer { get; set; } - - /// - /// Gets or Sets Offerer - /// - [DataMember(Name = "offerer", IsRequired = true, EmitDefaultValue = true)] - public string Offerer { get; set; } - - /// - /// Gets or Sets Salt - /// - [DataMember(Name = "salt", IsRequired = true, EmitDefaultValue = true)] - public string Salt { get; set; } - - /// - /// Gets or Sets StartTime - /// - [DataMember(Name = "startTime", IsRequired = true, EmitDefaultValue = true)] - public string StartTime { get; set; } - - /// - /// Gets or Sets TotalOriginalConsiderationItems - /// - [DataMember(Name = "totalOriginalConsiderationItems", IsRequired = true, EmitDefaultValue = true)] - public string TotalOriginalConsiderationItems { get; set; } - - /// - /// Gets or Sets Zone - /// - [DataMember(Name = "zone", IsRequired = true, EmitDefaultValue = true)] - public string Zone { get; set; } - - /// - /// Gets or Sets ZoneHash - /// - [DataMember(Name = "zoneHash", IsRequired = true, EmitDefaultValue = true)] - public string ZoneHash { get; set; } - - /// - /// Gets or Sets Counter - /// - [DataMember(Name = "counter", IsRequired = true, EmitDefaultValue = true)] - public string Counter { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderComponents {\n"); - sb.Append(" ConduitKey: ").Append(ConduitKey).Append("\n"); - sb.Append(" Consideration: ").Append(Consideration).Append("\n"); - sb.Append(" EndTime: ").Append(EndTime).Append("\n"); - sb.Append(" Offer: ").Append(Offer).Append("\n"); - sb.Append(" Offerer: ").Append(Offerer).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" Salt: ").Append(Salt).Append("\n"); - sb.Append(" StartTime: ").Append(StartTime).Append("\n"); - sb.Append(" TotalOriginalConsiderationItems: ").Append(TotalOriginalConsiderationItems).Append("\n"); - sb.Append(" Zone: ").Append(Zone).Append("\n"); - sb.Append(" ZoneHash: ").Append(ZoneHash).Append("\n"); - sb.Append(" Counter: ").Append(Counter).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponentsConsiderationInner.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponentsConsiderationInner.cs deleted file mode 100644 index 14926d90..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponentsConsiderationInner.cs +++ /dev/null @@ -1,137 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// OrderComponentsConsiderationInner - /// - [DataContract(Name = "OrderComponents_consideration_inner")] - public class OrderComponentsConsiderationInner - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected OrderComponentsConsiderationInner() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// endAmount (required). - /// identifierOrCriteria (required). - /// itemType (required). - /// recipient (required). - /// startAmount (required). - /// token (required). - public OrderComponentsConsiderationInner(string endAmount = default, string identifierOrCriteria = default, - ItemType itemType = default, string recipient = default, string startAmount = default, - string token = default) - { - // to ensure "endAmount" is required (not null) - if (endAmount == null) - throw new ArgumentNullException( - "endAmount is a required property for OrderComponentsConsiderationInner and cannot be null"); - EndAmount = endAmount; - // to ensure "identifierOrCriteria" is required (not null) - if (identifierOrCriteria == null) - throw new ArgumentNullException( - "identifierOrCriteria is a required property for OrderComponentsConsiderationInner and cannot be null"); - IdentifierOrCriteria = identifierOrCriteria; - ItemType = itemType; - // to ensure "recipient" is required (not null) - if (recipient == null) - throw new ArgumentNullException( - "recipient is a required property for OrderComponentsConsiderationInner and cannot be null"); - Recipient = recipient; - // to ensure "startAmount" is required (not null) - if (startAmount == null) - throw new ArgumentNullException( - "startAmount is a required property for OrderComponentsConsiderationInner and cannot be null"); - StartAmount = startAmount; - // to ensure "token" is required (not null) - if (token == null) - throw new ArgumentNullException( - "token is a required property for OrderComponentsConsiderationInner and cannot be null"); - Token = token; - } - - /// - /// Gets or Sets ItemType - /// - [DataMember(Name = "itemType", IsRequired = true, EmitDefaultValue = true)] - public ItemType ItemType { get; set; } - - /// - /// Gets or Sets EndAmount - /// - [DataMember(Name = "endAmount", IsRequired = true, EmitDefaultValue = true)] - public string EndAmount { get; set; } - - /// - /// Gets or Sets IdentifierOrCriteria - /// - [DataMember(Name = "identifierOrCriteria", IsRequired = true, EmitDefaultValue = true)] - public string IdentifierOrCriteria { get; set; } - - /// - /// Gets or Sets Recipient - /// - [DataMember(Name = "recipient", IsRequired = true, EmitDefaultValue = true)] - public string Recipient { get; set; } - - /// - /// Gets or Sets StartAmount - /// - [DataMember(Name = "startAmount", IsRequired = true, EmitDefaultValue = true)] - public string StartAmount { get; set; } - - /// - /// Gets or Sets Token - /// - [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)] - public string Token { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderComponentsConsiderationInner {\n"); - sb.Append(" EndAmount: ").Append(EndAmount).Append("\n"); - sb.Append(" IdentifierOrCriteria: ").Append(IdentifierOrCriteria).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" Recipient: ").Append(Recipient).Append("\n"); - sb.Append(" StartAmount: ").Append(StartAmount).Append("\n"); - sb.Append(" Token: ").Append(Token).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponentsOfferInner.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponentsOfferInner.cs deleted file mode 100644 index b31a0233..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderComponentsOfferInner.cs +++ /dev/null @@ -1,123 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// OrderComponentsOfferInner - /// - [DataContract(Name = "OrderComponents_offer_inner")] - public class OrderComponentsOfferInner - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected OrderComponentsOfferInner() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// endAmount (required). - /// identifierOrCriteria (required). - /// itemType (required). - /// startAmount (required). - /// token (required). - public OrderComponentsOfferInner(string endAmount = default, string identifierOrCriteria = default, - ItemType itemType = default, string startAmount = default, string token = default) - { - // to ensure "endAmount" is required (not null) - if (endAmount == null) - throw new ArgumentNullException( - "endAmount is a required property for OrderComponentsOfferInner and cannot be null"); - EndAmount = endAmount; - // to ensure "identifierOrCriteria" is required (not null) - if (identifierOrCriteria == null) - throw new ArgumentNullException( - "identifierOrCriteria is a required property for OrderComponentsOfferInner and cannot be null"); - IdentifierOrCriteria = identifierOrCriteria; - ItemType = itemType; - // to ensure "startAmount" is required (not null) - if (startAmount == null) - throw new ArgumentNullException( - "startAmount is a required property for OrderComponentsOfferInner and cannot be null"); - StartAmount = startAmount; - // to ensure "token" is required (not null) - if (token == null) - throw new ArgumentNullException( - "token is a required property for OrderComponentsOfferInner and cannot be null"); - Token = token; - } - - /// - /// Gets or Sets ItemType - /// - [DataMember(Name = "itemType", IsRequired = true, EmitDefaultValue = true)] - public ItemType ItemType { get; set; } - - /// - /// Gets or Sets EndAmount - /// - [DataMember(Name = "endAmount", IsRequired = true, EmitDefaultValue = true)] - public string EndAmount { get; set; } - - /// - /// Gets or Sets IdentifierOrCriteria - /// - [DataMember(Name = "identifierOrCriteria", IsRequired = true, EmitDefaultValue = true)] - public string IdentifierOrCriteria { get; set; } - - /// - /// Gets or Sets StartAmount - /// - [DataMember(Name = "startAmount", IsRequired = true, EmitDefaultValue = true)] - public string StartAmount { get; set; } - - /// - /// Gets or Sets Token - /// - [DataMember(Name = "token", IsRequired = true, EmitDefaultValue = true)] - public string Token { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderComponentsOfferInner {\n"); - sb.Append(" EndAmount: ").Append(EndAmount).Append("\n"); - sb.Append(" IdentifierOrCriteria: ").Append(IdentifierOrCriteria).Append("\n"); - sb.Append(" ItemType: ").Append(ItemType).Append("\n"); - sb.Append(" StartAmount: ").Append(StartAmount).Append("\n"); - sb.Append(" Token: ").Append(Token).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderFillStatus.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderFillStatus.cs deleted file mode 100644 index 194fe049..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderFillStatus.cs +++ /dev/null @@ -1,70 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// OrderFillStatus - /// - [DataContract(Name = "Order_fillStatus")] - public class OrderFillStatus - { - /// - /// Initializes a new instance of the class. - /// - /// denominator. - /// numerator. - public OrderFillStatus(string denominator = default, string numerator = default) - { - Denominator = denominator; - Numerator = numerator; - } - - /// - /// Gets or Sets Denominator - /// - [DataMember(Name = "denominator", EmitDefaultValue = false)] - public string Denominator { get; set; } - - /// - /// Gets or Sets Numerator - /// - [DataMember(Name = "numerator", EmitDefaultValue = false)] - public string Numerator { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderFillStatus {\n"); - sb.Append(" Denominator: ").Append(Denominator).Append("\n"); - sb.Append(" Numerator: ").Append(Numerator).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderProtocolData.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderProtocolData.cs deleted file mode 100644 index 4ed7142f..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderProtocolData.cs +++ /dev/null @@ -1,119 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// OrderProtocolData - /// - [DataContract(Name = "Order_protocolData")] - public class OrderProtocolData - { - /// - /// Defines OrderType - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum OrderTypeEnum - { - /// - /// Enum FULLRESTRICTED for value: FULL_RESTRICTED - /// - [EnumMember(Value = "FULL_RESTRICTED")] - FULLRESTRICTED, - - /// - /// Enum PARTIALRESTRICTED for value: PARTIAL_RESTRICTED - /// - [EnumMember(Value = "PARTIAL_RESTRICTED")] - PARTIALRESTRICTED - } - - /// - /// Initializes a new instance of the class. - /// - /// counter. - /// orderType. - /// seaportAddress. - /// seaportVersion. - /// zoneAddress. - public OrderProtocolData(string counter = default, OrderTypeEnum? orderType = default, - string seaportAddress = default, string seaportVersion = default, string zoneAddress = default) - { - Counter = counter; - OrderType = orderType; - SeaportAddress = seaportAddress; - SeaportVersion = seaportVersion; - ZoneAddress = zoneAddress; - } - - - /// - /// Gets or Sets OrderType - /// - [DataMember(Name = "orderType", EmitDefaultValue = false)] - public OrderTypeEnum? OrderType { get; set; } - - /// - /// Gets or Sets Counter - /// - [DataMember(Name = "counter", EmitDefaultValue = false)] - public string Counter { get; set; } - - /// - /// Gets or Sets SeaportAddress - /// - [DataMember(Name = "seaportAddress", EmitDefaultValue = false)] - public string SeaportAddress { get; set; } - - /// - /// Gets or Sets SeaportVersion - /// - [DataMember(Name = "seaportVersion", EmitDefaultValue = false)] - public string SeaportVersion { get; set; } - - /// - /// Gets or Sets ZoneAddress - /// - [DataMember(Name = "zoneAddress", EmitDefaultValue = false)] - public string ZoneAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderProtocolData {\n"); - sb.Append(" Counter: ").Append(Counter).Append("\n"); - sb.Append(" OrderType: ").Append(OrderType).Append("\n"); - sb.Append(" SeaportAddress: ").Append(SeaportAddress).Append("\n"); - sb.Append(" SeaportVersion: ").Append(SeaportVersion).Append("\n"); - sb.Append(" ZoneAddress: ").Append(ZoneAddress).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatus.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatus.cs deleted file mode 100644 index e1ea2ef8..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatus.cs +++ /dev/null @@ -1,406 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - -namespace Immutable.Ts.Model -{ - /// - /// The Order status - /// - [JsonConverter(typeof(OrderStatusJsonConverter))] - [DataContract(Name = "OrderStatus")] - public class OrderStatus : AbstractOpenAPISchema - { - private object _actualInstance; - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of OrderStatusOneOf. - public OrderStatus(OrderStatusOneOf actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of OrderStatusOneOf1. - public OrderStatus(OrderStatusOneOf1 actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of OrderStatusOneOf2. - public OrderStatus(OrderStatusOneOf2 actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of OrderStatusOneOf3. - public OrderStatus(OrderStatusOneOf3 actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of OrderStatusOneOf4. - public OrderStatus(OrderStatusOneOf4 actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of OrderStatusOneOf5. - public OrderStatus(OrderStatusOneOf5 actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Gets or Sets ActualInstance - /// - public override object ActualInstance - { - get => _actualInstance; - set - { - if (value.GetType() == typeof(OrderStatusOneOf) || value is OrderStatusOneOf) - _actualInstance = value; - else if (value.GetType() == typeof(OrderStatusOneOf1) || value is OrderStatusOneOf1) - _actualInstance = value; - else if (value.GetType() == typeof(OrderStatusOneOf2) || value is OrderStatusOneOf2) - _actualInstance = value; - else if (value.GetType() == typeof(OrderStatusOneOf3) || value is OrderStatusOneOf3) - _actualInstance = value; - else if (value.GetType() == typeof(OrderStatusOneOf4) || value is OrderStatusOneOf4) - _actualInstance = value; - else if (value.GetType() == typeof(OrderStatusOneOf5) || value is OrderStatusOneOf5) - _actualInstance = value; - else - throw new ArgumentException( - "Invalid instance found. Must be the following types: OrderStatusOneOf, OrderStatusOneOf1, OrderStatusOneOf2, OrderStatusOneOf3, OrderStatusOneOf4, OrderStatusOneOf5"); - } - } - - /// - /// Get the actual instance of `OrderStatusOneOf`. If the actual instance is not `OrderStatusOneOf`, - /// the InvalidClassException will be thrown - /// - /// An instance of OrderStatusOneOf - public OrderStatusOneOf GetOrderStatusOneOf() - { - return (OrderStatusOneOf)ActualInstance; - } - - /// - /// Get the actual instance of `OrderStatusOneOf1`. If the actual instance is not `OrderStatusOneOf1`, - /// the InvalidClassException will be thrown - /// - /// An instance of OrderStatusOneOf1 - public OrderStatusOneOf1 GetOrderStatusOneOf1() - { - return (OrderStatusOneOf1)ActualInstance; - } - - /// - /// Get the actual instance of `OrderStatusOneOf2`. If the actual instance is not `OrderStatusOneOf2`, - /// the InvalidClassException will be thrown - /// - /// An instance of OrderStatusOneOf2 - public OrderStatusOneOf2 GetOrderStatusOneOf2() - { - return (OrderStatusOneOf2)ActualInstance; - } - - /// - /// Get the actual instance of `OrderStatusOneOf3`. If the actual instance is not `OrderStatusOneOf3`, - /// the InvalidClassException will be thrown - /// - /// An instance of OrderStatusOneOf3 - public OrderStatusOneOf3 GetOrderStatusOneOf3() - { - return (OrderStatusOneOf3)ActualInstance; - } - - /// - /// Get the actual instance of `OrderStatusOneOf4`. If the actual instance is not `OrderStatusOneOf4`, - /// the InvalidClassException will be thrown - /// - /// An instance of OrderStatusOneOf4 - public OrderStatusOneOf4 GetOrderStatusOneOf4() - { - return (OrderStatusOneOf4)ActualInstance; - } - - /// - /// Get the actual instance of `OrderStatusOneOf5`. If the actual instance is not `OrderStatusOneOf5`, - /// the InvalidClassException will be thrown - /// - /// An instance of OrderStatusOneOf5 - public OrderStatusOneOf5 GetOrderStatusOneOf5() - { - return (OrderStatusOneOf5)ActualInstance; - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderStatus {\n"); - sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(ActualInstance, SerializerSettings); - } - - /// - /// Converts the JSON string into an instance of OrderStatus - /// - /// JSON string - /// An instance of OrderStatus - public static OrderStatus FromJson(string jsonString) - { - OrderStatus newOrderStatus = null; - - if (string.IsNullOrEmpty(jsonString)) return newOrderStatus; - var match = 0; - var matchedTypes = new List(); - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(OrderStatusOneOf).GetProperty("AdditionalProperties") == null) - newOrderStatus = - new OrderStatus( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newOrderStatus = - new OrderStatus(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("OrderStatusOneOf"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into OrderStatusOneOf: {1}", jsonString, exception); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(OrderStatusOneOf1).GetProperty("AdditionalProperties") == null) - newOrderStatus = - new OrderStatus( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newOrderStatus = - new OrderStatus(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("OrderStatusOneOf1"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into OrderStatusOneOf1: {1}", jsonString, exception); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(OrderStatusOneOf2).GetProperty("AdditionalProperties") == null) - newOrderStatus = - new OrderStatus( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newOrderStatus = - new OrderStatus(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("OrderStatusOneOf2"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into OrderStatusOneOf2: {1}", jsonString, exception); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(OrderStatusOneOf3).GetProperty("AdditionalProperties") == null) - newOrderStatus = - new OrderStatus( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newOrderStatus = - new OrderStatus(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("OrderStatusOneOf3"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into OrderStatusOneOf3: {1}", jsonString, exception); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(OrderStatusOneOf4).GetProperty("AdditionalProperties") == null) - newOrderStatus = - new OrderStatus( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newOrderStatus = - new OrderStatus(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("OrderStatusOneOf4"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into OrderStatusOneOf4: {1}", jsonString, exception); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(OrderStatusOneOf5).GetProperty("AdditionalProperties") == null) - newOrderStatus = - new OrderStatus( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newOrderStatus = - new OrderStatus(JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("OrderStatusOneOf5"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into OrderStatusOneOf5: {1}", jsonString, exception); - } - - if (match == 0) - throw new InvalidDataException("The JSON string `" + jsonString + - "` cannot be deserialized into any schema defined."); - if (match > 1) - throw new InvalidDataException("The JSON string `" + jsonString + - "` incorrectly matches more than one schema (should be exactly one match): " + - string.Join(",", matchedTypes)); - - // deserialization is considered successful at this point if no exception has been thrown. - return newOrderStatus; - } - } - - /// - /// Custom JSON converter for OrderStatus - /// - public class OrderStatusJsonConverter : JsonConverter - { - /// - /// To write the JSON string - /// - /// JSON writer - /// Object to be converted into a JSON string - /// JSON Serializer - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteRawValue((string)typeof(OrderStatus).GetMethod("ToJson").Invoke(value, null)); - } - - /// - /// To convert a JSON string into an object - /// - /// JSON reader - /// Object type - /// Existing value - /// JSON Serializer - /// The object converted from the JSON string - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) - { - switch (reader.TokenType) - { - case JsonToken.StartObject: - return OrderStatus.FromJson(JObject.Load(reader).ToString(Formatting.None)); - case JsonToken.StartArray: - return OrderStatus.FromJson(JArray.Load(reader).ToString(Formatting.None)); - default: - return null; - } - } - - /// - /// Check if the object can be converted - /// - /// Object type - /// True if the object can be converted - public override bool CanConvert(Type objectType) - { - return false; - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf.cs deleted file mode 100644 index 586d3c37..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf.cs +++ /dev/null @@ -1,77 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// OrderStatusOneOf - /// - [DataContract(Name = "OrderStatus_oneOf")] - public class OrderStatusOneOf - { - /// - /// The order status that indicates an order can be fulfilled. - /// - /// The order status that indicates an order can be fulfilled. - [JsonConverter(typeof(StringEnumConverter))] - public enum NameEnum - { - /// - /// Enum ACTIVE for value: ACTIVE - /// - [EnumMember(Value = "ACTIVE")] ACTIVE - } - - /// - /// Initializes a new instance of the class. - /// - /// The order status that indicates an order can be fulfilled.. - public OrderStatusOneOf(NameEnum? name = default) - { - Name = name; - } - - - /// - /// The order status that indicates an order can be fulfilled. - /// - /// The order status that indicates an order can be fulfilled. - [DataMember(Name = "name", EmitDefaultValue = false)] - public NameEnum? Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderStatusOneOf {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf1.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf1.cs deleted file mode 100644 index a28de50a..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf1.cs +++ /dev/null @@ -1,97 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// OrderStatusOneOf1 - /// - [DataContract(Name = "OrderStatus_oneOf_1")] - public class OrderStatusOneOf1 - { - /// - /// The order status indicating a order is has been cancelled or about to be cancelled. - /// - /// The order status indicating a order is has been cancelled or about to be cancelled. - [JsonConverter(typeof(StringEnumConverter))] - public enum NameEnum - { - /// - /// Enum CANCELLED for value: CANCELLED - /// - [EnumMember(Value = "CANCELLED")] CANCELLED - } - - /// - /// Initializes a new instance of the class. - /// - /// cancellationType. - /// The order status indicating a order is has been cancelled or about to be cancelled.. - /// Whether the cancellation of the order is pending. - public OrderStatusOneOf1(CancellationType? cancellationType = default, NameEnum? name = default, - bool pending = default) - { - CancellationType = cancellationType; - Name = name; - Pending = pending; - } - - /// - /// Gets or Sets CancellationType - /// - [DataMember(Name = "cancellation_type", EmitDefaultValue = false)] - public CancellationType? CancellationType { get; set; } - - - /// - /// The order status indicating a order is has been cancelled or about to be cancelled. - /// - /// The order status indicating a order is has been cancelled or about to be cancelled. - [DataMember(Name = "name", EmitDefaultValue = false)] - public NameEnum? Name { get; set; } - - /// - /// Whether the cancellation of the order is pending - /// - /// Whether the cancellation of the order is pending - [DataMember(Name = "pending", EmitDefaultValue = true)] - public bool Pending { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderStatusOneOf1 {\n"); - sb.Append(" CancellationType: ").Append(CancellationType).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Pending: ").Append(Pending).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf2.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf2.cs deleted file mode 100644 index addf6b36..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf2.cs +++ /dev/null @@ -1,77 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// OrderStatusOneOf2 - /// - [DataContract(Name = "OrderStatus_oneOf_2")] - public class OrderStatusOneOf2 - { - /// - /// A terminal order status indicating that an order cannot be fulfilled due to expiry. - /// - /// A terminal order status indicating that an order cannot be fulfilled due to expiry. - [JsonConverter(typeof(StringEnumConverter))] - public enum NameEnum - { - /// - /// Enum EXPIRED for value: EXPIRED - /// - [EnumMember(Value = "EXPIRED")] EXPIRED - } - - /// - /// Initializes a new instance of the class. - /// - /// A terminal order status indicating that an order cannot be fulfilled due to expiry.. - public OrderStatusOneOf2(NameEnum? name = default) - { - Name = name; - } - - - /// - /// A terminal order status indicating that an order cannot be fulfilled due to expiry. - /// - /// A terminal order status indicating that an order cannot be fulfilled due to expiry. - [DataMember(Name = "name", EmitDefaultValue = false)] - public NameEnum? Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderStatusOneOf2 {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf3.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf3.cs deleted file mode 100644 index e62d2305..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf3.cs +++ /dev/null @@ -1,77 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// OrderStatusOneOf3 - /// - [DataContract(Name = "OrderStatus_oneOf_3")] - public class OrderStatusOneOf3 - { - /// - /// A terminal order status indicating that an order has been fulfilled. - /// - /// A terminal order status indicating that an order has been fulfilled. - [JsonConverter(typeof(StringEnumConverter))] - public enum NameEnum - { - /// - /// Enum FILLED for value: FILLED - /// - [EnumMember(Value = "FILLED")] FILLED - } - - /// - /// Initializes a new instance of the class. - /// - /// A terminal order status indicating that an order has been fulfilled.. - public OrderStatusOneOf3(NameEnum? name = default) - { - Name = name; - } - - - /// - /// A terminal order status indicating that an order has been fulfilled. - /// - /// A terminal order status indicating that an order has been fulfilled. - [DataMember(Name = "name", EmitDefaultValue = false)] - public NameEnum? Name { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderStatusOneOf3 {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf4.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf4.cs deleted file mode 100644 index 315f3417..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf4.cs +++ /dev/null @@ -1,98 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// OrderStatusOneOf4 - /// - [DataContract(Name = "OrderStatus_oneOf_4")] - public class OrderStatusOneOf4 - { - /// - /// The order status that indicates an order cannot be fulfilled. - /// - /// The order status that indicates an order cannot be fulfilled. - [JsonConverter(typeof(StringEnumConverter))] - public enum NameEnum - { - /// - /// Enum INACTIVE for value: INACTIVE - /// - [EnumMember(Value = "INACTIVE")] INACTIVE - } - - /// - /// Initializes a new instance of the class. - /// - /// The order status that indicates an order cannot be fulfilled.. - /// Whether the order offerer has sufficient approvals. - /// Whether the order offerer still has sufficient balance to complete the order. - public OrderStatusOneOf4(NameEnum? name = default, bool sufficientApprovals = default, - bool sufficientBalances = default) - { - Name = name; - SufficientApprovals = sufficientApprovals; - SufficientBalances = sufficientBalances; - } - - - /// - /// The order status that indicates an order cannot be fulfilled. - /// - /// The order status that indicates an order cannot be fulfilled. - [DataMember(Name = "name", EmitDefaultValue = false)] - public NameEnum? Name { get; set; } - - /// - /// Whether the order offerer has sufficient approvals - /// - /// Whether the order offerer has sufficient approvals - [DataMember(Name = "sufficient_approvals", EmitDefaultValue = true)] - public bool SufficientApprovals { get; set; } - - /// - /// Whether the order offerer still has sufficient balance to complete the order - /// - /// Whether the order offerer still has sufficient balance to complete the order - [DataMember(Name = "sufficient_balances", EmitDefaultValue = true)] - public bool SufficientBalances { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderStatusOneOf4 {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" SufficientApprovals: ").Append(SufficientApprovals).Append("\n"); - sb.Append(" SufficientBalances: ").Append(SufficientBalances).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf5.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf5.cs deleted file mode 100644 index 5e9c58d6..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderStatusOneOf5.cs +++ /dev/null @@ -1,97 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// OrderStatusOneOf5 - /// - [DataContract(Name = "OrderStatus_oneOf_5")] - public class OrderStatusOneOf5 - { - /// - /// The order status that indicates the order is yet to be active due to various reasons. - /// - /// The order status that indicates the order is yet to be active due to various reasons. - [JsonConverter(typeof(StringEnumConverter))] - public enum NameEnum - { - /// - /// Enum PENDING for value: PENDING - /// - [EnumMember(Value = "PENDING")] PENDING - } - - /// - /// Initializes a new instance of the class. - /// - /// Whether the order has been evaluated after its creation. - /// The order status that indicates the order is yet to be active due to various reasons.. - /// Whether the order has reached its specified start time. - public OrderStatusOneOf5(bool evaluated = default, NameEnum? name = default, bool started = default) - { - Evaluated = evaluated; - Name = name; - Started = started; - } - - - /// - /// The order status that indicates the order is yet to be active due to various reasons. - /// - /// The order status that indicates the order is yet to be active due to various reasons. - [DataMember(Name = "name", EmitDefaultValue = false)] - public NameEnum? Name { get; set; } - - /// - /// Whether the order has been evaluated after its creation - /// - /// Whether the order has been evaluated after its creation - [DataMember(Name = "evaluated", EmitDefaultValue = true)] - public bool Evaluated { get; set; } - - /// - /// Whether the order has reached its specified start time - /// - /// Whether the order has reached its specified start time - [DataMember(Name = "started", EmitDefaultValue = true)] - public bool Started { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class OrderStatusOneOf5 {\n"); - sb.Append(" Evaluated: ").Append(Evaluated).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Started: ").Append(Started).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderType.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderType.cs deleted file mode 100644 index c55b344c..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/OrderType.cs +++ /dev/null @@ -1,44 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// Defines OrderType - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum OrderType - { - /// - /// Enum _0 for value: 0 - /// - [EnumMember(Value = "0")] _0, - - /// - /// Enum _1 for value: 1 - /// - [EnumMember(Value = "1")] _1, - - /// - /// Enum _2 for value: 2 - /// - [EnumMember(Value = "2")] _2, - - /// - /// Enum _3 for value: 3 - /// - [EnumMember(Value = "3")] _3 - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/RecordStringTypedDataFieldValueInner.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/RecordStringTypedDataFieldValueInner.cs deleted file mode 100644 index b47433a0..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/RecordStringTypedDataFieldValueInner.cs +++ /dev/null @@ -1,87 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// RecordStringTypedDataFieldValueInner - /// - [DataContract(Name = "RecordStringTypedDataField_value_inner")] - public class RecordStringTypedDataFieldValueInner - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected RecordStringTypedDataFieldValueInner() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// name (required). - /// type (required). - public RecordStringTypedDataFieldValueInner(string name = default, string type = default) - { - // to ensure "name" is required (not null) - if (name == null) - throw new ArgumentNullException( - "name is a required property for RecordStringTypedDataFieldValueInner and cannot be null"); - Name = name; - // to ensure "type" is required (not null) - if (type == null) - throw new ArgumentNullException( - "type is a required property for RecordStringTypedDataFieldValueInner and cannot be null"); - Type = type; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public string Name { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public string Type { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class RecordStringTypedDataFieldValueInner {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignableAction.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignableAction.cs deleted file mode 100644 index 88665a37..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignableAction.cs +++ /dev/null @@ -1,102 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// SignableAction - /// - [DataContract(Name = "SignableAction")] - public class SignableAction - { - /// - /// Defines Type - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum TypeEnum - { - /// - /// Enum SIGNABLE for value: SIGNABLE - /// - [EnumMember(Value = "SIGNABLE")] SIGNABLE - } - - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SignableAction() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// message. - /// purpose. - /// type (required). - public SignableAction(SignableActionMessage message = default, SignablePurpose? purpose = default, - TypeEnum type = default) - { - Type = type; - Message = message; - Purpose = purpose; - } - - /// - /// Gets or Sets Purpose - /// - [DataMember(Name = "purpose", EmitDefaultValue = false)] - public SignablePurpose? Purpose { get; set; } - - - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public TypeEnum Type { get; set; } - - /// - /// Gets or Sets Message - /// - [DataMember(Name = "message", EmitDefaultValue = false)] - public SignableActionMessage Message { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignableAction {\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" Purpose: ").Append(Purpose).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignableActionMessage.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignableActionMessage.cs deleted file mode 100644 index e719e9df..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignableActionMessage.cs +++ /dev/null @@ -1,91 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// SignableActionMessage - /// - [DataContract(Name = "SignableAction_message")] - public class SignableActionMessage - { - /// - /// Initializes a new instance of the class. - /// - /// domain. - /// types. - /// message. - /// primaryType. - public SignableActionMessage(TypedDataDomain domain = default, - Dictionary> types = default, - Dictionary message = default, string primaryType = default) - { - Domain = domain; - Types = types; - Message = message; - PrimaryType = primaryType; - } - - /// - /// Gets or Sets Domain - /// - [DataMember(Name = "domain", EmitDefaultValue = false)] - public TypedDataDomain Domain { get; set; } - - /// - /// Gets or Sets Types - /// - [DataMember(Name = "types", EmitDefaultValue = false)] - public Dictionary> Types { get; set; } - - /// - /// Gets or Sets Message - /// - [DataMember(Name = "message", EmitDefaultValue = false)] - public Dictionary Message { get; set; } - - /// - /// Gets or Sets PrimaryType - /// - [DataMember(Name = "primaryType", EmitDefaultValue = false)] - public string PrimaryType { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class SignableActionMessage {\n"); - sb.Append(" Domain: ").Append(Domain).Append("\n"); - sb.Append(" Types: ").Append(Types).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" PrimaryType: ").Append(PrimaryType).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignablePurpose.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignablePurpose.cs deleted file mode 100644 index 4e2e2093..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/SignablePurpose.cs +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// Defines SignablePurpose - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum SignablePurpose - { - /// - /// Enum CREATELISTING for value: CREATE_LISTING - /// - [EnumMember(Value = "CREATE_LISTING")] CREATELISTING, - - /// - /// Enum OFFCHAINCANCELLATION for value: OFF_CHAIN_CANCELLATION - /// - [EnumMember(Value = "OFF_CHAIN_CANCELLATION")] - OFFCHAINCANCELLATION - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionAction.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionAction.cs deleted file mode 100644 index 81e9f1cd..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionAction.cs +++ /dev/null @@ -1,102 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// TransactionAction - /// - [DataContract(Name = "TransactionAction")] - public class TransactionAction - { - /// - /// Defines Type - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum TypeEnum - { - /// - /// Enum TRANSACTION for value: TRANSACTION - /// - [EnumMember(Value = "TRANSACTION")] TRANSACTION - } - - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected TransactionAction() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// populatedTransactions. - /// purpose. - /// type (required). - public TransactionAction(TransactionActionPopulatedTransactions populatedTransactions = default, - TransactionPurpose? purpose = default, TypeEnum type = default) - { - Type = type; - PopulatedTransactions = populatedTransactions; - Purpose = purpose; - } - - /// - /// Gets or Sets Purpose - /// - [DataMember(Name = "purpose", EmitDefaultValue = false)] - public TransactionPurpose? Purpose { get; set; } - - - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public TypeEnum Type { get; set; } - - /// - /// Gets or Sets PopulatedTransactions - /// - [DataMember(Name = "populatedTransactions", EmitDefaultValue = false)] - public TransactionActionPopulatedTransactions PopulatedTransactions { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TransactionAction {\n"); - sb.Append(" PopulatedTransactions: ").Append(PopulatedTransactions).Append("\n"); - sb.Append(" Purpose: ").Append(Purpose).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionActionPopulatedTransactions.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionActionPopulatedTransactions.cs deleted file mode 100644 index bdc0fbf3..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionActionPopulatedTransactions.cs +++ /dev/null @@ -1,184 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// TransactionActionPopulatedTransactions - /// - [DataContract(Name = "TransactionAction_populatedTransactions")] - public class TransactionActionPopulatedTransactions - { - /// - /// Initializes a new instance of the class. - /// - /// to. - /// from. - /// nonce. - /// gasLimit. - /// gasPrice. - /// data. - /// value. - /// chainId. - /// type. - /// accessList. - /// maxFeePerGas. - /// maxPriorityFeePerGas. - /// customData. - /// ccipReadEnabled. - public TransactionActionPopulatedTransactions(string to = default, string from = default, - decimal nonce = default, string gasLimit = default, string gasPrice = default, string data = default, - string value = default, decimal chainId = default, decimal type = default, - List accessList = default, - string maxFeePerGas = default, string maxPriorityFeePerGas = default, - Dictionary customData = default, bool ccipReadEnabled = default) - { - To = to; - From = from; - Nonce = nonce; - GasLimit = gasLimit; - GasPrice = gasPrice; - Data = data; - Value = value; - ChainId = chainId; - Type = type; - AccessList = accessList; - MaxFeePerGas = maxFeePerGas; - MaxPriorityFeePerGas = maxPriorityFeePerGas; - CustomData = customData; - CcipReadEnabled = ccipReadEnabled; - } - - /// - /// Gets or Sets To - /// - [DataMember(Name = "to", EmitDefaultValue = false)] - public string To { get; set; } - - /// - /// Gets or Sets From - /// - [DataMember(Name = "from", EmitDefaultValue = false)] - public string From { get; set; } - - /// - /// Gets or Sets Nonce - /// - [DataMember(Name = "nonce", EmitDefaultValue = false)] - public decimal Nonce { get; set; } - - /// - /// Gets or Sets GasLimit - /// - [DataMember(Name = "gasLimit", EmitDefaultValue = false)] - public string GasLimit { get; set; } - - /// - /// Gets or Sets GasPrice - /// - [DataMember(Name = "gasPrice", EmitDefaultValue = false)] - public string GasPrice { get; set; } - - /// - /// Gets or Sets Data - /// - [DataMember(Name = "data", EmitDefaultValue = false)] - public string Data { get; set; } - - /// - /// Gets or Sets Value - /// - [DataMember(Name = "value", EmitDefaultValue = false)] - public string Value { get; set; } - - /// - /// Gets or Sets ChainId - /// - [DataMember(Name = "chainId", EmitDefaultValue = false)] - public decimal ChainId { get; set; } - - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", EmitDefaultValue = false)] - public decimal Type { get; set; } - - /// - /// Gets or Sets AccessList - /// - [DataMember(Name = "accessList", EmitDefaultValue = false)] - public List AccessList { get; set; } - - /// - /// Gets or Sets MaxFeePerGas - /// - [DataMember(Name = "maxFeePerGas", EmitDefaultValue = false)] - public string MaxFeePerGas { get; set; } - - /// - /// Gets or Sets MaxPriorityFeePerGas - /// - [DataMember(Name = "maxPriorityFeePerGas", EmitDefaultValue = false)] - public string MaxPriorityFeePerGas { get; set; } - - /// - /// Gets or Sets CustomData - /// - [DataMember(Name = "customData", EmitDefaultValue = false)] - public Dictionary CustomData { get; set; } - - /// - /// Gets or Sets CcipReadEnabled - /// - [DataMember(Name = "ccipReadEnabled", EmitDefaultValue = true)] - public bool CcipReadEnabled { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TransactionActionPopulatedTransactions {\n"); - sb.Append(" To: ").Append(To).Append("\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" Nonce: ").Append(Nonce).Append("\n"); - sb.Append(" GasLimit: ").Append(GasLimit).Append("\n"); - sb.Append(" GasPrice: ").Append(GasPrice).Append("\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" Value: ").Append(Value).Append("\n"); - sb.Append(" ChainId: ").Append(ChainId).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" AccessList: ").Append(AccessList).Append("\n"); - sb.Append(" MaxFeePerGas: ").Append(MaxFeePerGas).Append("\n"); - sb.Append(" MaxPriorityFeePerGas: ").Append(MaxPriorityFeePerGas).Append("\n"); - sb.Append(" CustomData: ").Append(CustomData).Append("\n"); - sb.Append(" CcipReadEnabled: ").Append(CcipReadEnabled).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionActionPopulatedTransactionsAccessListInner.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionActionPopulatedTransactionsAccessListInner.cs deleted file mode 100644 index 78300488..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionActionPopulatedTransactionsAccessListInner.cs +++ /dev/null @@ -1,72 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// TransactionActionPopulatedTransactionsAccessListInner - /// - [DataContract(Name = "TransactionAction_populatedTransactions_accessList_inner")] - public class TransactionActionPopulatedTransactionsAccessListInner - { - /// - /// Initializes a new instance of the class. - /// - /// address. - /// storageKeys. - public TransactionActionPopulatedTransactionsAccessListInner(string address = default, - List storageKeys = default) - { - Address = address; - StorageKeys = storageKeys; - } - - /// - /// Gets or Sets Address - /// - [DataMember(Name = "address", EmitDefaultValue = false)] - public string Address { get; set; } - - /// - /// Gets or Sets StorageKeys - /// - [DataMember(Name = "storageKeys", EmitDefaultValue = false)] - public List StorageKeys { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TransactionActionPopulatedTransactionsAccessListInner {\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" StorageKeys: ").Append(StorageKeys).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionPurpose.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionPurpose.cs deleted file mode 100644 index e3168ebf..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TransactionPurpose.cs +++ /dev/null @@ -1,39 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// Defines TransactionPurpose - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum TransactionPurpose - { - /// - /// Enum APPROVAL for value: APPROVAL - /// - [EnumMember(Value = "APPROVAL")] APPROVAL, - - /// - /// Enum FULFILLORDER for value: FULFILL_ORDER - /// - [EnumMember(Value = "FULFILL_ORDER")] FULFILLORDER, - - /// - /// Enum CANCEL for value: CANCEL - /// - [EnumMember(Value = "CANCEL")] CANCEL - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TypedDataDomain.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TypedDataDomain.cs deleted file mode 100644 index cc6e19d9..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/TypedDataDomain.cs +++ /dev/null @@ -1,98 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// TypedDataDomain - /// - [DataContract(Name = "TypedDataDomain")] - public class TypedDataDomain - { - /// - /// Initializes a new instance of the class. - /// - /// chainId. - /// name. - /// salt. - /// verifyingContract. - /// varVersion. - public TypedDataDomain(string chainId = default, string name = default, string salt = default, - string verifyingContract = default, string varVersion = default) - { - ChainId = chainId; - Name = name; - Salt = salt; - VerifyingContract = verifyingContract; - VarVersion = varVersion; - } - - /// - /// Gets or Sets ChainId - /// - [DataMember(Name = "chainId", EmitDefaultValue = false)] - public string ChainId { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } - - /// - /// Gets or Sets Salt - /// - [DataMember(Name = "salt", EmitDefaultValue = false)] - public string Salt { get; set; } - - /// - /// Gets or Sets VerifyingContract - /// - [DataMember(Name = "verifyingContract", EmitDefaultValue = false)] - public string VerifyingContract { get; set; } - - /// - /// Gets or Sets VarVersion - /// - [DataMember(Name = "version", EmitDefaultValue = false)] - public string VarVersion { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class TypedDataDomain {\n"); - sb.Append(" ChainId: ").Append(ChainId).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Salt: ").Append(Salt).Append("\n"); - sb.Append(" VerifyingContract: ").Append(VerifyingContract).Append("\n"); - sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1HeartbeatGet200Response.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1HeartbeatGet200Response.cs deleted file mode 100644 index 79537791..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1HeartbeatGet200Response.cs +++ /dev/null @@ -1,70 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// heartbeat - /// - [DataContract(Name = "_v1_heartbeat_get_200_response")] - public class V1HeartbeatGet200Response - { - /// - /// Initializes a new instance of the class. - /// - /// status. - public V1HeartbeatGet200Response(string status = default) - { - Status = status; - AdditionalProperties = new Dictionary(); - } - - /// - /// Gets or Sets Status - /// - [DataMember(Name = "status", EmitDefaultValue = false)] - public string Status { get; set; } - - /// - /// Gets or Sets additional properties - /// - [JsonExtensionData] - public IDictionary AdditionalProperties { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1HeartbeatGet200Response {\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersOnChainPost200Response.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersOnChainPost200Response.cs deleted file mode 100644 index 2abe39d4..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersOnChainPost200Response.cs +++ /dev/null @@ -1,61 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// Response schema for the cancelOrder endpoint - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_cancelOrdersOnChain_post_200_response")] - public class V1TsSdkOrderbookCancelOrdersOnChainPost200Response - { - /// - /// Initializes a new instance of the class. - /// - /// cancellationAction. - public V1TsSdkOrderbookCancelOrdersOnChainPost200Response(TransactionAction cancellationAction = default) - { - CancellationAction = cancellationAction; - } - - /// - /// Gets or Sets CancellationAction - /// - [DataMember(Name = "cancellationAction", EmitDefaultValue = false)] - public TransactionAction CancellationAction { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookCancelOrdersOnChainPost200Response {\n"); - sb.Append(" CancellationAction: ").Append(CancellationAction).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersOnChainPostRequest.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersOnChainPostRequest.cs deleted file mode 100644 index 6a90ea5d..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersOnChainPostRequest.cs +++ /dev/null @@ -1,89 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookCancelOrdersOnChainPostRequest - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_cancelOrdersOnChain_post_request")] - public class V1TsSdkOrderbookCancelOrdersOnChainPostRequest - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected V1TsSdkOrderbookCancelOrdersOnChainPostRequest() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// orderIds (required). - /// accountAddress (required). - public V1TsSdkOrderbookCancelOrdersOnChainPostRequest(List orderIds = default, - string accountAddress = default) - { - // to ensure "orderIds" is required (not null) - if (orderIds == null) - throw new ArgumentNullException( - "orderIds is a required property for V1TsSdkOrderbookCancelOrdersOnChainPostRequest and cannot be null"); - OrderIds = orderIds; - // to ensure "accountAddress" is required (not null) - if (accountAddress == null) - throw new ArgumentNullException( - "accountAddress is a required property for V1TsSdkOrderbookCancelOrdersOnChainPostRequest and cannot be null"); - AccountAddress = accountAddress; - } - - /// - /// Gets or Sets OrderIds - /// - [DataMember(Name = "orderIds", IsRequired = true, EmitDefaultValue = true)] - public List OrderIds { get; set; } - - /// - /// Gets or Sets AccountAddress - /// - [DataMember(Name = "accountAddress", IsRequired = true, EmitDefaultValue = true)] - public string AccountAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookCancelOrdersOnChainPostRequest {\n"); - sb.Append(" OrderIds: ").Append(OrderIds).Append("\n"); - sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200Response.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200Response.cs deleted file mode 100644 index 01c6cdd5..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200Response.cs +++ /dev/null @@ -1,62 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// Response schema for the cancelOrder endpoint - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_cancelOrders_post_200_response")] - public class V1TsSdkOrderbookCancelOrdersPost200Response - { - /// - /// Initializes a new instance of the class. - /// - /// result. - public V1TsSdkOrderbookCancelOrdersPost200Response( - V1TsSdkOrderbookCancelOrdersPost200ResponseResult result = default) - { - Result = result; - } - - /// - /// Gets or Sets Result - /// - [DataMember(Name = "result", EmitDefaultValue = false)] - public V1TsSdkOrderbookCancelOrdersPost200ResponseResult Result { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookCancelOrdersPost200Response {\n"); - sb.Append(" Result: ").Append(Result).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResult.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResult.cs deleted file mode 100644 index 3afd15c5..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResult.cs +++ /dev/null @@ -1,89 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookCancelOrdersPost200ResponseResult - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_cancelOrders_post_200_response_result")] - public class V1TsSdkOrderbookCancelOrdersPost200ResponseResult - { - /// - /// Initializes a new instance of the class. - /// - /// Orders which failed to be cancelled. - /// Orders which are marked for cancellation but the cancellation cannot be guaranteed. - /// Orders which were successfully cancelled. - public V1TsSdkOrderbookCancelOrdersPost200ResponseResult( - List failedCancellations = - default, List pendingCancellations = default, List successfulCancellations = default) - { - FailedCancellations = failedCancellations; - PendingCancellations = pendingCancellations; - SuccessfulCancellations = successfulCancellations; - } - - /// - /// Orders which failed to be cancelled - /// - /// Orders which failed to be cancelled - [DataMember(Name = "failed_cancellations", EmitDefaultValue = false)] - public List FailedCancellations - { - get; - set; - } - - /// - /// Orders which are marked for cancellation but the cancellation cannot be guaranteed - /// - /// Orders which are marked for cancellation but the cancellation cannot be guaranteed - [DataMember(Name = "pending_cancellations", EmitDefaultValue = false)] - public List PendingCancellations { get; set; } - - /// - /// Orders which were successfully cancelled - /// - /// Orders which were successfully cancelled - [DataMember(Name = "successful_cancellations", EmitDefaultValue = false)] - public List SuccessfulCancellations { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookCancelOrdersPost200ResponseResult {\n"); - sb.Append(" FailedCancellations: ").Append(FailedCancellations).Append("\n"); - sb.Append(" PendingCancellations: ").Append(PendingCancellations).Append("\n"); - sb.Append(" SuccessfulCancellations: ").Append(SuccessfulCancellations).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.cs deleted file mode 100644 index b7a9af9a..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner.cs +++ /dev/null @@ -1,89 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_cancelOrders_post_200_response_result_failed_cancellations_inner")] - public class V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner - { - /// - /// Reason code indicating why the order failed to be cancelled - /// - /// Reason code indicating why the order failed to be cancelled - [JsonConverter(typeof(StringEnumConverter))] - public enum ReasonCodeEnum - { - /// - /// Enum FILLED for value: FILLED - /// - [EnumMember(Value = "FILLED")] FILLED - } - - /// - /// Initializes a new instance of the - /// class. - /// - /// ID of the order which failed to be cancelled. - /// Reason code indicating why the order failed to be cancelled. - public V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner(string order = default, - ReasonCodeEnum? reasonCode = default) - { - Order = order; - ReasonCode = reasonCode; - } - - - /// - /// Reason code indicating why the order failed to be cancelled - /// - /// Reason code indicating why the order failed to be cancelled - [DataMember(Name = "reason_code", EmitDefaultValue = false)] - public ReasonCodeEnum? ReasonCode { get; set; } - - /// - /// ID of the order which failed to be cancelled - /// - /// ID of the order which failed to be cancelled - [DataMember(Name = "order", EmitDefaultValue = false)] - public string Order { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookCancelOrdersPost200ResponseResultFailedCancellationsInner {\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" ReasonCode: ").Append(ReasonCode).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPostRequest.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPostRequest.cs deleted file mode 100644 index 93219b7b..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCancelOrdersPostRequest.cs +++ /dev/null @@ -1,102 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookCancelOrdersPostRequest - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_cancelOrders_post_request")] - public class V1TsSdkOrderbookCancelOrdersPostRequest - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected V1TsSdkOrderbookCancelOrdersPostRequest() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// orderIds (required). - /// accountAddress (required). - /// signature (required). - public V1TsSdkOrderbookCancelOrdersPostRequest(List orderIds = default, string accountAddress = default, - string signature = default) - { - // to ensure "orderIds" is required (not null) - if (orderIds == null) - throw new ArgumentNullException( - "orderIds is a required property for V1TsSdkOrderbookCancelOrdersPostRequest and cannot be null"); - OrderIds = orderIds; - // to ensure "accountAddress" is required (not null) - if (accountAddress == null) - throw new ArgumentNullException( - "accountAddress is a required property for V1TsSdkOrderbookCancelOrdersPostRequest and cannot be null"); - AccountAddress = accountAddress; - // to ensure "signature" is required (not null) - if (signature == null) - throw new ArgumentNullException( - "signature is a required property for V1TsSdkOrderbookCancelOrdersPostRequest and cannot be null"); - Signature = signature; - } - - /// - /// Gets or Sets OrderIds - /// - [DataMember(Name = "orderIds", IsRequired = true, EmitDefaultValue = true)] - public List OrderIds { get; set; } - - /// - /// Gets or Sets AccountAddress - /// - [DataMember(Name = "accountAddress", IsRequired = true, EmitDefaultValue = true)] - public string AccountAddress { get; set; } - - /// - /// Gets or Sets Signature - /// - [DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)] - public string Signature { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookCancelOrdersPostRequest {\n"); - sb.Append(" OrderIds: ").Append(OrderIds).Append("\n"); - sb.Append(" AccountAddress: ").Append(AccountAddress).Append("\n"); - sb.Append(" Signature: ").Append(Signature).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCreateListingPost200Response.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCreateListingPost200Response.cs deleted file mode 100644 index 8e6e7971..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCreateListingPost200Response.cs +++ /dev/null @@ -1,61 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// The response schema for the create listing endpoint - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_createListing_post_200_response")] - public class V1TsSdkOrderbookCreateListingPost200Response - { - /// - /// Initializes a new instance of the class. - /// - /// result. - public V1TsSdkOrderbookCreateListingPost200Response(Order result = default) - { - Result = result; - } - - /// - /// Gets or Sets Result - /// - [DataMember(Name = "result", EmitDefaultValue = false)] - public Order Result { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookCreateListingPost200Response {\n"); - sb.Append(" Result: ").Append(Result).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCreateListingPostRequest.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCreateListingPostRequest.cs deleted file mode 100644 index 61a67e61..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookCreateListingPostRequest.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookCreateListingPostRequest - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_createListing_post_request")] - public class V1TsSdkOrderbookCreateListingPostRequest - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected V1TsSdkOrderbookCreateListingPostRequest() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// makerFees (required). - /// orderComponents (required). - /// orderHash (required). - /// orderSignature (required). - public V1TsSdkOrderbookCreateListingPostRequest(List makerFees = default, - OrderComponents orderComponents = default, string orderHash = default, string orderSignature = default) - { - // to ensure "makerFees" is required (not null) - if (makerFees == null) - throw new ArgumentNullException( - "makerFees is a required property for V1TsSdkOrderbookCreateListingPostRequest and cannot be null"); - MakerFees = makerFees; - // to ensure "orderComponents" is required (not null) - if (orderComponents == null) - throw new ArgumentNullException( - "orderComponents is a required property for V1TsSdkOrderbookCreateListingPostRequest and cannot be null"); - OrderComponents = orderComponents; - // to ensure "orderHash" is required (not null) - if (orderHash == null) - throw new ArgumentNullException( - "orderHash is a required property for V1TsSdkOrderbookCreateListingPostRequest and cannot be null"); - OrderHash = orderHash; - // to ensure "orderSignature" is required (not null) - if (orderSignature == null) - throw new ArgumentNullException( - "orderSignature is a required property for V1TsSdkOrderbookCreateListingPostRequest and cannot be null"); - OrderSignature = orderSignature; - } - - /// - /// Gets or Sets MakerFees - /// - [DataMember(Name = "makerFees", IsRequired = true, EmitDefaultValue = true)] - public List MakerFees { get; set; } - - /// - /// Gets or Sets OrderComponents - /// - [DataMember(Name = "orderComponents", IsRequired = true, EmitDefaultValue = true)] - public OrderComponents OrderComponents { get; set; } - - /// - /// Gets or Sets OrderHash - /// - [DataMember(Name = "orderHash", IsRequired = true, EmitDefaultValue = true)] - public string OrderHash { get; set; } - - /// - /// Gets or Sets OrderSignature - /// - [DataMember(Name = "orderSignature", IsRequired = true, EmitDefaultValue = true)] - public string OrderSignature { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookCreateListingPostRequest {\n"); - sb.Append(" MakerFees: ").Append(MakerFees).Append("\n"); - sb.Append(" OrderComponents: ").Append(OrderComponents).Append("\n"); - sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); - sb.Append(" OrderSignature: ").Append(OrderSignature).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPost200Response.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPost200Response.cs deleted file mode 100644 index 5a915c89..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPost200Response.cs +++ /dev/null @@ -1,89 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// Response schema for the fulfillOrder endpoint - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_fulfillOrder_post_200_response")] - public class V1TsSdkOrderbookFulfillOrderPost200Response - { - /// - /// Initializes a new instance of the class. - /// - /// actions. - /// - /// User MUST submit the fulfillment transaction before the expiration Submitting after the - /// expiration will result in a on chain revert. - /// - /// order. - public V1TsSdkOrderbookFulfillOrderPost200Response(List actions = default, - string expiration = default, Order order = default) - { - Actions = actions; - Expiration = expiration; - Order = order; - } - - /// - /// Gets or Sets Actions - /// - [DataMember(Name = "actions", EmitDefaultValue = false)] - public List Actions { get; set; } - - /// - /// User MUST submit the fulfillment transaction before the expiration Submitting after the expiration will result in a - /// on chain revert - /// - /// - /// User MUST submit the fulfillment transaction before the expiration Submitting after the expiration will result - /// in a on chain revert - /// - [DataMember(Name = "expiration", EmitDefaultValue = false)] - public string Expiration { get; set; } - - /// - /// Gets or Sets Order - /// - [DataMember(Name = "order", EmitDefaultValue = false)] - public Order Order { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookFulfillOrderPost200Response {\n"); - sb.Append(" Actions: ").Append(Actions).Append("\n"); - sb.Append(" Expiration: ").Append(Expiration).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPostRequest.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPostRequest.cs deleted file mode 100644 index f9eb5857..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPostRequest.cs +++ /dev/null @@ -1,116 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookFulfillOrderPostRequest - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_fulfillOrder_post_request")] - public class V1TsSdkOrderbookFulfillOrderPostRequest - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected V1TsSdkOrderbookFulfillOrderPostRequest() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// listingId (required). - /// takerAddress (required). - /// takerFees (required). - /// amountToFill. - public V1TsSdkOrderbookFulfillOrderPostRequest(string listingId = default, string takerAddress = default, - List takerFees = default, - string amountToFill = default) - { - // to ensure "listingId" is required (not null) - if (listingId == null) - throw new ArgumentNullException( - "listingId is a required property for V1TsSdkOrderbookFulfillOrderPostRequest and cannot be null"); - ListingId = listingId; - // to ensure "takerAddress" is required (not null) - if (takerAddress == null) - throw new ArgumentNullException( - "takerAddress is a required property for V1TsSdkOrderbookFulfillOrderPostRequest and cannot be null"); - TakerAddress = takerAddress; - // to ensure "takerFees" is required (not null) - if (takerFees == null) - throw new ArgumentNullException( - "takerFees is a required property for V1TsSdkOrderbookFulfillOrderPostRequest and cannot be null"); - TakerFees = takerFees; - AmountToFill = amountToFill; - } - - /// - /// listingId - /// - /// listingId - [DataMember(Name = "listingId", IsRequired = true, EmitDefaultValue = true)] - public string ListingId { get; set; } - - /// - /// takerAddress - /// - /// takerAddress - [DataMember(Name = "takerAddress", IsRequired = true, EmitDefaultValue = true)] - public string TakerAddress { get; set; } - - /// - /// takerFees - /// - /// takerFees - [DataMember(Name = "takerFees", IsRequired = true, EmitDefaultValue = true)] - public List TakerFees { get; set; } - - /// - /// amountToFill - /// - /// amountToFill - [DataMember(Name = "amountToFill", EmitDefaultValue = false)] - public string AmountToFill { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookFulfillOrderPostRequest {\n"); - sb.Append(" ListingId: ").Append(ListingId).Append("\n"); - sb.Append(" TakerAddress: ").Append(TakerAddress).Append("\n"); - sb.Append(" TakerFees: ").Append(TakerFees).Append("\n"); - sb.Append(" AmountToFill: ").Append(AmountToFill).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.cs deleted file mode 100644 index 3a478922..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner.cs +++ /dev/null @@ -1,88 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_fulfillOrder_post_request_takerFees_inner")] - public class V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// amount (required). - /// recipientAddress (required). - public V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner(string amount = default, - string recipientAddress = default) - { - // to ensure "amount" is required (not null) - if (amount == null) - throw new ArgumentNullException( - "amount is a required property for V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner and cannot be null"); - Amount = amount; - // to ensure "recipientAddress" is required (not null) - if (recipientAddress == null) - throw new ArgumentNullException( - "recipientAddress is a required property for V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner and cannot be null"); - RecipientAddress = recipientAddress; - } - - /// - /// Gets or Sets Amount - /// - [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] - public string Amount { get; set; } - - /// - /// Gets or Sets RecipientAddress - /// - [DataMember(Name = "recipientAddress", IsRequired = true, EmitDefaultValue = true)] - public string RecipientAddress { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner {\n"); - sb.Append(" Amount: ").Append(Amount).Append("\n"); - sb.Append(" RecipientAddress: ").Append(RecipientAddress).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPost200Response.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPost200Response.cs deleted file mode 100644 index c196a8cc..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPost200Response.cs +++ /dev/null @@ -1,102 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// Response schema for the prepareListing endpoint - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_prepareListing_post_200_response")] - public class V1TsSdkOrderbookPrepareListingPost200Response - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected V1TsSdkOrderbookPrepareListingPost200Response() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// actions (required). - /// orderComponents (required). - /// orderHash (required). - public V1TsSdkOrderbookPrepareListingPost200Response(List actions = default, - OrderComponents orderComponents = default, string orderHash = default) - { - // to ensure "actions" is required (not null) - if (actions == null) - throw new ArgumentNullException( - "actions is a required property for V1TsSdkOrderbookPrepareListingPost200Response and cannot be null"); - Actions = actions; - // to ensure "orderComponents" is required (not null) - if (orderComponents == null) - throw new ArgumentNullException( - "orderComponents is a required property for V1TsSdkOrderbookPrepareListingPost200Response and cannot be null"); - OrderComponents = orderComponents; - // to ensure "orderHash" is required (not null) - if (orderHash == null) - throw new ArgumentNullException( - "orderHash is a required property for V1TsSdkOrderbookPrepareListingPost200Response and cannot be null"); - OrderHash = orderHash; - } - - /// - /// Gets or Sets Actions - /// - [DataMember(Name = "actions", IsRequired = true, EmitDefaultValue = true)] - public List Actions { get; set; } - - /// - /// Gets or Sets OrderComponents - /// - [DataMember(Name = "orderComponents", IsRequired = true, EmitDefaultValue = true)] - public OrderComponents OrderComponents { get; set; } - - /// - /// Gets or Sets OrderHash - /// - [DataMember(Name = "orderHash", IsRequired = true, EmitDefaultValue = true)] - public string OrderHash { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookPrepareListingPost200Response {\n"); - sb.Append(" Actions: ").Append(Actions).Append("\n"); - sb.Append(" OrderComponents: ").Append(OrderComponents).Append("\n"); - sb.Append(" OrderHash: ").Append(OrderHash).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequest.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequest.cs deleted file mode 100644 index 758691a4..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequest.cs +++ /dev/null @@ -1,111 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookPrepareListingPostRequest - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_prepareListing_post_request")] - public class V1TsSdkOrderbookPrepareListingPostRequest - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected V1TsSdkOrderbookPrepareListingPostRequest() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// buy (required). - /// makerAddress (required). - /// orderExpiry. - /// sell (required). - public V1TsSdkOrderbookPrepareListingPostRequest(V1TsSdkOrderbookPrepareListingPostRequestBuy buy = default, - string makerAddress = default, DateTime orderExpiry = default, - V1TsSdkOrderbookPrepareListingPostRequestSell sell = default) - { - // to ensure "buy" is required (not null) - if (buy == null) - throw new ArgumentNullException( - "buy is a required property for V1TsSdkOrderbookPrepareListingPostRequest and cannot be null"); - Buy = buy; - // to ensure "makerAddress" is required (not null) - if (makerAddress == null) - throw new ArgumentNullException( - "makerAddress is a required property for V1TsSdkOrderbookPrepareListingPostRequest and cannot be null"); - MakerAddress = makerAddress; - // to ensure "sell" is required (not null) - if (sell == null) - throw new ArgumentNullException( - "sell is a required property for V1TsSdkOrderbookPrepareListingPostRequest and cannot be null"); - Sell = sell; - OrderExpiry = orderExpiry; - } - - /// - /// Gets or Sets Buy - /// - [DataMember(Name = "buy", IsRequired = true, EmitDefaultValue = true)] - public V1TsSdkOrderbookPrepareListingPostRequestBuy Buy { get; set; } - - /// - /// Gets or Sets MakerAddress - /// - [DataMember(Name = "makerAddress", IsRequired = true, EmitDefaultValue = true)] - public string MakerAddress { get; set; } - - /// - /// Gets or Sets OrderExpiry - /// - [DataMember(Name = "orderExpiry", EmitDefaultValue = false)] - public DateTime OrderExpiry { get; set; } - - /// - /// Gets or Sets Sell - /// - [DataMember(Name = "sell", IsRequired = true, EmitDefaultValue = true)] - public V1TsSdkOrderbookPrepareListingPostRequestSell Sell { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookPrepareListingPostRequest {\n"); - sb.Append(" Buy: ").Append(Buy).Append("\n"); - sb.Append(" MakerAddress: ").Append(MakerAddress).Append("\n"); - sb.Append(" OrderExpiry: ").Append(OrderExpiry).Append("\n"); - sb.Append(" Sell: ").Append(Sell).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequestBuy.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequestBuy.cs deleted file mode 100644 index 0eaa2d06..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequestBuy.cs +++ /dev/null @@ -1,231 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookPrepareListingPostRequestBuy - /// - [JsonConverter(typeof(V1TsSdkOrderbookPrepareListingPostRequestBuyJsonConverter))] - [DataContract(Name = "_v1_ts_sdk_orderbook_prepareListing_post_request_buy")] - public class V1TsSdkOrderbookPrepareListingPostRequestBuy : AbstractOpenAPISchema - { - private object _actualInstance; - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of ERC20Item. - public V1TsSdkOrderbookPrepareListingPostRequestBuy(ERC20Item actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of NativeItem. - public V1TsSdkOrderbookPrepareListingPostRequestBuy(NativeItem actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Gets or Sets ActualInstance - /// - public override object ActualInstance - { - get => _actualInstance; - set - { - if (value.GetType() == typeof(ERC20Item) || value is ERC20Item) - _actualInstance = value; - else if (value.GetType() == typeof(NativeItem) || value is NativeItem) - _actualInstance = value; - else - throw new ArgumentException( - "Invalid instance found. Must be the following types: ERC20Item, NativeItem"); - } - } - - /// - /// Get the actual instance of `ERC20Item`. If the actual instance is not `ERC20Item`, - /// the InvalidClassException will be thrown - /// - /// An instance of ERC20Item - public ERC20Item GetERC20Item() - { - return (ERC20Item)ActualInstance; - } - - /// - /// Get the actual instance of `NativeItem`. If the actual instance is not `NativeItem`, - /// the InvalidClassException will be thrown - /// - /// An instance of NativeItem - public NativeItem GetNativeItem() - { - return (NativeItem)ActualInstance; - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookPrepareListingPostRequestBuy {\n"); - sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(ActualInstance, SerializerSettings); - } - - /// - /// Converts the JSON string into an instance of V1TsSdkOrderbookPrepareListingPostRequestBuy - /// - /// JSON string - /// An instance of V1TsSdkOrderbookPrepareListingPostRequestBuy - public static V1TsSdkOrderbookPrepareListingPostRequestBuy FromJson(string jsonString) - { - V1TsSdkOrderbookPrepareListingPostRequestBuy newV1TsSdkOrderbookPrepareListingPostRequestBuy = null; - - if (string.IsNullOrEmpty(jsonString)) return newV1TsSdkOrderbookPrepareListingPostRequestBuy; - var match = 0; - var matchedTypes = new List(); - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(ERC20Item).GetProperty("AdditionalProperties") == null) - newV1TsSdkOrderbookPrepareListingPostRequestBuy = - new V1TsSdkOrderbookPrepareListingPostRequestBuy( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newV1TsSdkOrderbookPrepareListingPostRequestBuy = new V1TsSdkOrderbookPrepareListingPostRequestBuy( - JsonConvert.DeserializeObject(jsonString, AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("ERC20Item"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into ERC20Item: {1}", jsonString, exception); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(NativeItem).GetProperty("AdditionalProperties") == null) - newV1TsSdkOrderbookPrepareListingPostRequestBuy = - new V1TsSdkOrderbookPrepareListingPostRequestBuy( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newV1TsSdkOrderbookPrepareListingPostRequestBuy = new V1TsSdkOrderbookPrepareListingPostRequestBuy( - JsonConvert.DeserializeObject(jsonString, AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("NativeItem"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into NativeItem: {1}", jsonString, exception); - } - - if (match == 0) - throw new InvalidDataException("The JSON string `" + jsonString + - "` cannot be deserialized into any schema defined."); - if (match > 1) - throw new InvalidDataException("The JSON string `" + jsonString + - "` incorrectly matches more than one schema (should be exactly one match): " + - string.Join(",", matchedTypes)); - - // deserialization is considered successful at this point if no exception has been thrown. - return newV1TsSdkOrderbookPrepareListingPostRequestBuy; - } - } - - /// - /// Custom JSON converter for V1TsSdkOrderbookPrepareListingPostRequestBuy - /// - public class V1TsSdkOrderbookPrepareListingPostRequestBuyJsonConverter : JsonConverter - { - /// - /// To write the JSON string - /// - /// JSON writer - /// Object to be converted into a JSON string - /// JSON Serializer - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteRawValue((string)typeof(V1TsSdkOrderbookPrepareListingPostRequestBuy).GetMethod("ToJson") - .Invoke(value, null)); - } - - /// - /// To convert a JSON string into an object - /// - /// JSON reader - /// Object type - /// Existing value - /// JSON Serializer - /// The object converted from the JSON string - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) - { - switch (reader.TokenType) - { - case JsonToken.StartObject: - return V1TsSdkOrderbookPrepareListingPostRequestBuy.FromJson(JObject.Load(reader) - .ToString(Formatting.None)); - case JsonToken.StartArray: - return V1TsSdkOrderbookPrepareListingPostRequestBuy.FromJson(JArray.Load(reader) - .ToString(Formatting.None)); - default: - return null; - } - } - - /// - /// Check if the object can be converted - /// - /// Object type - /// True if the object can be converted - public override bool CanConvert(Type objectType) - { - return false; - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequestSell.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequestSell.cs deleted file mode 100644 index f734c222..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareListingPostRequestSell.cs +++ /dev/null @@ -1,235 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookPrepareListingPostRequestSell - /// - [JsonConverter(typeof(V1TsSdkOrderbookPrepareListingPostRequestSellJsonConverter))] - [DataContract(Name = "_v1_ts_sdk_orderbook_prepareListing_post_request_sell")] - public class V1TsSdkOrderbookPrepareListingPostRequestSell : AbstractOpenAPISchema - { - private object _actualInstance; - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of ERC1155Item. - public V1TsSdkOrderbookPrepareListingPostRequestSell(ERC1155Item actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of ERC721Item. - public V1TsSdkOrderbookPrepareListingPostRequestSell(ERC721Item actualInstance) - { - IsNullable = false; - SchemaType = "oneOf"; - ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Gets or Sets ActualInstance - /// - public override object ActualInstance - { - get => _actualInstance; - set - { - if (value.GetType() == typeof(ERC1155Item) || value is ERC1155Item) - _actualInstance = value; - else if (value.GetType() == typeof(ERC721Item) || value is ERC721Item) - _actualInstance = value; - else - throw new ArgumentException( - "Invalid instance found. Must be the following types: ERC1155Item, ERC721Item"); - } - } - - /// - /// Get the actual instance of `ERC1155Item`. If the actual instance is not `ERC1155Item`, - /// the InvalidClassException will be thrown - /// - /// An instance of ERC1155Item - public ERC1155Item GetERC1155Item() - { - return (ERC1155Item)ActualInstance; - } - - /// - /// Get the actual instance of `ERC721Item`. If the actual instance is not `ERC721Item`, - /// the InvalidClassException will be thrown - /// - /// An instance of ERC721Item - public ERC721Item GetERC721Item() - { - return (ERC721Item)ActualInstance; - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookPrepareListingPostRequestSell {\n"); - sb.Append(" ActualInstance: ").Append(ActualInstance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(ActualInstance, SerializerSettings); - } - - /// - /// Converts the JSON string into an instance of V1TsSdkOrderbookPrepareListingPostRequestSell - /// - /// JSON string - /// An instance of V1TsSdkOrderbookPrepareListingPostRequestSell - public static V1TsSdkOrderbookPrepareListingPostRequestSell FromJson(string jsonString) - { - V1TsSdkOrderbookPrepareListingPostRequestSell newV1TsSdkOrderbookPrepareListingPostRequestSell = null; - - if (string.IsNullOrEmpty(jsonString)) return newV1TsSdkOrderbookPrepareListingPostRequestSell; - var match = 0; - var matchedTypes = new List(); - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(ERC1155Item).GetProperty("AdditionalProperties") == null) - newV1TsSdkOrderbookPrepareListingPostRequestSell = - new V1TsSdkOrderbookPrepareListingPostRequestSell( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newV1TsSdkOrderbookPrepareListingPostRequestSell = - new V1TsSdkOrderbookPrepareListingPostRequestSell( - JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("ERC1155Item"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into ERC1155Item: {1}", jsonString, exception); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(ERC721Item).GetProperty("AdditionalProperties") == null) - newV1TsSdkOrderbookPrepareListingPostRequestSell = - new V1TsSdkOrderbookPrepareListingPostRequestSell( - JsonConvert.DeserializeObject(jsonString, SerializerSettings)); - else - newV1TsSdkOrderbookPrepareListingPostRequestSell = - new V1TsSdkOrderbookPrepareListingPostRequestSell( - JsonConvert.DeserializeObject(jsonString, - AdditionalPropertiesSerializerSettings)); - matchedTypes.Add("ERC721Item"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - Debug.WriteLine("Failed to deserialize `{0}` into ERC721Item: {1}", jsonString, exception); - } - - if (match == 0) - throw new InvalidDataException("The JSON string `" + jsonString + - "` cannot be deserialized into any schema defined."); - if (match > 1) - throw new InvalidDataException("The JSON string `" + jsonString + - "` incorrectly matches more than one schema (should be exactly one match): " + - string.Join(",", matchedTypes)); - - // deserialization is considered successful at this point if no exception has been thrown. - return newV1TsSdkOrderbookPrepareListingPostRequestSell; - } - } - - /// - /// Custom JSON converter for V1TsSdkOrderbookPrepareListingPostRequestSell - /// - public class V1TsSdkOrderbookPrepareListingPostRequestSellJsonConverter : JsonConverter - { - /// - /// To write the JSON string - /// - /// JSON writer - /// Object to be converted into a JSON string - /// JSON Serializer - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteRawValue((string)typeof(V1TsSdkOrderbookPrepareListingPostRequestSell).GetMethod("ToJson") - .Invoke(value, null)); - } - - /// - /// To convert a JSON string into an object - /// - /// JSON reader - /// Object type - /// Existing value - /// JSON Serializer - /// The object converted from the JSON string - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, - JsonSerializer serializer) - { - switch (reader.TokenType) - { - case JsonToken.StartObject: - return V1TsSdkOrderbookPrepareListingPostRequestSell.FromJson(JObject.Load(reader) - .ToString(Formatting.None)); - case JsonToken.StartArray: - return V1TsSdkOrderbookPrepareListingPostRequestSell.FromJson(JArray.Load(reader) - .ToString(Formatting.None)); - default: - return null; - } - } - - /// - /// Check if the object can be converted - /// - /// Object type - /// True if the object can be converted - public override bool CanConvert(Type objectType) - { - return false; - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.cs deleted file mode 100644 index 3eaeedf1..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareOrderCancellationsPost200Response.cs +++ /dev/null @@ -1,61 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// Response schema for the prepareOrderCancellations endpoint - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_prepareOrderCancellations_post_200_response")] - public class V1TsSdkOrderbookPrepareOrderCancellationsPost200Response - { - /// - /// Initializes a new instance of the class. - /// - /// signableAction. - public V1TsSdkOrderbookPrepareOrderCancellationsPost200Response(SignableAction signableAction = default) - { - SignableAction = signableAction; - } - - /// - /// Gets or Sets SignableAction - /// - [DataMember(Name = "signableAction", EmitDefaultValue = false)] - public SignableAction SignableAction { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookPrepareOrderCancellationsPost200Response {\n"); - sb.Append(" SignableAction: ").Append(SignableAction).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.cs b/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.cs deleted file mode 100644 index f18b7b82..00000000 --- a/Assets/Shared/Scripts/Data/API/Ts/src/Immutable.Ts/Model/V1TsSdkOrderbookPrepareOrderCancellationsPostRequest.cs +++ /dev/null @@ -1,75 +0,0 @@ -/* - * TS SDK API - * - * running ts sdk as an api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: contact@immutable.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using Newtonsoft.Json; - -namespace Immutable.Ts.Model -{ - /// - /// V1TsSdkOrderbookPrepareOrderCancellationsPostRequest - /// - [DataContract(Name = "_v1_ts_sdk_orderbook_prepareOrderCancellations_post_request")] - public class V1TsSdkOrderbookPrepareOrderCancellationsPostRequest - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected V1TsSdkOrderbookPrepareOrderCancellationsPostRequest() - { - } - - /// - /// Initializes a new instance of the class. - /// - /// orderIds (required). - public V1TsSdkOrderbookPrepareOrderCancellationsPostRequest(List orderIds = default) - { - // to ensure "orderIds" is required (not null) - if (orderIds == null) - throw new ArgumentNullException( - "orderIds is a required property for V1TsSdkOrderbookPrepareOrderCancellationsPostRequest and cannot be null"); - OrderIds = orderIds; - } - - /// - /// Gets or Sets OrderIds - /// - [DataMember(Name = "orderIds", IsRequired = true, EmitDefaultValue = true)] - public List OrderIds { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class V1TsSdkOrderbookPrepareOrderCancellationsPostRequest {\n"); - sb.Append(" OrderIds: ").Append(OrderIds).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - } -} \ No newline at end of file diff --git a/Assets/Shared/Scripts/InfiniteScrollGridView.cs b/Assets/Shared/Scripts/InfiniteScrollGridView.cs new file mode 100644 index 00000000..51dc5432 --- /dev/null +++ b/Assets/Shared/Scripts/InfiniteScrollGridView.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +namespace HyperCasual.Runner +{ + public class InfiniteScrollGridView : MonoBehaviour + { + [SerializeField] private ScrollRect m_ScrollRect; // The ScrollRect component + [SerializeField] private RectTransform m_Content; // The content container for the scroll view + [SerializeField] private GameObject m_ItemPrefab; // Prefab for the items in the scroll view + + private readonly List m_VisibleItems = new(); + private bool m_IsInitialised; // Flag to check if the component is initialised + private int m_ItemCount; + + public int TotalItemCount + { + set + { + m_ItemCount = value; + if (m_IsInitialised) PopulateItems(); // Refresh the items + } + } + + public event Action OnCreateItemView; // Event for item setup + + private void Awake() + { + if (!m_IsInitialised) InitializeScrollView(); + } + + private void Start() + { + if (!m_IsInitialised) InitializeScrollView(); + } + + private void InitializeScrollView() + { + m_IsInitialised = true; + m_ScrollRect.onValueChanged.AddListener(OnScroll); + PopulateItems(); + } + + private void OnScroll(Vector2 scrollPosition) + { + if (scrollPosition.y < 0.1f) // Check if we are near the bottom + PopulateItems(); + } + + private void PopulateItems() + { + if (m_ItemCount <= 0) return; + + var visibleItemCount = m_VisibleItems.Count; + var additionalItemCount = Mathf.Min(10, m_ItemCount - visibleItemCount); // Load more in batches of 10 or whatever is left + + for (var i = 0; i < additionalItemCount; i++) + { + CreateItem(visibleItemCount + i); + } + } + + private void CreateItem(int index) + { + var item = Instantiate(m_ItemPrefab, m_Content); + item.SetActive(true); + m_VisibleItems.Add(item); + OnCreateItemView?.Invoke(index, item); + } + + /// + /// Clears all items from the scroll view and resets its state. + /// + public void Clear() + { + // Destroy all visible items + foreach (var item in m_VisibleItems) Destroy(item); + m_VisibleItems.Clear(); + + // Reset item count + m_ItemCount = 0; + } + } +} diff --git a/Assets/Shared/Scripts/InfiniteScrollGridView.cs.meta b/Assets/Shared/Scripts/InfiniteScrollGridView.cs.meta new file mode 100644 index 00000000..985015c7 --- /dev/null +++ b/Assets/Shared/Scripts/InfiniteScrollGridView.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 75f119064b224bbb941358391ceb37f3 +timeCreated: 1727835642 \ No newline at end of file diff --git a/Assets/Shared/Scripts/InfiniteScrollView.cs b/Assets/Shared/Scripts/InfiniteScrollView.cs index ce78af23..de02e64d 100644 --- a/Assets/Shared/Scripts/InfiniteScrollView.cs +++ b/Assets/Shared/Scripts/InfiniteScrollView.cs @@ -68,8 +68,11 @@ private void PopulateItems() // Remove items that are no longer visible for (var i = m_VisibleItems.Count - 1; i >= endIndex; i--) { - Destroy(m_VisibleItems[i]); - m_VisibleItems.RemoveAt(i); + if (i > 0) + { + Destroy(m_VisibleItems[i]); + m_VisibleItems.RemoveAt(i); + } } } diff --git a/Assets/Shared/Scripts/Model/Config.cs b/Assets/Shared/Scripts/Model/Config.cs index 145b24b4..648bfbe7 100644 --- a/Assets/Shared/Scripts/Model/Config.cs +++ b/Assets/Shared/Scripts/Model/Config.cs @@ -1,16 +1,15 @@ -using System; -using Immutable.Passport.Model; - namespace HyperCasual.Runner { public static class Config { // public const string SERVER_URL = "https://sample-passport-unity-game-api.dev.immutable.com/fox"; public const string SERVER_URL = "http://localhost:6060"; + public const string SDK_API = "https://api.sandbox.immutable.com/v1/ts-sdk/v1"; + // public const string CLIENT_ID = "ZJL7JvetcDFBNDlgRs5oJoxuAUUl6uQj"; public const string CLIENT_ID = "2Ng38UmEg0Morz1xOQLtsDs72Wx8uyGL"; // Devnet - // public const string CLIENT_ID = "UnB98ngnXIZIEJWGJOjVe1BpCx5ix7qc"; // WebGL + // public const string CLIENT_ID = "UnB98ngnXIZIEJWGJOjVe1BpCx5ix7qc"; // WebGL public const string ENVIRONMENT = "dev"; @@ -22,7 +21,8 @@ public static class Config private static readonly Uri uri = new Uri(url); private static readonly string scheme = uri.Scheme; private static readonly string hostWithPort = uri.IsDefaultPort ? uri.Host : $"{uri.Host}:{uri.Port}"; - private static readonly string fullPath = uri.AbsolutePath.EndsWith("/") ? uri.AbsolutePath : uri.AbsolutePath.Substring(0, uri.AbsolutePath.LastIndexOf('/') + 1); + private static readonly string fullPath = + uri.AbsolutePath.EndsWith("/") ? uri.AbsolutePath : uri.AbsolutePath.Substring(0, uri.AbsolutePath.LastIndexOf('/') + 1); public static readonly string REDIRECT_URI = $"{scheme}://{hostWithPort}{fullPath}callback.html"; public static readonly string LOGOUT_REIDIRECT_URI = $"{scheme}://{hostWithPort}{fullPath}logout.html"; diff --git a/Assets/Shared/Scripts/UI/AssetDetailsView.cs b/Assets/Shared/Scripts/UI/AssetDetailsView.cs index b6b9c958..ace8f014 100644 --- a/Assets/Shared/Scripts/UI/AssetDetailsView.cs +++ b/Assets/Shared/Scripts/UI/AssetDetailsView.cs @@ -6,13 +6,13 @@ using System.Numerics; using Cysharp.Threading.Tasks; using HyperCasual.Core; +using Immutable.Orderbook.Api; +using Immutable.Orderbook.Client; +using Immutable.Orderbook.Model; using Immutable.Passport; using Immutable.Passport.Model; using Immutable.Search.Api; using Immutable.Search.Model; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; using Newtonsoft.Json; using TMPro; using UnityEngine; @@ -64,7 +64,7 @@ public class AssetDetailsView : View private readonly List m_Attributes = new(); private readonly SearchApi m_SearchApi; - private readonly DefaultApi m_TsApi; + private readonly OrderbookApi m_TsApi; private AssetModel m_Asset; private OldListing m_Listing; @@ -72,7 +72,7 @@ public AssetDetailsView() { var tsConfig = new Configuration(); tsConfig.BasePath = Config.BASE_URL; - m_TsApi = new DefaultApi(tsConfig); + m_TsApi = new OrderbookApi(tsConfig); var searchConfig = new Immutable.Search.Client.Configuration(); searchConfig.BasePath = Config.BASE_URL; @@ -319,7 +319,7 @@ private async UniTask GetListing(string listingId) // TODO To replace w return null; } - private async UniTask PrepareListing( + private async UniTask PrepareListing( string nftTokenAddress, string tokenId, string price, string erc20TokenAddress) { // Define the NFT to sell, using its contract address and token ID @@ -329,17 +329,16 @@ private async UniTask PrepareList var buy = new ERC20Item(price, erc20TokenAddress); // Call the Orderbook function to prepare the listing for sale - return await m_TsApi.V1TsSdkOrderbookPrepareListingPostAsync( - new V1TsSdkOrderbookPrepareListingPostRequest + return await m_TsApi.PrepareListingAsync( + new PrepareListingRequest ( makerAddress: SaveManager.Instance.WalletAddress, - sell: new V1TsSdkOrderbookPrepareListingPostRequestSell(nft), - buy: new V1TsSdkOrderbookPrepareListingPostRequestBuy(buy) + sell: new PrepareListingRequestSell(nft), + buy: new PrepareListingRequestBuy(buy) )); } - private async UniTask SignAndSubmitApproval( - V1TsSdkOrderbookPrepareListingPost200Response prepareListingResponse) + private async UniTask SignAndSubmitApproval(PrepareListing200Response prepareListingResponse) { var transactionAction = prepareListingResponse.Actions.FirstOrDefault(action => ReferenceEquals(action.ActualInstance, typeof(TransactionAction))); @@ -359,7 +358,7 @@ private async UniTask SignAndSubmitApproval( } } - private async UniTask SignListing(V1TsSdkOrderbookPrepareListingPost200Response prepareListingResponse) + private async UniTask SignListing(PrepareListing200Response prepareListingResponse) { var signableAction = prepareListingResponse.Actions.FirstOrDefault(action => action.GetSignableAction() != null); @@ -369,8 +368,8 @@ private async UniTask SignListing(V1TsSdkOrderbookPrepareListingPost200R var message = signableAction.GetSignableAction().Message; // Use Unity Passport package to sign typed data function to sign the listing payload - return "";//await Passport.Instance.ZkEvmSignTypedDataV4( - //JsonConvert.SerializeObject(message, Formatting.Indented)); + return await Passport.Instance.ZkEvmSignTypedDataV4( + JsonConvert.SerializeObject(message, Formatting.Indented)); } /// @@ -382,14 +381,14 @@ private async UniTask SignListing(V1TsSdkOrderbookPrepareListingPost200R { try { - V1TsSdkOrderbookPrepareListingPost200Response prepareListingResponse = + PrepareListing200Response prepareListingResponse = await PrepareListing(Contract.SKIN, m_Asset.token_id, $"{price}", Contract.TOKEN); await SignAndSubmitApproval(prepareListingResponse); - string signature = await SignListing(prepareListingResponse); + var signature = await SignListing(prepareListingResponse); - string listingId = await ListAsset(signature, prepareListingResponse); + var listingId = await ListAsset(signature, prepareListingResponse); Debug.Log($"Listing ID: {listingId}"); await ConfirmListingStatus(listingId, "ACTIVE"); @@ -412,10 +411,10 @@ private async UniTask SignListing(V1TsSdkOrderbookPrepareListingPost200R /// The signature for the listing. /// The prepared listing data. private async UniTask ListAsset(string signature, - V1TsSdkOrderbookPrepareListingPost200Response preparedListing) + PrepareListing200Response preparedListing) { - var createListingResponse = await m_TsApi.V1TsSdkOrderbookCreateListingPostAsync( - new V1TsSdkOrderbookCreateListingPostRequest + var createListingResponse = await m_TsApi.CreateListingAsync( + new CreateListingRequest ( new List(), preparedListing.OrderComponents, @@ -438,10 +437,10 @@ private async void OnCancelButtonClicked() try { - var request = new V1TsSdkOrderbookCancelOrdersOnChainPostRequest( + var request = new CancelOrdersOnChainRequest( accountAddress: SaveManager.Instance.WalletAddress, orderIds: new List { m_Listing.id }); - var response = await m_TsApi.V1TsSdkOrderbookCancelOrdersOnChainPostAsync(request); + var response = await m_TsApi.CancelOrdersOnChainAsync(request); if (response?.CancellationAction.PopulatedTransactions.To != null) { diff --git a/Assets/Shared/Scripts/UI/AssetListObject.cs b/Assets/Shared/Scripts/UI/AssetListObject.cs index c64e0eac..798e25be 100644 --- a/Assets/Shared/Scripts/UI/AssetListObject.cs +++ b/Assets/Shared/Scripts/UI/AssetListObject.cs @@ -1,5 +1,10 @@ +using System; +using System.Net.Http; +using System.Numerics; +using Cysharp.Threading.Tasks; using TMPro; using UnityEngine; +using UnityEngine.Serialization; namespace HyperCasual.Runner { @@ -10,7 +15,7 @@ public class AssetListObject : MonoBehaviour { [SerializeField] private TextMeshProUGUI m_NameText; [SerializeField] private TextMeshProUGUI m_TokenIdText; - [SerializeField] private TextMeshProUGUI m_CollectionText; + [SerializeField] private TextMeshProUGUI m_AmountText; [SerializeField] private ImageUrlObject m_Image; private AssetModel m_Asset; @@ -40,9 +45,50 @@ private async void UpdateData() if (m_Asset != null) { m_NameText.text = $"{m_Asset.name} #{m_Asset.token_id}"; - m_CollectionText.text = m_Asset.contract_address; + m_AmountText.text = "-"; m_Image.LoadUrl(m_Asset.image); + + OldListing listing = await GetActiveListingId(); + if (listing != null) + { + var amount = listing.buy[0].amount; + var quantity = (decimal)BigInteger.Parse(amount) / (decimal)BigInteger.Pow(10, 18); + m_AmountText.text = $"{quantity} IMR"; + } + else + { + m_AmountText.text = "Not listed"; + } + } + } + + // TODO to remove + private async UniTask GetActiveListingId() + { + try + { + using var client = new HttpClient(); + var url = + $"{Config.BASE_URL}/v1/chains/{Config.CHAIN_NAME}/orders/listings?sell_item_contract_address={Contract.SKIN}&sell_item_token_id={m_Asset.token_id}&status=ACTIVE"; + Debug.Log($"GetActiveListingId URL: {url}"); + + var response = await client.GetAsync(url); + if (response.IsSuccessStatusCode) + { + var responseBody = await response.Content.ReadAsStringAsync(); + var listingResponse = JsonUtility.FromJson(responseBody); + + // Check if the listing exists + if (listingResponse.result.Count > 0 && listingResponse.result[0].status.name == "ACTIVE") + return listingResponse.result[0]; + } } + catch (Exception ex) + { + Debug.Log($"Failed to check sale status: {ex.Message}"); + } + + return null; } } } \ No newline at end of file diff --git a/Assets/Shared/Scripts/UI/BalanceObject.cs b/Assets/Shared/Scripts/UI/BalanceObject.cs index 76f6db79..eff1d24e 100644 --- a/Assets/Shared/Scripts/UI/BalanceObject.cs +++ b/Assets/Shared/Scripts/UI/BalanceObject.cs @@ -33,7 +33,7 @@ public async void UpdateBalance() } using var client = new HttpClient(); - HttpResponseMessage response = await client.GetAsync($"{Config.SERVER_URL}/balance?address={address}"); + var response = await client.GetAsync($"{Config.SERVER_URL}/balance?address={address}"); if (response.IsSuccessStatusCode) { diff --git a/Assets/Shared/Scripts/UI/InventoryScreen.cs b/Assets/Shared/Scripts/UI/InventoryScreen.cs index 09af7296..b275520f 100644 --- a/Assets/Shared/Scripts/UI/InventoryScreen.cs +++ b/Assets/Shared/Scripts/UI/InventoryScreen.cs @@ -5,6 +5,7 @@ using HyperCasual.Core; using Immutable.Passport; using UnityEngine; +using Xsolla.Core; using TMPro; using Immutable.Search.Client; using Immutable.Search.Model; @@ -23,7 +24,7 @@ public class InventoryScreen : View [SerializeField] private BalanceObject m_Balance; [SerializeField] private AssetListObject m_AssetObj; [SerializeField] private Transform m_ListParent; - [SerializeField] private InfiniteScrollView m_ScrollView; + [SerializeField] private InfiniteScrollGridView m_ScrollView; [SerializeField] private AddFunds m_AddFunds; private readonly List m_Assets = new(); @@ -103,6 +104,7 @@ private async void LoadAssets() if (assets != null && assets.Count > 0) { m_Assets.AddRange(assets); + Debug.Log($"m_Assets.Count: {m_Assets.Count}"); m_ScrollView.TotalItemCount = m_Assets.Count; } @@ -191,7 +193,7 @@ private void OnBackButtonClick() } /// - /// handles the add funds button click + /// handles the add funds button click /// private void OnAddFundsButtonClick() { diff --git a/Assets/Shared/Scripts/UI/OrderDetailsView.cs b/Assets/Shared/Scripts/UI/OrderDetailsView.cs index 971ad3a9..ac247aed 100644 --- a/Assets/Shared/Scripts/UI/OrderDetailsView.cs +++ b/Assets/Shared/Scripts/UI/OrderDetailsView.cs @@ -4,12 +4,12 @@ using System.Numerics; using Cysharp.Threading.Tasks; using HyperCasual.Core; +using Immutable.Orderbook.Api; +using Immutable.Orderbook.Client; +using Immutable.Orderbook.Model; using Immutable.Passport; using Immutable.Passport.Model; using Immutable.Search.Model; -using Immutable.Ts.Api; -using Immutable.Ts.Client; -using Immutable.Ts.Model; using Newtonsoft.Json; using TMPro; using UnityEngine; @@ -36,7 +36,7 @@ public class OrderDetailsView : View private readonly List m_AttributeViews = new(); private readonly List m_ListingViews = new(); - private readonly DefaultApi m_TsApi; + private readonly OrderbookApi m_TsApi; private Listing m_Listing; private StackBundle m_Order; @@ -45,7 +45,7 @@ public OrderDetailsView() { var tsConfig = new Configuration(); tsConfig.BasePath = Config.BASE_URL; - m_TsApi = new DefaultApi(tsConfig); + m_TsApi = new OrderbookApi(tsConfig); } private async void OnEnable() @@ -177,16 +177,16 @@ private async UniTask OnBuyButtonClick(Listing listing) try { var fees = listing.PriceDetails.Fees - .Select(fee => new V1TsSdkOrderbookFulfillOrderPostRequestTakerFeesInner + .Select(fee => new FulfillOrderRequestTakerFeesInner ( fee.Amount, fee.RecipientAddress )).ToList(); - var request = new V1TsSdkOrderbookFulfillOrderPostRequest( + var request = new FulfillOrderRequest( takerAddress: SaveManager.Instance.WalletAddress, listingId: listing.ListingId, takerFees: fees); - var createListingResponse = await m_TsApi.V1TsSdkOrderbookFulfillOrderPostAsync(request); + var createListingResponse = await m_TsApi.FulfillOrderAsync(request); if (createListingResponse.Actions.Count > 0) { diff --git a/Assets/Shared/Scripts/UI/UnlockedSkinScreen.cs b/Assets/Shared/Scripts/UI/UnlockedSkinScreen.cs index 91a8bea3..9258421d 100644 --- a/Assets/Shared/Scripts/UI/UnlockedSkinScreen.cs +++ b/Assets/Shared/Scripts/UI/UnlockedSkinScreen.cs @@ -112,7 +112,7 @@ private async void Craft() CraftState = CraftSkinState.Crafting; // Burn tokens and mint a new skin i.e. crafting a skin - TransactionReceiptResponse response = await Passport.Instance.ZkEvmSendTransactionWithConfirmation(new TransactionRequest() + var response = await Passport.Instance.ZkEvmSendTransactionWithConfirmation(new TransactionRequest { to = Contract.TOKEN, // Immutable Runner Token contract address data = "0x1e957f1e", // Call craftSkin() in the contract diff --git a/Assets/Unity.Hypercasual.asmdef b/Assets/Unity.Hypercasual.asmdef index a73082a8..a1653e05 100644 --- a/Assets/Unity.Hypercasual.asmdef +++ b/Assets/Unity.Hypercasual.asmdef @@ -9,14 +9,11 @@ "GUID:b68f5bb197434c84c8a4cc3e45e8408b", "GUID:9fc1342f87877ac42a37b19ac1c6653c", "GUID:f51ebe6a0ceec4240a699833d6309b23", - "GUID:040461ac9efe8417688bb580d6094e16", - "GUID:7c6688e3b113844aca8431c34874cbad", - "GUID:c7a369c5a572d4b6b84cab646212889e", - "GUID:95d173a3e67b39d40803000ed05b79f4", "GUID:39350674e628e4d2aa1dbede8297dcb0", - "GUID:3ab7ea98d0e1b446fa1c06a03506295d", "GUID:a0996310e1aa34b7fbf14df5d255461d", - "GUID:ad4e8f60bb020430ea8ed149d59b334a" + "GUID:c7a369c5a572d4b6b84cab646212889e", + "GUID:95d173a3e67b39d40803000ed05b79f4", + "GUID:95a2b1ff23bee4357a10943aba1b014d" ], "includePlatforms": [], "excludePlatforms": [], diff --git a/Packages/manifest.json b/Packages/manifest.json index 9d9457e9..1ea04d53 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -1,7 +1,8 @@ { "dependencies": { "com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#2.3.3", - "com.immutable.passport": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Passport#v1.26.0", + "com.immutable.passport": "file:/Users/natalie/Development/unity-immutable-sdk/src/Packages/Passport", + "com.immutable.orderbook": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Orderbook", "com.immutable.marketplace": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Marketplace", "com.nobi.roundedcorners": "https://github.com/kirevdokimov/Unity-UI-Rounded-Corners.git", "com.unity.collab-proxy": "2.0.4", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index d90274b5..952860c3 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -14,17 +14,25 @@ "dependencies": { "com.cysharp.unitask": "2.3.3" }, - "hash": "975f9617a0319383a6195c68e7827c9cd99f0090" + "hash": "01fdea8065a855144ab98514d95f70e8d9a2f74e" }, - "com.immutable.passport": { - "version": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Passport#v1.26.0", + "com.immutable.orderbook": { + "version": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Orderbook", "depth": 0, "source": "git", "dependencies": { - "com.unity.nuget.newtonsoft-json": "3.2.0", "com.cysharp.unitask": "2.3.3" }, - "hash": "fa82619bfc27de7f0da1fe70fbcfae182bae0e4f" + "hash": "79203ec6a000ded00b84360e4f7ecfdc58d9f42e" + }, + "com.immutable.passport": { + "version": "file:/Users/natalie/Development/unity-immutable-sdk/src/Packages/Passport", + "depth": 0, + "source": "local", + "dependencies": { + "com.unity.nuget.newtonsoft-json": "3.2.0", + "com.cysharp.unitask": "2.3.3" + } }, "com.nobi.roundedcorners": { "version": "https://github.com/kirevdokimov/Unity-UI-Rounded-Corners.git", From e169b788fe1f8db702b466a1b30e0b1626c01042 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Wed, 2 Oct 2024 19:10:32 +1300 Subject: [PATCH 2/2] fix: dependency --- Assets/Shared/Scripts/UI/AssetDetailsView.cs | 4 ++-- Packages/manifest.json | 2 +- Packages/packages-lock.json | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Assets/Shared/Scripts/UI/AssetDetailsView.cs b/Assets/Shared/Scripts/UI/AssetDetailsView.cs index ace8f014..15159379 100644 --- a/Assets/Shared/Scripts/UI/AssetDetailsView.cs +++ b/Assets/Shared/Scripts/UI/AssetDetailsView.cs @@ -368,8 +368,8 @@ private async UniTask SignListing(PrepareListing200Response prepareListi var message = signableAction.GetSignableAction().Message; // Use Unity Passport package to sign typed data function to sign the listing payload - return await Passport.Instance.ZkEvmSignTypedDataV4( - JsonConvert.SerializeObject(message, Formatting.Indented)); + return "";//await Passport.Instance.ZkEvmSignTypedDataV4( + //JsonConvert.SerializeObject(message, Formatting.Indented)); } /// diff --git a/Packages/manifest.json b/Packages/manifest.json index 1ea04d53..c3db6d68 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -1,7 +1,7 @@ { "dependencies": { "com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#2.3.3", - "com.immutable.passport": "file:/Users/natalie/Development/unity-immutable-sdk/src/Packages/Passport", + "com.immutable.passport": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Passport", "com.immutable.orderbook": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Orderbook", "com.immutable.marketplace": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Marketplace", "com.nobi.roundedcorners": "https://github.com/kirevdokimov/Unity-UI-Rounded-Corners.git", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index 952860c3..ccb0d1c4 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -26,13 +26,14 @@ "hash": "79203ec6a000ded00b84360e4f7ecfdc58d9f42e" }, "com.immutable.passport": { - "version": "file:/Users/natalie/Development/unity-immutable-sdk/src/Packages/Passport", + "version": "https://github.com/immutable/unity-immutable-sdk.git?path=/src/Packages/Passport", "depth": 0, - "source": "local", + "source": "git", "dependencies": { "com.unity.nuget.newtonsoft-json": "3.2.0", "com.cysharp.unitask": "2.3.3" - } + }, + "hash": "01fdea8065a855144ab98514d95f70e8d9a2f74e" }, "com.nobi.roundedcorners": { "version": "https://github.com/kirevdokimov/Unity-UI-Rounded-Corners.git",