From 9839efbf707824ef1702d76923ba5924f73b7436 Mon Sep 17 00:00:00 2001 From: eddiechayes Date: Mon, 6 Nov 2023 14:21:17 -0800 Subject: [PATCH] change test to snapshot of current splitit C# sdk --- .../csharp-body-with-object-field/README.md | 5 - .../csharp-body-with-object-field/api.yaml | 44 - .../csharp/.konfigignore | 1 - .../csharp/CsharpBodyWithObjectField.Net.sln | 27 - .../csharp/README.md | 110 - .../csharp/docs/TestApi.md | 91 - .../Api/TestApiTests.cs | 74 - .../Api/TestApi.cs | 339 -- .../csharp-body-with-object-field/konfig.yaml | 14 - .../sdks/csharp-splitit/.konfig/progress.yaml | 32 + .../LICENSE | 0 .../sdks/csharp-splitit/README.md | 5 + .../csharp/.gitignore | 0 .../sdks/csharp-splitit/csharp/.konfigignore | 2 + .../sdks/csharp-splitit/csharp/README.md | 185 + .../csharp/appveyor.yml | 2 +- .../csharp-splitit/csharp/docs/AddressData.md | 15 + .../csharp/docs/AddressDataModel.md | 15 + .../csharp/docs/AuthorizationModel.md | 19 + .../docs/BluesnapVaultedShopperToken.md | 11 + .../csharp-splitit/csharp/docs/CardBrand.md | 9 + .../csharp-splitit/csharp/docs/CardData.md | 16 + .../csharp-splitit/csharp/docs/CardType.md | 9 + .../CheckInstallmentsEligibilityRequest.md | 12 + .../sdks/csharp-splitit/csharp/docs/Error.md | 12 + .../csharp/docs/ErrorExtended.md | 13 + .../csharp/docs/ErrorExtendedAllOf.md | 10 + .../csharp/docs/EventsEndpointsModel.md | 10 + .../csharp/docs/FailedResponse.md | 11 + .../csharp/docs/GatewayTokenData.md | 11 + .../csharp/docs/GwAuthorizationStatus.md | 9 + .../csharp/docs/IdentifierContract.md | 12 + .../csharp/docs/InitiatePlanResponse.md | 19 + .../docs/InitiateRedirectionEndpointsModel.md | 12 + .../csharp-splitit/csharp/docs/Installment.md | 13 + .../csharp/docs/InstallmentPlanApi.md | 1030 ++++++ .../docs/InstallmentPlanCancelResponse.md | 10 + .../docs/InstallmentPlanCreateRequest.md | 19 + .../docs/InstallmentPlanCreateResponse.md | 24 + .../csharp/docs/InstallmentPlanGetResponse.md | 25 + .../docs/InstallmentPlanInitiateRequest.md | 18 + .../docs/InstallmentPlanRefundRequest.md | 11 + .../docs/InstallmentPlanRefundResponse.md | 15 + .../docs/InstallmentPlanSearchResponse.md | 10 + .../docs/InstallmentPlanUpdateRequest.md | 13 + ...nstallmentPlanUpdateRequestByIdentifier.md | 14 + ...lmentPlanUpdateRequestByIdentifierAllOf.md | 10 + .../docs/InstallmentPlanUpdateResponse.md | 13 + .../csharp/docs/InstallmentStatus.md | 9 + .../docs/InstallmentsEligibilityResponse.md | 11 + .../csharp-splitit/csharp/docs/LinksData.md | 13 + .../csharp-splitit/csharp/docs/LinksModel.md | 12 + .../csharp/docs/MockerShopperToken.md | 11 + .../csharp/docs/PaymentMethodModel.md | 15 + .../csharp/docs/PaymentMethodType.md | 9 + .../csharp/docs/PaymentPlanOptionModel.md | 16 + .../csharp-splitit/csharp/docs/PlanData.md | 20 + .../csharp/docs/PlanDataModel.md | 18 + .../csharp/docs/PlanErrorResponse.md | 12 + .../csharp/docs/PlanErrorResponseAllOf.md | 10 + .../csharp-splitit/csharp/docs/PlanStatus.md | 9 + .../csharp/docs/ProcessingData.md | 12 + .../csharp/docs/ProcessingData2.md | 12 + .../csharp/docs/PurchaseMethod.md | 9 + .../csharp/docs/RedirectionEndpointsModel.md | 13 + .../csharp-splitit/csharp/docs/RefundModel.md | 15 + .../csharp/docs/RefundStatus.md | 9 + .../csharp/docs/RefundStrategy.md | 9 + .../csharp/docs/RefundSummary.md | 13 + .../docs/SearchInstallmentPlanResponseItem.md | 25 + .../csharp/docs/ShippingStatus.md | 9 + .../csharp/docs/ShippingStatus2.md | 9 + .../csharp-splitit/csharp/docs/ShopperData.md | 13 + .../csharp/docs/SpreedlyToken.md | 11 + .../csharp-splitit/csharp/docs/TestModes.md | 9 + .../csharp-splitit/csharp/docs/ThreeDSData.md | 15 + .../csharp/docs/ThreeDSData2.md | 15 + .../csharp/docs/ThreeDsRedirectDataV3.md | 12 + .../csharp/docs/UpdateOrderRequest.md | 13 + .../csharp/docs/UxSettingsModel.md | 10 + .../docs/VerifyAuthorizationResponse.md | 12 + .../csharp/logo.png | Bin .../Api/InstallmentPlanApiTests.cs | 413 +++ .../CsharpSplitit.Net.Test.csproj} | 6 +- .../Model/AddressDataModelTests.cs | 110 + .../Model/AddressDataTests.cs | 110 + .../Model/AuthorizationModelTests.cs | 142 + .../Model/BluesnapVaultedShopperTokenTests.cs | 78 + .../Model/CardBrandTests.cs | 62 + .../Model/CardDataTests.cs | 118 + .../Model/CardTypeTests.cs | 62 + ...heckInstallmentsEligibilityRequestTests.cs | 86 + .../Model/ErrorExtendedAllOfTests.cs | 70 + .../Model/ErrorExtendedTests.cs | 94 + .../Model/ErrorTests.cs | 86 + .../Model/EventsEndpointsModelTests.cs | 70 + .../Model/FailedResponseTests.cs | 78 + .../Model/GatewayTokenDataTests.cs | 78 + .../Model/GwAuthorizationStatusTests.cs | 62 + .../Model/IdentifierContractTests.cs | 86 + .../Model/InitiatePlanResponseTests.cs | 142 + .../InitiateRedirectionEndpointsModelTests.cs | 86 + .../InstallmentPlanCancelResponseTests.cs | 70 + .../InstallmentPlanCreateRequestTests.cs | 142 + .../InstallmentPlanCreateResponseTests.cs | 182 + .../Model/InstallmentPlanGetResponseTests.cs | 190 + .../InstallmentPlanInitiateRequestTests.cs | 134 + .../InstallmentPlanRefundRequestTests.cs | 78 + .../InstallmentPlanRefundResponseTests.cs | 110 + .../InstallmentPlanSearchResponseTests.cs | 70 + ...PlanUpdateRequestByIdentifierAllOfTests.cs | 70 + ...lmentPlanUpdateRequestByIdentifierTests.cs | 102 + .../InstallmentPlanUpdateRequestTests.cs | 94 + .../InstallmentPlanUpdateResponseTests.cs | 94 + .../Model/InstallmentStatusTests.cs | 62 + .../Model/InstallmentTests.cs | 94 + .../InstallmentsEligibilityResponseTests.cs | 78 + .../Model/LinksDataTests.cs | 94 + .../Model/LinksModelTests.cs | 86 + .../Model/MockerShopperTokenTests.cs | 78 + .../Model/PaymentMethodModelTests.cs | 110 + .../Model/PaymentMethodTypeTests.cs | 62 + .../Model/PaymentPlanOptionModelTests.cs | 118 + .../Model/PlanDataModelTests.cs | 134 + .../Model/PlanDataTests.cs | 150 + .../Model/PlanErrorResponseAllOfTests.cs | 70 + .../Model/PlanErrorResponseTests.cs | 86 + .../Model/PlanStatusTests.cs | 62 + .../Model/ProcessingData2Tests.cs | 86 + .../Model/ProcessingDataTests.cs | 86 + .../Model/PurchaseMethodTests.cs | 62 + .../Model/RedirectionEndpointsModelTests.cs | 94 + .../Model/RefundModelTests.cs | 110 + .../Model/RefundStatusTests.cs | 62 + .../Model/RefundStrategyTests.cs | 62 + .../Model/RefundSummaryTests.cs | 94 + .../SearchInstallmentPlanResponseItemTests.cs | 190 + .../Model/ShippingStatus2Tests.cs | 62 + .../Model/ShippingStatusTests.cs | 62 + .../Model/ShopperDataTests.cs | 94 + .../Model/SpreedlyTokenTests.cs | 78 + .../Model/TestModesTests.cs | 62 + .../Model/ThreeDSData2Tests.cs | 110 + .../Model/ThreeDSDataTests.cs | 110 + .../Model/ThreeDsRedirectDataV3Tests.cs | 86 + .../Model/UpdateOrderRequestTests.cs | 94 + .../Model/UxSettingsModelTests.cs | 70 + .../Model/VerifyAuthorizationResponseTests.cs | 86 + .../src/CsharpSplitit.Net.Test}/SimpleTest.cs | 18 +- .../Api/InstallmentPlanApi.cs | 3000 ++++++++++++++++ .../CsharpSplitit.Net}/Client/ApiClient.cs | 48 +- .../Client/ApiClientCustom.cs | 7 +- .../CsharpSplitit.Net}/Client/ApiException.cs | 7 +- .../CsharpSplitit.Net}/Client/ApiResponse.cs | 7 +- .../Client/Auth/OAuthAuthenticator.cs | 95 + .../Client/Auth/OAuthFlow.cs | 27 + .../Client/Auth/TokenResponse.cs | 22 + .../Client/ClientException.cs | 7 +- .../CsharpSplitit.Net}/Client/ClientUtils.cs | 7 +- .../Client/Configuration.cs | 48 +- .../Client/CsharpSplititClient.cs} | 43 +- .../Client/ExceptionFactory.cs | 7 +- .../Client/GlobalConfiguration.cs | 7 +- .../CsharpSplitit.Net}/Client/HttpMethod.cs | 7 +- .../CsharpSplitit.Net}/Client/IApiAccessor.cs | 7 +- .../Client/IAsynchronousClient.cs | 7 +- .../Client/IReadableConfiguration.cs | 32 +- .../Client/ISynchronousClient.cs | 7 +- .../src/CsharpSplitit.Net}/Client/Multimap.cs | 7 +- .../Client/OpenAPIDateConverter.cs | 7 +- .../Client/RequestOptions.cs | 12 +- .../Client/RetryConfiguration.cs | 7 +- .../CsharpSplitit.Net.csproj} | 8 +- .../Model/AbstractOpenAPISchema.cs | 7 +- .../CsharpSplitit.Net/Model/AddressData.cs | 218 ++ .../Model/AddressDataModel.cs | 218 ++ .../Model/AuthorizationModel.cs | 291 ++ .../Model/BluesnapVaultedShopperToken.cs | 146 + .../src/CsharpSplitit.Net/Model/CardBrand.cs | 90 + .../src/CsharpSplitit.Net/Model/CardData.cs | 228 ++ .../src/CsharpSplitit.Net/Model/CardType.cs | 78 + .../CheckInstallmentsEligibilityRequest.cs | 164 + .../src/CsharpSplitit.Net/Model/Error.cs | 164 + .../CsharpSplitit.Net/Model/ErrorExtended.cs | 183 + .../Model/ErrorExtendedAllOf.cs | 129 + .../Model/EventsEndpointsModel.cs | 128 + .../CsharpSplitit.Net/Model/FailedResponse.cs | 146 + .../Model/GatewayTokenData.cs | 146 + .../Model/GwAuthorizationStatus.cs | 60 + .../Model/IdentifierContract.cs | 165 + .../Model/InitiatePlanResponse.cs | 284 ++ .../InitiateRedirectionEndpointsModel.cs | 164 + .../CsharpSplitit.Net/Model/Installment.cs | 175 + .../Model/InstallmentPlanCancelResponse.cs | 128 + .../Model/InstallmentPlanCreateRequest.cs | 283 ++ .../Model/InstallmentPlanCreateResponse.cs | 371 ++ .../Model/InstallmentPlanGetResponse.cs | 390 +++ .../Model/InstallmentPlanInitiateRequest.cs | 269 ++ .../Model/InstallmentPlanRefundRequest.cs | 143 + .../Model/InstallmentPlanRefundResponse.cs | 210 ++ .../Model/InstallmentPlanSearchResponse.cs | 129 + .../Model/InstallmentPlanUpdateRequest.cs | 174 + ...nstallmentPlanUpdateRequestByIdentifier.cs | 192 + ...lmentPlanUpdateRequestByIdentifierAllOf.cs | 128 + .../Model/InstallmentPlanUpdateResponse.cs | 179 + .../Model/InstallmentStatus.cs | 54 + .../Model/InstallmentsEligibilityResponse.cs | 147 + .../src/CsharpSplitit.Net/Model/LinksData.cs | 182 + .../src/CsharpSplitit.Net/Model/LinksModel.cs | 164 + .../Model/MockerShopperToken.cs | 146 + .../Model/PaymentMethodModel.cs | 219 ++ .../Model/PaymentMethodType.cs | 66 + .../Model/PaymentPlanOptionModel.cs | 225 ++ .../src/CsharpSplitit.Net/Model/PlanData.cs | 299 ++ .../CsharpSplitit.Net/Model/PlanDataModel.cs | 262 ++ .../Model/PlanErrorResponse.cs | 164 + .../Model/PlanErrorResponseAllOf.cs | 128 + .../src/CsharpSplitit.Net/Model/PlanStatus.cs | 66 + .../CsharpSplitit.Net/Model/ProcessingData.cs | 160 + .../Model/ProcessingData2.cs | 160 + .../CsharpSplitit.Net/Model/PurchaseMethod.cs | 54 + .../Model/RedirectionEndpointsModel.cs | 182 + .../CsharpSplitit.Net/Model/RefundModel.cs | 207 ++ .../CsharpSplitit.Net/Model/RefundStatus.cs | 54 + .../CsharpSplitit.Net/Model/RefundStrategy.cs | 60 + .../CsharpSplitit.Net/Model/RefundSummary.cs | 166 + .../SearchInstallmentPlanResponseItem.cs | 390 +++ .../CsharpSplitit.Net/Model/ShippingStatus.cs | 54 + .../Model/ShippingStatus2.cs | 48 + .../CsharpSplitit.Net/Model/ShopperData.cs | 182 + .../CsharpSplitit.Net/Model/SpreedlyToken.cs | 146 + .../src/CsharpSplitit.Net/Model/TestModes.cs | 60 + .../CsharpSplitit.Net/Model/ThreeDSData.cs | 218 ++ .../CsharpSplitit.Net/Model/ThreeDSData2.cs | 218 ++ .../Model/ThreeDsRedirectDataV3.cs | 165 + .../Model/UpdateOrderRequest.cs | 174 + .../Model/UxSettingsModel.cs | 129 + .../Model/VerifyAuthorizationResponse.cs | 161 + .../sdks/csharp-splitit/konfig.yaml | 19 + .../sdks/csharp-splitit/swagger-fixed.json | 3117 +++++++++++++++++ .../sdks/csharp-splitit/swagger.json | 2316 ++++++++++++ ...csharp-body-with-object-field.test.ts.snap | 115 - .../__snapshots__/csharp-splitit.test.ts.snap | 190 + .../csharp-body-with-object-field.test.ts | 6 - .../tests/csharp-splitit.test.ts | 6 + 245 files changed, 28373 insertions(+), 947 deletions(-) delete mode 100644 generator/konfig-integration-tests/sdks/csharp-body-with-object-field/README.md delete mode 100644 generator/konfig-integration-tests/sdks/csharp-body-with-object-field/api.yaml delete mode 100644 generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/.konfigignore delete mode 100644 generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/CsharpBodyWithObjectField.Net.sln delete mode 100644 generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/README.md delete mode 100644 generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/docs/TestApi.md delete mode 100644 generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/Api/TestApiTests.cs delete mode 100644 generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Api/TestApi.cs delete mode 100644 generator/konfig-integration-tests/sdks/csharp-body-with-object-field/konfig.yaml create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/.konfig/progress.yaml rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field => csharp-splitit}/LICENSE (100%) create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/README.md rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field => csharp-splitit}/csharp/.gitignore (100%) create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/.konfigignore create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/README.md rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field => csharp-splitit}/csharp/appveyor.yml (58%) create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AddressData.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AddressDataModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AuthorizationModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/BluesnapVaultedShopperToken.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardBrand.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardData.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardType.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CheckInstallmentsEligibilityRequest.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/Error.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ErrorExtended.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ErrorExtendedAllOf.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/EventsEndpointsModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/FailedResponse.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/GatewayTokenData.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/GwAuthorizationStatus.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/IdentifierContract.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InitiatePlanResponse.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InitiateRedirectionEndpointsModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/Installment.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanApi.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCancelResponse.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCreateRequest.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCreateResponse.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanGetResponse.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanInitiateRequest.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanRefundRequest.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanRefundResponse.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanSearchResponse.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequest.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequestByIdentifier.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequestByIdentifierAllOf.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateResponse.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentStatus.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentsEligibilityResponse.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/LinksData.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/LinksModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/MockerShopperToken.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentMethodModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentMethodType.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentPlanOptionModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanData.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanDataModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanErrorResponse.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanErrorResponseAllOf.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanStatus.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ProcessingData.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ProcessingData2.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PurchaseMethod.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RedirectionEndpointsModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundStatus.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundStrategy.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundSummary.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/SearchInstallmentPlanResponseItem.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShippingStatus.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShippingStatus2.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShopperData.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/SpreedlyToken.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/TestModes.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDSData.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDSData2.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDsRedirectDataV3.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/UpdateOrderRequest.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/UxSettingsModel.md create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/VerifyAuthorizationResponse.md rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field => csharp-splitit}/csharp/logo.png (100%) create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Api/InstallmentPlanApiTests.cs rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/CsharpBodyWithObjectField.Net.Test.csproj => csharp-splitit/csharp/src/CsharpSplitit.Net.Test/CsharpSplitit.Net.Test.csproj} (65%) create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AddressDataModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AddressDataTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AuthorizationModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/BluesnapVaultedShopperTokenTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardBrandTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardDataTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardTypeTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CheckInstallmentsEligibilityRequestTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorExtendedAllOfTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorExtendedTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/EventsEndpointsModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/FailedResponseTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/GatewayTokenDataTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/GwAuthorizationStatusTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/IdentifierContractTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InitiatePlanResponseTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InitiateRedirectionEndpointsModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCancelResponseTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCreateRequestTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCreateResponseTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanGetResponseTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanInitiateRequestTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanRefundRequestTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanRefundResponseTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanSearchResponseTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestByIdentifierAllOfTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestByIdentifierTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateResponseTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentStatusTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentsEligibilityResponseTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/LinksDataTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/LinksModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/MockerShopperTokenTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentMethodModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentMethodTypeTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentPlanOptionModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanDataModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanDataTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanErrorResponseAllOfTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanErrorResponseTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanStatusTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ProcessingData2Tests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ProcessingDataTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PurchaseMethodTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RedirectionEndpointsModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundStatusTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundStrategyTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundSummaryTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/SearchInstallmentPlanResponseItemTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShippingStatus2Tests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShippingStatusTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShopperDataTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/SpreedlyTokenTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/TestModesTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDSData2Tests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDSDataTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDsRedirectDataV3Tests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/UpdateOrderRequestTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/UxSettingsModelTests.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/VerifyAuthorizationResponseTests.cs rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test => csharp-splitit/csharp/src/CsharpSplitit.Net.Test}/SimpleTest.cs (57%) create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Api/InstallmentPlanApi.cs rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/ApiClient.cs (95%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/ApiClientCustom.cs (56%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/ApiException.cs (91%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/ApiResponse.cs (96%) create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/OAuthAuthenticator.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/OAuthFlow.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/TokenResponse.cs rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/ClientException.cs (81%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/ClientUtils.cs (98%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/Configuration.cs (92%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/CsharpBodyWithObjectFieldClient.cs => csharp-splitit/csharp/src/CsharpSplitit.Net/Client/CsharpSplititClient.cs} (60%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/ExceptionFactory.cs (70%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/GlobalConfiguration.cs (89%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/HttpMethod.cs (78%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/IApiAccessor.cs (82%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/IAsynchronousClient.cs (97%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/IReadableConfiguration.cs (83%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/ISynchronousClient.cs (96%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/Multimap.cs (98%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/OpenAPIDateConverter.cs (84%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/RequestOptions.cs (92%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Client/RetryConfiguration.cs (77%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/CsharpBodyWithObjectField.Net.csproj => csharp-splitit/csharp/src/CsharpSplitit.Net/CsharpSplitit.Net.csproj} (87%) rename generator/konfig-integration-tests/sdks/{csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net => csharp-splitit/csharp/src/CsharpSplitit.Net}/Model/AbstractOpenAPISchema.cs (93%) create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AddressData.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AddressDataModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AuthorizationModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/BluesnapVaultedShopperToken.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardBrand.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardData.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardType.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CheckInstallmentsEligibilityRequest.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/Error.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ErrorExtended.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ErrorExtendedAllOf.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/EventsEndpointsModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/FailedResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/GatewayTokenData.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/GwAuthorizationStatus.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/IdentifierContract.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InitiatePlanResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InitiateRedirectionEndpointsModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/Installment.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCancelResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCreateRequest.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCreateResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanGetResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanInitiateRequest.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanRefundRequest.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanRefundResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanSearchResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequest.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequestByIdentifier.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequestByIdentifierAllOf.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentStatus.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentsEligibilityResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/LinksData.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/LinksModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/MockerShopperToken.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentMethodModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentMethodType.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentPlanOptionModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanData.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanDataModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanErrorResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanErrorResponseAllOf.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanStatus.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ProcessingData.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ProcessingData2.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PurchaseMethod.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RedirectionEndpointsModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundStatus.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundStrategy.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundSummary.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/SearchInstallmentPlanResponseItem.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShippingStatus.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShippingStatus2.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShopperData.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/SpreedlyToken.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/TestModes.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDSData.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDSData2.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDsRedirectDataV3.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/UpdateOrderRequest.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/UxSettingsModel.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/VerifyAuthorizationResponse.cs create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/konfig.yaml create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/swagger-fixed.json create mode 100644 generator/konfig-integration-tests/sdks/csharp-splitit/swagger.json delete mode 100644 generator/konfig-integration-tests/tests/__snapshots__/csharp-body-with-object-field.test.ts.snap create mode 100644 generator/konfig-integration-tests/tests/__snapshots__/csharp-splitit.test.ts.snap delete mode 100644 generator/konfig-integration-tests/tests/csharp-body-with-object-field.test.ts create mode 100644 generator/konfig-integration-tests/tests/csharp-splitit.test.ts diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/README.md b/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/README.md deleted file mode 100644 index f61b3e091..000000000 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# konfig - -|Language|Version|Package Manager|Documentation|Source| -|-|-|-|-|-| -|C#|1.0.0|[NuGet](https://nuget.org/packages/CsharpBodyWithObjectField.Net/1.0.0)|[Documentation](https://github.com/konfig-dev/konfig/tree/main/csharp/README.md)|[Source](https://github.com/konfig-dev/konfig/tree/main/csharp)| \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/api.yaml b/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/api.yaml deleted file mode 100644 index 439235b68..000000000 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/api.yaml +++ /dev/null @@ -1,44 +0,0 @@ -openapi: 3.0.3 -info: - title: csharp-body-with-object-field API - description: A simple API based for testing csharp-body-with-object-field. - version: 1.0.0 - termsOfService: http://example.com/terms/ - contact: - name: API Support - url: http://example.com/support - email: support@example.com - license: - name: Apache 2.0 - url: http://www.apache.org/licenses/LICENSE-2.0.html -servers: - - description: Live API server - url: https://csharp-body-with-object-field.konfigthis.com -tags: - - name: Test -paths: - /simple-endpoint: - get: - tags: - - Test - summary: Fetches a JSON value based on input parameter - operationId: Test_fetch - description: Provide an input parameter to receive a JSON value with properties. - responses: - '200': - description: Successful response - content: - application/json: - schema: - $ref: '#/components/schemas/TestFetchResponse' -components: - securitySchemes: - ApiKeyAuth: - type: apiKey - in: header - name: X-API-KEY - schemas: - TestFetchResponse: - type: object -security: - - ApiKeyAuth: [] diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/.konfigignore b/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/.konfigignore deleted file mode 100644 index 15c85bef6..000000000 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/.konfigignore +++ /dev/null @@ -1 +0,0 @@ -src/CsharpBodyWithObjectField.Net.Test/Api/TestApiTests.cs \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/CsharpBodyWithObjectField.Net.sln b/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/CsharpBodyWithObjectField.Net.sln deleted file mode 100644 index cc7027fad..000000000 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/CsharpBodyWithObjectField.Net.sln +++ /dev/null @@ -1,27 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CsharpBodyWithObjectField.Net", "src\CsharpBodyWithObjectField.Net\CsharpBodyWithObjectField.Net.csproj", "{ECD5890F-44AE-4372-9821-BD2FDB4FE966}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CsharpBodyWithObjectField.Net.Test", "src\CsharpBodyWithObjectField.Net.Test\CsharpBodyWithObjectField.Net.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {ECD5890F-44AE-4372-9821-BD2FDB4FE966}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {ECD5890F-44AE-4372-9821-BD2FDB4FE966}.Debug|Any CPU.Build.0 = Debug|Any CPU - {ECD5890F-44AE-4372-9821-BD2FDB4FE966}.Release|Any CPU.ActiveCfg = Release|Any CPU - {ECD5890F-44AE-4372-9821-BD2FDB4FE966}.Release|Any CPU.Build.0 = Release|Any CPU - {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU - {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU - {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/README.md b/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/README.md deleted file mode 100644 index 10f575542..000000000 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/README.md +++ /dev/null @@ -1,110 +0,0 @@ -# CsharpBodyWithObjectField.Net - C# - -[![NuGet](https://img.shields.io/badge/NuGet-1.0.0-blue.svg)](https://www.nuget.org/packages/CsharpBodyWithObjectField.Net/1.0.0) -[![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](http://example.com/support) - -A simple API based for testing csharp-body-with-object-field. - -## Frameworks supported -- .NET Core >=1.0 -- .NET Framework >=4.6 -- Mono/Xamarin >=vNext - -## Installation - -Using the [.NET Core command-line interface (CLI) tools][dotnet-core-cli-tools]: - -```sh -dotnet add package CsharpBodyWithObjectField.Net -``` - -Using the [NuGet Command Line Interface (CLI)][nuget-cli]: - -```sh -nuget install CsharpBodyWithObjectField.Net -``` - -Using the [Package Manager Console][package-manager-console]: - -```powershell -Install-Package CsharpBodyWithObjectField.Net -``` - -From within Visual Studio: - -1. Open the Solution Explorer. -2. Right-click on a project within your solution. -3. Click on *Manage NuGet Packages...* -4. Click on the *Browse* tab and search for "CsharpBodyWithObjectField.Net". -5. Click on the "CsharpBodyWithObjectField.Net" package, select the appropriate version in the - right-tab and click *Install*. - -## Getting Started - -```csharp -using System; -using System.Collections.Generic; -using System.Diagnostics; -using CsharpBodyWithObjectField.Net.Client; -using CsharpBodyWithObjectField.Net.Model; - -namespace Example -{ - public class FetchExample - { - public static void Main() - { - CsharpBodyWithObjectFieldClient client = new CsharpBodyWithObjectFieldClient(); - // Configure API key authorization: ApiKeyAuth - client.SetApiKey("YOUR_API_KEY"); - - - try - { - // Fetches a JSON value based on input parameter - Object result = client.Test.Fetch(); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling TestApi.Fetch: " + e.Message); - Console.WriteLine("Status Code: "+ e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - catch (ClientException e) - { - Console.WriteLine(e.Response.StatusCode); - Console.WriteLine(e.Response.RawContent); - Console.WriteLine(e.InnerException); - } - } - } -} -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://csharp-body-with-object-field.konfigthis.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*TestApi* | [**Fetch**](docs/TestApi.md#fetch) | **GET** /simple-endpoint | Fetches a JSON value based on input parameter - - -## Documentation for Models - - - -## Dependencies - -- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later -- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1 or later -- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later -- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later - -## Author -This C# package is automatically generated by [Konfig](https://konfigthis.com) - -[dotnet-core-cli-tools]: https://docs.microsoft.com/en-us/dotnet/core/tools/ -[nuget-cli]: https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference -[package-manager-console]: https://docs.microsoft.com/en-us/nuget/tools/package-manager-console diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/docs/TestApi.md b/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/docs/TestApi.md deleted file mode 100644 index 32cb8e6c8..000000000 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/docs/TestApi.md +++ /dev/null @@ -1,91 +0,0 @@ -# CsharpBodyWithObjectField.Net.Api.TestApi - -All URIs are relative to *https://csharp-body-with-object-field.konfigthis.com* - -| Method | HTTP request | Description | -|--------|--------------|-------------| -| [**Fetch**](TestApi.md#fetch) | **GET** /simple-endpoint | Fetches a JSON value based on input parameter | - - -# **Fetch** - - - -Provide an input parameter to receive a JSON value with properties. - -### Example -```csharp -using System; -using System.Collections.Generic; -using System.Diagnostics; -using CsharpBodyWithObjectField.Net.Client; -using CsharpBodyWithObjectField.Net.Model; - -namespace Example -{ - public class FetchExample - { - public static void Main() - { - CsharpBodyWithObjectFieldClient client = new CsharpBodyWithObjectFieldClient(); - // Configure API key authorization: ApiKeyAuth - client.SetApiKey("YOUR_API_KEY"); - - - try - { - // Fetches a JSON value based on input parameter - Object result = client.Test.Fetch(); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling TestApi.Fetch: " + e.Message); - Console.WriteLine("Status Code: "+ e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - catch (ClientException e) - { - Console.WriteLine(e.Response.StatusCode); - Console.WriteLine(e.Response.RawContent); - Console.WriteLine(e.InnerException); - } - } - } -} -``` - -#### Using the FetchWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Fetches a JSON value based on input parameter - ApiResponse response = apiInstance.FetchWithHttpInfo(); - 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 TestApi.FetchWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters -This endpoint does not need any parameter. -### Return type - -**Object** - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Successful response | - | - -[[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/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/Api/TestApiTests.cs b/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/Api/TestApiTests.cs deleted file mode 100644 index 54477e468..000000000 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/Api/TestApiTests.cs +++ /dev/null @@ -1,74 +0,0 @@ -/* - * csharp-body-with-object-field API - * - * A simple API based for testing csharp-body-with-object-field. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com - * Generated by: https://konfigthis.com - */ - -using System; -using System.IO; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Reflection; -using RestSharp; -using Xunit; - -using CsharpBodyWithObjectField.Net.Client; -using CsharpBodyWithObjectField.Net.Api; -using CsharpBodyWithObjectField.Net.Model; - -namespace CsharpBodyWithObjectField.Net.Test.Api -{ - /// - /// Class for testing TestApi - /// - public class TestApiTests : IDisposable - { - private CsharpBodyWithObjectFieldClient client; - - public TestApiTests() - { - client = new CsharpBodyWithObjectFieldClient(); - client.SetBasePath("http://127.0.0.1:4006"); - // Configure API key authorization: ApiKeyAuth - client.SetApiKey("YOUR_API_KEY"); - - } - - public void Dispose() - { - // Cleanup when everything is done. - } - - /// - /// Test Fetch - /// - [Fact] - public void FetchTest() - { - - try - { - // Fetches a JSON value based on input parameter - Object result = client.Test.Fetch(); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine("Exception when calling TestApi.Fetch: " + e.Message); - Console.WriteLine("Status Code: "+ e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - catch (ClientException e) - { - Console.WriteLine(e.Response.StatusCode); - Console.WriteLine(e.Response.RawContent); - Console.WriteLine(e.InnerException); - } - } - } -} diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Api/TestApi.cs b/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Api/TestApi.cs deleted file mode 100644 index e5b8488dd..000000000 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Api/TestApi.cs +++ /dev/null @@ -1,339 +0,0 @@ -/* - * csharp-body-with-object-field API - * - * A simple API based for testing csharp-body-with-object-field. - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com - * Generated by: https://konfigthis.com - */ - - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Net; -using System.Net.Mime; -using CsharpBodyWithObjectField.Net.Client; - -namespace CsharpBodyWithObjectField.Net.Api -{ - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITestApiSync : IApiAccessor - { - #region Synchronous Operations - /// - /// Fetches a JSON value based on input parameter - /// - /// - /// Provide an input parameter to receive a JSON value with properties. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Object - Object Fetch(int operationIndex = 0); - - /// - /// Fetches a JSON value based on input parameter - /// - /// - /// Provide an input parameter to receive a JSON value with properties. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of Object - ApiResponse FetchWithHttpInfo(int operationIndex = 0); - #endregion Synchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITestApiAsync : IApiAccessor - { - #region Asynchronous Operations - /// - /// Fetches a JSON value based on input parameter - /// - /// - /// Provide an input parameter to receive a JSON value with properties. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Object - System.Threading.Tasks.Task FetchAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Fetches a JSON value based on input parameter - /// - /// - /// Provide an input parameter to receive a JSON value with properties. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> FetchWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public interface ITestApi : ITestApiSync, ITestApiAsync - { - - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class TestApi : ITestApi - { - private CsharpBodyWithObjectField.Net.Client.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public TestApi() : this((string)null) - { - } - - /// - /// Initializes a new instance of the class. - /// - /// - public TestApi(string basePath) - { - this.Configuration = CsharpBodyWithObjectField.Net.Client.Configuration.MergeConfigurations( - CsharpBodyWithObjectField.Net.Client.GlobalConfiguration.Instance, - new CsharpBodyWithObjectField.Net.Client.Configuration { BasePath = basePath } - ); - this.Client = new CsharpBodyWithObjectField.Net.Client.ApiClient(this.Configuration); - this.AsynchronousClient = new CsharpBodyWithObjectField.Net.Client.ApiClient(this.Configuration); - this.ExceptionFactory = CsharpBodyWithObjectField.Net.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// Initializes a new instance of the class - /// using Configuration object - /// - /// An instance of Configuration - /// - public TestApi(CsharpBodyWithObjectField.Net.Client.Configuration configuration) - { - if (configuration == null) throw new ArgumentNullException("configuration"); - - this.Configuration = CsharpBodyWithObjectField.Net.Client.Configuration.MergeConfigurations( - CsharpBodyWithObjectField.Net.Client.GlobalConfiguration.Instance, - configuration - ); - this.Client = new CsharpBodyWithObjectField.Net.Client.ApiClient(this.Configuration); - this.AsynchronousClient = new CsharpBodyWithObjectField.Net.Client.ApiClient(this.Configuration); - this.ExceptionFactory = CsharpBodyWithObjectField.Net.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 TestApi(CsharpBodyWithObjectField.Net.Client.ISynchronousClient client, CsharpBodyWithObjectField.Net.Client.IAsynchronousClient asyncClient, CsharpBodyWithObjectField.Net.Client.IReadableConfiguration configuration) - { - if (client == null) throw new ArgumentNullException("client"); - if (asyncClient == null) throw new ArgumentNullException("asyncClient"); - if (configuration == null) throw new ArgumentNullException("configuration"); - - this.Client = client; - this.AsynchronousClient = asyncClient; - this.Configuration = configuration; - this.ExceptionFactory = CsharpBodyWithObjectField.Net.Client.Configuration.DefaultExceptionFactory; - } - - /// - /// The client for accessing this underlying API asynchronously. - /// - public CsharpBodyWithObjectField.Net.Client.IAsynchronousClient AsynchronousClient { get; set; } - - /// - /// The client for accessing this underlying API synchronously. - /// - public CsharpBodyWithObjectField.Net.Client.ISynchronousClient Client { get; set; } - - /// - /// Gets the base path of the API client. - /// - /// The base path - public string GetBasePath() - { - return this.Configuration.BasePath; - } - - /// - /// Gets or sets the configuration object - /// - /// An instance of the Configuration - public CsharpBodyWithObjectField.Net.Client.IReadableConfiguration Configuration { get; set; } - - /// - /// Provides a factory method hook for the creation of exceptions. - /// - public CsharpBodyWithObjectField.Net.Client.ExceptionFactory ExceptionFactory - { - get - { - if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) - { - throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); - } - return _exceptionFactory; - } - set { _exceptionFactory = value; } - } - - /// - /// Fetches a JSON value based on input parameter Provide an input parameter to receive a JSON value with properties. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Object - public Object Fetch(int operationIndex = 0) - { - CsharpBodyWithObjectField.Net.Client.ApiResponse localVarResponse = FetchWithHttpInfo(); - return localVarResponse.Data; - } - - /// - /// Fetches a JSON value based on input parameter Provide an input parameter to receive a JSON value with properties. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// ApiResponse of Object - public CsharpBodyWithObjectField.Net.Client.ApiResponse FetchWithHttpInfo(int operationIndex = 0) - { - CsharpBodyWithObjectField.Net.Client.RequestOptions localVarRequestOptions = new CsharpBodyWithObjectField.Net.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = CsharpBodyWithObjectField.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = CsharpBodyWithObjectField.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TestApi.Fetch"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKeyAuth) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("X-API-KEY"))) - { - localVarRequestOptions.HeaderParameters.Add("X-API-KEY", this.Configuration.GetApiKeyWithPrefix("X-API-KEY")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/simple-endpoint", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Fetch", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Fetches a JSON value based on input parameter Provide an input parameter to receive a JSON value with properties. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Object - public async System.Threading.Tasks.Task FetchAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - CsharpBodyWithObjectField.Net.Client.ApiResponse localVarResponse = await FetchWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Fetches a JSON value based on input parameter Provide an input parameter to receive a JSON value with properties. - /// - /// Thrown when fails to make API call - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> FetchWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - CsharpBodyWithObjectField.Net.Client.RequestOptions localVarRequestOptions = new CsharpBodyWithObjectField.Net.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = CsharpBodyWithObjectField.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) - { - localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - } - - var localVarAccept = CsharpBodyWithObjectField.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) - { - localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - } - - - localVarRequestOptions.Operation = "TestApi.Fetch"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (ApiKeyAuth) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("X-API-KEY"))) - { - localVarRequestOptions.HeaderParameters.Add("X-API-KEY", this.Configuration.GetApiKeyWithPrefix("X-API-KEY")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/simple-endpoint", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("Fetch", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - } -} diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/konfig.yaml b/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/konfig.yaml deleted file mode 100644 index fd4e925cd..000000000 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/konfig.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# yaml-language-server: $schema=https://unpkg.com/konfig-lib@latest/konfig-yaml.schema.json - -outputDirectory: /tmp/csharp-body-with-object-field-sdks-out -specPath: api.yaml -generators: - csharp: - version: 1.0.0 - outputDirectory: csharp - clientName: CsharpBodyWithObjectFieldClient - packageName: CsharpBodyWithObjectField.Net - logoPath: ../../logo.png - git: - userId: konfig-dev - repoId: konfig/tree/main/csharp \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/.konfig/progress.yaml b/generator/konfig-integration-tests/sdks/csharp-splitit/.konfig/progress.yaml new file mode 100644 index 000000000..757a27417 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/.konfig/progress.yaml @@ -0,0 +1,32 @@ +description: Splitit's Web API +examples: {} +examples_2: {} +fixOnlyOneTagName: false +operationIds: {} +operationTags: {} +renameTags: {} +requestSchemaNames: {} +responseDescriptions: {} +responseSchemaNames: {} +securityParameters: + Authorization: + header: + flows: + clientCredentials: + scopes: + api.v3: '' + tokenUrl: https://id.production.splitit.com/connect/token + securityName: oauth + type: oauth2 + X-Splitit-IdempotencyKey: + header: false + X-Splitit-TestMode: + header: false + X-Splitit-TouchPoint: + header: false + extendedParams: + query: false + installmentPlanNumber: + query: false + refOrderNumber: + query: false diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/LICENSE b/generator/konfig-integration-tests/sdks/csharp-splitit/LICENSE similarity index 100% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/LICENSE rename to generator/konfig-integration-tests/sdks/csharp-splitit/LICENSE diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/README.md b/generator/konfig-integration-tests/sdks/csharp-splitit/README.md new file mode 100644 index 000000000..aaecd7a08 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/README.md @@ -0,0 +1,5 @@ +# konfig + +|Language|Version|Package Manager|Documentation|Source| +|-|-|-|-|-| +|C#|1.0.0|[NuGet](https://nuget.org/packages/CsharpSplitit.Net/1.0.0)|[Documentation](https://github.com/konfig-dev/konfig/tree/main/csharp/README.md)|[Source](https://github.com/konfig-dev/konfig/tree/main/csharp)| \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/.gitignore b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/.gitignore similarity index 100% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/.gitignore rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/.gitignore diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/.konfigignore b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/.konfigignore new file mode 100644 index 000000000..82e5959a7 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/.konfigignore @@ -0,0 +1,2 @@ +src/CsharpSplitit.Net.Test/Api/InstallmentPlanApiTests.cs +src/CsharpSplitit.Net.Test/Api/SimpleInstallmentPlanApiTests.cs \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/README.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/README.md new file mode 100644 index 000000000..e76db6986 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/README.md @@ -0,0 +1,185 @@ +# CsharpSplitit.Net - C# + +[![NuGet](https://img.shields.io/badge/NuGet-1.0.0-blue.svg)](https://www.nuget.org/packages/CsharpSplitit.Net/1.0.0) + +Splitit's Web API + +## Frameworks supported +- .NET Core >=1.0 +- .NET Framework >=4.6 +- Mono/Xamarin >=vNext + +## Installation + +Using the [.NET Core command-line interface (CLI) tools][dotnet-core-cli-tools]: + +```sh +dotnet add package CsharpSplitit.Net +``` + +Using the [NuGet Command Line Interface (CLI)][nuget-cli]: + +```sh +nuget install CsharpSplitit.Net +``` + +Using the [Package Manager Console][package-manager-console]: + +```powershell +Install-Package CsharpSplitit.Net +``` + +From within Visual Studio: + +1. Open the Solution Explorer. +2. Right-click on a project within your solution. +3. Click on *Manage NuGet Packages...* +4. Click on the *Browse* tab and search for "CsharpSplitit.Net". +5. Click on the "CsharpSplitit.Net" package, select the appropriate version in the + right-tab and click *Install*. + +## Getting Started + +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class CancelExample + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + + try + { + InstallmentPlanCancelResponse result = client.InstallmentPlan.Cancel(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Cancel: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://web-api-v3.production.splitit.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*InstallmentPlanApi* | [**Cancel**](docs/InstallmentPlanApi.md#cancel) | **POST** /api/installmentplans/{installmentPlanNumber}/cancel | +*InstallmentPlanApi* | [**CheckEligibility**](docs/InstallmentPlanApi.md#checkeligibility) | **POST** /api/installmentplans/check-eligibility | +*InstallmentPlanApi* | [**Get**](docs/InstallmentPlanApi.md#get) | **GET** /api/installmentplans/{installmentPlanNumber} | +*InstallmentPlanApi* | [**Post**](docs/InstallmentPlanApi.md#post) | **POST** /api/installmentplans/initiate | +*InstallmentPlanApi* | [**Post2**](docs/InstallmentPlanApi.md#post2) | **POST** /api/installmentplans | +*InstallmentPlanApi* | [**Refund**](docs/InstallmentPlanApi.md#refund) | **POST** /api/installmentplans/{installmentPlanNumber}/refund | +*InstallmentPlanApi* | [**Search**](docs/InstallmentPlanApi.md#search) | **GET** /api/installmentplans/search | +*InstallmentPlanApi* | [**UpdateOrder**](docs/InstallmentPlanApi.md#updateorder) | **PUT** /api/installmentplans/{installmentPlanNumber}/updateorder | +*InstallmentPlanApi* | [**UpdateOrder2**](docs/InstallmentPlanApi.md#updateorder2) | **PUT** /api/installmentplans/updateorder | +*InstallmentPlanApi* | [**VerifyAuthorization**](docs/InstallmentPlanApi.md#verifyauthorization) | **GET** /api/installmentplans/{installmentPlanNumber}/verifyauthorization | + + +## Documentation for Models + + - [AddressData](docs/AddressData.md) + - [AddressDataModel](docs/AddressDataModel.md) + - [AuthorizationModel](docs/AuthorizationModel.md) + - [BluesnapVaultedShopperToken](docs/BluesnapVaultedShopperToken.md) + - [CardBrand](docs/CardBrand.md) + - [CardData](docs/CardData.md) + - [CardType](docs/CardType.md) + - [CheckInstallmentsEligibilityRequest](docs/CheckInstallmentsEligibilityRequest.md) + - [Error](docs/Error.md) + - [ErrorExtended](docs/ErrorExtended.md) + - [ErrorExtendedAllOf](docs/ErrorExtendedAllOf.md) + - [EventsEndpointsModel](docs/EventsEndpointsModel.md) + - [FailedResponse](docs/FailedResponse.md) + - [GatewayTokenData](docs/GatewayTokenData.md) + - [GwAuthorizationStatus](docs/GwAuthorizationStatus.md) + - [IdentifierContract](docs/IdentifierContract.md) + - [InitiatePlanResponse](docs/InitiatePlanResponse.md) + - [InitiateRedirectionEndpointsModel](docs/InitiateRedirectionEndpointsModel.md) + - [Installment](docs/Installment.md) + - [InstallmentPlanCancelResponse](docs/InstallmentPlanCancelResponse.md) + - [InstallmentPlanCreateRequest](docs/InstallmentPlanCreateRequest.md) + - [InstallmentPlanCreateResponse](docs/InstallmentPlanCreateResponse.md) + - [InstallmentPlanGetResponse](docs/InstallmentPlanGetResponse.md) + - [InstallmentPlanInitiateRequest](docs/InstallmentPlanInitiateRequest.md) + - [InstallmentPlanRefundRequest](docs/InstallmentPlanRefundRequest.md) + - [InstallmentPlanRefundResponse](docs/InstallmentPlanRefundResponse.md) + - [InstallmentPlanSearchResponse](docs/InstallmentPlanSearchResponse.md) + - [InstallmentPlanUpdateRequest](docs/InstallmentPlanUpdateRequest.md) + - [InstallmentPlanUpdateRequestByIdentifier](docs/InstallmentPlanUpdateRequestByIdentifier.md) + - [InstallmentPlanUpdateRequestByIdentifierAllOf](docs/InstallmentPlanUpdateRequestByIdentifierAllOf.md) + - [InstallmentPlanUpdateResponse](docs/InstallmentPlanUpdateResponse.md) + - [InstallmentStatus](docs/InstallmentStatus.md) + - [InstallmentsEligibilityResponse](docs/InstallmentsEligibilityResponse.md) + - [LinksData](docs/LinksData.md) + - [LinksModel](docs/LinksModel.md) + - [MockerShopperToken](docs/MockerShopperToken.md) + - [PaymentMethodModel](docs/PaymentMethodModel.md) + - [PaymentMethodType](docs/PaymentMethodType.md) + - [PaymentPlanOptionModel](docs/PaymentPlanOptionModel.md) + - [PlanData](docs/PlanData.md) + - [PlanDataModel](docs/PlanDataModel.md) + - [PlanErrorResponse](docs/PlanErrorResponse.md) + - [PlanErrorResponseAllOf](docs/PlanErrorResponseAllOf.md) + - [PlanStatus](docs/PlanStatus.md) + - [ProcessingData](docs/ProcessingData.md) + - [ProcessingData2](docs/ProcessingData2.md) + - [PurchaseMethod](docs/PurchaseMethod.md) + - [RedirectionEndpointsModel](docs/RedirectionEndpointsModel.md) + - [RefundModel](docs/RefundModel.md) + - [RefundStatus](docs/RefundStatus.md) + - [RefundStrategy](docs/RefundStrategy.md) + - [RefundSummary](docs/RefundSummary.md) + - [SearchInstallmentPlanResponseItem](docs/SearchInstallmentPlanResponseItem.md) + - [ShippingStatus](docs/ShippingStatus.md) + - [ShippingStatus2](docs/ShippingStatus2.md) + - [ShopperData](docs/ShopperData.md) + - [SpreedlyToken](docs/SpreedlyToken.md) + - [TestModes](docs/TestModes.md) + - [ThreeDSData](docs/ThreeDSData.md) + - [ThreeDSData2](docs/ThreeDSData2.md) + - [ThreeDsRedirectDataV3](docs/ThreeDsRedirectDataV3.md) + - [UpdateOrderRequest](docs/UpdateOrderRequest.md) + - [UxSettingsModel](docs/UxSettingsModel.md) + - [VerifyAuthorizationResponse](docs/VerifyAuthorizationResponse.md) + + +## Dependencies + +- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later +- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1 or later +- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later +- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later + +## Author +This C# package is automatically generated by [Konfig](https://konfigthis.com) + +[dotnet-core-cli-tools]: https://docs.microsoft.com/en-us/dotnet/core/tools/ +[nuget-cli]: https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference +[package-manager-console]: https://docs.microsoft.com/en-us/nuget/tools/package-manager-console diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/appveyor.yml b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/appveyor.yml similarity index 58% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/appveyor.yml rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/appveyor.yml index 4b809ba01..d1e102e54 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/appveyor.yml +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/appveyor.yml @@ -6,4 +6,4 @@ build_script: - dotnet build -c Release - dotnet test -c Release after_build: -- dotnet pack .\src\CsharpBodyWithObjectField.Net\CsharpBodyWithObjectField.Net.csproj -o ../../output -c Release --no-build +- dotnet pack .\src\CsharpSplitit.Net\CsharpSplitit.Net.csproj -o ../../output -c Release --no-build diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AddressData.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AddressData.md new file mode 100644 index 000000000..0ec914ed6 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AddressData.md @@ -0,0 +1,15 @@ +# CsharpSplitit.Net.Model.AddressData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressLine** | **string** | | [optional] +**AddressLine2** | **string** | | [optional] +**City** | **string** | | [optional] +**Country** | **string** | | [optional] +**State** | **string** | | [optional] +**Zip** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AddressDataModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AddressDataModel.md new file mode 100644 index 000000000..eae1db8df --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AddressDataModel.md @@ -0,0 +1,15 @@ +# CsharpSplitit.Net.Model.AddressDataModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressLine1** | **string** | | [optional] +**AddressLine2** | **string** | | [optional] +**City** | **string** | | [optional] +**Country** | **string** | | [optional] +**State** | **string** | | [optional] +**Zip** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AuthorizationModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AuthorizationModel.md new file mode 100644 index 000000000..2dd039c8c --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/AuthorizationModel.md @@ -0,0 +1,19 @@ +# CsharpSplitit.Net.Model.AuthorizationModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **GwAuthorizationStatus** | | +**Date** | **DateTime** | | [optional] +**SplititErrorResultCode** | **string** | | [optional] +**GatewayTransactionID** | **string** | | [optional] +**GatewayResultCode** | **string** | | [optional] +**GatewayResultMessage** | **string** | | [optional] +**ThreeDSRedirect** | [**ThreeDsRedirectDataV3**](ThreeDsRedirectDataV3.md) | | [optional] +**CAVV** | **string** | | [optional] +**ECI** | **string** | | [optional] +**GatewaySourceResponse** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/BluesnapVaultedShopperToken.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/BluesnapVaultedShopperToken.md new file mode 100644 index 000000000..c72fa48d0 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/BluesnapVaultedShopperToken.md @@ -0,0 +1,11 @@ +# CsharpSplitit.Net.Model.BluesnapVaultedShopperToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | **string** | | [optional] +**Last4Digit** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardBrand.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardBrand.md new file mode 100644 index 000000000..ab4b1edb8 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardBrand.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.CardBrand + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardData.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardData.md new file mode 100644 index 000000000..f3f693b86 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardData.md @@ -0,0 +1,16 @@ +# CsharpSplitit.Net.Model.CardData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CardHolderFullName** | **string** | | [optional] +**CardNumber** | **string** | | [optional] +**CardExpYear** | **string** | | [optional] +**CardExpMonth** | **string** | | [optional] +**CardCvv** | **string** | | [optional] +**CardBrand** | **CardBrand** | | [optional] +**CardType** | **CardType** | | [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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardType.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardType.md new file mode 100644 index 000000000..77892d512 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CardType.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.CardType + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CheckInstallmentsEligibilityRequest.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CheckInstallmentsEligibilityRequest.md new file mode 100644 index 000000000..ffa02b8a4 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/CheckInstallmentsEligibilityRequest.md @@ -0,0 +1,12 @@ +# CsharpSplitit.Net.Model.CheckInstallmentsEligibilityRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PlanData** | [**PlanData**](PlanData.md) | | [optional] +**CardDetails** | [**CardData**](CardData.md) | | [optional] +**BillingAddress** | [**AddressData**](AddressData.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/Error.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/Error.md new file mode 100644 index 000000000..98bf1f41e --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/Error.md @@ -0,0 +1,12 @@ +# CsharpSplitit.Net.Model.Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **string** | | [optional] +**Message** | **string** | | [optional] +**AdditionalInfo** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ErrorExtended.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ErrorExtended.md new file mode 100644 index 000000000..9e9b0d24e --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ErrorExtended.md @@ -0,0 +1,13 @@ +# CsharpSplitit.Net.Model.ErrorExtended + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **string** | | [optional] +**Message** | **string** | | [optional] +**AdditionalInfo** | **string** | | [optional] +**ExtraData** | **Dictionary<string, 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ErrorExtendedAllOf.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ErrorExtendedAllOf.md new file mode 100644 index 000000000..7d1e171db --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ErrorExtendedAllOf.md @@ -0,0 +1,10 @@ +# CsharpSplitit.Net.Model.ErrorExtendedAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExtraData** | **Dictionary<string, 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/EventsEndpointsModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/EventsEndpointsModel.md new file mode 100644 index 000000000..5de570f73 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/EventsEndpointsModel.md @@ -0,0 +1,10 @@ +# CsharpSplitit.Net.Model.EventsEndpointsModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreateSucceeded** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/FailedResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/FailedResponse.md new file mode 100644 index 000000000..c874a65cd --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/FailedResponse.md @@ -0,0 +1,11 @@ +# CsharpSplitit.Net.Model.FailedResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TraceId** | **string** | | [optional] +**Error** | [**ErrorExtended**](ErrorExtended.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/GatewayTokenData.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/GatewayTokenData.md new file mode 100644 index 000000000..06c5fb15d --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/GatewayTokenData.md @@ -0,0 +1,11 @@ +# CsharpSplitit.Net.Model.GatewayTokenData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | **string** | | [optional] +**Last4Digit** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/GwAuthorizationStatus.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/GwAuthorizationStatus.md new file mode 100644 index 000000000..f07ed2950 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/GwAuthorizationStatus.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.GwAuthorizationStatus + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/IdentifierContract.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/IdentifierContract.md new file mode 100644 index 000000000..47812c4af --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/IdentifierContract.md @@ -0,0 +1,12 @@ +# CsharpSplitit.Net.Model.IdentifierContract + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RefOrderNumber** | **string** | | [optional] +**InstallmentPlanNumber** | **string** | | [optional] +**ExtendedParams** | **Dictionary<string, 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InitiatePlanResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InitiatePlanResponse.md new file mode 100644 index 000000000..1af0fcc41 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InitiatePlanResponse.md @@ -0,0 +1,19 @@ +# CsharpSplitit.Net.Model.InitiatePlanResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstallmentPlanNumber** | **string** | | [optional] +**RefOrderNumber** | **string** | | [optional] +**PurchaseMethod** | **PurchaseMethod** | | [optional] +**Status** | **PlanStatus** | | +**Currency** | **string** | | [optional] +**Amount** | **double** | | [optional] +**ExtendedParams** | **Dictionary<string, string>** | | [optional] +**Shopper** | [**ShopperData**](ShopperData.md) | | [optional] +**BillingAddress** | [**AddressData**](AddressData.md) | | [optional] +**CheckoutUrl** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InitiateRedirectionEndpointsModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InitiateRedirectionEndpointsModel.md new file mode 100644 index 000000000..d32c82ee1 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InitiateRedirectionEndpointsModel.md @@ -0,0 +1,12 @@ +# CsharpSplitit.Net.Model.InitiateRedirectionEndpointsModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Succeeded** | **string** | | [optional] +**Failed** | **string** | | [optional] +**Cancel** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/Installment.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/Installment.md new file mode 100644 index 000000000..877ace283 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/Installment.md @@ -0,0 +1,13 @@ +# CsharpSplitit.Net.Model.Installment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstallmentNumber** | **int** | | +**Amount** | **double** | | +**ProcessDateTime** | **DateTime** | | [optional] +**Status** | **InstallmentStatus** | | + +[[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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanApi.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanApi.md new file mode 100644 index 000000000..aeb3033a1 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanApi.md @@ -0,0 +1,1030 @@ +# CsharpSplitit.Net.Api.InstallmentPlanApi + +All URIs are relative to *https://web-api-v3.production.splitit.com* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**Cancel**](InstallmentPlanApi.md#cancel) | **POST** /api/installmentplans/{installmentPlanNumber}/cancel | | +| [**CheckEligibility**](InstallmentPlanApi.md#checkeligibility) | **POST** /api/installmentplans/check-eligibility | | +| [**Get**](InstallmentPlanApi.md#get) | **GET** /api/installmentplans/{installmentPlanNumber} | | +| [**Post**](InstallmentPlanApi.md#post) | **POST** /api/installmentplans/initiate | | +| [**Post2**](InstallmentPlanApi.md#post2) | **POST** /api/installmentplans | | +| [**Refund**](InstallmentPlanApi.md#refund) | **POST** /api/installmentplans/{installmentPlanNumber}/refund | | +| [**Search**](InstallmentPlanApi.md#search) | **GET** /api/installmentplans/search | | +| [**UpdateOrder**](InstallmentPlanApi.md#updateorder) | **PUT** /api/installmentplans/{installmentPlanNumber}/updateorder | | +| [**UpdateOrder2**](InstallmentPlanApi.md#updateorder2) | **PUT** /api/installmentplans/updateorder | | +| [**VerifyAuthorization**](InstallmentPlanApi.md#verifyauthorization) | **GET** /api/installmentplans/{installmentPlanNumber}/verifyauthorization | | + + +# **Cancel** + + + +### Example +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class CancelExample + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + + try + { + InstallmentPlanCancelResponse result = client.InstallmentPlan.Cancel(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Cancel: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +#### Using the CancelWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.CancelWithHttpInfo(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + 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 InstallmentPlanApi.CancelWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **installmentPlanNumber** | **string** | | | +| **xSplititIdempotencyKey** | **string** | | | +| **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | + +### Return type + +[**InstallmentPlanCancelResponse**](InstallmentPlanCancelResponse.md) + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **401** | | - | +| **403** | | - | +| **404** | | - | +| **500** | | - | + +[[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) + + +# **CheckEligibility** + + + +### Example +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class CheckEligibilityExample + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var planData = new PlanData(); + var cardDetails = new CardData(); + var billingAddress = new AddressData(); + + var checkInstallmentsEligibilityRequest = new CheckInstallmentsEligibilityRequest( + planData, + cardDetails, + billingAddress + ); + + try + { + InstallmentsEligibilityResponse result = client.InstallmentPlan.CheckEligibility(xSplititIdempotencyKey, xSplititTouchPoint, checkInstallmentsEligibilityRequest); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.CheckEligibility: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +#### Using the CheckEligibilityWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.CheckEligibilityWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, checkInstallmentsEligibilityRequest); + 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 InstallmentPlanApi.CheckEligibilityWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **xSplititIdempotencyKey** | **string** | | | +| **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | +| **checkInstallmentsEligibilityRequest** | [**CheckInstallmentsEligibilityRequest**](CheckInstallmentsEligibilityRequest.md) | | | + +### Return type + +[**InstallmentsEligibilityResponse**](InstallmentsEligibilityResponse.md) + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **401** | | - | +| **403** | | - | +| **404** | | - | +| **500** | | - | + +[[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) + + +# **Get** + + + +### Example +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class GetExample + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + + try + { + InstallmentPlanGetResponse result = client.InstallmentPlan.Get(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Get: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +#### Using the GetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.GetWithHttpInfo(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + 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 InstallmentPlanApi.GetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **installmentPlanNumber** | **string** | | | +| **xSplititIdempotencyKey** | **string** | | | +| **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | + +### Return type + +[**InstallmentPlanGetResponse**](InstallmentPlanGetResponse.md) + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **401** | | - | +| **403** | | - | +| **404** | | - | +| **500** | | - | + +[[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) + + +# **Post** + + + +### Example +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class PostExample + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var autoCapture = false; + var attempt3dSecure = false; + var shopper = new ShopperData(); + var planData = new PlanDataModel(); + var billingAddress = new AddressDataModel(); + var redirectUrls = new InitiateRedirectionEndpointsModel(); + var uxSettings = new UxSettingsModel(); + var eventsEndpoints = new EventsEndpointsModel(); + var processingData = new ProcessingData(); + + var installmentPlanInitiateRequest = new InstallmentPlanInitiateRequest( + autoCapture, + attempt3dSecure, + shopper, + planData, + billingAddress, + redirectUrls, + uxSettings, + eventsEndpoints, + processingData + ); + var xSplititTestMode = "None"; + + try + { + InitiatePlanResponse result = client.InstallmentPlan.Post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Post: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +#### Using the PostWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.PostWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode); + 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 InstallmentPlanApi.PostWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **xSplititIdempotencyKey** | **string** | | | +| **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | +| **installmentPlanInitiateRequest** | [**InstallmentPlanInitiateRequest**](InstallmentPlanInitiateRequest.md) | | | +| **xSplititTestMode** | **string** | | [optional] | + +### Return type + +[**InitiatePlanResponse**](InitiatePlanResponse.md) + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **400** | | - | +| **401** | | - | +| **403** | | - | +| **404** | | - | +| **500** | | - | + +[[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) + + +# **Post2** + + + +### Example +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class Post2Example + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var autoCapture = false; + var attempt3dSecure = false; + var termsAndConditionsAccepted = false; + var shopper = new ShopperData(); + var planData = new PlanDataModel(); + var billingAddress = new AddressDataModel(); + var paymentMethod = new PaymentMethodModel(); + var redirectUrls = new RedirectionEndpointsModel(); + var processingData = new ProcessingData(); + var eventsEndpoints = new EventsEndpointsModel(); + + var installmentPlanCreateRequest = new InstallmentPlanCreateRequest( + autoCapture, + attempt3dSecure, + termsAndConditionsAccepted, + shopper, + planData, + billingAddress, + paymentMethod, + redirectUrls, + processingData, + eventsEndpoints + ); + var xSplititTestMode = "None"; + + try + { + InstallmentPlanCreateResponse result = client.InstallmentPlan.Post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Post2: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +#### Using the Post2WithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.Post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode); + 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 InstallmentPlanApi.Post2WithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **xSplititIdempotencyKey** | **string** | | | +| **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | +| **installmentPlanCreateRequest** | [**InstallmentPlanCreateRequest**](InstallmentPlanCreateRequest.md) | | | +| **xSplititTestMode** | **string** | | [optional] | + +### Return type + +[**InstallmentPlanCreateResponse**](InstallmentPlanCreateResponse.md) + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **400** | | - | +| **401** | | - | +| **403** | | - | +| **404** | | - | +| **500** | | - | + +[[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) + + +# **Refund** + + + +### Example +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class RefundExample + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var amount = default(double); + var refundStrategy = RefundStrategy.FutureInstallmentsFirst; + + var installmentPlanRefundRequest = new InstallmentPlanRefundRequest( + amount, + refundStrategy + ); + + try + { + InstallmentPlanRefundResponse result = client.InstallmentPlan.Refund(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanRefundRequest); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Refund: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +#### Using the RefundWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.RefundWithHttpInfo(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanRefundRequest); + 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 InstallmentPlanApi.RefundWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **installmentPlanNumber** | **string** | | | +| **xSplititIdempotencyKey** | **string** | | | +| **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | +| **installmentPlanRefundRequest** | [**InstallmentPlanRefundRequest**](InstallmentPlanRefundRequest.md) | | | + +### Return type + +[**InstallmentPlanRefundResponse**](InstallmentPlanRefundResponse.md) + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **401** | | - | +| **403** | | - | +| **404** | | - | +| **500** | | - | + +[[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) + + +# **Search** + + + +### Example +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class SearchExample + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var installmentPlanNumber = "installmentPlanNumber_example"; + var refOrderNumber = "refOrderNumber_example"; + var extendedParams = new Dictionary( + ); + + try + { + InstallmentPlanSearchResponse result = client.InstallmentPlan.Search(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanNumber, refOrderNumber, extendedParams); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Search: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +#### Using the SearchWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.SearchWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanNumber, refOrderNumber, extendedParams); + 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 InstallmentPlanApi.SearchWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **xSplititIdempotencyKey** | **string** | | | +| **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | +| **installmentPlanNumber** | **string** | | [optional] | +| **refOrderNumber** | **string** | | [optional] | +| **extendedParams** | [**Dictionary<string, string>**](string.md) | | [optional] | + +### Return type + +[**InstallmentPlanSearchResponse**](InstallmentPlanSearchResponse.md) + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **401** | | - | +| **403** | | - | +| **404** | | - | +| **500** | | - | + +[[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) + + +# **UpdateOrder** + + + +### Example +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class UpdateOrderExample + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var trackingNumber = "trackingNumber_example"; + var refOrderNumber = "refOrderNumber_example"; + var shippingStatus = ShippingStatus.Pending; + var capture = false; + + var updateOrderRequest = new UpdateOrderRequest( + trackingNumber, + refOrderNumber, + shippingStatus, + capture + ); + + try + { + InstallmentPlanUpdateResponse result = client.InstallmentPlan.UpdateOrder(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, updateOrderRequest); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.UpdateOrder: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +#### Using the UpdateOrderWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.UpdateOrderWithHttpInfo(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, updateOrderRequest); + 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 InstallmentPlanApi.UpdateOrderWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **installmentPlanNumber** | **string** | | | +| **xSplititIdempotencyKey** | **string** | | | +| **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | +| **updateOrderRequest** | [**UpdateOrderRequest**](UpdateOrderRequest.md) | | | + +### Return type + +[**InstallmentPlanUpdateResponse**](InstallmentPlanUpdateResponse.md) + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **401** | | - | +| **403** | | - | +| **404** | | - | +| **500** | | - | + +[[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) + + +# **UpdateOrder2** + + + +### Example +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class UpdateOrder2Example + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + + var installmentPlanUpdateRequestByIdentifier = new InstallmentPlanUpdateRequestByIdentifier( + ); + + try + { + InstallmentPlanUpdateResponse result = client.InstallmentPlan.UpdateOrder2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanUpdateRequestByIdentifier); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.UpdateOrder2: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +#### Using the UpdateOrder2WithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.UpdateOrder2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanUpdateRequestByIdentifier); + 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 InstallmentPlanApi.UpdateOrder2WithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **xSplititIdempotencyKey** | **string** | | | +| **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | +| **installmentPlanUpdateRequestByIdentifier** | [**InstallmentPlanUpdateRequestByIdentifier**](InstallmentPlanUpdateRequestByIdentifier.md) | | | + +### Return type + +[**InstallmentPlanUpdateResponse**](InstallmentPlanUpdateResponse.md) + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **401** | | - | +| **403** | | - | +| **404** | | - | +| **500** | | - | + +[[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) + + +# **VerifyAuthorization** + + + +### Example +```csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class VerifyAuthorizationExample + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + + try + { + VerifyAuthorizationResponse result = client.InstallmentPlan.VerifyAuthorization(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.VerifyAuthorization: " + e.Message); + Console.WriteLine("Status Code: "+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +``` + +#### Using the VerifyAuthorizationWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.VerifyAuthorizationWithHttpInfo(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + 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 InstallmentPlanApi.VerifyAuthorizationWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **installmentPlanNumber** | **string** | | | +| **xSplititIdempotencyKey** | **string** | | | +| **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | + +### Return type + +[**VerifyAuthorizationResponse**](VerifyAuthorizationResponse.md) + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | | - | +| **401** | | - | +| **403** | | - | +| **404** | | - | +| **500** | | - | + +[[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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCancelResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCancelResponse.md new file mode 100644 index 000000000..0374b3458 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCancelResponse.md @@ -0,0 +1,10 @@ +# CsharpSplitit.Net.Model.InstallmentPlanCancelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstallmentPlanNumber** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCreateRequest.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCreateRequest.md new file mode 100644 index 000000000..c3388d863 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCreateRequest.md @@ -0,0 +1,19 @@ +# CsharpSplitit.Net.Model.InstallmentPlanCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutoCapture** | **bool** | | +**Attempt3dSecure** | **bool** | | [optional] +**TermsAndConditionsAccepted** | **bool** | | +**Shopper** | [**ShopperData**](ShopperData.md) | | [optional] +**PlanData** | [**PlanDataModel**](PlanDataModel.md) | | [optional] +**BillingAddress** | [**AddressDataModel**](AddressDataModel.md) | | [optional] +**PaymentMethod** | [**PaymentMethodModel**](PaymentMethodModel.md) | | [optional] +**RedirectUrls** | [**RedirectionEndpointsModel**](RedirectionEndpointsModel.md) | | [optional] +**ProcessingData** | [**ProcessingData**](ProcessingData.md) | | [optional] +**EventsEndpoints** | [**EventsEndpointsModel**](EventsEndpointsModel.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCreateResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCreateResponse.md new file mode 100644 index 000000000..7cf9210a6 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanCreateResponse.md @@ -0,0 +1,24 @@ +# CsharpSplitit.Net.Model.InstallmentPlanCreateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstallmentPlanNumber** | **string** | | [optional] +**DateCreated** | **DateTime** | | +**RefOrderNumber** | **string** | | [optional] +**PurchaseMethod** | **PurchaseMethod** | | [optional] +**Status** | **PlanStatus** | | +**Currency** | **string** | | [optional] +**OriginalAmount** | **double** | | [optional] +**Amount** | **double** | | [optional] +**ExtendedParams** | **Dictionary<string, string>** | | [optional] +**Authorization** | [**AuthorizationModel**](AuthorizationModel.md) | | [optional] +**Shopper** | [**ShopperData**](ShopperData.md) | | [optional] +**BillingAddress** | [**AddressData**](AddressData.md) | | [optional] +**PaymentMethod** | [**PaymentMethodModel**](PaymentMethodModel.md) | | [optional] +**Installments** | [**List<Installment>**](Installment.md) | | [optional] +**Links** | [**LinksData**](LinksData.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanGetResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanGetResponse.md new file mode 100644 index 000000000..40ca40b08 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanGetResponse.md @@ -0,0 +1,25 @@ +# CsharpSplitit.Net.Model.InstallmentPlanGetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstallmentPlanNumber** | **string** | | [optional] +**DateCreated** | **DateTime** | | +**RefOrderNumber** | **string** | | [optional] +**PurchaseMethod** | **PurchaseMethod** | | [optional] +**Status** | **PlanStatus** | | +**Currency** | **string** | | [optional] +**OriginalAmount** | **double** | | [optional] +**Amount** | **double** | | [optional] +**Authorization** | [**AuthorizationModel**](AuthorizationModel.md) | | [optional] +**Shopper** | [**ShopperData**](ShopperData.md) | | [optional] +**BillingAddress** | [**AddressData**](AddressData.md) | | [optional] +**PaymentMethod** | [**PaymentMethodModel**](PaymentMethodModel.md) | | [optional] +**ExtendedParams** | **Dictionary<string, string>** | | [optional] +**Installments** | [**List<Installment>**](Installment.md) | | [optional] +**Refunds** | [**List<RefundModel>**](RefundModel.md) | | [optional] +**Links** | [**LinksData**](LinksData.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanInitiateRequest.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanInitiateRequest.md new file mode 100644 index 000000000..570edadb8 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanInitiateRequest.md @@ -0,0 +1,18 @@ +# CsharpSplitit.Net.Model.InstallmentPlanInitiateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutoCapture** | **bool** | | +**Attempt3dSecure** | **bool** | | [optional] +**Shopper** | [**ShopperData**](ShopperData.md) | | [optional] +**PlanData** | [**PlanDataModel**](PlanDataModel.md) | | [optional] +**BillingAddress** | [**AddressDataModel**](AddressDataModel.md) | | [optional] +**RedirectUrls** | [**InitiateRedirectionEndpointsModel**](InitiateRedirectionEndpointsModel.md) | | [optional] +**UxSettings** | [**UxSettingsModel**](UxSettingsModel.md) | | [optional] +**EventsEndpoints** | [**EventsEndpointsModel**](EventsEndpointsModel.md) | | [optional] +**ProcessingData** | [**ProcessingData**](ProcessingData.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanRefundRequest.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanRefundRequest.md new file mode 100644 index 000000000..20140ca7e --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanRefundRequest.md @@ -0,0 +1,11 @@ +# CsharpSplitit.Net.Model.InstallmentPlanRefundRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **double** | | +**RefundStrategy** | **RefundStrategy** | | [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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanRefundResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanRefundResponse.md new file mode 100644 index 000000000..f10aaec5d --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanRefundResponse.md @@ -0,0 +1,15 @@ +# CsharpSplitit.Net.Model.InstallmentPlanRefundResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RefundId** | **string** | | [optional] +**InstallmentPlanNumber** | **string** | | [optional] +**Currency** | **string** | | [optional] +**NonCreditRefundAmount** | **double** | | [optional] +**CreditRefundAmount** | **double** | | [optional] +**Summary** | [**RefundSummary**](RefundSummary.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanSearchResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanSearchResponse.md new file mode 100644 index 000000000..2d52aec81 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanSearchResponse.md @@ -0,0 +1,10 @@ +# CsharpSplitit.Net.Model.InstallmentPlanSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PlanList** | [**List<SearchInstallmentPlanResponseItem>**](SearchInstallmentPlanResponseItem.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequest.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequest.md new file mode 100644 index 000000000..ab233d00d --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequest.md @@ -0,0 +1,13 @@ +# CsharpSplitit.Net.Model.InstallmentPlanUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RefOrderNumber** | **string** | | [optional] +**TrackingNumber** | **string** | | [optional] +**Capture** | **bool** | | [optional] +**ShippingStatus** | **ShippingStatus2** | | [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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequestByIdentifier.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequestByIdentifier.md new file mode 100644 index 000000000..1c6464f94 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequestByIdentifier.md @@ -0,0 +1,14 @@ +# CsharpSplitit.Net.Model.InstallmentPlanUpdateRequestByIdentifier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RefOrderNumber** | **string** | | [optional] +**TrackingNumber** | **string** | | [optional] +**Capture** | **bool** | | [optional] +**ShippingStatus** | **ShippingStatus2** | | [optional] +**Identifier** | [**IdentifierContract**](IdentifierContract.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequestByIdentifierAllOf.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequestByIdentifierAllOf.md new file mode 100644 index 000000000..1dfec3ec1 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateRequestByIdentifierAllOf.md @@ -0,0 +1,10 @@ +# CsharpSplitit.Net.Model.InstallmentPlanUpdateRequestByIdentifierAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | [**IdentifierContract**](IdentifierContract.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateResponse.md new file mode 100644 index 000000000..0ffb73359 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentPlanUpdateResponse.md @@ -0,0 +1,13 @@ +# CsharpSplitit.Net.Model.InstallmentPlanUpdateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RefOrderNumber** | **string** | | [optional] +**InstallmentPlanNumber** | **string** | | [optional] +**Status** | **PlanStatus** | | +**ShippingStatus** | **ShippingStatus** | | + +[[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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentStatus.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentStatus.md new file mode 100644 index 000000000..15f446a17 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentStatus.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.InstallmentStatus + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentsEligibilityResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentsEligibilityResponse.md new file mode 100644 index 000000000..d17e669da --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/InstallmentsEligibilityResponse.md @@ -0,0 +1,11 @@ +# CsharpSplitit.Net.Model.InstallmentsEligibilityResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstallmentProvider** | **string** | | [optional] +**PaymentPlanOptions** | [**List<PaymentPlanOptionModel>**](PaymentPlanOptionModel.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/LinksData.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/LinksData.md new file mode 100644 index 000000000..9bb2fac4f --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/LinksData.md @@ -0,0 +1,13 @@ +# CsharpSplitit.Net.Model.LinksData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Checkout** | **string** | | [optional] +**LearnMore** | **string** | | [optional] +**TermsConditions** | **string** | | [optional] +**PrivacyPolicy** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/LinksModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/LinksModel.md new file mode 100644 index 000000000..15fdc2ee5 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/LinksModel.md @@ -0,0 +1,12 @@ +# CsharpSplitit.Net.Model.LinksModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivacyPolicyUrl** | **string** | | [optional] +**TermsAndConditionsUrl** | **string** | | [optional] +**LearnMoreUrl** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/MockerShopperToken.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/MockerShopperToken.md new file mode 100644 index 000000000..c936a1106 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/MockerShopperToken.md @@ -0,0 +1,11 @@ +# CsharpSplitit.Net.Model.MockerShopperToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | **string** | | [optional] +**Last4Digit** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentMethodModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentMethodModel.md new file mode 100644 index 000000000..3a2fd7f49 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentMethodModel.md @@ -0,0 +1,15 @@ +# CsharpSplitit.Net.Model.PaymentMethodModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **PaymentMethodType** | | +**Card** | [**CardData**](CardData.md) | | [optional] +**Token** | **string** | | [optional] +**BluesnapVaultedShopperToken** | [**BluesnapVaultedShopperToken**](BluesnapVaultedShopperToken.md) | | [optional] +**MockerShopperToken** | [**MockerShopperToken**](MockerShopperToken.md) | | [optional] +**SpreedlyToken** | [**SpreedlyToken**](SpreedlyToken.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentMethodType.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentMethodType.md new file mode 100644 index 000000000..be3b8a111 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentMethodType.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.PaymentMethodType + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentPlanOptionModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentPlanOptionModel.md new file mode 100644 index 000000000..1e6b07208 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PaymentPlanOptionModel.md @@ -0,0 +1,16 @@ +# CsharpSplitit.Net.Model.PaymentPlanOptionModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NumberOfInstallments** | **int** | | +**FirstInstallmentAmount** | **double** | | +**InstallmentAmount** | **double** | | +**LastInstallmentAmount** | **double** | | +**Links** | [**LinksModel**](LinksModel.md) | | [optional] +**TermsAndConditionsBrief** | **string** | | [optional] +**InstallmentFrequency** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanData.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanData.md new file mode 100644 index 000000000..3531894ff --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanData.md @@ -0,0 +1,20 @@ +# CsharpSplitit.Net.Model.PlanData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TerminalId** | **string** | | [optional] +**TotalAmount** | **double** | | +**FirstInstallmentAmount** | **double** | | [optional] +**Currency** | **string** | | [optional] +**NumberOfInstallments** | **int** | | +**PurchaseMethod** | **PurchaseMethod** | | +**RefOrderNumber** | **string** | | [optional] +**AllowedInstallmentOptions** | **List<int>** | | [optional] +**Tags** | **Dictionary<string, string>** | | [optional] +**ProcessingData** | [**ProcessingData2**](ProcessingData2.md) | | [optional] +**FirstInstallmentDate** | **DateTime** | | [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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanDataModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanDataModel.md new file mode 100644 index 000000000..9a5324b7b --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanDataModel.md @@ -0,0 +1,18 @@ +# CsharpSplitit.Net.Model.PlanDataModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalAmount** | **double** | | +**Currency** | **string** | | [optional] +**NumberOfInstallments** | **int** | | [optional] +**TerminalId** | **string** | | [optional] +**PurchaseMethod** | **PurchaseMethod** | | +**RefOrderNumber** | **string** | | [optional] +**ExtendedParams** | **Dictionary<string, string>** | | [optional] +**FirstInstallmentAmount** | **double** | | [optional] +**FirstInstallmentDate** | **DateTime** | | [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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanErrorResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanErrorResponse.md new file mode 100644 index 000000000..61114b93a --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanErrorResponse.md @@ -0,0 +1,12 @@ +# CsharpSplitit.Net.Model.PlanErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TraceId** | **string** | | [optional] +**Error** | [**ErrorExtended**](ErrorExtended.md) | | [optional] +**InstallmentPlanNumber** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanErrorResponseAllOf.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanErrorResponseAllOf.md new file mode 100644 index 000000000..84e9456bd --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanErrorResponseAllOf.md @@ -0,0 +1,10 @@ +# CsharpSplitit.Net.Model.PlanErrorResponseAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstallmentPlanNumber** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanStatus.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanStatus.md new file mode 100644 index 000000000..012c90257 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PlanStatus.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.PlanStatus + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ProcessingData.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ProcessingData.md new file mode 100644 index 000000000..4c4e1bfdf --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ProcessingData.md @@ -0,0 +1,12 @@ +# CsharpSplitit.Net.Model.ProcessingData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AttemptThreeDSecured** | **bool** | | [optional] +**SoftDescriptor** | **string** | | [optional] +**ThreeDSData** | [**ThreeDSData**](ThreeDSData.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ProcessingData2.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ProcessingData2.md new file mode 100644 index 000000000..3731668e6 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ProcessingData2.md @@ -0,0 +1,12 @@ +# CsharpSplitit.Net.Model.ProcessingData2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AttemptThreeDSecured** | **bool** | | [optional] +**SoftDescriptor** | **string** | | [optional] +**ThreeDSData** | [**ThreeDSData2**](ThreeDSData2.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PurchaseMethod.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PurchaseMethod.md new file mode 100644 index 000000000..478dc1cde --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/PurchaseMethod.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.PurchaseMethod + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RedirectionEndpointsModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RedirectionEndpointsModel.md new file mode 100644 index 000000000..d52dc9857 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RedirectionEndpointsModel.md @@ -0,0 +1,13 @@ +# CsharpSplitit.Net.Model.RedirectionEndpointsModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthorizeSucceeded** | **string** | | [optional] +**Succeeded** | **string** | | [optional] +**AuthorizeFailed** | **string** | | [optional] +**Failed** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundModel.md new file mode 100644 index 000000000..c72bcc8ac --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundModel.md @@ -0,0 +1,15 @@ +# CsharpSplitit.Net.Model.RefundModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RefundId** | **string** | | [optional] +**SubmitDate** | **DateTime** | | +**TotalAmount** | **double** | | +**Status** | **RefundStatus** | | +**NonCreditRefundAmount** | **double** | | +**CreditRefundAmount** | **double** | | + +[[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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundStatus.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundStatus.md new file mode 100644 index 000000000..7ac303b97 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundStatus.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.RefundStatus + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundStrategy.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundStrategy.md new file mode 100644 index 000000000..66f79eafd --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundStrategy.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.RefundStrategy + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundSummary.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundSummary.md new file mode 100644 index 000000000..06c6288ca --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/RefundSummary.md @@ -0,0 +1,13 @@ +# CsharpSplitit.Net.Model.RefundSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalAmount** | **double** | | [optional] +**FailedAmount** | **double** | | [optional] +**SucceededAmount** | **double** | | [optional] +**PendingAmount** | **double** | | [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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/SearchInstallmentPlanResponseItem.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/SearchInstallmentPlanResponseItem.md new file mode 100644 index 000000000..e4b9aab28 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/SearchInstallmentPlanResponseItem.md @@ -0,0 +1,25 @@ +# CsharpSplitit.Net.Model.SearchInstallmentPlanResponseItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstallmentPlanNumber** | **string** | | [optional] +**DateCreated** | **DateTime** | | +**RefOrderNumber** | **string** | | [optional] +**PurchaseMethod** | **PurchaseMethod** | | [optional] +**Status** | **PlanStatus** | | +**Currency** | **string** | | [optional] +**OriginalAmount** | **double** | | [optional] +**Amount** | **double** | | [optional] +**Authorization** | [**AuthorizationModel**](AuthorizationModel.md) | | [optional] +**Shopper** | [**ShopperData**](ShopperData.md) | | [optional] +**BillingAddress** | [**AddressData**](AddressData.md) | | [optional] +**PaymentMethod** | [**PaymentMethodModel**](PaymentMethodModel.md) | | [optional] +**ExtendedParams** | **Dictionary<string, string>** | | [optional] +**Installments** | [**List<Installment>**](Installment.md) | | [optional] +**Refunds** | [**List<RefundModel>**](RefundModel.md) | | [optional] +**Links** | [**LinksData**](LinksData.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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShippingStatus.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShippingStatus.md new file mode 100644 index 000000000..14de08ae7 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShippingStatus.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.ShippingStatus + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShippingStatus2.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShippingStatus2.md new file mode 100644 index 000000000..c2469864a --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShippingStatus2.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.ShippingStatus2 + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShopperData.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShopperData.md new file mode 100644 index 000000000..326c2b657 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ShopperData.md @@ -0,0 +1,13 @@ +# CsharpSplitit.Net.Model.ShopperData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FullName** | **string** | | [optional] +**Email** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Culture** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/SpreedlyToken.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/SpreedlyToken.md new file mode 100644 index 000000000..c5a39ea54 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/SpreedlyToken.md @@ -0,0 +1,11 @@ +# CsharpSplitit.Net.Model.SpreedlyToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | **string** | | [optional] +**Last4Digit** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/TestModes.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/TestModes.md new file mode 100644 index 000000000..3bf92f6e6 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/TestModes.md @@ -0,0 +1,9 @@ +# CsharpSplitit.Net.Model.TestModes + +## 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDSData.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDSData.md new file mode 100644 index 000000000..ec276c9a9 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDSData.md @@ -0,0 +1,15 @@ +# CsharpSplitit.Net.Model.ThreeDSData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ECI** | **string** | | [optional] +**CAVV** | **string** | | [optional] +**XID** | **string** | | [optional] +**DirectoryServerTxnId** | **string** | | [optional] +**ThreeDSVersion** | **string** | | [optional] +**TransactionId** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDSData2.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDSData2.md new file mode 100644 index 000000000..387552429 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDSData2.md @@ -0,0 +1,15 @@ +# CsharpSplitit.Net.Model.ThreeDSData2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ECI** | **string** | | [optional] +**CAVV** | **string** | | [optional] +**XID** | **string** | | [optional] +**DirectoryServerTxnId** | **string** | | [optional] +**ThreeDSVersion** | **string** | | [optional] +**TransactionId** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDsRedirectDataV3.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDsRedirectDataV3.md new file mode 100644 index 000000000..300132663 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/ThreeDsRedirectDataV3.md @@ -0,0 +1,12 @@ +# CsharpSplitit.Net.Model.ThreeDsRedirectDataV3 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | [optional] +**Verb** | **string** | | [optional] +**Params** | **Dictionary<string, 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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/UpdateOrderRequest.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/UpdateOrderRequest.md new file mode 100644 index 000000000..211b2b485 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/UpdateOrderRequest.md @@ -0,0 +1,13 @@ +# CsharpSplitit.Net.Model.UpdateOrderRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TrackingNumber** | **string** | | [optional] +**RefOrderNumber** | **string** | | [optional] +**ShippingStatus** | **ShippingStatus** | | [optional] +**Capture** | **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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/UxSettingsModel.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/UxSettingsModel.md new file mode 100644 index 000000000..bcafdfe1f --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/UxSettingsModel.md @@ -0,0 +1,10 @@ +# CsharpSplitit.Net.Model.UxSettingsModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayedInstallmentOptions** | **List<int>** | | [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/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/VerifyAuthorizationResponse.md b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/VerifyAuthorizationResponse.md new file mode 100644 index 000000000..0efbd5665 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/docs/VerifyAuthorizationResponse.md @@ -0,0 +1,12 @@ +# CsharpSplitit.Net.Model.VerifyAuthorizationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsAuthorized** | **bool** | | +**AuthorizationAmount** | **double** | | [optional] +**Authorization** | [**AuthorizationModel**](AuthorizationModel.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/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/logo.png b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/logo.png similarity index 100% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/logo.png rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/logo.png diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Api/InstallmentPlanApiTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Api/InstallmentPlanApiTests.cs new file mode 100644 index 000000000..1fe71d7f3 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Api/InstallmentPlanApiTests.cs @@ -0,0 +1,413 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + +using System; +using System.IO; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using RestSharp; +using Xunit; + +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; + +namespace CsharpSplitit.Net.Test.Api +{ + /// + /// Class for testing InstallmentPlanApi + /// + public class InstallmentPlanApiTests : IDisposable + { + private CsharpSplititClient client; + + public InstallmentPlanApiTests() + { + client = new CsharpSplititClient(); + client.SetBasePath("http://127.0.0.1:4008"); + // TODO: ENG-1364 Mock OAuth server + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); + + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test Cancel + /// + [Fact] + public void CancelTest() + { + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + + try + { + InstallmentPlanCancelResponse result = client.InstallmentPlan.Cancel(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Cancel: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + + /// + /// Test CheckEligibility + /// + [Fact] + public void CheckEligibilityTest() + { + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var planData = new PlanData(); + var cardDetails = new CardData(); + var billingAddress = new AddressData(); + + var checkInstallmentsEligibilityRequest = new CheckInstallmentsEligibilityRequest( + planData, + cardDetails, + billingAddress + ); + + try + { + InstallmentsEligibilityResponse result = client.InstallmentPlan.CheckEligibility(xSplititIdempotencyKey, xSplititTouchPoint, checkInstallmentsEligibilityRequest); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.CheckEligibility: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + + /// + /// Test Get + /// + [Fact] + public void GetTest() + { + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + + try + { + InstallmentPlanGetResponse result = client.InstallmentPlan.Get(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Get: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + + /// + /// Test Post + /// + [Fact] + public void PostTest() + { + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var autoCapture = false; + var attempt3dSecure = false; + var shopper = new ShopperData(); + var planData = new PlanDataModel(); + var billingAddress = new AddressDataModel(); + var redirectUrls = new InitiateRedirectionEndpointsModel(); + var uxSettings = new UxSettingsModel(); + var eventsEndpoints = new EventsEndpointsModel(); + var processingData = new ProcessingData(); + + var installmentPlanInitiateRequest = new InstallmentPlanInitiateRequest( + autoCapture, + attempt3dSecure, + shopper, + planData, + billingAddress, + redirectUrls, + uxSettings, + eventsEndpoints, + processingData + ); + var xSplititTestMode = "None"; + + try + { + InitiatePlanResponse result = client.InstallmentPlan.Post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Post: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + + /// + /// Test Post2 + /// + [Fact] + public void Post2Test() + { + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var autoCapture = false; + var attempt3dSecure = false; + var termsAndConditionsAccepted = false; + var shopper = new ShopperData(); + var planData = new PlanDataModel(); + var billingAddress = new AddressDataModel(); + var paymentMethod = new PaymentMethodModel(); + var redirectUrls = new RedirectionEndpointsModel(); + var processingData = new ProcessingData(); + var eventsEndpoints = new EventsEndpointsModel(); + + var installmentPlanCreateRequest = new InstallmentPlanCreateRequest( + autoCapture, + attempt3dSecure, + termsAndConditionsAccepted, + shopper, + planData, + billingAddress, + paymentMethod, + redirectUrls, + processingData, + eventsEndpoints + ); + var xSplititTestMode = "None"; + + try + { + InstallmentPlanCreateResponse result = client.InstallmentPlan.Post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Post2: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + + /// + /// Test Refund + /// + [Fact] + public void RefundTest() + { + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var amount = default(double); + var refundStrategy = RefundStrategy.FutureInstallmentsFirst; + + var installmentPlanRefundRequest = new InstallmentPlanRefundRequest( + amount, + refundStrategy + ); + + try + { + InstallmentPlanRefundResponse result = client.InstallmentPlan.Refund(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanRefundRequest); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Refund: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + + /// + /// Test Search + /// + [Fact] + public void SearchTest() + { + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var installmentPlanNumber = "installmentPlanNumber_example"; + var refOrderNumber = "refOrderNumber_example"; + var extendedParams = new Dictionary( + ); + + try + { + InstallmentPlanSearchResponse result = client.InstallmentPlan.Search(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanNumber, refOrderNumber, extendedParams); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.Search: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + + /// + /// Test UpdateOrder + /// + [Fact] + public void UpdateOrderTest() + { + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + var trackingNumber = "trackingNumber_example"; + var refOrderNumber = "refOrderNumber_example"; + var shippingStatus = ShippingStatus.Pending; + var capture = false; + + var updateOrderRequest = new UpdateOrderRequest( + trackingNumber, + refOrderNumber, + shippingStatus, + capture + ); + + try + { + InstallmentPlanUpdateResponse result = client.InstallmentPlan.UpdateOrder(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, updateOrderRequest); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.UpdateOrder: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + + /// + /// Test UpdateOrder2 + /// + [Fact] + public void UpdateOrder2Test() + { + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + + var installmentPlanUpdateRequestByIdentifier = new InstallmentPlanUpdateRequestByIdentifier( + ); + + try + { + InstallmentPlanUpdateResponse result = client.InstallmentPlan.UpdateOrder2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanUpdateRequestByIdentifier); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.UpdateOrder2: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + + /// + /// Test VerifyAuthorization + /// + [Fact] + public void VerifyAuthorizationTest() + { + var installmentPlanNumber = "installmentPlanNumber_example"; + var xSplititIdempotencyKey = "xSplititIdempotencyKey_example"; + var xSplititTouchPoint = ""; // TouchPoint (default to "") + + try + { + VerifyAuthorizationResponse result = client.InstallmentPlan.VerifyAuthorization(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine("Exception when calling InstallmentPlanApi.VerifyAuthorization: " + e.Message); + Console.WriteLine("Status Code: " + e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/CsharpBodyWithObjectField.Net.Test.csproj b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/CsharpSplitit.Net.Test.csproj similarity index 65% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/CsharpBodyWithObjectField.Net.Test.csproj rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/CsharpSplitit.Net.Test.csproj index 471c4bbde..aef32b9d8 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/CsharpBodyWithObjectField.Net.Test.csproj +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/CsharpSplitit.Net.Test.csproj @@ -1,8 +1,8 @@ - CsharpBodyWithObjectField.Net.Test - CsharpBodyWithObjectField.Net.Test + CsharpSplitit.Net.Test + CsharpSplitit.Net.Test net7.0;net5.0;netcoreapp3.1 false @@ -14,7 +14,7 @@ - + diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AddressDataModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AddressDataModelTests.cs new file mode 100644 index 000000000..fbc780ebe --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AddressDataModelTests.cs @@ -0,0 +1,110 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing AddressDataModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class AddressDataModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for AddressDataModel + //private AddressDataModel instance; + + public AddressDataModelTests() + { + // TODO uncomment below to create an instance of AddressDataModel + //instance = new AddressDataModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AddressDataModel + /// + [Fact] + public void AddressDataModelInstanceTest() + { + // TODO uncomment below to test "IsType" AddressDataModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'AddressLine1' + /// + [Fact] + public void AddressLine1Test() + { + // TODO unit test for the property 'AddressLine1' + } + /// + /// Test the property 'AddressLine2' + /// + [Fact] + public void AddressLine2Test() + { + // TODO unit test for the property 'AddressLine2' + } + /// + /// Test the property 'City' + /// + [Fact] + public void CityTest() + { + // TODO unit test for the property 'City' + } + /// + /// Test the property 'Country' + /// + [Fact] + public void CountryTest() + { + // TODO unit test for the property 'Country' + } + /// + /// Test the property 'State' + /// + [Fact] + public void StateTest() + { + // TODO unit test for the property 'State' + } + /// + /// Test the property 'Zip' + /// + [Fact] + public void ZipTest() + { + // TODO unit test for the property 'Zip' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AddressDataTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AddressDataTests.cs new file mode 100644 index 000000000..e623d5680 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AddressDataTests.cs @@ -0,0 +1,110 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing AddressData + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class AddressDataTests : IDisposable + { + // TODO uncomment below to declare an instance variable for AddressData + //private AddressData instance; + + public AddressDataTests() + { + // TODO uncomment below to create an instance of AddressData + //instance = new AddressData(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AddressData + /// + [Fact] + public void AddressDataInstanceTest() + { + // TODO uncomment below to test "IsType" AddressData + //Assert.IsType(instance); + } + + + /// + /// Test the property 'AddressLine' + /// + [Fact] + public void AddressLineTest() + { + // TODO unit test for the property 'AddressLine' + } + /// + /// Test the property 'AddressLine2' + /// + [Fact] + public void AddressLine2Test() + { + // TODO unit test for the property 'AddressLine2' + } + /// + /// Test the property 'City' + /// + [Fact] + public void CityTest() + { + // TODO unit test for the property 'City' + } + /// + /// Test the property 'Country' + /// + [Fact] + public void CountryTest() + { + // TODO unit test for the property 'Country' + } + /// + /// Test the property 'State' + /// + [Fact] + public void StateTest() + { + // TODO unit test for the property 'State' + } + /// + /// Test the property 'Zip' + /// + [Fact] + public void ZipTest() + { + // TODO unit test for the property 'Zip' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AuthorizationModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AuthorizationModelTests.cs new file mode 100644 index 000000000..825483023 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/AuthorizationModelTests.cs @@ -0,0 +1,142 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing AuthorizationModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class AuthorizationModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for AuthorizationModel + //private AuthorizationModel instance; + + public AuthorizationModelTests() + { + // TODO uncomment below to create an instance of AuthorizationModel + //instance = new AuthorizationModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of AuthorizationModel + /// + [Fact] + public void AuthorizationModelInstanceTest() + { + // TODO uncomment below to test "IsType" AuthorizationModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Date' + /// + [Fact] + public void DateTest() + { + // TODO unit test for the property 'Date' + } + /// + /// Test the property 'SplititErrorResultCode' + /// + [Fact] + public void SplititErrorResultCodeTest() + { + // TODO unit test for the property 'SplititErrorResultCode' + } + /// + /// Test the property 'GatewayTransactionID' + /// + [Fact] + public void GatewayTransactionIDTest() + { + // TODO unit test for the property 'GatewayTransactionID' + } + /// + /// Test the property 'GatewayResultCode' + /// + [Fact] + public void GatewayResultCodeTest() + { + // TODO unit test for the property 'GatewayResultCode' + } + /// + /// Test the property 'GatewayResultMessage' + /// + [Fact] + public void GatewayResultMessageTest() + { + // TODO unit test for the property 'GatewayResultMessage' + } + /// + /// Test the property 'ThreeDSRedirect' + /// + [Fact] + public void ThreeDSRedirectTest() + { + // TODO unit test for the property 'ThreeDSRedirect' + } + /// + /// Test the property 'CAVV' + /// + [Fact] + public void CAVVTest() + { + // TODO unit test for the property 'CAVV' + } + /// + /// Test the property 'ECI' + /// + [Fact] + public void ECITest() + { + // TODO unit test for the property 'ECI' + } + /// + /// Test the property 'GatewaySourceResponse' + /// + [Fact] + public void GatewaySourceResponseTest() + { + // TODO unit test for the property 'GatewaySourceResponse' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/BluesnapVaultedShopperTokenTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/BluesnapVaultedShopperTokenTests.cs new file mode 100644 index 000000000..c12b035e8 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/BluesnapVaultedShopperTokenTests.cs @@ -0,0 +1,78 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing BluesnapVaultedShopperToken + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class BluesnapVaultedShopperTokenTests : IDisposable + { + // TODO uncomment below to declare an instance variable for BluesnapVaultedShopperToken + //private BluesnapVaultedShopperToken instance; + + public BluesnapVaultedShopperTokenTests() + { + // TODO uncomment below to create an instance of BluesnapVaultedShopperToken + //instance = new BluesnapVaultedShopperToken(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of BluesnapVaultedShopperToken + /// + [Fact] + public void BluesnapVaultedShopperTokenInstanceTest() + { + // TODO uncomment below to test "IsType" BluesnapVaultedShopperToken + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Token' + /// + [Fact] + public void TokenTest() + { + // TODO unit test for the property 'Token' + } + /// + /// Test the property 'Last4Digit' + /// + [Fact] + public void Last4DigitTest() + { + // TODO unit test for the property 'Last4Digit' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardBrandTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardBrandTests.cs new file mode 100644 index 000000000..63ba958fd --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardBrandTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing CardBrand + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class CardBrandTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CardBrand + //private CardBrand instance; + + public CardBrandTests() + { + // TODO uncomment below to create an instance of CardBrand + //instance = new CardBrand(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CardBrand + /// + [Fact] + public void CardBrandInstanceTest() + { + // TODO uncomment below to test "IsType" CardBrand + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardDataTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardDataTests.cs new file mode 100644 index 000000000..5a3e116be --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardDataTests.cs @@ -0,0 +1,118 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing CardData + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class CardDataTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CardData + //private CardData instance; + + public CardDataTests() + { + // TODO uncomment below to create an instance of CardData + //instance = new CardData(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CardData + /// + [Fact] + public void CardDataInstanceTest() + { + // TODO uncomment below to test "IsType" CardData + //Assert.IsType(instance); + } + + + /// + /// Test the property 'CardHolderFullName' + /// + [Fact] + public void CardHolderFullNameTest() + { + // TODO unit test for the property 'CardHolderFullName' + } + /// + /// Test the property 'CardNumber' + /// + [Fact] + public void CardNumberTest() + { + // TODO unit test for the property 'CardNumber' + } + /// + /// Test the property 'CardExpYear' + /// + [Fact] + public void CardExpYearTest() + { + // TODO unit test for the property 'CardExpYear' + } + /// + /// Test the property 'CardExpMonth' + /// + [Fact] + public void CardExpMonthTest() + { + // TODO unit test for the property 'CardExpMonth' + } + /// + /// Test the property 'CardCvv' + /// + [Fact] + public void CardCvvTest() + { + // TODO unit test for the property 'CardCvv' + } + /// + /// Test the property 'CardBrand' + /// + [Fact] + public void CardBrandTest() + { + // TODO unit test for the property 'CardBrand' + } + /// + /// Test the property 'CardType' + /// + [Fact] + public void CardTypeTest() + { + // TODO unit test for the property 'CardType' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardTypeTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardTypeTests.cs new file mode 100644 index 000000000..18234217d --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CardTypeTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing CardType + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class CardTypeTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CardType + //private CardType instance; + + public CardTypeTests() + { + // TODO uncomment below to create an instance of CardType + //instance = new CardType(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CardType + /// + [Fact] + public void CardTypeInstanceTest() + { + // TODO uncomment below to test "IsType" CardType + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CheckInstallmentsEligibilityRequestTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CheckInstallmentsEligibilityRequestTests.cs new file mode 100644 index 000000000..bf0bd6692 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/CheckInstallmentsEligibilityRequestTests.cs @@ -0,0 +1,86 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing CheckInstallmentsEligibilityRequest + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class CheckInstallmentsEligibilityRequestTests : IDisposable + { + // TODO uncomment below to declare an instance variable for CheckInstallmentsEligibilityRequest + //private CheckInstallmentsEligibilityRequest instance; + + public CheckInstallmentsEligibilityRequestTests() + { + // TODO uncomment below to create an instance of CheckInstallmentsEligibilityRequest + //instance = new CheckInstallmentsEligibilityRequest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of CheckInstallmentsEligibilityRequest + /// + [Fact] + public void CheckInstallmentsEligibilityRequestInstanceTest() + { + // TODO uncomment below to test "IsType" CheckInstallmentsEligibilityRequest + //Assert.IsType(instance); + } + + + /// + /// Test the property 'PlanData' + /// + [Fact] + public void PlanDataTest() + { + // TODO unit test for the property 'PlanData' + } + /// + /// Test the property 'CardDetails' + /// + [Fact] + public void CardDetailsTest() + { + // TODO unit test for the property 'CardDetails' + } + /// + /// Test the property 'BillingAddress' + /// + [Fact] + public void BillingAddressTest() + { + // TODO unit test for the property 'BillingAddress' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorExtendedAllOfTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorExtendedAllOfTests.cs new file mode 100644 index 000000000..9034eb595 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorExtendedAllOfTests.cs @@ -0,0 +1,70 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing ErrorExtendedAllOf + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ErrorExtendedAllOfTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ErrorExtendedAllOf + //private ErrorExtendedAllOf instance; + + public ErrorExtendedAllOfTests() + { + // TODO uncomment below to create an instance of ErrorExtendedAllOf + //instance = new ErrorExtendedAllOf(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ErrorExtendedAllOf + /// + [Fact] + public void ErrorExtendedAllOfInstanceTest() + { + // TODO uncomment below to test "IsType" ErrorExtendedAllOf + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ExtraData' + /// + [Fact] + public void ExtraDataTest() + { + // TODO unit test for the property 'ExtraData' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorExtendedTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorExtendedTests.cs new file mode 100644 index 000000000..7654ef603 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorExtendedTests.cs @@ -0,0 +1,94 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing ErrorExtended + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ErrorExtendedTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ErrorExtended + //private ErrorExtended instance; + + public ErrorExtendedTests() + { + // TODO uncomment below to create an instance of ErrorExtended + //instance = new ErrorExtended(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ErrorExtended + /// + [Fact] + public void ErrorExtendedInstanceTest() + { + // TODO uncomment below to test "IsType" ErrorExtended + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Code' + /// + [Fact] + public void CodeTest() + { + // TODO unit test for the property 'Code' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'AdditionalInfo' + /// + [Fact] + public void AdditionalInfoTest() + { + // TODO unit test for the property 'AdditionalInfo' + } + /// + /// Test the property 'ExtraData' + /// + [Fact] + public void ExtraDataTest() + { + // TODO unit test for the property 'ExtraData' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorTests.cs new file mode 100644 index 000000000..e61cd44e6 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ErrorTests.cs @@ -0,0 +1,86 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing Error + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ErrorTests : IDisposable + { + // TODO uncomment below to declare an instance variable for Error + //private Error instance; + + public ErrorTests() + { + // TODO uncomment below to create an instance of Error + //instance = new Error(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of Error + /// + [Fact] + public void ErrorInstanceTest() + { + // TODO uncomment below to test "IsType" Error + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Code' + /// + [Fact] + public void CodeTest() + { + // TODO unit test for the property 'Code' + } + /// + /// Test the property 'Message' + /// + [Fact] + public void MessageTest() + { + // TODO unit test for the property 'Message' + } + /// + /// Test the property 'AdditionalInfo' + /// + [Fact] + public void AdditionalInfoTest() + { + // TODO unit test for the property 'AdditionalInfo' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/EventsEndpointsModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/EventsEndpointsModelTests.cs new file mode 100644 index 000000000..823f2bb79 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/EventsEndpointsModelTests.cs @@ -0,0 +1,70 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing EventsEndpointsModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class EventsEndpointsModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for EventsEndpointsModel + //private EventsEndpointsModel instance; + + public EventsEndpointsModelTests() + { + // TODO uncomment below to create an instance of EventsEndpointsModel + //instance = new EventsEndpointsModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of EventsEndpointsModel + /// + [Fact] + public void EventsEndpointsModelInstanceTest() + { + // TODO uncomment below to test "IsType" EventsEndpointsModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'CreateSucceeded' + /// + [Fact] + public void CreateSucceededTest() + { + // TODO unit test for the property 'CreateSucceeded' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/FailedResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/FailedResponseTests.cs new file mode 100644 index 000000000..3eced2481 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/FailedResponseTests.cs @@ -0,0 +1,78 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing FailedResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class FailedResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for FailedResponse + //private FailedResponse instance; + + public FailedResponseTests() + { + // TODO uncomment below to create an instance of FailedResponse + //instance = new FailedResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of FailedResponse + /// + [Fact] + public void FailedResponseInstanceTest() + { + // TODO uncomment below to test "IsType" FailedResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'TraceId' + /// + [Fact] + public void TraceIdTest() + { + // TODO unit test for the property 'TraceId' + } + /// + /// Test the property 'Error' + /// + [Fact] + public void ErrorTest() + { + // TODO unit test for the property 'Error' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/GatewayTokenDataTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/GatewayTokenDataTests.cs new file mode 100644 index 000000000..35a7bf046 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/GatewayTokenDataTests.cs @@ -0,0 +1,78 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing GatewayTokenData + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class GatewayTokenDataTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GatewayTokenData + //private GatewayTokenData instance; + + public GatewayTokenDataTests() + { + // TODO uncomment below to create an instance of GatewayTokenData + //instance = new GatewayTokenData(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GatewayTokenData + /// + [Fact] + public void GatewayTokenDataInstanceTest() + { + // TODO uncomment below to test "IsType" GatewayTokenData + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Token' + /// + [Fact] + public void TokenTest() + { + // TODO unit test for the property 'Token' + } + /// + /// Test the property 'Last4Digit' + /// + [Fact] + public void Last4DigitTest() + { + // TODO unit test for the property 'Last4Digit' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/GwAuthorizationStatusTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/GwAuthorizationStatusTests.cs new file mode 100644 index 000000000..47dd2c331 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/GwAuthorizationStatusTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing GwAuthorizationStatus + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class GwAuthorizationStatusTests : IDisposable + { + // TODO uncomment below to declare an instance variable for GwAuthorizationStatus + //private GwAuthorizationStatus instance; + + public GwAuthorizationStatusTests() + { + // TODO uncomment below to create an instance of GwAuthorizationStatus + //instance = new GwAuthorizationStatus(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of GwAuthorizationStatus + /// + [Fact] + public void GwAuthorizationStatusInstanceTest() + { + // TODO uncomment below to test "IsType" GwAuthorizationStatus + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/IdentifierContractTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/IdentifierContractTests.cs new file mode 100644 index 000000000..29a88bab7 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/IdentifierContractTests.cs @@ -0,0 +1,86 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing IdentifierContract + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class IdentifierContractTests : IDisposable + { + // TODO uncomment below to declare an instance variable for IdentifierContract + //private IdentifierContract instance; + + public IdentifierContractTests() + { + // TODO uncomment below to create an instance of IdentifierContract + //instance = new IdentifierContract(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of IdentifierContract + /// + [Fact] + public void IdentifierContractInstanceTest() + { + // TODO uncomment below to test "IsType" IdentifierContract + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'InstallmentPlanNumber' + /// + [Fact] + public void InstallmentPlanNumberTest() + { + // TODO unit test for the property 'InstallmentPlanNumber' + } + /// + /// Test the property 'ExtendedParams' + /// + [Fact] + public void ExtendedParamsTest() + { + // TODO unit test for the property 'ExtendedParams' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InitiatePlanResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InitiatePlanResponseTests.cs new file mode 100644 index 000000000..6bb6cb245 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InitiatePlanResponseTests.cs @@ -0,0 +1,142 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InitiatePlanResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InitiatePlanResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InitiatePlanResponse + //private InitiatePlanResponse instance; + + public InitiatePlanResponseTests() + { + // TODO uncomment below to create an instance of InitiatePlanResponse + //instance = new InitiatePlanResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InitiatePlanResponse + /// + [Fact] + public void InitiatePlanResponseInstanceTest() + { + // TODO uncomment below to test "IsType" InitiatePlanResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InstallmentPlanNumber' + /// + [Fact] + public void InstallmentPlanNumberTest() + { + // TODO unit test for the property 'InstallmentPlanNumber' + } + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'PurchaseMethod' + /// + [Fact] + public void PurchaseMethodTest() + { + // TODO unit test for the property 'PurchaseMethod' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Currency' + /// + [Fact] + public void CurrencyTest() + { + // TODO unit test for the property 'Currency' + } + /// + /// Test the property 'Amount' + /// + [Fact] + public void AmountTest() + { + // TODO unit test for the property 'Amount' + } + /// + /// Test the property 'ExtendedParams' + /// + [Fact] + public void ExtendedParamsTest() + { + // TODO unit test for the property 'ExtendedParams' + } + /// + /// Test the property 'Shopper' + /// + [Fact] + public void ShopperTest() + { + // TODO unit test for the property 'Shopper' + } + /// + /// Test the property 'BillingAddress' + /// + [Fact] + public void BillingAddressTest() + { + // TODO unit test for the property 'BillingAddress' + } + /// + /// Test the property 'CheckoutUrl' + /// + [Fact] + public void CheckoutUrlTest() + { + // TODO unit test for the property 'CheckoutUrl' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InitiateRedirectionEndpointsModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InitiateRedirectionEndpointsModelTests.cs new file mode 100644 index 000000000..03e8dc48f --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InitiateRedirectionEndpointsModelTests.cs @@ -0,0 +1,86 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InitiateRedirectionEndpointsModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InitiateRedirectionEndpointsModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InitiateRedirectionEndpointsModel + //private InitiateRedirectionEndpointsModel instance; + + public InitiateRedirectionEndpointsModelTests() + { + // TODO uncomment below to create an instance of InitiateRedirectionEndpointsModel + //instance = new InitiateRedirectionEndpointsModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InitiateRedirectionEndpointsModel + /// + [Fact] + public void InitiateRedirectionEndpointsModelInstanceTest() + { + // TODO uncomment below to test "IsType" InitiateRedirectionEndpointsModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Succeeded' + /// + [Fact] + public void SucceededTest() + { + // TODO unit test for the property 'Succeeded' + } + /// + /// Test the property 'Failed' + /// + [Fact] + public void FailedTest() + { + // TODO unit test for the property 'Failed' + } + /// + /// Test the property 'Cancel' + /// + [Fact] + public void CancelTest() + { + // TODO unit test for the property 'Cancel' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCancelResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCancelResponseTests.cs new file mode 100644 index 000000000..93c058d13 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCancelResponseTests.cs @@ -0,0 +1,70 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanCancelResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanCancelResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanCancelResponse + //private InstallmentPlanCancelResponse instance; + + public InstallmentPlanCancelResponseTests() + { + // TODO uncomment below to create an instance of InstallmentPlanCancelResponse + //instance = new InstallmentPlanCancelResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanCancelResponse + /// + [Fact] + public void InstallmentPlanCancelResponseInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanCancelResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InstallmentPlanNumber' + /// + [Fact] + public void InstallmentPlanNumberTest() + { + // TODO unit test for the property 'InstallmentPlanNumber' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCreateRequestTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCreateRequestTests.cs new file mode 100644 index 000000000..b8ba9cb59 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCreateRequestTests.cs @@ -0,0 +1,142 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanCreateRequest + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanCreateRequestTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanCreateRequest + //private InstallmentPlanCreateRequest instance; + + public InstallmentPlanCreateRequestTests() + { + // TODO uncomment below to create an instance of InstallmentPlanCreateRequest + //instance = new InstallmentPlanCreateRequest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanCreateRequest + /// + [Fact] + public void InstallmentPlanCreateRequestInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanCreateRequest + //Assert.IsType(instance); + } + + + /// + /// Test the property 'AutoCapture' + /// + [Fact] + public void AutoCaptureTest() + { + // TODO unit test for the property 'AutoCapture' + } + /// + /// Test the property 'Attempt3dSecure' + /// + [Fact] + public void Attempt3dSecureTest() + { + // TODO unit test for the property 'Attempt3dSecure' + } + /// + /// Test the property 'TermsAndConditionsAccepted' + /// + [Fact] + public void TermsAndConditionsAcceptedTest() + { + // TODO unit test for the property 'TermsAndConditionsAccepted' + } + /// + /// Test the property 'Shopper' + /// + [Fact] + public void ShopperTest() + { + // TODO unit test for the property 'Shopper' + } + /// + /// Test the property 'PlanData' + /// + [Fact] + public void PlanDataTest() + { + // TODO unit test for the property 'PlanData' + } + /// + /// Test the property 'BillingAddress' + /// + [Fact] + public void BillingAddressTest() + { + // TODO unit test for the property 'BillingAddress' + } + /// + /// Test the property 'PaymentMethod' + /// + [Fact] + public void PaymentMethodTest() + { + // TODO unit test for the property 'PaymentMethod' + } + /// + /// Test the property 'RedirectUrls' + /// + [Fact] + public void RedirectUrlsTest() + { + // TODO unit test for the property 'RedirectUrls' + } + /// + /// Test the property 'ProcessingData' + /// + [Fact] + public void ProcessingDataTest() + { + // TODO unit test for the property 'ProcessingData' + } + /// + /// Test the property 'EventsEndpoints' + /// + [Fact] + public void EventsEndpointsTest() + { + // TODO unit test for the property 'EventsEndpoints' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCreateResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCreateResponseTests.cs new file mode 100644 index 000000000..5976f29eb --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanCreateResponseTests.cs @@ -0,0 +1,182 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanCreateResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanCreateResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanCreateResponse + //private InstallmentPlanCreateResponse instance; + + public InstallmentPlanCreateResponseTests() + { + // TODO uncomment below to create an instance of InstallmentPlanCreateResponse + //instance = new InstallmentPlanCreateResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanCreateResponse + /// + [Fact] + public void InstallmentPlanCreateResponseInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanCreateResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InstallmentPlanNumber' + /// + [Fact] + public void InstallmentPlanNumberTest() + { + // TODO unit test for the property 'InstallmentPlanNumber' + } + /// + /// Test the property 'DateCreated' + /// + [Fact] + public void DateCreatedTest() + { + // TODO unit test for the property 'DateCreated' + } + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'PurchaseMethod' + /// + [Fact] + public void PurchaseMethodTest() + { + // TODO unit test for the property 'PurchaseMethod' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Currency' + /// + [Fact] + public void CurrencyTest() + { + // TODO unit test for the property 'Currency' + } + /// + /// Test the property 'OriginalAmount' + /// + [Fact] + public void OriginalAmountTest() + { + // TODO unit test for the property 'OriginalAmount' + } + /// + /// Test the property 'Amount' + /// + [Fact] + public void AmountTest() + { + // TODO unit test for the property 'Amount' + } + /// + /// Test the property 'ExtendedParams' + /// + [Fact] + public void ExtendedParamsTest() + { + // TODO unit test for the property 'ExtendedParams' + } + /// + /// Test the property 'Authorization' + /// + [Fact] + public void AuthorizationTest() + { + // TODO unit test for the property 'Authorization' + } + /// + /// Test the property 'Shopper' + /// + [Fact] + public void ShopperTest() + { + // TODO unit test for the property 'Shopper' + } + /// + /// Test the property 'BillingAddress' + /// + [Fact] + public void BillingAddressTest() + { + // TODO unit test for the property 'BillingAddress' + } + /// + /// Test the property 'PaymentMethod' + /// + [Fact] + public void PaymentMethodTest() + { + // TODO unit test for the property 'PaymentMethod' + } + /// + /// Test the property 'Installments' + /// + [Fact] + public void InstallmentsTest() + { + // TODO unit test for the property 'Installments' + } + /// + /// Test the property 'Links' + /// + [Fact] + public void LinksTest() + { + // TODO unit test for the property 'Links' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanGetResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanGetResponseTests.cs new file mode 100644 index 000000000..9860fbd9b --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanGetResponseTests.cs @@ -0,0 +1,190 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanGetResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanGetResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanGetResponse + //private InstallmentPlanGetResponse instance; + + public InstallmentPlanGetResponseTests() + { + // TODO uncomment below to create an instance of InstallmentPlanGetResponse + //instance = new InstallmentPlanGetResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanGetResponse + /// + [Fact] + public void InstallmentPlanGetResponseInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanGetResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InstallmentPlanNumber' + /// + [Fact] + public void InstallmentPlanNumberTest() + { + // TODO unit test for the property 'InstallmentPlanNumber' + } + /// + /// Test the property 'DateCreated' + /// + [Fact] + public void DateCreatedTest() + { + // TODO unit test for the property 'DateCreated' + } + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'PurchaseMethod' + /// + [Fact] + public void PurchaseMethodTest() + { + // TODO unit test for the property 'PurchaseMethod' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Currency' + /// + [Fact] + public void CurrencyTest() + { + // TODO unit test for the property 'Currency' + } + /// + /// Test the property 'OriginalAmount' + /// + [Fact] + public void OriginalAmountTest() + { + // TODO unit test for the property 'OriginalAmount' + } + /// + /// Test the property 'Amount' + /// + [Fact] + public void AmountTest() + { + // TODO unit test for the property 'Amount' + } + /// + /// Test the property 'Authorization' + /// + [Fact] + public void AuthorizationTest() + { + // TODO unit test for the property 'Authorization' + } + /// + /// Test the property 'Shopper' + /// + [Fact] + public void ShopperTest() + { + // TODO unit test for the property 'Shopper' + } + /// + /// Test the property 'BillingAddress' + /// + [Fact] + public void BillingAddressTest() + { + // TODO unit test for the property 'BillingAddress' + } + /// + /// Test the property 'PaymentMethod' + /// + [Fact] + public void PaymentMethodTest() + { + // TODO unit test for the property 'PaymentMethod' + } + /// + /// Test the property 'ExtendedParams' + /// + [Fact] + public void ExtendedParamsTest() + { + // TODO unit test for the property 'ExtendedParams' + } + /// + /// Test the property 'Installments' + /// + [Fact] + public void InstallmentsTest() + { + // TODO unit test for the property 'Installments' + } + /// + /// Test the property 'Refunds' + /// + [Fact] + public void RefundsTest() + { + // TODO unit test for the property 'Refunds' + } + /// + /// Test the property 'Links' + /// + [Fact] + public void LinksTest() + { + // TODO unit test for the property 'Links' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanInitiateRequestTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanInitiateRequestTests.cs new file mode 100644 index 000000000..76a0a8f0a --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanInitiateRequestTests.cs @@ -0,0 +1,134 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanInitiateRequest + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanInitiateRequestTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanInitiateRequest + //private InstallmentPlanInitiateRequest instance; + + public InstallmentPlanInitiateRequestTests() + { + // TODO uncomment below to create an instance of InstallmentPlanInitiateRequest + //instance = new InstallmentPlanInitiateRequest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanInitiateRequest + /// + [Fact] + public void InstallmentPlanInitiateRequestInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanInitiateRequest + //Assert.IsType(instance); + } + + + /// + /// Test the property 'AutoCapture' + /// + [Fact] + public void AutoCaptureTest() + { + // TODO unit test for the property 'AutoCapture' + } + /// + /// Test the property 'Attempt3dSecure' + /// + [Fact] + public void Attempt3dSecureTest() + { + // TODO unit test for the property 'Attempt3dSecure' + } + /// + /// Test the property 'Shopper' + /// + [Fact] + public void ShopperTest() + { + // TODO unit test for the property 'Shopper' + } + /// + /// Test the property 'PlanData' + /// + [Fact] + public void PlanDataTest() + { + // TODO unit test for the property 'PlanData' + } + /// + /// Test the property 'BillingAddress' + /// + [Fact] + public void BillingAddressTest() + { + // TODO unit test for the property 'BillingAddress' + } + /// + /// Test the property 'RedirectUrls' + /// + [Fact] + public void RedirectUrlsTest() + { + // TODO unit test for the property 'RedirectUrls' + } + /// + /// Test the property 'UxSettings' + /// + [Fact] + public void UxSettingsTest() + { + // TODO unit test for the property 'UxSettings' + } + /// + /// Test the property 'EventsEndpoints' + /// + [Fact] + public void EventsEndpointsTest() + { + // TODO unit test for the property 'EventsEndpoints' + } + /// + /// Test the property 'ProcessingData' + /// + [Fact] + public void ProcessingDataTest() + { + // TODO unit test for the property 'ProcessingData' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanRefundRequestTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanRefundRequestTests.cs new file mode 100644 index 000000000..11409f6ff --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanRefundRequestTests.cs @@ -0,0 +1,78 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanRefundRequest + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanRefundRequestTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanRefundRequest + //private InstallmentPlanRefundRequest instance; + + public InstallmentPlanRefundRequestTests() + { + // TODO uncomment below to create an instance of InstallmentPlanRefundRequest + //instance = new InstallmentPlanRefundRequest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanRefundRequest + /// + [Fact] + public void InstallmentPlanRefundRequestInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanRefundRequest + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Amount' + /// + [Fact] + public void AmountTest() + { + // TODO unit test for the property 'Amount' + } + /// + /// Test the property 'RefundStrategy' + /// + [Fact] + public void RefundStrategyTest() + { + // TODO unit test for the property 'RefundStrategy' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanRefundResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanRefundResponseTests.cs new file mode 100644 index 000000000..b153d30d3 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanRefundResponseTests.cs @@ -0,0 +1,110 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanRefundResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanRefundResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanRefundResponse + //private InstallmentPlanRefundResponse instance; + + public InstallmentPlanRefundResponseTests() + { + // TODO uncomment below to create an instance of InstallmentPlanRefundResponse + //instance = new InstallmentPlanRefundResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanRefundResponse + /// + [Fact] + public void InstallmentPlanRefundResponseInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanRefundResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RefundId' + /// + [Fact] + public void RefundIdTest() + { + // TODO unit test for the property 'RefundId' + } + /// + /// Test the property 'InstallmentPlanNumber' + /// + [Fact] + public void InstallmentPlanNumberTest() + { + // TODO unit test for the property 'InstallmentPlanNumber' + } + /// + /// Test the property 'Currency' + /// + [Fact] + public void CurrencyTest() + { + // TODO unit test for the property 'Currency' + } + /// + /// Test the property 'NonCreditRefundAmount' + /// + [Fact] + public void NonCreditRefundAmountTest() + { + // TODO unit test for the property 'NonCreditRefundAmount' + } + /// + /// Test the property 'CreditRefundAmount' + /// + [Fact] + public void CreditRefundAmountTest() + { + // TODO unit test for the property 'CreditRefundAmount' + } + /// + /// Test the property 'Summary' + /// + [Fact] + public void SummaryTest() + { + // TODO unit test for the property 'Summary' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanSearchResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanSearchResponseTests.cs new file mode 100644 index 000000000..2c254338c --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanSearchResponseTests.cs @@ -0,0 +1,70 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanSearchResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanSearchResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanSearchResponse + //private InstallmentPlanSearchResponse instance; + + public InstallmentPlanSearchResponseTests() + { + // TODO uncomment below to create an instance of InstallmentPlanSearchResponse + //instance = new InstallmentPlanSearchResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanSearchResponse + /// + [Fact] + public void InstallmentPlanSearchResponseInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanSearchResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'PlanList' + /// + [Fact] + public void PlanListTest() + { + // TODO unit test for the property 'PlanList' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestByIdentifierAllOfTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestByIdentifierAllOfTests.cs new file mode 100644 index 000000000..25316d38b --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestByIdentifierAllOfTests.cs @@ -0,0 +1,70 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanUpdateRequestByIdentifierAllOf + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanUpdateRequestByIdentifierAllOfTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanUpdateRequestByIdentifierAllOf + //private InstallmentPlanUpdateRequestByIdentifierAllOf instance; + + public InstallmentPlanUpdateRequestByIdentifierAllOfTests() + { + // TODO uncomment below to create an instance of InstallmentPlanUpdateRequestByIdentifierAllOf + //instance = new InstallmentPlanUpdateRequestByIdentifierAllOf(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanUpdateRequestByIdentifierAllOf + /// + [Fact] + public void InstallmentPlanUpdateRequestByIdentifierAllOfInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanUpdateRequestByIdentifierAllOf + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Identifier' + /// + [Fact] + public void IdentifierTest() + { + // TODO unit test for the property 'Identifier' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestByIdentifierTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestByIdentifierTests.cs new file mode 100644 index 000000000..78e585965 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestByIdentifierTests.cs @@ -0,0 +1,102 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanUpdateRequestByIdentifier + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanUpdateRequestByIdentifierTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanUpdateRequestByIdentifier + //private InstallmentPlanUpdateRequestByIdentifier instance; + + public InstallmentPlanUpdateRequestByIdentifierTests() + { + // TODO uncomment below to create an instance of InstallmentPlanUpdateRequestByIdentifier + //instance = new InstallmentPlanUpdateRequestByIdentifier(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanUpdateRequestByIdentifier + /// + [Fact] + public void InstallmentPlanUpdateRequestByIdentifierInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanUpdateRequestByIdentifier + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'TrackingNumber' + /// + [Fact] + public void TrackingNumberTest() + { + // TODO unit test for the property 'TrackingNumber' + } + /// + /// Test the property 'Capture' + /// + [Fact] + public void CaptureTest() + { + // TODO unit test for the property 'Capture' + } + /// + /// Test the property 'ShippingStatus' + /// + [Fact] + public void ShippingStatusTest() + { + // TODO unit test for the property 'ShippingStatus' + } + /// + /// Test the property 'Identifier' + /// + [Fact] + public void IdentifierTest() + { + // TODO unit test for the property 'Identifier' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestTests.cs new file mode 100644 index 000000000..0fd5e420d --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateRequestTests.cs @@ -0,0 +1,94 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanUpdateRequest + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanUpdateRequestTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanUpdateRequest + //private InstallmentPlanUpdateRequest instance; + + public InstallmentPlanUpdateRequestTests() + { + // TODO uncomment below to create an instance of InstallmentPlanUpdateRequest + //instance = new InstallmentPlanUpdateRequest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanUpdateRequest + /// + [Fact] + public void InstallmentPlanUpdateRequestInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanUpdateRequest + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'TrackingNumber' + /// + [Fact] + public void TrackingNumberTest() + { + // TODO unit test for the property 'TrackingNumber' + } + /// + /// Test the property 'Capture' + /// + [Fact] + public void CaptureTest() + { + // TODO unit test for the property 'Capture' + } + /// + /// Test the property 'ShippingStatus' + /// + [Fact] + public void ShippingStatusTest() + { + // TODO unit test for the property 'ShippingStatus' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateResponseTests.cs new file mode 100644 index 000000000..74cd6133b --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentPlanUpdateResponseTests.cs @@ -0,0 +1,94 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentPlanUpdateResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentPlanUpdateResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentPlanUpdateResponse + //private InstallmentPlanUpdateResponse instance; + + public InstallmentPlanUpdateResponseTests() + { + // TODO uncomment below to create an instance of InstallmentPlanUpdateResponse + //instance = new InstallmentPlanUpdateResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentPlanUpdateResponse + /// + [Fact] + public void InstallmentPlanUpdateResponseInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentPlanUpdateResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'InstallmentPlanNumber' + /// + [Fact] + public void InstallmentPlanNumberTest() + { + // TODO unit test for the property 'InstallmentPlanNumber' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'ShippingStatus' + /// + [Fact] + public void ShippingStatusTest() + { + // TODO unit test for the property 'ShippingStatus' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentStatusTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentStatusTests.cs new file mode 100644 index 000000000..5c3f42ddf --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentStatusTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentStatus + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentStatusTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentStatus + //private InstallmentStatus instance; + + public InstallmentStatusTests() + { + // TODO uncomment below to create an instance of InstallmentStatus + //instance = new InstallmentStatus(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentStatus + /// + [Fact] + public void InstallmentStatusInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentStatus + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentTests.cs new file mode 100644 index 000000000..674d8a3bc --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentTests.cs @@ -0,0 +1,94 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing Installment + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentTests : IDisposable + { + // TODO uncomment below to declare an instance variable for Installment + //private Installment instance; + + public InstallmentTests() + { + // TODO uncomment below to create an instance of Installment + //instance = new Installment(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of Installment + /// + [Fact] + public void InstallmentInstanceTest() + { + // TODO uncomment below to test "IsType" Installment + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InstallmentNumber' + /// + [Fact] + public void InstallmentNumberTest() + { + // TODO unit test for the property 'InstallmentNumber' + } + /// + /// Test the property 'Amount' + /// + [Fact] + public void AmountTest() + { + // TODO unit test for the property 'Amount' + } + /// + /// Test the property 'ProcessDateTime' + /// + [Fact] + public void ProcessDateTimeTest() + { + // TODO unit test for the property 'ProcessDateTime' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentsEligibilityResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentsEligibilityResponseTests.cs new file mode 100644 index 000000000..ff1c73ab9 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/InstallmentsEligibilityResponseTests.cs @@ -0,0 +1,78 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing InstallmentsEligibilityResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class InstallmentsEligibilityResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for InstallmentsEligibilityResponse + //private InstallmentsEligibilityResponse instance; + + public InstallmentsEligibilityResponseTests() + { + // TODO uncomment below to create an instance of InstallmentsEligibilityResponse + //instance = new InstallmentsEligibilityResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of InstallmentsEligibilityResponse + /// + [Fact] + public void InstallmentsEligibilityResponseInstanceTest() + { + // TODO uncomment below to test "IsType" InstallmentsEligibilityResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InstallmentProvider' + /// + [Fact] + public void InstallmentProviderTest() + { + // TODO unit test for the property 'InstallmentProvider' + } + /// + /// Test the property 'PaymentPlanOptions' + /// + [Fact] + public void PaymentPlanOptionsTest() + { + // TODO unit test for the property 'PaymentPlanOptions' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/LinksDataTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/LinksDataTests.cs new file mode 100644 index 000000000..870717705 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/LinksDataTests.cs @@ -0,0 +1,94 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing LinksData + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class LinksDataTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LinksData + //private LinksData instance; + + public LinksDataTests() + { + // TODO uncomment below to create an instance of LinksData + //instance = new LinksData(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LinksData + /// + [Fact] + public void LinksDataInstanceTest() + { + // TODO uncomment below to test "IsType" LinksData + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Checkout' + /// + [Fact] + public void CheckoutTest() + { + // TODO unit test for the property 'Checkout' + } + /// + /// Test the property 'LearnMore' + /// + [Fact] + public void LearnMoreTest() + { + // TODO unit test for the property 'LearnMore' + } + /// + /// Test the property 'TermsConditions' + /// + [Fact] + public void TermsConditionsTest() + { + // TODO unit test for the property 'TermsConditions' + } + /// + /// Test the property 'PrivacyPolicy' + /// + [Fact] + public void PrivacyPolicyTest() + { + // TODO unit test for the property 'PrivacyPolicy' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/LinksModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/LinksModelTests.cs new file mode 100644 index 000000000..a085ae2c5 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/LinksModelTests.cs @@ -0,0 +1,86 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing LinksModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class LinksModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for LinksModel + //private LinksModel instance; + + public LinksModelTests() + { + // TODO uncomment below to create an instance of LinksModel + //instance = new LinksModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of LinksModel + /// + [Fact] + public void LinksModelInstanceTest() + { + // TODO uncomment below to test "IsType" LinksModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'PrivacyPolicyUrl' + /// + [Fact] + public void PrivacyPolicyUrlTest() + { + // TODO unit test for the property 'PrivacyPolicyUrl' + } + /// + /// Test the property 'TermsAndConditionsUrl' + /// + [Fact] + public void TermsAndConditionsUrlTest() + { + // TODO unit test for the property 'TermsAndConditionsUrl' + } + /// + /// Test the property 'LearnMoreUrl' + /// + [Fact] + public void LearnMoreUrlTest() + { + // TODO unit test for the property 'LearnMoreUrl' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/MockerShopperTokenTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/MockerShopperTokenTests.cs new file mode 100644 index 000000000..cf633c452 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/MockerShopperTokenTests.cs @@ -0,0 +1,78 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing MockerShopperToken + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class MockerShopperTokenTests : IDisposable + { + // TODO uncomment below to declare an instance variable for MockerShopperToken + //private MockerShopperToken instance; + + public MockerShopperTokenTests() + { + // TODO uncomment below to create an instance of MockerShopperToken + //instance = new MockerShopperToken(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of MockerShopperToken + /// + [Fact] + public void MockerShopperTokenInstanceTest() + { + // TODO uncomment below to test "IsType" MockerShopperToken + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Token' + /// + [Fact] + public void TokenTest() + { + // TODO unit test for the property 'Token' + } + /// + /// Test the property 'Last4Digit' + /// + [Fact] + public void Last4DigitTest() + { + // TODO unit test for the property 'Last4Digit' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentMethodModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentMethodModelTests.cs new file mode 100644 index 000000000..1bdaf7ca3 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentMethodModelTests.cs @@ -0,0 +1,110 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing PaymentMethodModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class PaymentMethodModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PaymentMethodModel + //private PaymentMethodModel instance; + + public PaymentMethodModelTests() + { + // TODO uncomment below to create an instance of PaymentMethodModel + //instance = new PaymentMethodModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PaymentMethodModel + /// + [Fact] + public void PaymentMethodModelInstanceTest() + { + // TODO uncomment below to test "IsType" PaymentMethodModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Type' + /// + [Fact] + public void TypeTest() + { + // TODO unit test for the property 'Type' + } + /// + /// Test the property 'Card' + /// + [Fact] + public void CardTest() + { + // TODO unit test for the property 'Card' + } + /// + /// Test the property 'Token' + /// + [Fact] + public void TokenTest() + { + // TODO unit test for the property 'Token' + } + /// + /// Test the property 'BluesnapVaultedShopperToken' + /// + [Fact] + public void BluesnapVaultedShopperTokenTest() + { + // TODO unit test for the property 'BluesnapVaultedShopperToken' + } + /// + /// Test the property 'MockerShopperToken' + /// + [Fact] + public void MockerShopperTokenTest() + { + // TODO unit test for the property 'MockerShopperToken' + } + /// + /// Test the property 'SpreedlyToken' + /// + [Fact] + public void SpreedlyTokenTest() + { + // TODO unit test for the property 'SpreedlyToken' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentMethodTypeTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentMethodTypeTests.cs new file mode 100644 index 000000000..f1b525317 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentMethodTypeTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing PaymentMethodType + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class PaymentMethodTypeTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PaymentMethodType + //private PaymentMethodType instance; + + public PaymentMethodTypeTests() + { + // TODO uncomment below to create an instance of PaymentMethodType + //instance = new PaymentMethodType(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PaymentMethodType + /// + [Fact] + public void PaymentMethodTypeInstanceTest() + { + // TODO uncomment below to test "IsType" PaymentMethodType + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentPlanOptionModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentPlanOptionModelTests.cs new file mode 100644 index 000000000..c2cf7e0d9 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PaymentPlanOptionModelTests.cs @@ -0,0 +1,118 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing PaymentPlanOptionModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class PaymentPlanOptionModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PaymentPlanOptionModel + //private PaymentPlanOptionModel instance; + + public PaymentPlanOptionModelTests() + { + // TODO uncomment below to create an instance of PaymentPlanOptionModel + //instance = new PaymentPlanOptionModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PaymentPlanOptionModel + /// + [Fact] + public void PaymentPlanOptionModelInstanceTest() + { + // TODO uncomment below to test "IsType" PaymentPlanOptionModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'NumberOfInstallments' + /// + [Fact] + public void NumberOfInstallmentsTest() + { + // TODO unit test for the property 'NumberOfInstallments' + } + /// + /// Test the property 'FirstInstallmentAmount' + /// + [Fact] + public void FirstInstallmentAmountTest() + { + // TODO unit test for the property 'FirstInstallmentAmount' + } + /// + /// Test the property 'InstallmentAmount' + /// + [Fact] + public void InstallmentAmountTest() + { + // TODO unit test for the property 'InstallmentAmount' + } + /// + /// Test the property 'LastInstallmentAmount' + /// + [Fact] + public void LastInstallmentAmountTest() + { + // TODO unit test for the property 'LastInstallmentAmount' + } + /// + /// Test the property 'Links' + /// + [Fact] + public void LinksTest() + { + // TODO unit test for the property 'Links' + } + /// + /// Test the property 'TermsAndConditionsBrief' + /// + [Fact] + public void TermsAndConditionsBriefTest() + { + // TODO unit test for the property 'TermsAndConditionsBrief' + } + /// + /// Test the property 'InstallmentFrequency' + /// + [Fact] + public void InstallmentFrequencyTest() + { + // TODO unit test for the property 'InstallmentFrequency' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanDataModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanDataModelTests.cs new file mode 100644 index 000000000..e6bf8d2ce --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanDataModelTests.cs @@ -0,0 +1,134 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing PlanDataModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class PlanDataModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PlanDataModel + //private PlanDataModel instance; + + public PlanDataModelTests() + { + // TODO uncomment below to create an instance of PlanDataModel + //instance = new PlanDataModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PlanDataModel + /// + [Fact] + public void PlanDataModelInstanceTest() + { + // TODO uncomment below to test "IsType" PlanDataModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'TotalAmount' + /// + [Fact] + public void TotalAmountTest() + { + // TODO unit test for the property 'TotalAmount' + } + /// + /// Test the property 'Currency' + /// + [Fact] + public void CurrencyTest() + { + // TODO unit test for the property 'Currency' + } + /// + /// Test the property 'NumberOfInstallments' + /// + [Fact] + public void NumberOfInstallmentsTest() + { + // TODO unit test for the property 'NumberOfInstallments' + } + /// + /// Test the property 'TerminalId' + /// + [Fact] + public void TerminalIdTest() + { + // TODO unit test for the property 'TerminalId' + } + /// + /// Test the property 'PurchaseMethod' + /// + [Fact] + public void PurchaseMethodTest() + { + // TODO unit test for the property 'PurchaseMethod' + } + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'ExtendedParams' + /// + [Fact] + public void ExtendedParamsTest() + { + // TODO unit test for the property 'ExtendedParams' + } + /// + /// Test the property 'FirstInstallmentAmount' + /// + [Fact] + public void FirstInstallmentAmountTest() + { + // TODO unit test for the property 'FirstInstallmentAmount' + } + /// + /// Test the property 'FirstInstallmentDate' + /// + [Fact] + public void FirstInstallmentDateTest() + { + // TODO unit test for the property 'FirstInstallmentDate' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanDataTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanDataTests.cs new file mode 100644 index 000000000..513493c10 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanDataTests.cs @@ -0,0 +1,150 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing PlanData + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class PlanDataTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PlanData + //private PlanData instance; + + public PlanDataTests() + { + // TODO uncomment below to create an instance of PlanData + //instance = new PlanData(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PlanData + /// + [Fact] + public void PlanDataInstanceTest() + { + // TODO uncomment below to test "IsType" PlanData + //Assert.IsType(instance); + } + + + /// + /// Test the property 'TerminalId' + /// + [Fact] + public void TerminalIdTest() + { + // TODO unit test for the property 'TerminalId' + } + /// + /// Test the property 'TotalAmount' + /// + [Fact] + public void TotalAmountTest() + { + // TODO unit test for the property 'TotalAmount' + } + /// + /// Test the property 'FirstInstallmentAmount' + /// + [Fact] + public void FirstInstallmentAmountTest() + { + // TODO unit test for the property 'FirstInstallmentAmount' + } + /// + /// Test the property 'Currency' + /// + [Fact] + public void CurrencyTest() + { + // TODO unit test for the property 'Currency' + } + /// + /// Test the property 'NumberOfInstallments' + /// + [Fact] + public void NumberOfInstallmentsTest() + { + // TODO unit test for the property 'NumberOfInstallments' + } + /// + /// Test the property 'PurchaseMethod' + /// + [Fact] + public void PurchaseMethodTest() + { + // TODO unit test for the property 'PurchaseMethod' + } + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'AllowedInstallmentOptions' + /// + [Fact] + public void AllowedInstallmentOptionsTest() + { + // TODO unit test for the property 'AllowedInstallmentOptions' + } + /// + /// Test the property 'Tags' + /// + [Fact] + public void TagsTest() + { + // TODO unit test for the property 'Tags' + } + /// + /// Test the property 'ProcessingData' + /// + [Fact] + public void ProcessingDataTest() + { + // TODO unit test for the property 'ProcessingData' + } + /// + /// Test the property 'FirstInstallmentDate' + /// + [Fact] + public void FirstInstallmentDateTest() + { + // TODO unit test for the property 'FirstInstallmentDate' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanErrorResponseAllOfTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanErrorResponseAllOfTests.cs new file mode 100644 index 000000000..99db7d035 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanErrorResponseAllOfTests.cs @@ -0,0 +1,70 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing PlanErrorResponseAllOf + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class PlanErrorResponseAllOfTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PlanErrorResponseAllOf + //private PlanErrorResponseAllOf instance; + + public PlanErrorResponseAllOfTests() + { + // TODO uncomment below to create an instance of PlanErrorResponseAllOf + //instance = new PlanErrorResponseAllOf(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PlanErrorResponseAllOf + /// + [Fact] + public void PlanErrorResponseAllOfInstanceTest() + { + // TODO uncomment below to test "IsType" PlanErrorResponseAllOf + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InstallmentPlanNumber' + /// + [Fact] + public void InstallmentPlanNumberTest() + { + // TODO unit test for the property 'InstallmentPlanNumber' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanErrorResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanErrorResponseTests.cs new file mode 100644 index 000000000..5d4f8827c --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanErrorResponseTests.cs @@ -0,0 +1,86 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing PlanErrorResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class PlanErrorResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PlanErrorResponse + //private PlanErrorResponse instance; + + public PlanErrorResponseTests() + { + // TODO uncomment below to create an instance of PlanErrorResponse + //instance = new PlanErrorResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PlanErrorResponse + /// + [Fact] + public void PlanErrorResponseInstanceTest() + { + // TODO uncomment below to test "IsType" PlanErrorResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'TraceId' + /// + [Fact] + public void TraceIdTest() + { + // TODO unit test for the property 'TraceId' + } + /// + /// Test the property 'Error' + /// + [Fact] + public void ErrorTest() + { + // TODO unit test for the property 'Error' + } + /// + /// Test the property 'InstallmentPlanNumber' + /// + [Fact] + public void InstallmentPlanNumberTest() + { + // TODO unit test for the property 'InstallmentPlanNumber' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanStatusTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanStatusTests.cs new file mode 100644 index 000000000..bf7a38a9c --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PlanStatusTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing PlanStatus + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class PlanStatusTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PlanStatus + //private PlanStatus instance; + + public PlanStatusTests() + { + // TODO uncomment below to create an instance of PlanStatus + //instance = new PlanStatus(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PlanStatus + /// + [Fact] + public void PlanStatusInstanceTest() + { + // TODO uncomment below to test "IsType" PlanStatus + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ProcessingData2Tests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ProcessingData2Tests.cs new file mode 100644 index 000000000..febe8a8f7 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ProcessingData2Tests.cs @@ -0,0 +1,86 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing ProcessingData2 + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ProcessingData2Tests : IDisposable + { + // TODO uncomment below to declare an instance variable for ProcessingData2 + //private ProcessingData2 instance; + + public ProcessingData2Tests() + { + // TODO uncomment below to create an instance of ProcessingData2 + //instance = new ProcessingData2(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ProcessingData2 + /// + [Fact] + public void ProcessingData2InstanceTest() + { + // TODO uncomment below to test "IsType" ProcessingData2 + //Assert.IsType(instance); + } + + + /// + /// Test the property 'AttemptThreeDSecured' + /// + [Fact] + public void AttemptThreeDSecuredTest() + { + // TODO unit test for the property 'AttemptThreeDSecured' + } + /// + /// Test the property 'SoftDescriptor' + /// + [Fact] + public void SoftDescriptorTest() + { + // TODO unit test for the property 'SoftDescriptor' + } + /// + /// Test the property 'ThreeDSData' + /// + [Fact] + public void ThreeDSDataTest() + { + // TODO unit test for the property 'ThreeDSData' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ProcessingDataTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ProcessingDataTests.cs new file mode 100644 index 000000000..624e9e6f5 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ProcessingDataTests.cs @@ -0,0 +1,86 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing ProcessingData + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ProcessingDataTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ProcessingData + //private ProcessingData instance; + + public ProcessingDataTests() + { + // TODO uncomment below to create an instance of ProcessingData + //instance = new ProcessingData(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ProcessingData + /// + [Fact] + public void ProcessingDataInstanceTest() + { + // TODO uncomment below to test "IsType" ProcessingData + //Assert.IsType(instance); + } + + + /// + /// Test the property 'AttemptThreeDSecured' + /// + [Fact] + public void AttemptThreeDSecuredTest() + { + // TODO unit test for the property 'AttemptThreeDSecured' + } + /// + /// Test the property 'SoftDescriptor' + /// + [Fact] + public void SoftDescriptorTest() + { + // TODO unit test for the property 'SoftDescriptor' + } + /// + /// Test the property 'ThreeDSData' + /// + [Fact] + public void ThreeDSDataTest() + { + // TODO unit test for the property 'ThreeDSData' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PurchaseMethodTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PurchaseMethodTests.cs new file mode 100644 index 000000000..6b67460e7 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/PurchaseMethodTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing PurchaseMethod + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class PurchaseMethodTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PurchaseMethod + //private PurchaseMethod instance; + + public PurchaseMethodTests() + { + // TODO uncomment below to create an instance of PurchaseMethod + //instance = new PurchaseMethod(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PurchaseMethod + /// + [Fact] + public void PurchaseMethodInstanceTest() + { + // TODO uncomment below to test "IsType" PurchaseMethod + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RedirectionEndpointsModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RedirectionEndpointsModelTests.cs new file mode 100644 index 000000000..8d7c10aac --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RedirectionEndpointsModelTests.cs @@ -0,0 +1,94 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing RedirectionEndpointsModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class RedirectionEndpointsModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for RedirectionEndpointsModel + //private RedirectionEndpointsModel instance; + + public RedirectionEndpointsModelTests() + { + // TODO uncomment below to create an instance of RedirectionEndpointsModel + //instance = new RedirectionEndpointsModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of RedirectionEndpointsModel + /// + [Fact] + public void RedirectionEndpointsModelInstanceTest() + { + // TODO uncomment below to test "IsType" RedirectionEndpointsModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'AuthorizeSucceeded' + /// + [Fact] + public void AuthorizeSucceededTest() + { + // TODO unit test for the property 'AuthorizeSucceeded' + } + /// + /// Test the property 'Succeeded' + /// + [Fact] + public void SucceededTest() + { + // TODO unit test for the property 'Succeeded' + } + /// + /// Test the property 'AuthorizeFailed' + /// + [Fact] + public void AuthorizeFailedTest() + { + // TODO unit test for the property 'AuthorizeFailed' + } + /// + /// Test the property 'Failed' + /// + [Fact] + public void FailedTest() + { + // TODO unit test for the property 'Failed' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundModelTests.cs new file mode 100644 index 000000000..ea9b46c7c --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundModelTests.cs @@ -0,0 +1,110 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing RefundModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class RefundModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for RefundModel + //private RefundModel instance; + + public RefundModelTests() + { + // TODO uncomment below to create an instance of RefundModel + //instance = new RefundModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of RefundModel + /// + [Fact] + public void RefundModelInstanceTest() + { + // TODO uncomment below to test "IsType" RefundModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'RefundId' + /// + [Fact] + public void RefundIdTest() + { + // TODO unit test for the property 'RefundId' + } + /// + /// Test the property 'SubmitDate' + /// + [Fact] + public void SubmitDateTest() + { + // TODO unit test for the property 'SubmitDate' + } + /// + /// Test the property 'TotalAmount' + /// + [Fact] + public void TotalAmountTest() + { + // TODO unit test for the property 'TotalAmount' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'NonCreditRefundAmount' + /// + [Fact] + public void NonCreditRefundAmountTest() + { + // TODO unit test for the property 'NonCreditRefundAmount' + } + /// + /// Test the property 'CreditRefundAmount' + /// + [Fact] + public void CreditRefundAmountTest() + { + // TODO unit test for the property 'CreditRefundAmount' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundStatusTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundStatusTests.cs new file mode 100644 index 000000000..06e5772e4 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundStatusTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing RefundStatus + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class RefundStatusTests : IDisposable + { + // TODO uncomment below to declare an instance variable for RefundStatus + //private RefundStatus instance; + + public RefundStatusTests() + { + // TODO uncomment below to create an instance of RefundStatus + //instance = new RefundStatus(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of RefundStatus + /// + [Fact] + public void RefundStatusInstanceTest() + { + // TODO uncomment below to test "IsType" RefundStatus + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundStrategyTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundStrategyTests.cs new file mode 100644 index 000000000..f5bd971ee --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundStrategyTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing RefundStrategy + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class RefundStrategyTests : IDisposable + { + // TODO uncomment below to declare an instance variable for RefundStrategy + //private RefundStrategy instance; + + public RefundStrategyTests() + { + // TODO uncomment below to create an instance of RefundStrategy + //instance = new RefundStrategy(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of RefundStrategy + /// + [Fact] + public void RefundStrategyInstanceTest() + { + // TODO uncomment below to test "IsType" RefundStrategy + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundSummaryTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundSummaryTests.cs new file mode 100644 index 000000000..db365bf5d --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/RefundSummaryTests.cs @@ -0,0 +1,94 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing RefundSummary + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class RefundSummaryTests : IDisposable + { + // TODO uncomment below to declare an instance variable for RefundSummary + //private RefundSummary instance; + + public RefundSummaryTests() + { + // TODO uncomment below to create an instance of RefundSummary + //instance = new RefundSummary(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of RefundSummary + /// + [Fact] + public void RefundSummaryInstanceTest() + { + // TODO uncomment below to test "IsType" RefundSummary + //Assert.IsType(instance); + } + + + /// + /// Test the property 'TotalAmount' + /// + [Fact] + public void TotalAmountTest() + { + // TODO unit test for the property 'TotalAmount' + } + /// + /// Test the property 'FailedAmount' + /// + [Fact] + public void FailedAmountTest() + { + // TODO unit test for the property 'FailedAmount' + } + /// + /// Test the property 'SucceededAmount' + /// + [Fact] + public void SucceededAmountTest() + { + // TODO unit test for the property 'SucceededAmount' + } + /// + /// Test the property 'PendingAmount' + /// + [Fact] + public void PendingAmountTest() + { + // TODO unit test for the property 'PendingAmount' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/SearchInstallmentPlanResponseItemTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/SearchInstallmentPlanResponseItemTests.cs new file mode 100644 index 000000000..96355430a --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/SearchInstallmentPlanResponseItemTests.cs @@ -0,0 +1,190 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing SearchInstallmentPlanResponseItem + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class SearchInstallmentPlanResponseItemTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SearchInstallmentPlanResponseItem + //private SearchInstallmentPlanResponseItem instance; + + public SearchInstallmentPlanResponseItemTests() + { + // TODO uncomment below to create an instance of SearchInstallmentPlanResponseItem + //instance = new SearchInstallmentPlanResponseItem(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SearchInstallmentPlanResponseItem + /// + [Fact] + public void SearchInstallmentPlanResponseItemInstanceTest() + { + // TODO uncomment below to test "IsType" SearchInstallmentPlanResponseItem + //Assert.IsType(instance); + } + + + /// + /// Test the property 'InstallmentPlanNumber' + /// + [Fact] + public void InstallmentPlanNumberTest() + { + // TODO unit test for the property 'InstallmentPlanNumber' + } + /// + /// Test the property 'DateCreated' + /// + [Fact] + public void DateCreatedTest() + { + // TODO unit test for the property 'DateCreated' + } + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'PurchaseMethod' + /// + [Fact] + public void PurchaseMethodTest() + { + // TODO unit test for the property 'PurchaseMethod' + } + /// + /// Test the property 'Status' + /// + [Fact] + public void StatusTest() + { + // TODO unit test for the property 'Status' + } + /// + /// Test the property 'Currency' + /// + [Fact] + public void CurrencyTest() + { + // TODO unit test for the property 'Currency' + } + /// + /// Test the property 'OriginalAmount' + /// + [Fact] + public void OriginalAmountTest() + { + // TODO unit test for the property 'OriginalAmount' + } + /// + /// Test the property 'Amount' + /// + [Fact] + public void AmountTest() + { + // TODO unit test for the property 'Amount' + } + /// + /// Test the property 'Authorization' + /// + [Fact] + public void AuthorizationTest() + { + // TODO unit test for the property 'Authorization' + } + /// + /// Test the property 'Shopper' + /// + [Fact] + public void ShopperTest() + { + // TODO unit test for the property 'Shopper' + } + /// + /// Test the property 'BillingAddress' + /// + [Fact] + public void BillingAddressTest() + { + // TODO unit test for the property 'BillingAddress' + } + /// + /// Test the property 'PaymentMethod' + /// + [Fact] + public void PaymentMethodTest() + { + // TODO unit test for the property 'PaymentMethod' + } + /// + /// Test the property 'ExtendedParams' + /// + [Fact] + public void ExtendedParamsTest() + { + // TODO unit test for the property 'ExtendedParams' + } + /// + /// Test the property 'Installments' + /// + [Fact] + public void InstallmentsTest() + { + // TODO unit test for the property 'Installments' + } + /// + /// Test the property 'Refunds' + /// + [Fact] + public void RefundsTest() + { + // TODO unit test for the property 'Refunds' + } + /// + /// Test the property 'Links' + /// + [Fact] + public void LinksTest() + { + // TODO unit test for the property 'Links' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShippingStatus2Tests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShippingStatus2Tests.cs new file mode 100644 index 000000000..28213070f --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShippingStatus2Tests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing ShippingStatus2 + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ShippingStatus2Tests : IDisposable + { + // TODO uncomment below to declare an instance variable for ShippingStatus2 + //private ShippingStatus2 instance; + + public ShippingStatus2Tests() + { + // TODO uncomment below to create an instance of ShippingStatus2 + //instance = new ShippingStatus2(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ShippingStatus2 + /// + [Fact] + public void ShippingStatus2InstanceTest() + { + // TODO uncomment below to test "IsType" ShippingStatus2 + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShippingStatusTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShippingStatusTests.cs new file mode 100644 index 000000000..744d65cf9 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShippingStatusTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing ShippingStatus + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ShippingStatusTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ShippingStatus + //private ShippingStatus instance; + + public ShippingStatusTests() + { + // TODO uncomment below to create an instance of ShippingStatus + //instance = new ShippingStatus(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ShippingStatus + /// + [Fact] + public void ShippingStatusInstanceTest() + { + // TODO uncomment below to test "IsType" ShippingStatus + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShopperDataTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShopperDataTests.cs new file mode 100644 index 000000000..4ab29d210 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ShopperDataTests.cs @@ -0,0 +1,94 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing ShopperData + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ShopperDataTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ShopperData + //private ShopperData instance; + + public ShopperDataTests() + { + // TODO uncomment below to create an instance of ShopperData + //instance = new ShopperData(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ShopperData + /// + [Fact] + public void ShopperDataInstanceTest() + { + // TODO uncomment below to test "IsType" ShopperData + //Assert.IsType(instance); + } + + + /// + /// Test the property 'FullName' + /// + [Fact] + public void FullNameTest() + { + // TODO unit test for the property 'FullName' + } + /// + /// Test the property 'Email' + /// + [Fact] + public void EmailTest() + { + // TODO unit test for the property 'Email' + } + /// + /// Test the property 'PhoneNumber' + /// + [Fact] + public void PhoneNumberTest() + { + // TODO unit test for the property 'PhoneNumber' + } + /// + /// Test the property 'Culture' + /// + [Fact] + public void CultureTest() + { + // TODO unit test for the property 'Culture' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/SpreedlyTokenTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/SpreedlyTokenTests.cs new file mode 100644 index 000000000..a854bd637 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/SpreedlyTokenTests.cs @@ -0,0 +1,78 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing SpreedlyToken + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class SpreedlyTokenTests : IDisposable + { + // TODO uncomment below to declare an instance variable for SpreedlyToken + //private SpreedlyToken instance; + + public SpreedlyTokenTests() + { + // TODO uncomment below to create an instance of SpreedlyToken + //instance = new SpreedlyToken(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of SpreedlyToken + /// + [Fact] + public void SpreedlyTokenInstanceTest() + { + // TODO uncomment below to test "IsType" SpreedlyToken + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Token' + /// + [Fact] + public void TokenTest() + { + // TODO unit test for the property 'Token' + } + /// + /// Test the property 'Last4Digit' + /// + [Fact] + public void Last4DigitTest() + { + // TODO unit test for the property 'Last4Digit' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/TestModesTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/TestModesTests.cs new file mode 100644 index 000000000..fea43c0eb --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/TestModesTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing TestModes + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class TestModesTests : IDisposable + { + // TODO uncomment below to declare an instance variable for TestModes + //private TestModes instance; + + public TestModesTests() + { + // TODO uncomment below to create an instance of TestModes + //instance = new TestModes(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of TestModes + /// + [Fact] + public void TestModesInstanceTest() + { + // TODO uncomment below to test "IsType" TestModes + //Assert.IsType(instance); + } + + + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDSData2Tests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDSData2Tests.cs new file mode 100644 index 000000000..1ffcc9295 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDSData2Tests.cs @@ -0,0 +1,110 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing ThreeDSData2 + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ThreeDSData2Tests : IDisposable + { + // TODO uncomment below to declare an instance variable for ThreeDSData2 + //private ThreeDSData2 instance; + + public ThreeDSData2Tests() + { + // TODO uncomment below to create an instance of ThreeDSData2 + //instance = new ThreeDSData2(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ThreeDSData2 + /// + [Fact] + public void ThreeDSData2InstanceTest() + { + // TODO uncomment below to test "IsType" ThreeDSData2 + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ECI' + /// + [Fact] + public void ECITest() + { + // TODO unit test for the property 'ECI' + } + /// + /// Test the property 'CAVV' + /// + [Fact] + public void CAVVTest() + { + // TODO unit test for the property 'CAVV' + } + /// + /// Test the property 'XID' + /// + [Fact] + public void XIDTest() + { + // TODO unit test for the property 'XID' + } + /// + /// Test the property 'DirectoryServerTxnId' + /// + [Fact] + public void DirectoryServerTxnIdTest() + { + // TODO unit test for the property 'DirectoryServerTxnId' + } + /// + /// Test the property 'ThreeDSVersion' + /// + [Fact] + public void ThreeDSVersionTest() + { + // TODO unit test for the property 'ThreeDSVersion' + } + /// + /// Test the property 'TransactionId' + /// + [Fact] + public void TransactionIdTest() + { + // TODO unit test for the property 'TransactionId' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDSDataTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDSDataTests.cs new file mode 100644 index 000000000..a146dd525 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDSDataTests.cs @@ -0,0 +1,110 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing ThreeDSData + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ThreeDSDataTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ThreeDSData + //private ThreeDSData instance; + + public ThreeDSDataTests() + { + // TODO uncomment below to create an instance of ThreeDSData + //instance = new ThreeDSData(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ThreeDSData + /// + [Fact] + public void ThreeDSDataInstanceTest() + { + // TODO uncomment below to test "IsType" ThreeDSData + //Assert.IsType(instance); + } + + + /// + /// Test the property 'ECI' + /// + [Fact] + public void ECITest() + { + // TODO unit test for the property 'ECI' + } + /// + /// Test the property 'CAVV' + /// + [Fact] + public void CAVVTest() + { + // TODO unit test for the property 'CAVV' + } + /// + /// Test the property 'XID' + /// + [Fact] + public void XIDTest() + { + // TODO unit test for the property 'XID' + } + /// + /// Test the property 'DirectoryServerTxnId' + /// + [Fact] + public void DirectoryServerTxnIdTest() + { + // TODO unit test for the property 'DirectoryServerTxnId' + } + /// + /// Test the property 'ThreeDSVersion' + /// + [Fact] + public void ThreeDSVersionTest() + { + // TODO unit test for the property 'ThreeDSVersion' + } + /// + /// Test the property 'TransactionId' + /// + [Fact] + public void TransactionIdTest() + { + // TODO unit test for the property 'TransactionId' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDsRedirectDataV3Tests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDsRedirectDataV3Tests.cs new file mode 100644 index 000000000..1be222653 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/ThreeDsRedirectDataV3Tests.cs @@ -0,0 +1,86 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing ThreeDsRedirectDataV3 + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class ThreeDsRedirectDataV3Tests : IDisposable + { + // TODO uncomment below to declare an instance variable for ThreeDsRedirectDataV3 + //private ThreeDsRedirectDataV3 instance; + + public ThreeDsRedirectDataV3Tests() + { + // TODO uncomment below to create an instance of ThreeDsRedirectDataV3 + //instance = new ThreeDsRedirectDataV3(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ThreeDsRedirectDataV3 + /// + [Fact] + public void ThreeDsRedirectDataV3InstanceTest() + { + // TODO uncomment below to test "IsType" ThreeDsRedirectDataV3 + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Url' + /// + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } + /// + /// Test the property 'Verb' + /// + [Fact] + public void VerbTest() + { + // TODO unit test for the property 'Verb' + } + /// + /// Test the property 'Params' + /// + [Fact] + public void ParamsTest() + { + // TODO unit test for the property 'Params' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/UpdateOrderRequestTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/UpdateOrderRequestTests.cs new file mode 100644 index 000000000..3178442d2 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/UpdateOrderRequestTests.cs @@ -0,0 +1,94 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing UpdateOrderRequest + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class UpdateOrderRequestTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UpdateOrderRequest + //private UpdateOrderRequest instance; + + public UpdateOrderRequestTests() + { + // TODO uncomment below to create an instance of UpdateOrderRequest + //instance = new UpdateOrderRequest(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UpdateOrderRequest + /// + [Fact] + public void UpdateOrderRequestInstanceTest() + { + // TODO uncomment below to test "IsType" UpdateOrderRequest + //Assert.IsType(instance); + } + + + /// + /// Test the property 'TrackingNumber' + /// + [Fact] + public void TrackingNumberTest() + { + // TODO unit test for the property 'TrackingNumber' + } + /// + /// Test the property 'RefOrderNumber' + /// + [Fact] + public void RefOrderNumberTest() + { + // TODO unit test for the property 'RefOrderNumber' + } + /// + /// Test the property 'ShippingStatus' + /// + [Fact] + public void ShippingStatusTest() + { + // TODO unit test for the property 'ShippingStatus' + } + /// + /// Test the property 'Capture' + /// + [Fact] + public void CaptureTest() + { + // TODO unit test for the property 'Capture' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/UxSettingsModelTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/UxSettingsModelTests.cs new file mode 100644 index 000000000..a0383f9d4 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/UxSettingsModelTests.cs @@ -0,0 +1,70 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing UxSettingsModel + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class UxSettingsModelTests : IDisposable + { + // TODO uncomment below to declare an instance variable for UxSettingsModel + //private UxSettingsModel instance; + + public UxSettingsModelTests() + { + // TODO uncomment below to create an instance of UxSettingsModel + //instance = new UxSettingsModel(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of UxSettingsModel + /// + [Fact] + public void UxSettingsModelInstanceTest() + { + // TODO uncomment below to test "IsType" UxSettingsModel + //Assert.IsType(instance); + } + + + /// + /// Test the property 'DisplayedInstallmentOptions' + /// + [Fact] + public void DisplayedInstallmentOptionsTest() + { + // TODO unit test for the property 'DisplayedInstallmentOptions' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/VerifyAuthorizationResponseTests.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/VerifyAuthorizationResponseTests.cs new file mode 100644 index 000000000..1c4229450 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/Model/VerifyAuthorizationResponseTests.cs @@ -0,0 +1,86 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using CsharpSplitit.Net.Api; +using CsharpSplitit.Net.Model; +using CsharpSplitit.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Test.Model +{ + /// + /// Class for testing VerifyAuthorizationResponse + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class VerifyAuthorizationResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for VerifyAuthorizationResponse + //private VerifyAuthorizationResponse instance; + + public VerifyAuthorizationResponseTests() + { + // TODO uncomment below to create an instance of VerifyAuthorizationResponse + //instance = new VerifyAuthorizationResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of VerifyAuthorizationResponse + /// + [Fact] + public void VerifyAuthorizationResponseInstanceTest() + { + // TODO uncomment below to test "IsType" VerifyAuthorizationResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'IsAuthorized' + /// + [Fact] + public void IsAuthorizedTest() + { + // TODO unit test for the property 'IsAuthorized' + } + /// + /// Test the property 'AuthorizationAmount' + /// + [Fact] + public void AuthorizationAmountTest() + { + // TODO unit test for the property 'AuthorizationAmount' + } + /// + /// Test the property 'Authorization' + /// + [Fact] + public void AuthorizationTest() + { + // TODO unit test for the property 'Authorization' + } + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/SimpleTest.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/SimpleTest.cs similarity index 57% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/SimpleTest.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/SimpleTest.cs index 4fbc3c882..02cedccb2 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net.Test/SimpleTest.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net.Test/SimpleTest.cs @@ -1,20 +1,19 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ using System; using Xunit; -using CsharpBodyWithObjectField.Net.Client; -using CsharpBodyWithObjectField.Net.Model; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; -namespace CsharpBodyWithObjectField.Net.Test +namespace CsharpSplitit.Net.Test { /// /// Boilerplate for writing some simple tests @@ -37,9 +36,10 @@ public void Dispose() [Fact] public void ClientTest() { - CsharpBodyWithObjectFieldClient client = new CsharpBodyWithObjectFieldClient(); - // Configure API key authorization: ApiKeyAuth - client.SetApiKey("YOUR_API_KEY"); + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for "application" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable("CLIENT_ID")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable("CLIENT_SECRET")); Assert.NotNull(client); } diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Api/InstallmentPlanApi.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Api/InstallmentPlanApi.cs new file mode 100644 index 000000000..8acf6e719 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Api/InstallmentPlanApi.cs @@ -0,0 +1,3000 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Client.Auth; +using CsharpSplitit.Net.Model; + +namespace CsharpSplitit.Net.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInstallmentPlanApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// InstallmentPlanCancelResponse + InstallmentPlanCancelResponse Cancel(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanCancelResponse + ApiResponse CancelWithHttpInfo(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// InstallmentsEligibilityResponse + InstallmentsEligibilityResponse CheckEligibility(string xSplititIdempotencyKey, string xSplititTouchPoint, CheckInstallmentsEligibilityRequest checkInstallmentsEligibilityRequest, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// ApiResponse of InstallmentsEligibilityResponse + ApiResponse CheckEligibilityWithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, CheckInstallmentsEligibilityRequest checkInstallmentsEligibilityRequest, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// InstallmentPlanGetResponse + InstallmentPlanGetResponse Get(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanGetResponse + ApiResponse GetWithHttpInfo(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// InitiatePlanResponse + InitiatePlanResponse Post(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InitiatePlanResponse + ApiResponse PostWithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// InstallmentPlanCreateResponse + InstallmentPlanCreateResponse Post2(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanCreateResponse + ApiResponse Post2WithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// InstallmentPlanRefundResponse + InstallmentPlanRefundResponse Refund(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanRefundRequest installmentPlanRefundRequest, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanRefundResponse + ApiResponse RefundWithHttpInfo(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanRefundRequest installmentPlanRefundRequest, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// InstallmentPlanSearchResponse + InstallmentPlanSearchResponse Search(string xSplititIdempotencyKey, string xSplititTouchPoint, string installmentPlanNumber = default(string), string refOrderNumber = default(string), Dictionary extendedParams = default(Dictionary), int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanSearchResponse + ApiResponse SearchWithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, string installmentPlanNumber = default(string), string refOrderNumber = default(string), Dictionary extendedParams = default(Dictionary), int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// InstallmentPlanUpdateResponse + InstallmentPlanUpdateResponse UpdateOrder(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, UpdateOrderRequest updateOrderRequest, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanUpdateResponse + ApiResponse UpdateOrderWithHttpInfo(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, UpdateOrderRequest updateOrderRequest, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// InstallmentPlanUpdateResponse + InstallmentPlanUpdateResponse UpdateOrder2(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanUpdateRequestByIdentifier installmentPlanUpdateRequestByIdentifier, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanUpdateResponse + ApiResponse UpdateOrder2WithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanUpdateRequestByIdentifier installmentPlanUpdateRequestByIdentifier, int operationIndex = 0); + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// VerifyAuthorizationResponse + VerifyAuthorizationResponse VerifyAuthorization(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// ApiResponse of VerifyAuthorizationResponse + ApiResponse VerifyAuthorizationWithHttpInfo(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInstallmentPlanApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanCancelResponse + System.Threading.Tasks.Task CancelAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanCancelResponse) + System.Threading.Tasks.Task> CancelWithHttpInfoAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentsEligibilityResponse + System.Threading.Tasks.Task CheckEligibilityAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, CheckInstallmentsEligibilityRequest checkInstallmentsEligibilityRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentsEligibilityResponse) + System.Threading.Tasks.Task> CheckEligibilityWithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, CheckInstallmentsEligibilityRequest checkInstallmentsEligibilityRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanGetResponse + System.Threading.Tasks.Task GetAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanGetResponse) + System.Threading.Tasks.Task> GetWithHttpInfoAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InitiatePlanResponse + System.Threading.Tasks.Task PostAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InitiatePlanResponse) + System.Threading.Tasks.Task> PostWithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanCreateResponse + System.Threading.Tasks.Task Post2Async(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanCreateResponse) + System.Threading.Tasks.Task> Post2WithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanRefundResponse + System.Threading.Tasks.Task RefundAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanRefundRequest installmentPlanRefundRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanRefundResponse) + System.Threading.Tasks.Task> RefundWithHttpInfoAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanRefundRequest installmentPlanRefundRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanSearchResponse + System.Threading.Tasks.Task SearchAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, string installmentPlanNumber = default(string), string refOrderNumber = default(string), Dictionary extendedParams = default(Dictionary), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanSearchResponse) + System.Threading.Tasks.Task> SearchWithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, string installmentPlanNumber = default(string), string refOrderNumber = default(string), Dictionary extendedParams = default(Dictionary), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanUpdateResponse + System.Threading.Tasks.Task UpdateOrderAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, UpdateOrderRequest updateOrderRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanUpdateResponse) + System.Threading.Tasks.Task> UpdateOrderWithHttpInfoAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, UpdateOrderRequest updateOrderRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanUpdateResponse + System.Threading.Tasks.Task UpdateOrder2Async(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanUpdateRequestByIdentifier installmentPlanUpdateRequestByIdentifier, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanUpdateResponse) + System.Threading.Tasks.Task> UpdateOrder2WithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanUpdateRequestByIdentifier installmentPlanUpdateRequestByIdentifier, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of VerifyAuthorizationResponse + System.Threading.Tasks.Task VerifyAuthorizationAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// + /// + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (VerifyAuthorizationResponse) + System.Threading.Tasks.Task> VerifyAuthorizationWithHttpInfoAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IInstallmentPlanApi : IInstallmentPlanApiSync, IInstallmentPlanApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class InstallmentPlanApi : IInstallmentPlanApi + { + private CsharpSplitit.Net.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public InstallmentPlanApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public InstallmentPlanApi(string basePath) + { + this.Configuration = CsharpSplitit.Net.Client.Configuration.MergeConfigurations( + CsharpSplitit.Net.Client.GlobalConfiguration.Instance, + new CsharpSplitit.Net.Client.Configuration { BasePath = basePath } + ); + this.Client = new CsharpSplitit.Net.Client.ApiClient(this.Configuration); + this.AsynchronousClient = new CsharpSplitit.Net.Client.ApiClient(this.Configuration); + this.ExceptionFactory = CsharpSplitit.Net.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public InstallmentPlanApi(CsharpSplitit.Net.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = CsharpSplitit.Net.Client.Configuration.MergeConfigurations( + CsharpSplitit.Net.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new CsharpSplitit.Net.Client.ApiClient(this.Configuration); + this.AsynchronousClient = new CsharpSplitit.Net.Client.ApiClient(this.Configuration); + this.ExceptionFactory = CsharpSplitit.Net.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 InstallmentPlanApi(CsharpSplitit.Net.Client.ISynchronousClient client, CsharpSplitit.Net.Client.IAsynchronousClient asyncClient, CsharpSplitit.Net.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = CsharpSplitit.Net.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public CsharpSplitit.Net.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public CsharpSplitit.Net.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public CsharpSplitit.Net.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public CsharpSplitit.Net.Client.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 + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// InstallmentPlanCancelResponse + public InstallmentPlanCancelResponse Cancel(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = CancelWithHttpInfo(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanCancelResponse + public CsharpSplitit.Net.Client.ApiResponse CancelWithHttpInfo(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0) + { + // verify the required parameter 'installmentPlanNumber' is set + if (installmentPlanNumber == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanNumber' when calling InstallmentPlanApi->Cancel"); + } + + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Cancel"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Cancel"); + } + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("installmentPlanNumber", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(installmentPlanNumber)); // path parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint)); // header parameter + + localVarRequestOptions.Operation = "InstallmentPlanApi.Cancel"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/installmentplans/{installmentPlanNumber}/cancel", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Cancel", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanCancelResponse + public async System.Threading.Tasks.Task CancelAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = await CancelWithHttpInfoAsync(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanCancelResponse) + public async System.Threading.Tasks.Task> CancelWithHttpInfoAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'installmentPlanNumber' is set + if (installmentPlanNumber == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanNumber' when calling InstallmentPlanApi->Cancel"); + } + + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Cancel"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Cancel"); + } + + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("installmentPlanNumber", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(installmentPlanNumber)); // path parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey, dataFormat: "")); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint, dataFormat: "")); // header parameter + + localVarRequestOptions.Operation = "InstallmentPlanApi.Cancel"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/installmentplans/{installmentPlanNumber}/cancel", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Cancel", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// InstallmentsEligibilityResponse + public InstallmentsEligibilityResponse CheckEligibility(string xSplititIdempotencyKey, string xSplititTouchPoint, CheckInstallmentsEligibilityRequest checkInstallmentsEligibilityRequest, int operationIndex = 0) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = CheckEligibilityWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, checkInstallmentsEligibilityRequest); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// ApiResponse of InstallmentsEligibilityResponse + public CsharpSplitit.Net.Client.ApiResponse CheckEligibilityWithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, CheckInstallmentsEligibilityRequest checkInstallmentsEligibilityRequest, int operationIndex = 0) + { + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->CheckEligibility"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->CheckEligibility"); + } + + // verify the required parameter 'checkInstallmentsEligibilityRequest' is set + if (checkInstallmentsEligibilityRequest == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'checkInstallmentsEligibilityRequest' when calling InstallmentPlanApi->CheckEligibility"); + } + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint)); // header parameter + localVarRequestOptions.Data = checkInstallmentsEligibilityRequest; + + localVarRequestOptions.Operation = "InstallmentPlanApi.CheckEligibility"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/installmentplans/check-eligibility", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CheckEligibility", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentsEligibilityResponse + public async System.Threading.Tasks.Task CheckEligibilityAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, CheckInstallmentsEligibilityRequest checkInstallmentsEligibilityRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = await CheckEligibilityWithHttpInfoAsync(xSplititIdempotencyKey, xSplititTouchPoint, checkInstallmentsEligibilityRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentsEligibilityResponse) + public async System.Threading.Tasks.Task> CheckEligibilityWithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, CheckInstallmentsEligibilityRequest checkInstallmentsEligibilityRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->CheckEligibility"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->CheckEligibility"); + } + + // verify the required parameter 'checkInstallmentsEligibilityRequest' is set + if (checkInstallmentsEligibilityRequest == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'checkInstallmentsEligibilityRequest' when calling InstallmentPlanApi->CheckEligibility"); + } + + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey, dataFormat: "")); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint, dataFormat: "")); // header parameter + localVarRequestOptions.Data = checkInstallmentsEligibilityRequest; + + localVarRequestOptions.Operation = "InstallmentPlanApi.CheckEligibility"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/installmentplans/check-eligibility", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CheckEligibility", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// InstallmentPlanGetResponse + public InstallmentPlanGetResponse Get(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = GetWithHttpInfo(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanGetResponse + public CsharpSplitit.Net.Client.ApiResponse GetWithHttpInfo(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0) + { + // verify the required parameter 'installmentPlanNumber' is set + if (installmentPlanNumber == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanNumber' when calling InstallmentPlanApi->Get"); + } + + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Get"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Get"); + } + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("installmentPlanNumber", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(installmentPlanNumber)); // path parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint)); // header parameter + + localVarRequestOptions.Operation = "InstallmentPlanApi.Get"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/api/installmentplans/{installmentPlanNumber}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Get", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanGetResponse + public async System.Threading.Tasks.Task GetAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = await GetWithHttpInfoAsync(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanGetResponse) + public async System.Threading.Tasks.Task> GetWithHttpInfoAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'installmentPlanNumber' is set + if (installmentPlanNumber == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanNumber' when calling InstallmentPlanApi->Get"); + } + + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Get"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Get"); + } + + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("installmentPlanNumber", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(installmentPlanNumber)); // path parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey, dataFormat: "")); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint, dataFormat: "")); // header parameter + + localVarRequestOptions.Operation = "InstallmentPlanApi.Get"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/api/installmentplans/{installmentPlanNumber}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Get", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// InitiatePlanResponse + public InitiatePlanResponse Post(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), int operationIndex = 0) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = PostWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InitiatePlanResponse + public CsharpSplitit.Net.Client.ApiResponse PostWithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), int operationIndex = 0) + { + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Post"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Post"); + } + + // verify the required parameter 'installmentPlanInitiateRequest' is set + if (installmentPlanInitiateRequest == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanInitiateRequest' when calling InstallmentPlanApi->Post"); + } + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (xSplititTestMode != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TestMode", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTestMode)); // header parameter + } + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint)); // header parameter + localVarRequestOptions.Data = installmentPlanInitiateRequest; + + localVarRequestOptions.Operation = "InstallmentPlanApi.Post"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/installmentplans/initiate", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Post", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InitiatePlanResponse + public async System.Threading.Tasks.Task PostAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = await PostWithHttpInfoAsync(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InitiatePlanResponse) + public async System.Threading.Tasks.Task> PostWithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Post"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Post"); + } + + // verify the required parameter 'installmentPlanInitiateRequest' is set + if (installmentPlanInitiateRequest == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanInitiateRequest' when calling InstallmentPlanApi->Post"); + } + + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (xSplititTestMode != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TestMode", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTestMode, dataFormat: "")); // header parameter + } + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey, dataFormat: "")); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint, dataFormat: "")); // header parameter + localVarRequestOptions.Data = installmentPlanInitiateRequest; + + localVarRequestOptions.Operation = "InstallmentPlanApi.Post"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/installmentplans/initiate", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Post", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// InstallmentPlanCreateResponse + public InstallmentPlanCreateResponse Post2(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), int operationIndex = 0) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = Post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanCreateResponse + public CsharpSplitit.Net.Client.ApiResponse Post2WithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), int operationIndex = 0) + { + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Post2"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Post2"); + } + + // verify the required parameter 'installmentPlanCreateRequest' is set + if (installmentPlanCreateRequest == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanCreateRequest' when calling InstallmentPlanApi->Post2"); + } + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (xSplititTestMode != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TestMode", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTestMode)); // header parameter + } + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint)); // header parameter + localVarRequestOptions.Data = installmentPlanCreateRequest; + + localVarRequestOptions.Operation = "InstallmentPlanApi.Post2"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/installmentplans", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Post2", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanCreateResponse + public async System.Threading.Tasks.Task Post2Async(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = await Post2WithHttpInfoAsync(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanCreateResponse) + public async System.Threading.Tasks.Task> Post2WithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Post2"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Post2"); + } + + // verify the required parameter 'installmentPlanCreateRequest' is set + if (installmentPlanCreateRequest == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanCreateRequest' when calling InstallmentPlanApi->Post2"); + } + + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (xSplititTestMode != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TestMode", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTestMode, dataFormat: "")); // header parameter + } + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey, dataFormat: "")); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint, dataFormat: "")); // header parameter + localVarRequestOptions.Data = installmentPlanCreateRequest; + + localVarRequestOptions.Operation = "InstallmentPlanApi.Post2"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/installmentplans", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Post2", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// InstallmentPlanRefundResponse + public InstallmentPlanRefundResponse Refund(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanRefundRequest installmentPlanRefundRequest, int operationIndex = 0) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = RefundWithHttpInfo(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanRefundRequest); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanRefundResponse + public CsharpSplitit.Net.Client.ApiResponse RefundWithHttpInfo(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanRefundRequest installmentPlanRefundRequest, int operationIndex = 0) + { + // verify the required parameter 'installmentPlanNumber' is set + if (installmentPlanNumber == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanNumber' when calling InstallmentPlanApi->Refund"); + } + + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Refund"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Refund"); + } + + // verify the required parameter 'installmentPlanRefundRequest' is set + if (installmentPlanRefundRequest == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanRefundRequest' when calling InstallmentPlanApi->Refund"); + } + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("installmentPlanNumber", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(installmentPlanNumber)); // path parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint)); // header parameter + localVarRequestOptions.Data = installmentPlanRefundRequest; + + localVarRequestOptions.Operation = "InstallmentPlanApi.Refund"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/installmentplans/{installmentPlanNumber}/refund", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Refund", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanRefundResponse + public async System.Threading.Tasks.Task RefundAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanRefundRequest installmentPlanRefundRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = await RefundWithHttpInfoAsync(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanRefundRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanRefundResponse) + public async System.Threading.Tasks.Task> RefundWithHttpInfoAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanRefundRequest installmentPlanRefundRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'installmentPlanNumber' is set + if (installmentPlanNumber == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanNumber' when calling InstallmentPlanApi->Refund"); + } + + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Refund"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Refund"); + } + + // verify the required parameter 'installmentPlanRefundRequest' is set + if (installmentPlanRefundRequest == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanRefundRequest' when calling InstallmentPlanApi->Refund"); + } + + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("installmentPlanNumber", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(installmentPlanNumber)); // path parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey, dataFormat: "")); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint, dataFormat: "")); // header parameter + localVarRequestOptions.Data = installmentPlanRefundRequest; + + localVarRequestOptions.Operation = "InstallmentPlanApi.Refund"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/installmentplans/{installmentPlanNumber}/refund", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Refund", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// InstallmentPlanSearchResponse + public InstallmentPlanSearchResponse Search(string xSplititIdempotencyKey, string xSplititTouchPoint, string installmentPlanNumber = default(string), string refOrderNumber = default(string), Dictionary extendedParams = default(Dictionary), int operationIndex = 0) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = SearchWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanNumber, refOrderNumber, extendedParams); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanSearchResponse + public CsharpSplitit.Net.Client.ApiResponse SearchWithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, string installmentPlanNumber = default(string), string refOrderNumber = default(string), Dictionary extendedParams = default(Dictionary), int operationIndex = 0) + { + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Search"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Search"); + } + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (installmentPlanNumber != null) + { + localVarRequestOptions.QueryParameters.Add(CsharpSplitit.Net.Client.ClientUtils.ParameterToMultiMap("", "installmentPlanNumber", installmentPlanNumber, "")); + } + if (refOrderNumber != null) + { + localVarRequestOptions.QueryParameters.Add(CsharpSplitit.Net.Client.ClientUtils.ParameterToMultiMap("", "refOrderNumber", refOrderNumber, "")); + } + if (extendedParams != null) + { + localVarRequestOptions.QueryParameters.Add(CsharpSplitit.Net.Client.ClientUtils.ParameterToMultiMap("", "extendedParams", extendedParams, "")); + } + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint)); // header parameter + + localVarRequestOptions.Operation = "InstallmentPlanApi.Search"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/api/installmentplans/search", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Search", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanSearchResponse + public async System.Threading.Tasks.Task SearchAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, string installmentPlanNumber = default(string), string refOrderNumber = default(string), Dictionary extendedParams = default(Dictionary), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = await SearchWithHttpInfoAsync(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanNumber, refOrderNumber, extendedParams, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// (optional) + /// (optional) + /// (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanSearchResponse) + public async System.Threading.Tasks.Task> SearchWithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, string installmentPlanNumber = default(string), string refOrderNumber = default(string), Dictionary extendedParams = default(Dictionary), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->Search"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->Search"); + } + + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + if (installmentPlanNumber != null) + { + localVarRequestOptions.QueryParameters.Add(CsharpSplitit.Net.Client.ClientUtils.ParameterToMultiMap("", "installmentPlanNumber", installmentPlanNumber, "")); + } + if (refOrderNumber != null) + { + localVarRequestOptions.QueryParameters.Add(CsharpSplitit.Net.Client.ClientUtils.ParameterToMultiMap("", "refOrderNumber", refOrderNumber, "")); + } + if (extendedParams != null) + { + localVarRequestOptions.QueryParameters.Add(CsharpSplitit.Net.Client.ClientUtils.ParameterToMultiMap("", "extendedParams", extendedParams, "")); + } + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey, dataFormat: "")); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint, dataFormat: "")); // header parameter + + localVarRequestOptions.Operation = "InstallmentPlanApi.Search"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/api/installmentplans/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Search", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// InstallmentPlanUpdateResponse + public InstallmentPlanUpdateResponse UpdateOrder(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, UpdateOrderRequest updateOrderRequest, int operationIndex = 0) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = UpdateOrderWithHttpInfo(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, updateOrderRequest); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanUpdateResponse + public CsharpSplitit.Net.Client.ApiResponse UpdateOrderWithHttpInfo(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, UpdateOrderRequest updateOrderRequest, int operationIndex = 0) + { + // verify the required parameter 'installmentPlanNumber' is set + if (installmentPlanNumber == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanNumber' when calling InstallmentPlanApi->UpdateOrder"); + } + + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->UpdateOrder"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->UpdateOrder"); + } + + // verify the required parameter 'updateOrderRequest' is set + if (updateOrderRequest == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'updateOrderRequest' when calling InstallmentPlanApi->UpdateOrder"); + } + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("installmentPlanNumber", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(installmentPlanNumber)); // path parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint)); // header parameter + localVarRequestOptions.Data = updateOrderRequest; + + localVarRequestOptions.Operation = "InstallmentPlanApi.UpdateOrder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/api/installmentplans/{installmentPlanNumber}/updateorder", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateOrder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanUpdateResponse + public async System.Threading.Tasks.Task UpdateOrderAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, UpdateOrderRequest updateOrderRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = await UpdateOrderWithHttpInfoAsync(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, updateOrderRequest, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanUpdateResponse) + public async System.Threading.Tasks.Task> UpdateOrderWithHttpInfoAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, UpdateOrderRequest updateOrderRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'installmentPlanNumber' is set + if (installmentPlanNumber == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanNumber' when calling InstallmentPlanApi->UpdateOrder"); + } + + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->UpdateOrder"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->UpdateOrder"); + } + + // verify the required parameter 'updateOrderRequest' is set + if (updateOrderRequest == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'updateOrderRequest' when calling InstallmentPlanApi->UpdateOrder"); + } + + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("installmentPlanNumber", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(installmentPlanNumber)); // path parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey, dataFormat: "")); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint, dataFormat: "")); // header parameter + localVarRequestOptions.Data = updateOrderRequest; + + localVarRequestOptions.Operation = "InstallmentPlanApi.UpdateOrder"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/api/installmentplans/{installmentPlanNumber}/updateorder", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateOrder", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// InstallmentPlanUpdateResponse + public InstallmentPlanUpdateResponse UpdateOrder2(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanUpdateRequestByIdentifier installmentPlanUpdateRequestByIdentifier, int operationIndex = 0) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = UpdateOrder2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanUpdateRequestByIdentifier); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// ApiResponse of InstallmentPlanUpdateResponse + public CsharpSplitit.Net.Client.ApiResponse UpdateOrder2WithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanUpdateRequestByIdentifier installmentPlanUpdateRequestByIdentifier, int operationIndex = 0) + { + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->UpdateOrder2"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->UpdateOrder2"); + } + + // verify the required parameter 'installmentPlanUpdateRequestByIdentifier' is set + if (installmentPlanUpdateRequestByIdentifier == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanUpdateRequestByIdentifier' when calling InstallmentPlanApi->UpdateOrder2"); + } + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint)); // header parameter + localVarRequestOptions.Data = installmentPlanUpdateRequestByIdentifier; + + localVarRequestOptions.Operation = "InstallmentPlanApi.UpdateOrder2"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/api/installmentplans/updateorder", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateOrder2", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of InstallmentPlanUpdateResponse + public async System.Threading.Tasks.Task UpdateOrder2Async(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanUpdateRequestByIdentifier installmentPlanUpdateRequestByIdentifier, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = await UpdateOrder2WithHttpInfoAsync(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanUpdateRequestByIdentifier, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// TouchPoint + /// + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InstallmentPlanUpdateResponse) + public async System.Threading.Tasks.Task> UpdateOrder2WithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanUpdateRequestByIdentifier installmentPlanUpdateRequestByIdentifier, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->UpdateOrder2"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->UpdateOrder2"); + } + + // verify the required parameter 'installmentPlanUpdateRequestByIdentifier' is set + if (installmentPlanUpdateRequestByIdentifier == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanUpdateRequestByIdentifier' when calling InstallmentPlanApi->UpdateOrder2"); + } + + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey, dataFormat: "")); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint, dataFormat: "")); // header parameter + localVarRequestOptions.Data = installmentPlanUpdateRequestByIdentifier; + + localVarRequestOptions.Operation = "InstallmentPlanApi.UpdateOrder2"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.PutAsync("/api/installmentplans/updateorder", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateOrder2", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// VerifyAuthorizationResponse + public VerifyAuthorizationResponse VerifyAuthorization(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = VerifyAuthorizationWithHttpInfo(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// ApiResponse of VerifyAuthorizationResponse + public CsharpSplitit.Net.Client.ApiResponse VerifyAuthorizationWithHttpInfo(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0) + { + // verify the required parameter 'installmentPlanNumber' is set + if (installmentPlanNumber == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanNumber' when calling InstallmentPlanApi->VerifyAuthorization"); + } + + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->VerifyAuthorization"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->VerifyAuthorization"); + } + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("installmentPlanNumber", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(installmentPlanNumber)); // path parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint)); // header parameter + + localVarRequestOptions.Operation = "InstallmentPlanApi.VerifyAuthorization"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/api/installmentplans/{installmentPlanNumber}/verifyauthorization", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("VerifyAuthorization", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of VerifyAuthorizationResponse + public async System.Threading.Tasks.Task VerifyAuthorizationAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + CsharpSplitit.Net.Client.ApiResponse localVarResponse = await VerifyAuthorizationWithHttpInfoAsync(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// + /// TouchPoint + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (VerifyAuthorizationResponse) + public async System.Threading.Tasks.Task> VerifyAuthorizationWithHttpInfoAsync(string installmentPlanNumber, string xSplititIdempotencyKey, string xSplititTouchPoint, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'installmentPlanNumber' is set + if (installmentPlanNumber == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'installmentPlanNumber' when calling InstallmentPlanApi->VerifyAuthorization"); + } + + // verify the required parameter 'xSplititIdempotencyKey' is set + if (xSplititIdempotencyKey == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititIdempotencyKey' when calling InstallmentPlanApi->VerifyAuthorization"); + } + + // verify the required parameter 'xSplititTouchPoint' is set + if (xSplititTouchPoint == null) + { + throw new CsharpSplitit.Net.Client.ApiException(400, "Missing required parameter 'xSplititTouchPoint' when calling InstallmentPlanApi->VerifyAuthorization"); + } + + + CsharpSplitit.Net.Client.RequestOptions localVarRequestOptions = new CsharpSplitit.Net.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "text/plain", + "application/json", + "text/json" + }; + + var localVarContentType = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) + { + localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + } + + var localVarAccept = CsharpSplitit.Net.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) + { + localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + } + + localVarRequestOptions.PathParameters.Add("installmentPlanNumber", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(installmentPlanNumber)); // path parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-IdempotencyKey", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititIdempotencyKey, dataFormat: "")); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Splitit-TouchPoint", CsharpSplitit.Net.Client.ClientUtils.ParameterToString(xSplititTouchPoint, dataFormat: "")); // header parameter + + localVarRequestOptions.Operation = "InstallmentPlanApi.VerifyAuthorization"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (oauth) required + // oauth required + if (!localVarRequestOptions.HeaderParameters.ContainsKey("Authorization")) + { + if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + else if (!string.IsNullOrEmpty(this.Configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientId) && + !string.IsNullOrEmpty(this.Configuration.OAuthClientSecret) && + this.Configuration.OAuthFlow != null) + { + localVarRequestOptions.OAuth = true; + } + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/api/installmentplans/{installmentPlanNumber}/verifyauthorization", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("VerifyAuthorization", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiClient.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiClient.cs similarity index 95% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiClient.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiClient.cs index b66eb7326..fd7c6c72a 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiClient.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiClient.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -29,9 +28,10 @@ using RestSharp.Serializers; using RestSharpMethod = RestSharp.Method; using Polly; -using CsharpBodyWithObjectField.Net.Client; +using CsharpSplitit.Net.Client.Auth; +using CsharpSplitit.Net.Client; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Allows RestSharp to Serialize/Deserialize JSON using our custom logic, but only when ContentType is JSON. @@ -71,10 +71,10 @@ public CustomJsonCodec(JsonSerializerSettings serializerSettings, IReadableConfi /// A JSON string. public string Serialize(object obj) { - if (obj != null && obj is CsharpBodyWithObjectField.Net.Model.AbstractOpenAPISchema) + if (obj != null && obj is CsharpSplitit.Net.Model.AbstractOpenAPISchema) { // the object to be serialized is an oneOf/anyOf schema - return ((CsharpBodyWithObjectField.Net.Model.AbstractOpenAPISchema)obj).ToJson(); + return ((CsharpSplitit.Net.Model.AbstractOpenAPISchema)obj).ToJson(); } else { @@ -202,7 +202,7 @@ public partial class ApiClient : ISynchronousClient, IAsynchronousClient /// public ApiClient() { - _configuration = CsharpBodyWithObjectField.Net.Client.GlobalConfiguration.Instance; + _configuration = CsharpSplitit.Net.Client.GlobalConfiguration.Instance; } /// @@ -463,6 +463,20 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl .UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); client.AddDefaultHeader("User-Agent", configuration.UserAgent); + if (!string.IsNullOrEmpty(configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(configuration.OAuthClientId) && + !string.IsNullOrEmpty(configuration.OAuthClientSecret) && + configuration.OAuthFlow != null) + { + client = client.UseAuthenticator(new OAuthAuthenticator( + configuration.OAuthTokenUrl, + configuration.OAuthClientId, + configuration.OAuthClientSecret, + configuration.OAuthFlow, + SerializerSettings, + configuration)); + } + InterceptRequest(req); RestResponse response; @@ -482,7 +496,7 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl } // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(CsharpBodyWithObjectField.Net.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + if (typeof(CsharpSplitit.Net.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) { try { @@ -562,6 +576,20 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl .UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration)); client.AddDefaultHeader("User-Agent", configuration.UserAgent); + if (!string.IsNullOrEmpty(configuration.OAuthTokenUrl) && + !string.IsNullOrEmpty(configuration.OAuthClientId) && + !string.IsNullOrEmpty(configuration.OAuthClientSecret) && + configuration.OAuthFlow != null) + { + client = client.UseAuthenticator(new OAuthAuthenticator( + configuration.OAuthTokenUrl, + configuration.OAuthClientId, + configuration.OAuthClientSecret, + configuration.OAuthFlow, + SerializerSettings, + configuration)); + } + InterceptRequest(req); RestResponse response; @@ -581,7 +609,7 @@ private ApiResponse Exec(RestRequest req, RequestOptions options, IReadabl } // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(CsharpBodyWithObjectField.Net.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) + if (typeof(CsharpSplitit.Net.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) { response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); } diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiClientCustom.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiClientCustom.cs similarity index 56% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiClientCustom.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiClientCustom.cs index 13d8ec006..e5580c2a5 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiClientCustom.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiClientCustom.cs @@ -1,17 +1,16 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ using RestSharp; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { public partial class ApiClient { diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiException.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiException.cs similarity index 91% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiException.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiException.cs index 5efba54cb..e17405c56 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiException.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiException.cs @@ -1,17 +1,16 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ using System; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// API Exception diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiResponse.cs similarity index 96% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiResponse.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiResponse.cs index 6befe5a2c..220d5f50f 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ApiResponse.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ApiResponse.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -13,7 +12,7 @@ using System.Collections.Generic; using System.Net; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Provides a non-generic contract for the ApiResponse wrapper. diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/OAuthAuthenticator.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/OAuthAuthenticator.cs new file mode 100644 index 000000000..f0023b948 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/OAuthAuthenticator.cs @@ -0,0 +1,95 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Threading.Tasks; +using Newtonsoft.Json; +using RestSharp; +using RestSharp.Authenticators; + +namespace CsharpSplitit.Net.Client.Auth +{ + /// + /// An authenticator for OAuth2 authentication flows + /// + public class OAuthAuthenticator : AuthenticatorBase + { + readonly string _tokenUrl; + readonly string _clientId; + readonly string _clientSecret; + readonly string _grantType; + readonly JsonSerializerSettings _serializerSettings; + readonly IReadableConfiguration _configuration; + + /// + /// Initialize the OAuth2 Authenticator + /// + public OAuthAuthenticator( + string tokenUrl, + string clientId, + string clientSecret, + OAuthFlow? flow, + JsonSerializerSettings serializerSettings, + IReadableConfiguration configuration) : base("") + { + _tokenUrl = tokenUrl; + _clientId = clientId; + _clientSecret = clientSecret; + _serializerSettings = serializerSettings; + _configuration = configuration; + + switch (flow) + { + /*case OAuthFlow.ACCESS_CODE: + _grantType = "authorization_code"; + break; + case OAuthFlow.IMPLICIT: + _grantType = "implicit"; + break; + case OAuthFlow.PASSWORD: + _grantType = "password"; + break;*/ + case OAuthFlow.APPLICATION: + _grantType = "client_credentials"; + break; + default: + break; + } + } + + /// + /// Creates an authentication parameter from an access token. + /// + /// Access token to create a parameter from. + /// An authentication parameter. + protected override async ValueTask GetAuthenticationParameter(string accessToken) + { + var token = string.IsNullOrEmpty(Token) ? await GetToken() : Token; + return new HeaderParameter(KnownHeaders.Authorization, token); + } + + /// + /// Gets the token from the OAuth2 server. + /// + /// An authentication token. + async Task GetToken() + { + var client = new RestClient(_tokenUrl) + .UseSerializer(() => new CustomJsonCodec(_serializerSettings, _configuration)); + + var request = new RestRequest() + .AddParameter("grant_type", _grantType) + .AddParameter("client_id", _clientId) + .AddParameter("client_secret", _clientSecret); + var response = await client.PostAsync(request); + return $"{response.TokenType} {response.AccessToken}"; + } + } +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/OAuthFlow.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/OAuthFlow.cs new file mode 100644 index 000000000..62943c6c1 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/OAuthFlow.cs @@ -0,0 +1,27 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +namespace CsharpSplitit.Net.Client.Auth +{ + /// + /// Available flows for OAuth2 authentication + /// + public enum OAuthFlow + { + /// Authorization code flow + ACCESS_CODE, + /// Implicit flow + IMPLICIT, + /// Password flow + PASSWORD, + /// Client credentials flow + APPLICATION + } +} \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/TokenResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/TokenResponse.cs new file mode 100644 index 000000000..24d6cf3f7 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Auth/TokenResponse.cs @@ -0,0 +1,22 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Newtonsoft.Json; + +namespace CsharpSplitit.Net.Client.Auth +{ + class TokenResponse + { + [JsonProperty("token_type")] + public string TokenType { get; set; } + [JsonProperty("access_token")] + public string AccessToken { get; set; } + } +} \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ClientException.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ClientException.cs similarity index 81% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ClientException.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ClientException.cs index 3ce128eac..1a4165bee 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ClientException.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ClientException.cs @@ -1,17 +1,16 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ using System; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Generic ClientException that occurs even in case of successful response diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ClientUtils.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ClientUtils.cs similarity index 98% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ClientUtils.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ClientUtils.cs index 59a5cb4c1..2eeed4b9b 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ClientUtils.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ClientUtils.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -18,7 +17,7 @@ using System.Text; using System.Text.RegularExpressions; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Utility functions providing some benefit to API client consumers. diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/Configuration.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Configuration.cs similarity index 92% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/Configuration.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Configuration.cs index 84409b4dc..df5d05b1c 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/Configuration.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Configuration.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -19,8 +18,9 @@ using System.Security.Cryptography.X509Certificates; using System.Text; using System.Net.Http; +using CsharpSplitit.Net.Client.Auth; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Represents a set of configuration settings @@ -117,17 +117,19 @@ public Configuration() { Proxy = null; UserAgent = "Konfig/1.0.0/csharp"; - BasePath = "https://csharp-body-with-object-field.konfigthis.com"; + BasePath = "https://web-api-v3.production.splitit.com"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); VerifySsl = true; + OAuthFlow = Auth.OAuthFlow.APPLICATION; + OAuthTokenUrl = "https://id.production.splitit.com/connect/token"; Servers = new List>() { { new Dictionary { - {"url", "https://csharp-body-with-object-field.konfigthis.com"}, - {"description", "Live API server"}, + {"url", "https://web-api-v3.production.splitit.com"}, + {"description", "No description provided"}, } } }; @@ -147,7 +149,7 @@ public Configuration( IDictionary defaultHeaders, IDictionary apiKey, IDictionary apiKeyPrefix, - string basePath = "https://csharp-body-with-object-field.konfigthis.com") : this() + string basePath = "https://web-api-v3.production.splitit.com") : this() { if (string.IsNullOrWhiteSpace(basePath)) throw new ArgumentException("The provided basePath is invalid.", "basePath"); @@ -276,6 +278,30 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) /// The access token. public virtual string AccessToken { get; set; } + /// + /// Gets or sets the token URL for OAuth2 authentication. + /// + /// The OAuth Token URL. + public virtual string OAuthTokenUrl { get; set; } + + /// + /// Gets or sets the client ID for OAuth2 authentication. + /// + /// The OAuth Client ID. + public virtual string OAuthClientId { get; set; } + + /// + /// Gets or sets the client secret for OAuth2 authentication. + /// + /// The OAuth Client Secret. + public virtual string OAuthClientSecret { get; set; } + + /// + /// Gets or sets the flow for OAuth2 authentication. + /// + /// The OAuth Flow. + public virtual OAuthFlow? OAuthFlow { get; set; } + /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -527,7 +553,7 @@ private string GetServerUrl(IList> servers, /// public static string ToDebugReport() { - string report = "C# SDK (CsharpBodyWithObjectField.Net) Debug Report:\n"; + string report = "C# SDK (CsharpSplitit.Net) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 1.0.0\n"; @@ -591,6 +617,10 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration Password = second.Password ?? first.Password, VerifySsl = second.VerifySsl && first.VerifySsl, AccessToken = second.AccessToken ?? first.AccessToken, + OAuthTokenUrl = second.OAuthTokenUrl ?? first.OAuthTokenUrl, + OAuthClientId = second.OAuthClientId ?? first.OAuthClientId, + OAuthClientSecret = second.OAuthClientSecret ?? first.OAuthClientSecret, + OAuthFlow = second.OAuthFlow ?? first.OAuthFlow, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, ClientCertificates = second.ClientCertificates ?? first.ClientCertificates, diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/CsharpBodyWithObjectFieldClient.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/CsharpSplititClient.cs similarity index 60% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/CsharpBodyWithObjectFieldClient.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/CsharpSplititClient.cs index cf21baff8..a6353b7c0 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/CsharpBodyWithObjectFieldClient.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/CsharpSplititClient.cs @@ -1,27 +1,26 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ -using CsharpBodyWithObjectField.Net.Api; +using CsharpSplitit.Net.Api; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// SDK client /// - public class CsharpBodyWithObjectFieldClient + public class CsharpSplititClient { /// /// API instance /// - public TestApi Test { get; private set; } + public InstallmentPlanApi InstallmentPlan { get; private set; } /// /// Configuration instance @@ -31,7 +30,7 @@ public class CsharpBodyWithObjectFieldClient /// /// Constructor /// - public CsharpBodyWithObjectFieldClient() + public CsharpSplititClient() { Configuration = new Configuration(); init(); @@ -39,13 +38,13 @@ public CsharpBodyWithObjectFieldClient() private void init() { - Test = new TestApi(Configuration); + InstallmentPlan = new InstallmentPlanApi(Configuration); } /// /// Setter for base path /// - public CsharpBodyWithObjectFieldClient SetBasePath(string basePath) + public CsharpSplititClient SetBasePath(string basePath) { Configuration.BasePath = basePath; init(); @@ -55,7 +54,7 @@ public CsharpBodyWithObjectFieldClient SetBasePath(string basePath) /// /// Setter for verify SSL configuration. Set to false when you want to disable SSL verification. /// - public CsharpBodyWithObjectFieldClient SetVerifySsl(bool verifySsl) + public CsharpSplititClient SetVerifySsl(bool verifySsl) { Configuration.VerifySsl = verifySsl; init(); @@ -65,7 +64,7 @@ public CsharpBodyWithObjectFieldClient SetVerifySsl(bool verifySsl) /// /// Setter for Username /// - public CsharpBodyWithObjectFieldClient SetUsername(string username) + public CsharpSplititClient SetUsername(string username) { Configuration.Username = username; init(); @@ -75,7 +74,7 @@ public CsharpBodyWithObjectFieldClient SetUsername(string username) /// /// Setter for Password /// - public CsharpBodyWithObjectFieldClient SetPassword(string password) + public CsharpSplititClient SetPassword(string password) { Configuration.Password = password; init(); @@ -85,7 +84,7 @@ public CsharpBodyWithObjectFieldClient SetPassword(string password) /// /// Setter for Access Token /// - public CsharpBodyWithObjectFieldClient SetAccessToken(string accessToken) + public CsharpSplititClient SetAccessToken(string accessToken) { Configuration.AccessToken = accessToken; init(); @@ -93,11 +92,21 @@ public CsharpBodyWithObjectFieldClient SetAccessToken(string accessToken) } /// - /// Setter for API Key + /// Setter for OAuth Client Id /// - public CsharpBodyWithObjectFieldClient SetApiKey(string apiKey) + public CsharpSplititClient SetOAuthClientId(string oAuthClientId) { - Configuration.ApiKey["X-API-KEY"] = apiKey; + Configuration.OAuthClientId = oAuthClientId; + init(); + return this; + } + + /// + /// Setter for OAuth Client Secret + /// + public CsharpSplititClient SetOAuthClientSecret(string oAuthClientSecret) + { + Configuration.OAuthClientSecret = oAuthClientSecret; init(); return this; } diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ExceptionFactory.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ExceptionFactory.cs similarity index 70% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ExceptionFactory.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ExceptionFactory.cs index b5789abc3..64e13c316 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ExceptionFactory.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ExceptionFactory.cs @@ -1,17 +1,16 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ using System; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// A delegate to ExceptionFactory method diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/GlobalConfiguration.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/GlobalConfiguration.cs similarity index 89% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/GlobalConfiguration.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/GlobalConfiguration.cs index 7c812514f..acf9d1e4f 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/GlobalConfiguration.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/GlobalConfiguration.cs @@ -1,17 +1,16 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ using System.Collections.Generic; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// provides a compile-time extension point for globally configuring diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/HttpMethod.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/HttpMethod.cs similarity index 78% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/HttpMethod.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/HttpMethod.cs index e83688014..8809f7795 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/HttpMethod.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/HttpMethod.cs @@ -1,15 +1,14 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Http methods supported by swagger diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/IApiAccessor.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/IApiAccessor.cs similarity index 82% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/IApiAccessor.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/IApiAccessor.cs index e76c6d8aa..66637e3dc 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/IApiAccessor.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/IApiAccessor.cs @@ -1,17 +1,16 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ using System; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Represents configuration aspects required to interact with the API endpoints. diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/IAsynchronousClient.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/IAsynchronousClient.cs similarity index 97% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/IAsynchronousClient.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/IAsynchronousClient.cs index 2807bdf03..27a351fb4 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/IAsynchronousClient.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/IAsynchronousClient.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -12,7 +11,7 @@ using System; using System.Threading.Tasks; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Contract for Asynchronous RESTful API interactions. diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/IReadableConfiguration.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/IReadableConfiguration.cs similarity index 83% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/IReadableConfiguration.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/IReadableConfiguration.cs index e0feb5a32..dc0a1c538 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/IReadableConfiguration.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/IReadableConfiguration.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -13,8 +12,9 @@ using System.Collections.Generic; using System.Net; using System.Security.Cryptography.X509Certificates; +using CsharpSplitit.Net.Client.Auth; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Represents a readable-only configuration contract. @@ -27,6 +27,30 @@ public interface IReadableConfiguration /// Access token. string AccessToken { get; } + /// + /// Gets the OAuth token URL. + /// + /// OAuth Token URL. + string OAuthTokenUrl { get; } + + /// + /// Gets the OAuth client ID. + /// + /// OAuth Client ID. + string OAuthClientId { get; } + + /// + /// Gets the OAuth client secret. + /// + /// OAuth Client Secret. + string OAuthClientSecret { get; } + + /// + /// Gets the OAuth flow. + /// + /// OAuth Flow. + OAuthFlow? OAuthFlow { get; } + /// /// Gets the API key. /// diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ISynchronousClient.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ISynchronousClient.cs similarity index 96% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ISynchronousClient.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ISynchronousClient.cs index b36e6204a..156d08e28 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/ISynchronousClient.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/ISynchronousClient.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -12,7 +11,7 @@ using System; using System.IO; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Contract for Synchronous RESTful API interactions. diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/Multimap.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Multimap.cs similarity index 98% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/Multimap.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Multimap.cs index 6ec638f3b..0cbb331ef 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/Multimap.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/Multimap.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -13,7 +12,7 @@ using System.Collections; using System.Collections.Generic; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// A dictionary in which one key has many associated values. diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/OpenAPIDateConverter.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/OpenAPIDateConverter.cs similarity index 84% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/OpenAPIDateConverter.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/OpenAPIDateConverter.cs index 490962eff..abc772470 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/OpenAPIDateConverter.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/OpenAPIDateConverter.cs @@ -1,16 +1,15 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ using Newtonsoft.Json.Converters; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Formatter for 'date' openapi formats ss defined by full-date - RFC3339 diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/RequestOptions.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/RequestOptions.cs similarity index 92% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/RequestOptions.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/RequestOptions.cs index a3c19470a..8d8521681 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/RequestOptions.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/RequestOptions.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -14,7 +13,7 @@ using System.IO; using System.Net; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// A container for generalized request inputs. This type allows consumers to extend the request functionality @@ -69,6 +68,11 @@ public class RequestOptions /// public Object Data { get; set; } + /// + /// If request should be authenticated with OAuth. + /// + public bool OAuth { get; set; } + /// /// Constructs a new instance of /// diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/RetryConfiguration.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/RetryConfiguration.cs similarity index 77% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/RetryConfiguration.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/RetryConfiguration.cs index 56666fb31..d3e3c65a9 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Client/RetryConfiguration.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Client/RetryConfiguration.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -12,7 +11,7 @@ using Polly; using RestSharp; -namespace CsharpBodyWithObjectField.Net.Client +namespace CsharpSplitit.Net.Client { /// /// Configuration class to set the polly retry policies to be applied to the requests. diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/CsharpBodyWithObjectField.Net.csproj b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/CsharpSplitit.Net.csproj similarity index 87% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/CsharpBodyWithObjectField.Net.csproj rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/CsharpSplitit.Net.csproj index 6ada89440..fcd6e70a3 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/CsharpBodyWithObjectField.Net.csproj +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/CsharpSplitit.Net.csproj @@ -3,8 +3,8 @@ false net7.0;net5.0;netstandard2.0 - CsharpBodyWithObjectField.Net - CsharpBodyWithObjectField.Net + CsharpSplitit.Net + CsharpSplitit.Net Library logo.png Konfig @@ -12,9 +12,9 @@ https://konfigthis.com generated SDK This library was generated by https://konfigthis.com No Copyright - CsharpBodyWithObjectField.Net + CsharpSplitit.Net 1.0.0 - bin\$(Configuration)\$(TargetFramework)\CsharpBodyWithObjectField.Net.xml + bin\$(Configuration)\$(TargetFramework)\CsharpSplitit.Net.xml MIT README.md https://github.com/konfig-dev/konfig/tree/main/csharp diff --git a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Model/AbstractOpenAPISchema.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AbstractOpenAPISchema.cs similarity index 93% rename from generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Model/AbstractOpenAPISchema.cs rename to generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AbstractOpenAPISchema.cs index 914b0ec08..5452c3a54 100644 --- a/generator/konfig-integration-tests/sdks/csharp-body-with-object-field/csharp/src/CsharpBodyWithObjectField.Net/Model/AbstractOpenAPISchema.cs +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AbstractOpenAPISchema.cs @@ -1,10 +1,9 @@ /* - * csharp-body-with-object-field API + * splitit-web-api-v3 * - * A simple API based for testing csharp-body-with-object-field. + * Splitit's Web API * * The version of the OpenAPI document: 1.0.0 - * Contact: support@example.com * Generated by: https://konfigthis.com */ @@ -13,7 +12,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -namespace CsharpBodyWithObjectField.Net.Model +namespace CsharpSplitit.Net.Model { /// /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AddressData.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AddressData.cs new file mode 100644 index 000000000..66f3d0d42 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AddressData.cs @@ -0,0 +1,218 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// AddressData + /// + [DataContract(Name = "AddressData")] + public partial class AddressData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// addressLine. + /// addressLine2. + /// city. + /// country. + /// state. + /// zip. + public AddressData(string addressLine = default(string), string addressLine2 = default(string), string city = default(string), string country = default(string), string state = default(string), string zip = default(string)) + { + this.AddressLine = addressLine; + this.AddressLine2 = addressLine2; + this.City = city; + this.Country = country; + this.State = state; + this.Zip = zip; + } + + /// + /// Gets or Sets AddressLine + /// + [DataMember(Name = "AddressLine", EmitDefaultValue = false)] + public string AddressLine { get; set; } + + /// + /// Gets or Sets AddressLine2 + /// + [DataMember(Name = "AddressLine2", EmitDefaultValue = false)] + public string AddressLine2 { get; set; } + + /// + /// Gets or Sets City + /// + [DataMember(Name = "City", EmitDefaultValue = false)] + public string City { get; set; } + + /// + /// Gets or Sets Country + /// + [DataMember(Name = "Country", EmitDefaultValue = false)] + public string Country { get; set; } + + /// + /// Gets or Sets State + /// + [DataMember(Name = "State", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Gets or Sets Zip + /// + [DataMember(Name = "Zip", EmitDefaultValue = false)] + public string Zip { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AddressData {\n"); + sb.Append(" AddressLine: ").Append(AddressLine).Append("\n"); + sb.Append(" AddressLine2: ").Append(AddressLine2).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" Country: ").Append(Country).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Zip: ").Append(Zip).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AddressData); + } + + /// + /// Returns true if AddressData instances are equal + /// + /// Instance of AddressData to be compared + /// Boolean + public bool Equals(AddressData input) + { + if (input == null) + { + return false; + } + return + ( + this.AddressLine == input.AddressLine || + (this.AddressLine != null && + this.AddressLine.Equals(input.AddressLine)) + ) && + ( + this.AddressLine2 == input.AddressLine2 || + (this.AddressLine2 != null && + this.AddressLine2.Equals(input.AddressLine2)) + ) && + ( + this.City == input.City || + (this.City != null && + this.City.Equals(input.City)) + ) && + ( + this.Country == input.Country || + (this.Country != null && + this.Country.Equals(input.Country)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.Zip == input.Zip || + (this.Zip != null && + this.Zip.Equals(input.Zip)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AddressLine != null) + { + hashCode = (hashCode * 59) + this.AddressLine.GetHashCode(); + } + if (this.AddressLine2 != null) + { + hashCode = (hashCode * 59) + this.AddressLine2.GetHashCode(); + } + if (this.City != null) + { + hashCode = (hashCode * 59) + this.City.GetHashCode(); + } + if (this.Country != null) + { + hashCode = (hashCode * 59) + this.Country.GetHashCode(); + } + if (this.State != null) + { + hashCode = (hashCode * 59) + this.State.GetHashCode(); + } + if (this.Zip != null) + { + hashCode = (hashCode * 59) + this.Zip.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AddressDataModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AddressDataModel.cs new file mode 100644 index 000000000..721593347 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AddressDataModel.cs @@ -0,0 +1,218 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// AddressDataModel + /// + [DataContract(Name = "AddressDataModel")] + public partial class AddressDataModel : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// addressLine1. + /// addressLine2. + /// city. + /// country. + /// state. + /// zip. + public AddressDataModel(string addressLine1 = default(string), string addressLine2 = default(string), string city = default(string), string country = default(string), string state = default(string), string zip = default(string)) + { + this.AddressLine1 = addressLine1; + this.AddressLine2 = addressLine2; + this.City = city; + this.Country = country; + this.State = state; + this.Zip = zip; + } + + /// + /// Gets or Sets AddressLine1 + /// + [DataMember(Name = "AddressLine1", EmitDefaultValue = false)] + public string AddressLine1 { get; set; } + + /// + /// Gets or Sets AddressLine2 + /// + [DataMember(Name = "AddressLine2", EmitDefaultValue = false)] + public string AddressLine2 { get; set; } + + /// + /// Gets or Sets City + /// + [DataMember(Name = "City", EmitDefaultValue = false)] + public string City { get; set; } + + /// + /// Gets or Sets Country + /// + [DataMember(Name = "Country", EmitDefaultValue = false)] + public string Country { get; set; } + + /// + /// Gets or Sets State + /// + [DataMember(Name = "State", EmitDefaultValue = false)] + public string State { get; set; } + + /// + /// Gets or Sets Zip + /// + [DataMember(Name = "Zip", EmitDefaultValue = false)] + public string Zip { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AddressDataModel {\n"); + sb.Append(" AddressLine1: ").Append(AddressLine1).Append("\n"); + sb.Append(" AddressLine2: ").Append(AddressLine2).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" Country: ").Append(Country).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Zip: ").Append(Zip).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AddressDataModel); + } + + /// + /// Returns true if AddressDataModel instances are equal + /// + /// Instance of AddressDataModel to be compared + /// Boolean + public bool Equals(AddressDataModel input) + { + if (input == null) + { + return false; + } + return + ( + this.AddressLine1 == input.AddressLine1 || + (this.AddressLine1 != null && + this.AddressLine1.Equals(input.AddressLine1)) + ) && + ( + this.AddressLine2 == input.AddressLine2 || + (this.AddressLine2 != null && + this.AddressLine2.Equals(input.AddressLine2)) + ) && + ( + this.City == input.City || + (this.City != null && + this.City.Equals(input.City)) + ) && + ( + this.Country == input.Country || + (this.Country != null && + this.Country.Equals(input.Country)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.Zip == input.Zip || + (this.Zip != null && + this.Zip.Equals(input.Zip)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AddressLine1 != null) + { + hashCode = (hashCode * 59) + this.AddressLine1.GetHashCode(); + } + if (this.AddressLine2 != null) + { + hashCode = (hashCode * 59) + this.AddressLine2.GetHashCode(); + } + if (this.City != null) + { + hashCode = (hashCode * 59) + this.City.GetHashCode(); + } + if (this.Country != null) + { + hashCode = (hashCode * 59) + this.Country.GetHashCode(); + } + if (this.State != null) + { + hashCode = (hashCode * 59) + this.State.GetHashCode(); + } + if (this.Zip != null) + { + hashCode = (hashCode * 59) + this.Zip.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AuthorizationModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AuthorizationModel.cs new file mode 100644 index 000000000..6670a5cb8 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/AuthorizationModel.cs @@ -0,0 +1,291 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// AuthorizationModel + /// + [DataContract(Name = "AuthorizationModel")] + public partial class AuthorizationModel : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "Status", IsRequired = true, EmitDefaultValue = true)] + public GwAuthorizationStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AuthorizationModel() { } + /// + /// Initializes a new instance of the class. + /// + /// status (required). + /// date. + /// splititErrorResultCode. + /// gatewayTransactionID. + /// gatewayResultCode. + /// gatewayResultMessage. + /// threeDSRedirect. + /// cAVV. + /// eCI. + /// gatewaySourceResponse. + public AuthorizationModel(GwAuthorizationStatus status = default(GwAuthorizationStatus), DateTime date = default(DateTime), string splititErrorResultCode = default(string), string gatewayTransactionID = default(string), string gatewayResultCode = default(string), string gatewayResultMessage = default(string), ThreeDsRedirectDataV3 threeDSRedirect = default(ThreeDsRedirectDataV3), string cAVV = default(string), string eCI = default(string), string gatewaySourceResponse = default(string)) + { + this.Status = status; + this.Date = date; + this.SplititErrorResultCode = splititErrorResultCode; + this.GatewayTransactionID = gatewayTransactionID; + this.GatewayResultCode = gatewayResultCode; + this.GatewayResultMessage = gatewayResultMessage; + this.ThreeDSRedirect = threeDSRedirect; + this.CAVV = cAVV; + this.ECI = eCI; + this.GatewaySourceResponse = gatewaySourceResponse; + } + + /// + /// Gets or Sets Date + /// + [DataMember(Name = "Date", EmitDefaultValue = false)] + public DateTime Date { get; set; } + + /// + /// Gets or Sets SplititErrorResultCode + /// + [DataMember(Name = "SplititErrorResultCode", EmitDefaultValue = false)] + public string SplititErrorResultCode { get; set; } + + /// + /// Gets or Sets GatewayTransactionID + /// + [DataMember(Name = "GatewayTransactionID", EmitDefaultValue = false)] + public string GatewayTransactionID { get; set; } + + /// + /// Gets or Sets GatewayResultCode + /// + [DataMember(Name = "GatewayResultCode", EmitDefaultValue = false)] + public string GatewayResultCode { get; set; } + + /// + /// Gets or Sets GatewayResultMessage + /// + [DataMember(Name = "GatewayResultMessage", EmitDefaultValue = false)] + public string GatewayResultMessage { get; set; } + + /// + /// Gets or Sets ThreeDSRedirect + /// + [DataMember(Name = "ThreeDSRedirect", EmitDefaultValue = false)] + public ThreeDsRedirectDataV3 ThreeDSRedirect { get; set; } + + /// + /// Gets or Sets CAVV + /// + [DataMember(Name = "CAVV", EmitDefaultValue = false)] + public string CAVV { get; set; } + + /// + /// Gets or Sets ECI + /// + [DataMember(Name = "ECI", EmitDefaultValue = false)] + public string ECI { get; set; } + + /// + /// Gets or Sets GatewaySourceResponse + /// + [DataMember(Name = "GatewaySourceResponse", EmitDefaultValue = false)] + public string GatewaySourceResponse { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AuthorizationModel {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Date: ").Append(Date).Append("\n"); + sb.Append(" SplititErrorResultCode: ").Append(SplititErrorResultCode).Append("\n"); + sb.Append(" GatewayTransactionID: ").Append(GatewayTransactionID).Append("\n"); + sb.Append(" GatewayResultCode: ").Append(GatewayResultCode).Append("\n"); + sb.Append(" GatewayResultMessage: ").Append(GatewayResultMessage).Append("\n"); + sb.Append(" ThreeDSRedirect: ").Append(ThreeDSRedirect).Append("\n"); + sb.Append(" CAVV: ").Append(CAVV).Append("\n"); + sb.Append(" ECI: ").Append(ECI).Append("\n"); + sb.Append(" GatewaySourceResponse: ").Append(GatewaySourceResponse).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AuthorizationModel); + } + + /// + /// Returns true if AuthorizationModel instances are equal + /// + /// Instance of AuthorizationModel to be compared + /// Boolean + public bool Equals(AuthorizationModel input) + { + if (input == null) + { + return false; + } + return + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.Date == input.Date || + (this.Date != null && + this.Date.Equals(input.Date)) + ) && + ( + this.SplititErrorResultCode == input.SplititErrorResultCode || + (this.SplititErrorResultCode != null && + this.SplititErrorResultCode.Equals(input.SplititErrorResultCode)) + ) && + ( + this.GatewayTransactionID == input.GatewayTransactionID || + (this.GatewayTransactionID != null && + this.GatewayTransactionID.Equals(input.GatewayTransactionID)) + ) && + ( + this.GatewayResultCode == input.GatewayResultCode || + (this.GatewayResultCode != null && + this.GatewayResultCode.Equals(input.GatewayResultCode)) + ) && + ( + this.GatewayResultMessage == input.GatewayResultMessage || + (this.GatewayResultMessage != null && + this.GatewayResultMessage.Equals(input.GatewayResultMessage)) + ) && + ( + this.ThreeDSRedirect == input.ThreeDSRedirect || + (this.ThreeDSRedirect != null && + this.ThreeDSRedirect.Equals(input.ThreeDSRedirect)) + ) && + ( + this.CAVV == input.CAVV || + (this.CAVV != null && + this.CAVV.Equals(input.CAVV)) + ) && + ( + this.ECI == input.ECI || + (this.ECI != null && + this.ECI.Equals(input.ECI)) + ) && + ( + this.GatewaySourceResponse == input.GatewaySourceResponse || + (this.GatewaySourceResponse != null && + this.GatewaySourceResponse.Equals(input.GatewaySourceResponse)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.Date != null) + { + hashCode = (hashCode * 59) + this.Date.GetHashCode(); + } + if (this.SplititErrorResultCode != null) + { + hashCode = (hashCode * 59) + this.SplititErrorResultCode.GetHashCode(); + } + if (this.GatewayTransactionID != null) + { + hashCode = (hashCode * 59) + this.GatewayTransactionID.GetHashCode(); + } + if (this.GatewayResultCode != null) + { + hashCode = (hashCode * 59) + this.GatewayResultCode.GetHashCode(); + } + if (this.GatewayResultMessage != null) + { + hashCode = (hashCode * 59) + this.GatewayResultMessage.GetHashCode(); + } + if (this.ThreeDSRedirect != null) + { + hashCode = (hashCode * 59) + this.ThreeDSRedirect.GetHashCode(); + } + if (this.CAVV != null) + { + hashCode = (hashCode * 59) + this.CAVV.GetHashCode(); + } + if (this.ECI != null) + { + hashCode = (hashCode * 59) + this.ECI.GetHashCode(); + } + if (this.GatewaySourceResponse != null) + { + hashCode = (hashCode * 59) + this.GatewaySourceResponse.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/BluesnapVaultedShopperToken.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/BluesnapVaultedShopperToken.cs new file mode 100644 index 000000000..38429b1ae --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/BluesnapVaultedShopperToken.cs @@ -0,0 +1,146 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// BluesnapVaultedShopperToken + /// + [DataContract(Name = "BluesnapVaultedShopperToken")] + public partial class BluesnapVaultedShopperToken : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// token. + /// last4Digit. + public BluesnapVaultedShopperToken(string token = default(string), string last4Digit = default(string)) + { + this.Token = token; + this.Last4Digit = last4Digit; + } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "Token", EmitDefaultValue = false)] + public string Token { get; set; } + + /// + /// Gets or Sets Last4Digit + /// + [DataMember(Name = "Last4Digit", EmitDefaultValue = false)] + public string Last4Digit { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BluesnapVaultedShopperToken {\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" Last4Digit: ").Append(Last4Digit).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BluesnapVaultedShopperToken); + } + + /// + /// Returns true if BluesnapVaultedShopperToken instances are equal + /// + /// Instance of BluesnapVaultedShopperToken to be compared + /// Boolean + public bool Equals(BluesnapVaultedShopperToken input) + { + if (input == null) + { + return false; + } + return + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ) && + ( + this.Last4Digit == input.Last4Digit || + (this.Last4Digit != null && + this.Last4Digit.Equals(input.Last4Digit)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Token != null) + { + hashCode = (hashCode * 59) + this.Token.GetHashCode(); + } + if (this.Last4Digit != null) + { + hashCode = (hashCode * 59) + this.Last4Digit.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardBrand.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardBrand.cs new file mode 100644 index 000000000..2c9e5df62 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardBrand.cs @@ -0,0 +1,90 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines CardBrand + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CardBrand + { + /// + /// Enum Mastercard for value: Mastercard + /// + [EnumMember(Value = "Mastercard")] + Mastercard = 1, + + /// + /// Enum Visa for value: Visa + /// + [EnumMember(Value = "Visa")] + Visa = 2, + + /// + /// Enum AmericanExpress for value: AmericanExpress + /// + [EnumMember(Value = "AmericanExpress")] + AmericanExpress = 3, + + /// + /// Enum Maestro for value: Maestro + /// + [EnumMember(Value = "Maestro")] + Maestro = 4, + + /// + /// Enum JCB for value: JCB + /// + [EnumMember(Value = "JCB")] + JCB = 5, + + /// + /// Enum CUP for value: CUP + /// + [EnumMember(Value = "CUP")] + CUP = 6, + + /// + /// Enum UPI for value: UPI + /// + [EnumMember(Value = "UPI")] + UPI = 7, + + /// + /// Enum Discover for value: Discover + /// + [EnumMember(Value = "Discover")] + Discover = 8, + + /// + /// Enum Other for value: Other + /// + [EnumMember(Value = "Other")] + Other = 9 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardData.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardData.cs new file mode 100644 index 000000000..f726adea7 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardData.cs @@ -0,0 +1,228 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// CardData + /// + [DataContract(Name = "CardData")] + public partial class CardData : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets CardBrand + /// + [DataMember(Name = "CardBrand", EmitDefaultValue = false)] + public CardBrand? CardBrand { get; set; } + + /// + /// Gets or Sets CardType + /// + [DataMember(Name = "CardType", EmitDefaultValue = false)] + public CardType? CardType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// cardHolderFullName. + /// cardNumber. + /// cardExpYear. + /// cardExpMonth. + /// cardCvv. + /// cardBrand. + /// cardType. + public CardData(string cardHolderFullName = default(string), string cardNumber = default(string), string cardExpYear = default(string), string cardExpMonth = default(string), string cardCvv = default(string), CardBrand? cardBrand = default(CardBrand?), CardType? cardType = default(CardType?)) + { + this.CardHolderFullName = cardHolderFullName; + this.CardNumber = cardNumber; + this.CardExpYear = cardExpYear; + this.CardExpMonth = cardExpMonth; + this.CardCvv = cardCvv; + this.CardBrand = cardBrand; + this.CardType = cardType; + } + + /// + /// Gets or Sets CardHolderFullName + /// + [DataMember(Name = "CardHolderFullName", EmitDefaultValue = false)] + public string CardHolderFullName { get; set; } + + /// + /// Gets or Sets CardNumber + /// + [DataMember(Name = "CardNumber", EmitDefaultValue = false)] + public string CardNumber { get; set; } + + /// + /// Gets or Sets CardExpYear + /// + [DataMember(Name = "CardExpYear", EmitDefaultValue = false)] + public string CardExpYear { get; set; } + + /// + /// Gets or Sets CardExpMonth + /// + [DataMember(Name = "CardExpMonth", EmitDefaultValue = false)] + public string CardExpMonth { get; set; } + + /// + /// Gets or Sets CardCvv + /// + [DataMember(Name = "CardCvv", EmitDefaultValue = false)] + public string CardCvv { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CardData {\n"); + sb.Append(" CardHolderFullName: ").Append(CardHolderFullName).Append("\n"); + sb.Append(" CardNumber: ").Append(CardNumber).Append("\n"); + sb.Append(" CardExpYear: ").Append(CardExpYear).Append("\n"); + sb.Append(" CardExpMonth: ").Append(CardExpMonth).Append("\n"); + sb.Append(" CardCvv: ").Append(CardCvv).Append("\n"); + sb.Append(" CardBrand: ").Append(CardBrand).Append("\n"); + sb.Append(" CardType: ").Append(CardType).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CardData); + } + + /// + /// Returns true if CardData instances are equal + /// + /// Instance of CardData to be compared + /// Boolean + public bool Equals(CardData input) + { + if (input == null) + { + return false; + } + return + ( + this.CardHolderFullName == input.CardHolderFullName || + (this.CardHolderFullName != null && + this.CardHolderFullName.Equals(input.CardHolderFullName)) + ) && + ( + this.CardNumber == input.CardNumber || + (this.CardNumber != null && + this.CardNumber.Equals(input.CardNumber)) + ) && + ( + this.CardExpYear == input.CardExpYear || + (this.CardExpYear != null && + this.CardExpYear.Equals(input.CardExpYear)) + ) && + ( + this.CardExpMonth == input.CardExpMonth || + (this.CardExpMonth != null && + this.CardExpMonth.Equals(input.CardExpMonth)) + ) && + ( + this.CardCvv == input.CardCvv || + (this.CardCvv != null && + this.CardCvv.Equals(input.CardCvv)) + ) && + ( + this.CardBrand == input.CardBrand || + this.CardBrand.Equals(input.CardBrand) + ) && + ( + this.CardType == input.CardType || + this.CardType.Equals(input.CardType) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CardHolderFullName != null) + { + hashCode = (hashCode * 59) + this.CardHolderFullName.GetHashCode(); + } + if (this.CardNumber != null) + { + hashCode = (hashCode * 59) + this.CardNumber.GetHashCode(); + } + if (this.CardExpYear != null) + { + hashCode = (hashCode * 59) + this.CardExpYear.GetHashCode(); + } + if (this.CardExpMonth != null) + { + hashCode = (hashCode * 59) + this.CardExpMonth.GetHashCode(); + } + if (this.CardCvv != null) + { + hashCode = (hashCode * 59) + this.CardCvv.GetHashCode(); + } + hashCode = (hashCode * 59) + this.CardBrand.GetHashCode(); + hashCode = (hashCode * 59) + this.CardType.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardType.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardType.cs new file mode 100644 index 000000000..832a184ed --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CardType.cs @@ -0,0 +1,78 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines CardType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CardType + { + /// + /// Enum Credit for value: Credit + /// + [EnumMember(Value = "Credit")] + Credit = 1, + + /// + /// Enum Debit for value: Debit + /// + [EnumMember(Value = "Debit")] + Debit = 2, + + /// + /// Enum Charge for value: Charge + /// + [EnumMember(Value = "Charge")] + Charge = 3, + + /// + /// Enum Other for value: Other + /// + [EnumMember(Value = "Other")] + Other = 4, + + /// + /// Enum Prepaid for value: Prepaid + /// + [EnumMember(Value = "Prepaid")] + Prepaid = 5, + + /// + /// Enum VisaDeferredDebit for value: VisaDeferredDebit + /// + [EnumMember(Value = "VisaDeferredDebit")] + VisaDeferredDebit = 6, + + /// + /// Enum NetworkOnly for value: NetworkOnly + /// + [EnumMember(Value = "NetworkOnly")] + NetworkOnly = 7 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CheckInstallmentsEligibilityRequest.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CheckInstallmentsEligibilityRequest.cs new file mode 100644 index 000000000..1a920a5e0 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/CheckInstallmentsEligibilityRequest.cs @@ -0,0 +1,164 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// CheckInstallmentsEligibilityRequest + /// + [DataContract(Name = "CheckInstallmentsEligibilityRequest")] + public partial class CheckInstallmentsEligibilityRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// planData. + /// cardDetails. + /// billingAddress. + public CheckInstallmentsEligibilityRequest(PlanData planData = default(PlanData), CardData cardDetails = default(CardData), AddressData billingAddress = default(AddressData)) + { + this.PlanData = planData; + this.CardDetails = cardDetails; + this.BillingAddress = billingAddress; + } + + /// + /// Gets or Sets PlanData + /// + [DataMember(Name = "PlanData", EmitDefaultValue = false)] + public PlanData PlanData { get; set; } + + /// + /// Gets or Sets CardDetails + /// + [DataMember(Name = "CardDetails", EmitDefaultValue = false)] + public CardData CardDetails { get; set; } + + /// + /// Gets or Sets BillingAddress + /// + [DataMember(Name = "BillingAddress", EmitDefaultValue = false)] + public AddressData BillingAddress { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CheckInstallmentsEligibilityRequest {\n"); + sb.Append(" PlanData: ").Append(PlanData).Append("\n"); + sb.Append(" CardDetails: ").Append(CardDetails).Append("\n"); + sb.Append(" BillingAddress: ").Append(BillingAddress).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CheckInstallmentsEligibilityRequest); + } + + /// + /// Returns true if CheckInstallmentsEligibilityRequest instances are equal + /// + /// Instance of CheckInstallmentsEligibilityRequest to be compared + /// Boolean + public bool Equals(CheckInstallmentsEligibilityRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.PlanData == input.PlanData || + (this.PlanData != null && + this.PlanData.Equals(input.PlanData)) + ) && + ( + this.CardDetails == input.CardDetails || + (this.CardDetails != null && + this.CardDetails.Equals(input.CardDetails)) + ) && + ( + this.BillingAddress == input.BillingAddress || + (this.BillingAddress != null && + this.BillingAddress.Equals(input.BillingAddress)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PlanData != null) + { + hashCode = (hashCode * 59) + this.PlanData.GetHashCode(); + } + if (this.CardDetails != null) + { + hashCode = (hashCode * 59) + this.CardDetails.GetHashCode(); + } + if (this.BillingAddress != null) + { + hashCode = (hashCode * 59) + this.BillingAddress.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/Error.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/Error.cs new file mode 100644 index 000000000..e3e1dc934 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/Error.cs @@ -0,0 +1,164 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Error + /// + [DataContract(Name = "Error")] + public partial class Error : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// code. + /// message. + /// additionalInfo. + public Error(string code = default(string), string message = default(string), string additionalInfo = default(string)) + { + this.Code = code; + this.Message = message; + this.AdditionalInfo = additionalInfo; + } + + /// + /// Gets or Sets Code + /// + [DataMember(Name = "Code", EmitDefaultValue = false)] + public string Code { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "Message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Gets or Sets AdditionalInfo + /// + [DataMember(Name = "AdditionalInfo", EmitDefaultValue = false)] + public string AdditionalInfo { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Error {\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" AdditionalInfo: ").Append(AdditionalInfo).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Error); + } + + /// + /// Returns true if Error instances are equal + /// + /// Instance of Error to be compared + /// Boolean + public bool Equals(Error input) + { + if (input == null) + { + return false; + } + return + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.AdditionalInfo == input.AdditionalInfo || + (this.AdditionalInfo != null && + this.AdditionalInfo.Equals(input.AdditionalInfo)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.AdditionalInfo != null) + { + hashCode = (hashCode * 59) + this.AdditionalInfo.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ErrorExtended.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ErrorExtended.cs new file mode 100644 index 000000000..fba77fb0b --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ErrorExtended.cs @@ -0,0 +1,183 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// ErrorExtended + /// + [DataContract(Name = "ErrorExtended")] + public partial class ErrorExtended : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// code. + /// message. + /// additionalInfo. + /// extraData. + public ErrorExtended(string code = default(string), string message = default(string), string additionalInfo = default(string), Dictionary extraData = default(Dictionary)) + { + this.Code = code; + this.Message = message; + this.AdditionalInfo = additionalInfo; + this.ExtraData = extraData; + } + + /// + /// Gets or Sets Code + /// + [DataMember(Name = "Code", EmitDefaultValue = false)] + public string Code { get; set; } + + /// + /// Gets or Sets Message + /// + [DataMember(Name = "Message", EmitDefaultValue = false)] + public string Message { get; set; } + + /// + /// Gets or Sets AdditionalInfo + /// + [DataMember(Name = "AdditionalInfo", EmitDefaultValue = false)] + public string AdditionalInfo { get; set; } + + /// + /// Gets or Sets ExtraData + /// + [DataMember(Name = "ExtraData", EmitDefaultValue = false)] + public Dictionary ExtraData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ErrorExtended {\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" AdditionalInfo: ").Append(AdditionalInfo).Append("\n"); + sb.Append(" ExtraData: ").Append(ExtraData).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ErrorExtended); + } + + /// + /// Returns true if ErrorExtended instances are equal + /// + /// Instance of ErrorExtended to be compared + /// Boolean + public bool Equals(ErrorExtended input) + { + if (input == null) + { + return false; + } + return + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.AdditionalInfo == input.AdditionalInfo || + (this.AdditionalInfo != null && + this.AdditionalInfo.Equals(input.AdditionalInfo)) + ) && + ( + this.ExtraData == input.ExtraData || + this.ExtraData != null && + input.ExtraData != null && + this.ExtraData.SequenceEqual(input.ExtraData) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.AdditionalInfo != null) + { + hashCode = (hashCode * 59) + this.AdditionalInfo.GetHashCode(); + } + if (this.ExtraData != null) + { + hashCode = (hashCode * 59) + this.ExtraData.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ErrorExtendedAllOf.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ErrorExtendedAllOf.cs new file mode 100644 index 000000000..7fe8490ce --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ErrorExtendedAllOf.cs @@ -0,0 +1,129 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// ErrorExtendedAllOf + /// + [DataContract(Name = "ErrorExtended_allOf")] + public partial class ErrorExtendedAllOf : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// extraData. + public ErrorExtendedAllOf(Dictionary extraData = default(Dictionary)) + { + this.ExtraData = extraData; + } + + /// + /// Gets or Sets ExtraData + /// + [DataMember(Name = "ExtraData", EmitDefaultValue = false)] + public Dictionary ExtraData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ErrorExtendedAllOf {\n"); + sb.Append(" ExtraData: ").Append(ExtraData).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ErrorExtendedAllOf); + } + + /// + /// Returns true if ErrorExtendedAllOf instances are equal + /// + /// Instance of ErrorExtendedAllOf to be compared + /// Boolean + public bool Equals(ErrorExtendedAllOf input) + { + if (input == null) + { + return false; + } + return + ( + this.ExtraData == input.ExtraData || + this.ExtraData != null && + input.ExtraData != null && + this.ExtraData.SequenceEqual(input.ExtraData) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ExtraData != null) + { + hashCode = (hashCode * 59) + this.ExtraData.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/EventsEndpointsModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/EventsEndpointsModel.cs new file mode 100644 index 000000000..bbe49db38 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/EventsEndpointsModel.cs @@ -0,0 +1,128 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// EventsEndpointsModel + /// + [DataContract(Name = "EventsEndpointsModel")] + public partial class EventsEndpointsModel : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// createSucceeded. + public EventsEndpointsModel(string createSucceeded = default(string)) + { + this.CreateSucceeded = createSucceeded; + } + + /// + /// Gets or Sets CreateSucceeded + /// + [DataMember(Name = "CreateSucceeded", EmitDefaultValue = false)] + public string CreateSucceeded { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EventsEndpointsModel {\n"); + sb.Append(" CreateSucceeded: ").Append(CreateSucceeded).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EventsEndpointsModel); + } + + /// + /// Returns true if EventsEndpointsModel instances are equal + /// + /// Instance of EventsEndpointsModel to be compared + /// Boolean + public bool Equals(EventsEndpointsModel input) + { + if (input == null) + { + return false; + } + return + ( + this.CreateSucceeded == input.CreateSucceeded || + (this.CreateSucceeded != null && + this.CreateSucceeded.Equals(input.CreateSucceeded)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CreateSucceeded != null) + { + hashCode = (hashCode * 59) + this.CreateSucceeded.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/FailedResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/FailedResponse.cs new file mode 100644 index 000000000..c27780fde --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/FailedResponse.cs @@ -0,0 +1,146 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// FailedResponse + /// + [DataContract(Name = "FailedResponse")] + public partial class FailedResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// traceId. + /// error. + public FailedResponse(string traceId = default(string), ErrorExtended error = default(ErrorExtended)) + { + this.TraceId = traceId; + this.Error = error; + } + + /// + /// Gets or Sets TraceId + /// + [DataMember(Name = "TraceId", EmitDefaultValue = false)] + public string TraceId { get; set; } + + /// + /// Gets or Sets Error + /// + [DataMember(Name = "Error", EmitDefaultValue = false)] + public ErrorExtended Error { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FailedResponse {\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Error: ").Append(Error).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as FailedResponse); + } + + /// + /// Returns true if FailedResponse instances are equal + /// + /// Instance of FailedResponse to be compared + /// Boolean + public bool Equals(FailedResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.TraceId == input.TraceId || + (this.TraceId != null && + this.TraceId.Equals(input.TraceId)) + ) && + ( + this.Error == input.Error || + (this.Error != null && + this.Error.Equals(input.Error)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TraceId != null) + { + hashCode = (hashCode * 59) + this.TraceId.GetHashCode(); + } + if (this.Error != null) + { + hashCode = (hashCode * 59) + this.Error.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/GatewayTokenData.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/GatewayTokenData.cs new file mode 100644 index 000000000..b3bd53826 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/GatewayTokenData.cs @@ -0,0 +1,146 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// GatewayTokenData + /// + [DataContract(Name = "GatewayTokenData")] + public partial class GatewayTokenData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// token. + /// last4Digit. + public GatewayTokenData(string token = default(string), string last4Digit = default(string)) + { + this.Token = token; + this.Last4Digit = last4Digit; + } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "Token", EmitDefaultValue = false)] + public string Token { get; set; } + + /// + /// Gets or Sets Last4Digit + /// + [DataMember(Name = "Last4Digit", EmitDefaultValue = false)] + public string Last4Digit { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GatewayTokenData {\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" Last4Digit: ").Append(Last4Digit).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GatewayTokenData); + } + + /// + /// Returns true if GatewayTokenData instances are equal + /// + /// Instance of GatewayTokenData to be compared + /// Boolean + public bool Equals(GatewayTokenData input) + { + if (input == null) + { + return false; + } + return + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ) && + ( + this.Last4Digit == input.Last4Digit || + (this.Last4Digit != null && + this.Last4Digit.Equals(input.Last4Digit)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Token != null) + { + hashCode = (hashCode * 59) + this.Token.GetHashCode(); + } + if (this.Last4Digit != null) + { + hashCode = (hashCode * 59) + this.Last4Digit.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/GwAuthorizationStatus.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/GwAuthorizationStatus.cs new file mode 100644 index 000000000..a4b8b9e2d --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/GwAuthorizationStatus.cs @@ -0,0 +1,60 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines GwAuthorizationStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum GwAuthorizationStatus + { + /// + /// Enum NA for value: NA + /// + [EnumMember(Value = "NA")] + NA = 1, + + /// + /// Enum Succeeded for value: Succeeded + /// + [EnumMember(Value = "Succeeded")] + Succeeded = 2, + + /// + /// Enum Pending3DS for value: Pending3DS + /// + [EnumMember(Value = "Pending3DS")] + Pending3DS = 3, + + /// + /// Enum Failed for value: Failed + /// + [EnumMember(Value = "Failed")] + Failed = 4 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/IdentifierContract.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/IdentifierContract.cs new file mode 100644 index 000000000..3d7a2f269 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/IdentifierContract.cs @@ -0,0 +1,165 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// IdentifierContract + /// + [DataContract(Name = "IdentifierContract")] + public partial class IdentifierContract : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// refOrderNumber. + /// installmentPlanNumber. + /// extendedParams. + public IdentifierContract(string refOrderNumber = default(string), string installmentPlanNumber = default(string), Dictionary extendedParams = default(Dictionary)) + { + this.RefOrderNumber = refOrderNumber; + this.InstallmentPlanNumber = installmentPlanNumber; + this.ExtendedParams = extendedParams; + } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets InstallmentPlanNumber + /// + [DataMember(Name = "InstallmentPlanNumber", EmitDefaultValue = false)] + public string InstallmentPlanNumber { get; set; } + + /// + /// Gets or Sets ExtendedParams + /// + [DataMember(Name = "ExtendedParams", EmitDefaultValue = false)] + public Dictionary ExtendedParams { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class IdentifierContract {\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" InstallmentPlanNumber: ").Append(InstallmentPlanNumber).Append("\n"); + sb.Append(" ExtendedParams: ").Append(ExtendedParams).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as IdentifierContract); + } + + /// + /// Returns true if IdentifierContract instances are equal + /// + /// Instance of IdentifierContract to be compared + /// Boolean + public bool Equals(IdentifierContract input) + { + if (input == null) + { + return false; + } + return + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.InstallmentPlanNumber == input.InstallmentPlanNumber || + (this.InstallmentPlanNumber != null && + this.InstallmentPlanNumber.Equals(input.InstallmentPlanNumber)) + ) && + ( + this.ExtendedParams == input.ExtendedParams || + this.ExtendedParams != null && + input.ExtendedParams != null && + this.ExtendedParams.SequenceEqual(input.ExtendedParams) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + if (this.InstallmentPlanNumber != null) + { + hashCode = (hashCode * 59) + this.InstallmentPlanNumber.GetHashCode(); + } + if (this.ExtendedParams != null) + { + hashCode = (hashCode * 59) + this.ExtendedParams.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InitiatePlanResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InitiatePlanResponse.cs new file mode 100644 index 000000000..99c2e874a --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InitiatePlanResponse.cs @@ -0,0 +1,284 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InitiatePlanResponse + /// + [DataContract(Name = "InitiatePlanResponse")] + public partial class InitiatePlanResponse : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets PurchaseMethod + /// + [DataMember(Name = "PurchaseMethod", EmitDefaultValue = false)] + public PurchaseMethod? PurchaseMethod { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "Status", IsRequired = true, EmitDefaultValue = true)] + public PlanStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InitiatePlanResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// installmentPlanNumber. + /// refOrderNumber. + /// purchaseMethod. + /// status (required). + /// currency. + /// amount. + /// extendedParams. + /// shopper. + /// billingAddress. + /// checkoutUrl. + public InitiatePlanResponse(string installmentPlanNumber = default(string), string refOrderNumber = default(string), PurchaseMethod? purchaseMethod = default(PurchaseMethod?), PlanStatus status = default(PlanStatus), string currency = default(string), double amount = default(double), Dictionary extendedParams = default(Dictionary), ShopperData shopper = default(ShopperData), AddressData billingAddress = default(AddressData), string checkoutUrl = default(string)) + { + this.Status = status; + this.InstallmentPlanNumber = installmentPlanNumber; + this.RefOrderNumber = refOrderNumber; + this.PurchaseMethod = purchaseMethod; + this.Currency = currency; + this.Amount = amount; + this.ExtendedParams = extendedParams; + this.Shopper = shopper; + this.BillingAddress = billingAddress; + this.CheckoutUrl = checkoutUrl; + } + + /// + /// Gets or Sets InstallmentPlanNumber + /// + [DataMember(Name = "InstallmentPlanNumber", EmitDefaultValue = false)] + public string InstallmentPlanNumber { get; set; } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name = "Currency", EmitDefaultValue = false)] + public string Currency { get; set; } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name = "Amount", EmitDefaultValue = false)] + public double Amount { get; set; } + + /// + /// Gets or Sets ExtendedParams + /// + [DataMember(Name = "ExtendedParams", EmitDefaultValue = false)] + public Dictionary ExtendedParams { get; set; } + + /// + /// Gets or Sets Shopper + /// + [DataMember(Name = "Shopper", EmitDefaultValue = false)] + public ShopperData Shopper { get; set; } + + /// + /// Gets or Sets BillingAddress + /// + [DataMember(Name = "BillingAddress", EmitDefaultValue = false)] + public AddressData BillingAddress { get; set; } + + /// + /// Gets or Sets CheckoutUrl + /// + [DataMember(Name = "CheckoutUrl", EmitDefaultValue = false)] + public string CheckoutUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InitiatePlanResponse {\n"); + sb.Append(" InstallmentPlanNumber: ").Append(InstallmentPlanNumber).Append("\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" PurchaseMethod: ").Append(PurchaseMethod).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" ExtendedParams: ").Append(ExtendedParams).Append("\n"); + sb.Append(" Shopper: ").Append(Shopper).Append("\n"); + sb.Append(" BillingAddress: ").Append(BillingAddress).Append("\n"); + sb.Append(" CheckoutUrl: ").Append(CheckoutUrl).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InitiatePlanResponse); + } + + /// + /// Returns true if InitiatePlanResponse instances are equal + /// + /// Instance of InitiatePlanResponse to be compared + /// Boolean + public bool Equals(InitiatePlanResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.InstallmentPlanNumber == input.InstallmentPlanNumber || + (this.InstallmentPlanNumber != null && + this.InstallmentPlanNumber.Equals(input.InstallmentPlanNumber)) + ) && + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.PurchaseMethod == input.PurchaseMethod || + this.PurchaseMethod.Equals(input.PurchaseMethod) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.Amount == input.Amount || + this.Amount.Equals(input.Amount) + ) && + ( + this.ExtendedParams == input.ExtendedParams || + this.ExtendedParams != null && + input.ExtendedParams != null && + this.ExtendedParams.SequenceEqual(input.ExtendedParams) + ) && + ( + this.Shopper == input.Shopper || + (this.Shopper != null && + this.Shopper.Equals(input.Shopper)) + ) && + ( + this.BillingAddress == input.BillingAddress || + (this.BillingAddress != null && + this.BillingAddress.Equals(input.BillingAddress)) + ) && + ( + this.CheckoutUrl == input.CheckoutUrl || + (this.CheckoutUrl != null && + this.CheckoutUrl.Equals(input.CheckoutUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InstallmentPlanNumber != null) + { + hashCode = (hashCode * 59) + this.InstallmentPlanNumber.GetHashCode(); + } + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PurchaseMethod.GetHashCode(); + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.Currency != null) + { + hashCode = (hashCode * 59) + this.Currency.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Amount.GetHashCode(); + if (this.ExtendedParams != null) + { + hashCode = (hashCode * 59) + this.ExtendedParams.GetHashCode(); + } + if (this.Shopper != null) + { + hashCode = (hashCode * 59) + this.Shopper.GetHashCode(); + } + if (this.BillingAddress != null) + { + hashCode = (hashCode * 59) + this.BillingAddress.GetHashCode(); + } + if (this.CheckoutUrl != null) + { + hashCode = (hashCode * 59) + this.CheckoutUrl.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InitiateRedirectionEndpointsModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InitiateRedirectionEndpointsModel.cs new file mode 100644 index 000000000..c8bb33019 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InitiateRedirectionEndpointsModel.cs @@ -0,0 +1,164 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InitiateRedirectionEndpointsModel + /// + [DataContract(Name = "InitiateRedirectionEndpointsModel")] + public partial class InitiateRedirectionEndpointsModel : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// succeeded. + /// failed. + /// cancel. + public InitiateRedirectionEndpointsModel(string succeeded = default(string), string failed = default(string), string cancel = default(string)) + { + this.Succeeded = succeeded; + this.Failed = failed; + this.Cancel = cancel; + } + + /// + /// Gets or Sets Succeeded + /// + [DataMember(Name = "Succeeded", EmitDefaultValue = false)] + public string Succeeded { get; set; } + + /// + /// Gets or Sets Failed + /// + [DataMember(Name = "Failed", EmitDefaultValue = false)] + public string Failed { get; set; } + + /// + /// Gets or Sets Cancel + /// + [DataMember(Name = "Cancel", EmitDefaultValue = false)] + public string Cancel { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InitiateRedirectionEndpointsModel {\n"); + sb.Append(" Succeeded: ").Append(Succeeded).Append("\n"); + sb.Append(" Failed: ").Append(Failed).Append("\n"); + sb.Append(" Cancel: ").Append(Cancel).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InitiateRedirectionEndpointsModel); + } + + /// + /// Returns true if InitiateRedirectionEndpointsModel instances are equal + /// + /// Instance of InitiateRedirectionEndpointsModel to be compared + /// Boolean + public bool Equals(InitiateRedirectionEndpointsModel input) + { + if (input == null) + { + return false; + } + return + ( + this.Succeeded == input.Succeeded || + (this.Succeeded != null && + this.Succeeded.Equals(input.Succeeded)) + ) && + ( + this.Failed == input.Failed || + (this.Failed != null && + this.Failed.Equals(input.Failed)) + ) && + ( + this.Cancel == input.Cancel || + (this.Cancel != null && + this.Cancel.Equals(input.Cancel)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Succeeded != null) + { + hashCode = (hashCode * 59) + this.Succeeded.GetHashCode(); + } + if (this.Failed != null) + { + hashCode = (hashCode * 59) + this.Failed.GetHashCode(); + } + if (this.Cancel != null) + { + hashCode = (hashCode * 59) + this.Cancel.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/Installment.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/Installment.cs new file mode 100644 index 000000000..b2ba1b27f --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/Installment.cs @@ -0,0 +1,175 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Installment + /// + [DataContract(Name = "Installment")] + public partial class Installment : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "Status", IsRequired = true, EmitDefaultValue = true)] + public InstallmentStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Installment() { } + /// + /// Initializes a new instance of the class. + /// + /// installmentNumber (required). + /// amount (required). + /// processDateTime. + /// status (required). + public Installment(int installmentNumber = default(int), double amount = default(double), DateTime processDateTime = default(DateTime), InstallmentStatus status = default(InstallmentStatus)) + { + this.InstallmentNumber = installmentNumber; + this.Amount = amount; + this.Status = status; + this.ProcessDateTime = processDateTime; + } + + /// + /// Gets or Sets InstallmentNumber + /// + [DataMember(Name = "InstallmentNumber", IsRequired = true, EmitDefaultValue = true)] + public int InstallmentNumber { get; set; } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name = "Amount", IsRequired = true, EmitDefaultValue = true)] + public double Amount { get; set; } + + /// + /// Gets or Sets ProcessDateTime + /// + [DataMember(Name = "ProcessDateTime", EmitDefaultValue = false)] + public DateTime ProcessDateTime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Installment {\n"); + sb.Append(" InstallmentNumber: ").Append(InstallmentNumber).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" ProcessDateTime: ").Append(ProcessDateTime).Append("\n"); + sb.Append(" Status: ").Append(Status).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Installment); + } + + /// + /// Returns true if Installment instances are equal + /// + /// Instance of Installment to be compared + /// Boolean + public bool Equals(Installment input) + { + if (input == null) + { + return false; + } + return + ( + this.InstallmentNumber == input.InstallmentNumber || + this.InstallmentNumber.Equals(input.InstallmentNumber) + ) && + ( + this.Amount == input.Amount || + this.Amount.Equals(input.Amount) + ) && + ( + this.ProcessDateTime == input.ProcessDateTime || + (this.ProcessDateTime != null && + this.ProcessDateTime.Equals(input.ProcessDateTime)) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.InstallmentNumber.GetHashCode(); + hashCode = (hashCode * 59) + this.Amount.GetHashCode(); + if (this.ProcessDateTime != null) + { + hashCode = (hashCode * 59) + this.ProcessDateTime.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCancelResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCancelResponse.cs new file mode 100644 index 000000000..76ce063ee --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCancelResponse.cs @@ -0,0 +1,128 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanCancelResponse + /// + [DataContract(Name = "InstallmentPlanCancelResponse")] + public partial class InstallmentPlanCancelResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// installmentPlanNumber. + public InstallmentPlanCancelResponse(string installmentPlanNumber = default(string)) + { + this.InstallmentPlanNumber = installmentPlanNumber; + } + + /// + /// Gets or Sets InstallmentPlanNumber + /// + [DataMember(Name = "InstallmentPlanNumber", EmitDefaultValue = false)] + public string InstallmentPlanNumber { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanCancelResponse {\n"); + sb.Append(" InstallmentPlanNumber: ").Append(InstallmentPlanNumber).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanCancelResponse); + } + + /// + /// Returns true if InstallmentPlanCancelResponse instances are equal + /// + /// Instance of InstallmentPlanCancelResponse to be compared + /// Boolean + public bool Equals(InstallmentPlanCancelResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.InstallmentPlanNumber == input.InstallmentPlanNumber || + (this.InstallmentPlanNumber != null && + this.InstallmentPlanNumber.Equals(input.InstallmentPlanNumber)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InstallmentPlanNumber != null) + { + hashCode = (hashCode * 59) + this.InstallmentPlanNumber.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCreateRequest.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCreateRequest.cs new file mode 100644 index 000000000..ea55630f3 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCreateRequest.cs @@ -0,0 +1,283 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanCreateRequest + /// + [DataContract(Name = "InstallmentPlanCreateRequest")] + public partial class InstallmentPlanCreateRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InstallmentPlanCreateRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// autoCapture (required). + /// attempt3dSecure. + /// termsAndConditionsAccepted (required). + /// shopper. + /// planData. + /// billingAddress. + /// paymentMethod. + /// redirectUrls. + /// processingData. + /// eventsEndpoints. + public InstallmentPlanCreateRequest(bool autoCapture = default(bool), bool attempt3dSecure = default(bool), bool termsAndConditionsAccepted = default(bool), ShopperData shopper = default(ShopperData), PlanDataModel planData = default(PlanDataModel), AddressDataModel billingAddress = default(AddressDataModel), PaymentMethodModel paymentMethod = default(PaymentMethodModel), RedirectionEndpointsModel redirectUrls = default(RedirectionEndpointsModel), ProcessingData processingData = default(ProcessingData), EventsEndpointsModel eventsEndpoints = default(EventsEndpointsModel)) + { + this.AutoCapture = autoCapture; + this.TermsAndConditionsAccepted = termsAndConditionsAccepted; + this.Attempt3dSecure = attempt3dSecure; + this.Shopper = shopper; + this.PlanData = planData; + this.BillingAddress = billingAddress; + this.PaymentMethod = paymentMethod; + this.RedirectUrls = redirectUrls; + this.ProcessingData = processingData; + this.EventsEndpoints = eventsEndpoints; + } + + /// + /// Gets or Sets AutoCapture + /// + [DataMember(Name = "AutoCapture", IsRequired = true, EmitDefaultValue = true)] + public bool AutoCapture { get; set; } + + /// + /// Gets or Sets Attempt3dSecure + /// + [DataMember(Name = "Attempt3dSecure", EmitDefaultValue = true)] + public bool Attempt3dSecure { get; set; } + + /// + /// Gets or Sets TermsAndConditionsAccepted + /// + [DataMember(Name = "TermsAndConditionsAccepted", IsRequired = true, EmitDefaultValue = true)] + public bool TermsAndConditionsAccepted { get; set; } + + /// + /// Gets or Sets Shopper + /// + [DataMember(Name = "Shopper", EmitDefaultValue = false)] + public ShopperData Shopper { get; set; } + + /// + /// Gets or Sets PlanData + /// + [DataMember(Name = "PlanData", EmitDefaultValue = false)] + public PlanDataModel PlanData { get; set; } + + /// + /// Gets or Sets BillingAddress + /// + [DataMember(Name = "BillingAddress", EmitDefaultValue = false)] + public AddressDataModel BillingAddress { get; set; } + + /// + /// Gets or Sets PaymentMethod + /// + [DataMember(Name = "PaymentMethod", EmitDefaultValue = false)] + public PaymentMethodModel PaymentMethod { get; set; } + + /// + /// Gets or Sets RedirectUrls + /// + [DataMember(Name = "RedirectUrls", EmitDefaultValue = false)] + public RedirectionEndpointsModel RedirectUrls { get; set; } + + /// + /// Gets or Sets ProcessingData + /// + [DataMember(Name = "ProcessingData", EmitDefaultValue = false)] + public ProcessingData ProcessingData { get; set; } + + /// + /// Gets or Sets EventsEndpoints + /// + [DataMember(Name = "EventsEndpoints", EmitDefaultValue = false)] + public EventsEndpointsModel EventsEndpoints { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanCreateRequest {\n"); + sb.Append(" AutoCapture: ").Append(AutoCapture).Append("\n"); + sb.Append(" Attempt3dSecure: ").Append(Attempt3dSecure).Append("\n"); + sb.Append(" TermsAndConditionsAccepted: ").Append(TermsAndConditionsAccepted).Append("\n"); + sb.Append(" Shopper: ").Append(Shopper).Append("\n"); + sb.Append(" PlanData: ").Append(PlanData).Append("\n"); + sb.Append(" BillingAddress: ").Append(BillingAddress).Append("\n"); + sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); + sb.Append(" RedirectUrls: ").Append(RedirectUrls).Append("\n"); + sb.Append(" ProcessingData: ").Append(ProcessingData).Append("\n"); + sb.Append(" EventsEndpoints: ").Append(EventsEndpoints).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanCreateRequest); + } + + /// + /// Returns true if InstallmentPlanCreateRequest instances are equal + /// + /// Instance of InstallmentPlanCreateRequest to be compared + /// Boolean + public bool Equals(InstallmentPlanCreateRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.AutoCapture == input.AutoCapture || + this.AutoCapture.Equals(input.AutoCapture) + ) && + ( + this.Attempt3dSecure == input.Attempt3dSecure || + this.Attempt3dSecure.Equals(input.Attempt3dSecure) + ) && + ( + this.TermsAndConditionsAccepted == input.TermsAndConditionsAccepted || + this.TermsAndConditionsAccepted.Equals(input.TermsAndConditionsAccepted) + ) && + ( + this.Shopper == input.Shopper || + (this.Shopper != null && + this.Shopper.Equals(input.Shopper)) + ) && + ( + this.PlanData == input.PlanData || + (this.PlanData != null && + this.PlanData.Equals(input.PlanData)) + ) && + ( + this.BillingAddress == input.BillingAddress || + (this.BillingAddress != null && + this.BillingAddress.Equals(input.BillingAddress)) + ) && + ( + this.PaymentMethod == input.PaymentMethod || + (this.PaymentMethod != null && + this.PaymentMethod.Equals(input.PaymentMethod)) + ) && + ( + this.RedirectUrls == input.RedirectUrls || + (this.RedirectUrls != null && + this.RedirectUrls.Equals(input.RedirectUrls)) + ) && + ( + this.ProcessingData == input.ProcessingData || + (this.ProcessingData != null && + this.ProcessingData.Equals(input.ProcessingData)) + ) && + ( + this.EventsEndpoints == input.EventsEndpoints || + (this.EventsEndpoints != null && + this.EventsEndpoints.Equals(input.EventsEndpoints)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.AutoCapture.GetHashCode(); + hashCode = (hashCode * 59) + this.Attempt3dSecure.GetHashCode(); + hashCode = (hashCode * 59) + this.TermsAndConditionsAccepted.GetHashCode(); + if (this.Shopper != null) + { + hashCode = (hashCode * 59) + this.Shopper.GetHashCode(); + } + if (this.PlanData != null) + { + hashCode = (hashCode * 59) + this.PlanData.GetHashCode(); + } + if (this.BillingAddress != null) + { + hashCode = (hashCode * 59) + this.BillingAddress.GetHashCode(); + } + if (this.PaymentMethod != null) + { + hashCode = (hashCode * 59) + this.PaymentMethod.GetHashCode(); + } + if (this.RedirectUrls != null) + { + hashCode = (hashCode * 59) + this.RedirectUrls.GetHashCode(); + } + if (this.ProcessingData != null) + { + hashCode = (hashCode * 59) + this.ProcessingData.GetHashCode(); + } + if (this.EventsEndpoints != null) + { + hashCode = (hashCode * 59) + this.EventsEndpoints.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCreateResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCreateResponse.cs new file mode 100644 index 000000000..128af7328 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanCreateResponse.cs @@ -0,0 +1,371 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanCreateResponse + /// + [DataContract(Name = "InstallmentPlanCreateResponse")] + public partial class InstallmentPlanCreateResponse : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets PurchaseMethod + /// + [DataMember(Name = "PurchaseMethod", EmitDefaultValue = false)] + public PurchaseMethod? PurchaseMethod { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "Status", IsRequired = true, EmitDefaultValue = true)] + public PlanStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InstallmentPlanCreateResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// installmentPlanNumber. + /// dateCreated (required). + /// refOrderNumber. + /// purchaseMethod. + /// status (required). + /// currency. + /// originalAmount. + /// amount. + /// extendedParams. + /// authorization. + /// shopper. + /// billingAddress. + /// paymentMethod. + /// installments. + /// links. + public InstallmentPlanCreateResponse(string installmentPlanNumber = default(string), DateTime dateCreated = default(DateTime), string refOrderNumber = default(string), PurchaseMethod? purchaseMethod = default(PurchaseMethod?), PlanStatus status = default(PlanStatus), string currency = default(string), double originalAmount = default(double), double amount = default(double), Dictionary extendedParams = default(Dictionary), AuthorizationModel authorization = default(AuthorizationModel), ShopperData shopper = default(ShopperData), AddressData billingAddress = default(AddressData), PaymentMethodModel paymentMethod = default(PaymentMethodModel), List installments = default(List), LinksData links = default(LinksData)) + { + this.DateCreated = dateCreated; + this.Status = status; + this.InstallmentPlanNumber = installmentPlanNumber; + this.RefOrderNumber = refOrderNumber; + this.PurchaseMethod = purchaseMethod; + this.Currency = currency; + this.OriginalAmount = originalAmount; + this.Amount = amount; + this.ExtendedParams = extendedParams; + this.Authorization = authorization; + this.Shopper = shopper; + this.BillingAddress = billingAddress; + this.PaymentMethod = paymentMethod; + this.Installments = installments; + this.Links = links; + } + + /// + /// Gets or Sets InstallmentPlanNumber + /// + [DataMember(Name = "InstallmentPlanNumber", EmitDefaultValue = false)] + public string InstallmentPlanNumber { get; set; } + + /// + /// Gets or Sets DateCreated + /// + [DataMember(Name = "DateCreated", IsRequired = true, EmitDefaultValue = true)] + public DateTime DateCreated { get; set; } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name = "Currency", EmitDefaultValue = false)] + public string Currency { get; set; } + + /// + /// Gets or Sets OriginalAmount + /// + [DataMember(Name = "OriginalAmount", EmitDefaultValue = false)] + public double OriginalAmount { get; set; } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name = "Amount", EmitDefaultValue = false)] + public double Amount { get; set; } + + /// + /// Gets or Sets ExtendedParams + /// + [DataMember(Name = "ExtendedParams", EmitDefaultValue = false)] + public Dictionary ExtendedParams { get; set; } + + /// + /// Gets or Sets Authorization + /// + [DataMember(Name = "Authorization", EmitDefaultValue = false)] + public AuthorizationModel Authorization { get; set; } + + /// + /// Gets or Sets Shopper + /// + [DataMember(Name = "Shopper", EmitDefaultValue = false)] + public ShopperData Shopper { get; set; } + + /// + /// Gets or Sets BillingAddress + /// + [DataMember(Name = "BillingAddress", EmitDefaultValue = false)] + public AddressData BillingAddress { get; set; } + + /// + /// Gets or Sets PaymentMethod + /// + [DataMember(Name = "PaymentMethod", EmitDefaultValue = false)] + public PaymentMethodModel PaymentMethod { get; set; } + + /// + /// Gets or Sets Installments + /// + [DataMember(Name = "Installments", EmitDefaultValue = false)] + public List Installments { get; set; } + + /// + /// Gets or Sets Links + /// + [DataMember(Name = "Links", EmitDefaultValue = false)] + public LinksData Links { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanCreateResponse {\n"); + sb.Append(" InstallmentPlanNumber: ").Append(InstallmentPlanNumber).Append("\n"); + sb.Append(" DateCreated: ").Append(DateCreated).Append("\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" PurchaseMethod: ").Append(PurchaseMethod).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" OriginalAmount: ").Append(OriginalAmount).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" ExtendedParams: ").Append(ExtendedParams).Append("\n"); + sb.Append(" Authorization: ").Append(Authorization).Append("\n"); + sb.Append(" Shopper: ").Append(Shopper).Append("\n"); + sb.Append(" BillingAddress: ").Append(BillingAddress).Append("\n"); + sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); + sb.Append(" Installments: ").Append(Installments).Append("\n"); + sb.Append(" Links: ").Append(Links).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanCreateResponse); + } + + /// + /// Returns true if InstallmentPlanCreateResponse instances are equal + /// + /// Instance of InstallmentPlanCreateResponse to be compared + /// Boolean + public bool Equals(InstallmentPlanCreateResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.InstallmentPlanNumber == input.InstallmentPlanNumber || + (this.InstallmentPlanNumber != null && + this.InstallmentPlanNumber.Equals(input.InstallmentPlanNumber)) + ) && + ( + this.DateCreated == input.DateCreated || + (this.DateCreated != null && + this.DateCreated.Equals(input.DateCreated)) + ) && + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.PurchaseMethod == input.PurchaseMethod || + this.PurchaseMethod.Equals(input.PurchaseMethod) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.OriginalAmount == input.OriginalAmount || + this.OriginalAmount.Equals(input.OriginalAmount) + ) && + ( + this.Amount == input.Amount || + this.Amount.Equals(input.Amount) + ) && + ( + this.ExtendedParams == input.ExtendedParams || + this.ExtendedParams != null && + input.ExtendedParams != null && + this.ExtendedParams.SequenceEqual(input.ExtendedParams) + ) && + ( + this.Authorization == input.Authorization || + (this.Authorization != null && + this.Authorization.Equals(input.Authorization)) + ) && + ( + this.Shopper == input.Shopper || + (this.Shopper != null && + this.Shopper.Equals(input.Shopper)) + ) && + ( + this.BillingAddress == input.BillingAddress || + (this.BillingAddress != null && + this.BillingAddress.Equals(input.BillingAddress)) + ) && + ( + this.PaymentMethod == input.PaymentMethod || + (this.PaymentMethod != null && + this.PaymentMethod.Equals(input.PaymentMethod)) + ) && + ( + this.Installments == input.Installments || + this.Installments != null && + input.Installments != null && + this.Installments.SequenceEqual(input.Installments) + ) && + ( + this.Links == input.Links || + (this.Links != null && + this.Links.Equals(input.Links)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InstallmentPlanNumber != null) + { + hashCode = (hashCode * 59) + this.InstallmentPlanNumber.GetHashCode(); + } + if (this.DateCreated != null) + { + hashCode = (hashCode * 59) + this.DateCreated.GetHashCode(); + } + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PurchaseMethod.GetHashCode(); + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.Currency != null) + { + hashCode = (hashCode * 59) + this.Currency.GetHashCode(); + } + hashCode = (hashCode * 59) + this.OriginalAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.Amount.GetHashCode(); + if (this.ExtendedParams != null) + { + hashCode = (hashCode * 59) + this.ExtendedParams.GetHashCode(); + } + if (this.Authorization != null) + { + hashCode = (hashCode * 59) + this.Authorization.GetHashCode(); + } + if (this.Shopper != null) + { + hashCode = (hashCode * 59) + this.Shopper.GetHashCode(); + } + if (this.BillingAddress != null) + { + hashCode = (hashCode * 59) + this.BillingAddress.GetHashCode(); + } + if (this.PaymentMethod != null) + { + hashCode = (hashCode * 59) + this.PaymentMethod.GetHashCode(); + } + if (this.Installments != null) + { + hashCode = (hashCode * 59) + this.Installments.GetHashCode(); + } + if (this.Links != null) + { + hashCode = (hashCode * 59) + this.Links.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanGetResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanGetResponse.cs new file mode 100644 index 000000000..ffd0db438 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanGetResponse.cs @@ -0,0 +1,390 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanGetResponse + /// + [DataContract(Name = "InstallmentPlanGetResponse")] + public partial class InstallmentPlanGetResponse : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets PurchaseMethod + /// + [DataMember(Name = "PurchaseMethod", EmitDefaultValue = false)] + public PurchaseMethod? PurchaseMethod { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "Status", IsRequired = true, EmitDefaultValue = true)] + public PlanStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InstallmentPlanGetResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// installmentPlanNumber. + /// dateCreated (required). + /// refOrderNumber. + /// purchaseMethod. + /// status (required). + /// currency. + /// originalAmount. + /// amount. + /// authorization. + /// shopper. + /// billingAddress. + /// paymentMethod. + /// extendedParams. + /// installments. + /// refunds. + /// links. + public InstallmentPlanGetResponse(string installmentPlanNumber = default(string), DateTime dateCreated = default(DateTime), string refOrderNumber = default(string), PurchaseMethod? purchaseMethod = default(PurchaseMethod?), PlanStatus status = default(PlanStatus), string currency = default(string), double originalAmount = default(double), double amount = default(double), AuthorizationModel authorization = default(AuthorizationModel), ShopperData shopper = default(ShopperData), AddressData billingAddress = default(AddressData), PaymentMethodModel paymentMethod = default(PaymentMethodModel), Dictionary extendedParams = default(Dictionary), List installments = default(List), List refunds = default(List), LinksData links = default(LinksData)) + { + this.DateCreated = dateCreated; + this.Status = status; + this.InstallmentPlanNumber = installmentPlanNumber; + this.RefOrderNumber = refOrderNumber; + this.PurchaseMethod = purchaseMethod; + this.Currency = currency; + this.OriginalAmount = originalAmount; + this.Amount = amount; + this.Authorization = authorization; + this.Shopper = shopper; + this.BillingAddress = billingAddress; + this.PaymentMethod = paymentMethod; + this.ExtendedParams = extendedParams; + this.Installments = installments; + this.Refunds = refunds; + this.Links = links; + } + + /// + /// Gets or Sets InstallmentPlanNumber + /// + [DataMember(Name = "InstallmentPlanNumber", EmitDefaultValue = false)] + public string InstallmentPlanNumber { get; set; } + + /// + /// Gets or Sets DateCreated + /// + [DataMember(Name = "DateCreated", IsRequired = true, EmitDefaultValue = true)] + public DateTime DateCreated { get; set; } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name = "Currency", EmitDefaultValue = false)] + public string Currency { get; set; } + + /// + /// Gets or Sets OriginalAmount + /// + [DataMember(Name = "OriginalAmount", EmitDefaultValue = false)] + public double OriginalAmount { get; set; } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name = "Amount", EmitDefaultValue = false)] + public double Amount { get; set; } + + /// + /// Gets or Sets Authorization + /// + [DataMember(Name = "Authorization", EmitDefaultValue = false)] + public AuthorizationModel Authorization { get; set; } + + /// + /// Gets or Sets Shopper + /// + [DataMember(Name = "Shopper", EmitDefaultValue = false)] + public ShopperData Shopper { get; set; } + + /// + /// Gets or Sets BillingAddress + /// + [DataMember(Name = "BillingAddress", EmitDefaultValue = false)] + public AddressData BillingAddress { get; set; } + + /// + /// Gets or Sets PaymentMethod + /// + [DataMember(Name = "PaymentMethod", EmitDefaultValue = false)] + public PaymentMethodModel PaymentMethod { get; set; } + + /// + /// Gets or Sets ExtendedParams + /// + [DataMember(Name = "ExtendedParams", EmitDefaultValue = false)] + public Dictionary ExtendedParams { get; set; } + + /// + /// Gets or Sets Installments + /// + [DataMember(Name = "Installments", EmitDefaultValue = false)] + public List Installments { get; set; } + + /// + /// Gets or Sets Refunds + /// + [DataMember(Name = "Refunds", EmitDefaultValue = false)] + public List Refunds { get; set; } + + /// + /// Gets or Sets Links + /// + [DataMember(Name = "Links", EmitDefaultValue = false)] + public LinksData Links { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanGetResponse {\n"); + sb.Append(" InstallmentPlanNumber: ").Append(InstallmentPlanNumber).Append("\n"); + sb.Append(" DateCreated: ").Append(DateCreated).Append("\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" PurchaseMethod: ").Append(PurchaseMethod).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" OriginalAmount: ").Append(OriginalAmount).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Authorization: ").Append(Authorization).Append("\n"); + sb.Append(" Shopper: ").Append(Shopper).Append("\n"); + sb.Append(" BillingAddress: ").Append(BillingAddress).Append("\n"); + sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); + sb.Append(" ExtendedParams: ").Append(ExtendedParams).Append("\n"); + sb.Append(" Installments: ").Append(Installments).Append("\n"); + sb.Append(" Refunds: ").Append(Refunds).Append("\n"); + sb.Append(" Links: ").Append(Links).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanGetResponse); + } + + /// + /// Returns true if InstallmentPlanGetResponse instances are equal + /// + /// Instance of InstallmentPlanGetResponse to be compared + /// Boolean + public bool Equals(InstallmentPlanGetResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.InstallmentPlanNumber == input.InstallmentPlanNumber || + (this.InstallmentPlanNumber != null && + this.InstallmentPlanNumber.Equals(input.InstallmentPlanNumber)) + ) && + ( + this.DateCreated == input.DateCreated || + (this.DateCreated != null && + this.DateCreated.Equals(input.DateCreated)) + ) && + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.PurchaseMethod == input.PurchaseMethod || + this.PurchaseMethod.Equals(input.PurchaseMethod) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.OriginalAmount == input.OriginalAmount || + this.OriginalAmount.Equals(input.OriginalAmount) + ) && + ( + this.Amount == input.Amount || + this.Amount.Equals(input.Amount) + ) && + ( + this.Authorization == input.Authorization || + (this.Authorization != null && + this.Authorization.Equals(input.Authorization)) + ) && + ( + this.Shopper == input.Shopper || + (this.Shopper != null && + this.Shopper.Equals(input.Shopper)) + ) && + ( + this.BillingAddress == input.BillingAddress || + (this.BillingAddress != null && + this.BillingAddress.Equals(input.BillingAddress)) + ) && + ( + this.PaymentMethod == input.PaymentMethod || + (this.PaymentMethod != null && + this.PaymentMethod.Equals(input.PaymentMethod)) + ) && + ( + this.ExtendedParams == input.ExtendedParams || + this.ExtendedParams != null && + input.ExtendedParams != null && + this.ExtendedParams.SequenceEqual(input.ExtendedParams) + ) && + ( + this.Installments == input.Installments || + this.Installments != null && + input.Installments != null && + this.Installments.SequenceEqual(input.Installments) + ) && + ( + this.Refunds == input.Refunds || + this.Refunds != null && + input.Refunds != null && + this.Refunds.SequenceEqual(input.Refunds) + ) && + ( + this.Links == input.Links || + (this.Links != null && + this.Links.Equals(input.Links)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InstallmentPlanNumber != null) + { + hashCode = (hashCode * 59) + this.InstallmentPlanNumber.GetHashCode(); + } + if (this.DateCreated != null) + { + hashCode = (hashCode * 59) + this.DateCreated.GetHashCode(); + } + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PurchaseMethod.GetHashCode(); + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.Currency != null) + { + hashCode = (hashCode * 59) + this.Currency.GetHashCode(); + } + hashCode = (hashCode * 59) + this.OriginalAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.Amount.GetHashCode(); + if (this.Authorization != null) + { + hashCode = (hashCode * 59) + this.Authorization.GetHashCode(); + } + if (this.Shopper != null) + { + hashCode = (hashCode * 59) + this.Shopper.GetHashCode(); + } + if (this.BillingAddress != null) + { + hashCode = (hashCode * 59) + this.BillingAddress.GetHashCode(); + } + if (this.PaymentMethod != null) + { + hashCode = (hashCode * 59) + this.PaymentMethod.GetHashCode(); + } + if (this.ExtendedParams != null) + { + hashCode = (hashCode * 59) + this.ExtendedParams.GetHashCode(); + } + if (this.Installments != null) + { + hashCode = (hashCode * 59) + this.Installments.GetHashCode(); + } + if (this.Refunds != null) + { + hashCode = (hashCode * 59) + this.Refunds.GetHashCode(); + } + if (this.Links != null) + { + hashCode = (hashCode * 59) + this.Links.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanInitiateRequest.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanInitiateRequest.cs new file mode 100644 index 000000000..8c86149ef --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanInitiateRequest.cs @@ -0,0 +1,269 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanInitiateRequest + /// + [DataContract(Name = "InstallmentPlanInitiateRequest")] + public partial class InstallmentPlanInitiateRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InstallmentPlanInitiateRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// autoCapture (required). + /// attempt3dSecure. + /// shopper. + /// planData. + /// billingAddress. + /// redirectUrls. + /// uxSettings. + /// eventsEndpoints. + /// processingData. + public InstallmentPlanInitiateRequest(bool autoCapture = default(bool), bool attempt3dSecure = default(bool), ShopperData shopper = default(ShopperData), PlanDataModel planData = default(PlanDataModel), AddressDataModel billingAddress = default(AddressDataModel), InitiateRedirectionEndpointsModel redirectUrls = default(InitiateRedirectionEndpointsModel), UxSettingsModel uxSettings = default(UxSettingsModel), EventsEndpointsModel eventsEndpoints = default(EventsEndpointsModel), ProcessingData processingData = default(ProcessingData)) + { + this.AutoCapture = autoCapture; + this.Attempt3dSecure = attempt3dSecure; + this.Shopper = shopper; + this.PlanData = planData; + this.BillingAddress = billingAddress; + this.RedirectUrls = redirectUrls; + this.UxSettings = uxSettings; + this.EventsEndpoints = eventsEndpoints; + this.ProcessingData = processingData; + } + + /// + /// Gets or Sets AutoCapture + /// + [DataMember(Name = "AutoCapture", IsRequired = true, EmitDefaultValue = true)] + public bool AutoCapture { get; set; } + + /// + /// Gets or Sets Attempt3dSecure + /// + [DataMember(Name = "Attempt3dSecure", EmitDefaultValue = true)] + public bool Attempt3dSecure { get; set; } + + /// + /// Gets or Sets Shopper + /// + [DataMember(Name = "Shopper", EmitDefaultValue = false)] + public ShopperData Shopper { get; set; } + + /// + /// Gets or Sets PlanData + /// + [DataMember(Name = "PlanData", EmitDefaultValue = false)] + public PlanDataModel PlanData { get; set; } + + /// + /// Gets or Sets BillingAddress + /// + [DataMember(Name = "BillingAddress", EmitDefaultValue = false)] + public AddressDataModel BillingAddress { get; set; } + + /// + /// Gets or Sets RedirectUrls + /// + [DataMember(Name = "RedirectUrls", EmitDefaultValue = false)] + public InitiateRedirectionEndpointsModel RedirectUrls { get; set; } + + /// + /// Gets or Sets UxSettings + /// + [DataMember(Name = "UxSettings", EmitDefaultValue = false)] + public UxSettingsModel UxSettings { get; set; } + + /// + /// Gets or Sets EventsEndpoints + /// + [DataMember(Name = "EventsEndpoints", EmitDefaultValue = false)] + public EventsEndpointsModel EventsEndpoints { get; set; } + + /// + /// Gets or Sets ProcessingData + /// + [DataMember(Name = "ProcessingData", EmitDefaultValue = false)] + public ProcessingData ProcessingData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanInitiateRequest {\n"); + sb.Append(" AutoCapture: ").Append(AutoCapture).Append("\n"); + sb.Append(" Attempt3dSecure: ").Append(Attempt3dSecure).Append("\n"); + sb.Append(" Shopper: ").Append(Shopper).Append("\n"); + sb.Append(" PlanData: ").Append(PlanData).Append("\n"); + sb.Append(" BillingAddress: ").Append(BillingAddress).Append("\n"); + sb.Append(" RedirectUrls: ").Append(RedirectUrls).Append("\n"); + sb.Append(" UxSettings: ").Append(UxSettings).Append("\n"); + sb.Append(" EventsEndpoints: ").Append(EventsEndpoints).Append("\n"); + sb.Append(" ProcessingData: ").Append(ProcessingData).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanInitiateRequest); + } + + /// + /// Returns true if InstallmentPlanInitiateRequest instances are equal + /// + /// Instance of InstallmentPlanInitiateRequest to be compared + /// Boolean + public bool Equals(InstallmentPlanInitiateRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.AutoCapture == input.AutoCapture || + this.AutoCapture.Equals(input.AutoCapture) + ) && + ( + this.Attempt3dSecure == input.Attempt3dSecure || + this.Attempt3dSecure.Equals(input.Attempt3dSecure) + ) && + ( + this.Shopper == input.Shopper || + (this.Shopper != null && + this.Shopper.Equals(input.Shopper)) + ) && + ( + this.PlanData == input.PlanData || + (this.PlanData != null && + this.PlanData.Equals(input.PlanData)) + ) && + ( + this.BillingAddress == input.BillingAddress || + (this.BillingAddress != null && + this.BillingAddress.Equals(input.BillingAddress)) + ) && + ( + this.RedirectUrls == input.RedirectUrls || + (this.RedirectUrls != null && + this.RedirectUrls.Equals(input.RedirectUrls)) + ) && + ( + this.UxSettings == input.UxSettings || + (this.UxSettings != null && + this.UxSettings.Equals(input.UxSettings)) + ) && + ( + this.EventsEndpoints == input.EventsEndpoints || + (this.EventsEndpoints != null && + this.EventsEndpoints.Equals(input.EventsEndpoints)) + ) && + ( + this.ProcessingData == input.ProcessingData || + (this.ProcessingData != null && + this.ProcessingData.Equals(input.ProcessingData)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.AutoCapture.GetHashCode(); + hashCode = (hashCode * 59) + this.Attempt3dSecure.GetHashCode(); + if (this.Shopper != null) + { + hashCode = (hashCode * 59) + this.Shopper.GetHashCode(); + } + if (this.PlanData != null) + { + hashCode = (hashCode * 59) + this.PlanData.GetHashCode(); + } + if (this.BillingAddress != null) + { + hashCode = (hashCode * 59) + this.BillingAddress.GetHashCode(); + } + if (this.RedirectUrls != null) + { + hashCode = (hashCode * 59) + this.RedirectUrls.GetHashCode(); + } + if (this.UxSettings != null) + { + hashCode = (hashCode * 59) + this.UxSettings.GetHashCode(); + } + if (this.EventsEndpoints != null) + { + hashCode = (hashCode * 59) + this.EventsEndpoints.GetHashCode(); + } + if (this.ProcessingData != null) + { + hashCode = (hashCode * 59) + this.ProcessingData.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanRefundRequest.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanRefundRequest.cs new file mode 100644 index 000000000..ab94ecc9f --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanRefundRequest.cs @@ -0,0 +1,143 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanRefundRequest + /// + [DataContract(Name = "InstallmentPlanRefundRequest")] + public partial class InstallmentPlanRefundRequest : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets RefundStrategy + /// + [DataMember(Name = "RefundStrategy", EmitDefaultValue = false)] + public RefundStrategy? RefundStrategy { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InstallmentPlanRefundRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// amount (required). + /// refundStrategy. + public InstallmentPlanRefundRequest(double amount = default(double), RefundStrategy? refundStrategy = default(RefundStrategy?)) + { + this.Amount = amount; + this.RefundStrategy = refundStrategy; + } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name = "Amount", IsRequired = true, EmitDefaultValue = true)] + public double Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanRefundRequest {\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" RefundStrategy: ").Append(RefundStrategy).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanRefundRequest); + } + + /// + /// Returns true if InstallmentPlanRefundRequest instances are equal + /// + /// Instance of InstallmentPlanRefundRequest to be compared + /// Boolean + public bool Equals(InstallmentPlanRefundRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.Amount == input.Amount || + this.Amount.Equals(input.Amount) + ) && + ( + this.RefundStrategy == input.RefundStrategy || + this.RefundStrategy.Equals(input.RefundStrategy) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Amount.GetHashCode(); + hashCode = (hashCode * 59) + this.RefundStrategy.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanRefundResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanRefundResponse.cs new file mode 100644 index 000000000..88bc5e955 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanRefundResponse.cs @@ -0,0 +1,210 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanRefundResponse + /// + [DataContract(Name = "InstallmentPlanRefundResponse")] + public partial class InstallmentPlanRefundResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// refundId. + /// installmentPlanNumber. + /// currency. + /// nonCreditRefundAmount. + /// creditRefundAmount. + /// summary. + public InstallmentPlanRefundResponse(string refundId = default(string), string installmentPlanNumber = default(string), string currency = default(string), double nonCreditRefundAmount = default(double), double creditRefundAmount = default(double), RefundSummary summary = default(RefundSummary)) + { + this.RefundId = refundId; + this.InstallmentPlanNumber = installmentPlanNumber; + this.Currency = currency; + this.NonCreditRefundAmount = nonCreditRefundAmount; + this.CreditRefundAmount = creditRefundAmount; + this.Summary = summary; + } + + /// + /// Gets or Sets RefundId + /// + [DataMember(Name = "RefundId", EmitDefaultValue = false)] + public string RefundId { get; set; } + + /// + /// Gets or Sets InstallmentPlanNumber + /// + [DataMember(Name = "InstallmentPlanNumber", EmitDefaultValue = false)] + public string InstallmentPlanNumber { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name = "Currency", EmitDefaultValue = false)] + public string Currency { get; set; } + + /// + /// Gets or Sets NonCreditRefundAmount + /// + [DataMember(Name = "NonCreditRefundAmount", EmitDefaultValue = false)] + public double NonCreditRefundAmount { get; set; } + + /// + /// Gets or Sets CreditRefundAmount + /// + [DataMember(Name = "CreditRefundAmount", EmitDefaultValue = false)] + public double CreditRefundAmount { get; set; } + + /// + /// Gets or Sets Summary + /// + [DataMember(Name = "Summary", EmitDefaultValue = false)] + public RefundSummary Summary { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanRefundResponse {\n"); + sb.Append(" RefundId: ").Append(RefundId).Append("\n"); + sb.Append(" InstallmentPlanNumber: ").Append(InstallmentPlanNumber).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" NonCreditRefundAmount: ").Append(NonCreditRefundAmount).Append("\n"); + sb.Append(" CreditRefundAmount: ").Append(CreditRefundAmount).Append("\n"); + sb.Append(" Summary: ").Append(Summary).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanRefundResponse); + } + + /// + /// Returns true if InstallmentPlanRefundResponse instances are equal + /// + /// Instance of InstallmentPlanRefundResponse to be compared + /// Boolean + public bool Equals(InstallmentPlanRefundResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.RefundId == input.RefundId || + (this.RefundId != null && + this.RefundId.Equals(input.RefundId)) + ) && + ( + this.InstallmentPlanNumber == input.InstallmentPlanNumber || + (this.InstallmentPlanNumber != null && + this.InstallmentPlanNumber.Equals(input.InstallmentPlanNumber)) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.NonCreditRefundAmount == input.NonCreditRefundAmount || + this.NonCreditRefundAmount.Equals(input.NonCreditRefundAmount) + ) && + ( + this.CreditRefundAmount == input.CreditRefundAmount || + this.CreditRefundAmount.Equals(input.CreditRefundAmount) + ) && + ( + this.Summary == input.Summary || + (this.Summary != null && + this.Summary.Equals(input.Summary)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RefundId != null) + { + hashCode = (hashCode * 59) + this.RefundId.GetHashCode(); + } + if (this.InstallmentPlanNumber != null) + { + hashCode = (hashCode * 59) + this.InstallmentPlanNumber.GetHashCode(); + } + if (this.Currency != null) + { + hashCode = (hashCode * 59) + this.Currency.GetHashCode(); + } + hashCode = (hashCode * 59) + this.NonCreditRefundAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.CreditRefundAmount.GetHashCode(); + if (this.Summary != null) + { + hashCode = (hashCode * 59) + this.Summary.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanSearchResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanSearchResponse.cs new file mode 100644 index 000000000..b8503dcc4 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanSearchResponse.cs @@ -0,0 +1,129 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanSearchResponse + /// + [DataContract(Name = "InstallmentPlanSearchResponse")] + public partial class InstallmentPlanSearchResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// planList. + public InstallmentPlanSearchResponse(List planList = default(List)) + { + this.PlanList = planList; + } + + /// + /// Gets or Sets PlanList + /// + [DataMember(Name = "PlanList", EmitDefaultValue = false)] + public List PlanList { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanSearchResponse {\n"); + sb.Append(" PlanList: ").Append(PlanList).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanSearchResponse); + } + + /// + /// Returns true if InstallmentPlanSearchResponse instances are equal + /// + /// Instance of InstallmentPlanSearchResponse to be compared + /// Boolean + public bool Equals(InstallmentPlanSearchResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.PlanList == input.PlanList || + this.PlanList != null && + input.PlanList != null && + this.PlanList.SequenceEqual(input.PlanList) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PlanList != null) + { + hashCode = (hashCode * 59) + this.PlanList.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequest.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequest.cs new file mode 100644 index 000000000..6d6634d52 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequest.cs @@ -0,0 +1,174 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanUpdateRequest + /// + [DataContract(Name = "InstallmentPlanUpdateRequest")] + public partial class InstallmentPlanUpdateRequest : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets ShippingStatus + /// + [DataMember(Name = "ShippingStatus", EmitDefaultValue = false)] + public ShippingStatus2? ShippingStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// refOrderNumber. + /// trackingNumber. + /// capture. + /// shippingStatus. + public InstallmentPlanUpdateRequest(string refOrderNumber = default(string), string trackingNumber = default(string), bool capture = default(bool), ShippingStatus2? shippingStatus = default(ShippingStatus2?)) + { + this.RefOrderNumber = refOrderNumber; + this.TrackingNumber = trackingNumber; + this.Capture = capture; + this.ShippingStatus = shippingStatus; + } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets TrackingNumber + /// + [DataMember(Name = "TrackingNumber", EmitDefaultValue = false)] + public string TrackingNumber { get; set; } + + /// + /// Gets or Sets Capture + /// + [DataMember(Name = "Capture", EmitDefaultValue = true)] + public bool Capture { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanUpdateRequest {\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" TrackingNumber: ").Append(TrackingNumber).Append("\n"); + sb.Append(" Capture: ").Append(Capture).Append("\n"); + sb.Append(" ShippingStatus: ").Append(ShippingStatus).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanUpdateRequest); + } + + /// + /// Returns true if InstallmentPlanUpdateRequest instances are equal + /// + /// Instance of InstallmentPlanUpdateRequest to be compared + /// Boolean + public bool Equals(InstallmentPlanUpdateRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.TrackingNumber == input.TrackingNumber || + (this.TrackingNumber != null && + this.TrackingNumber.Equals(input.TrackingNumber)) + ) && + ( + this.Capture == input.Capture || + this.Capture.Equals(input.Capture) + ) && + ( + this.ShippingStatus == input.ShippingStatus || + this.ShippingStatus.Equals(input.ShippingStatus) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + if (this.TrackingNumber != null) + { + hashCode = (hashCode * 59) + this.TrackingNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Capture.GetHashCode(); + hashCode = (hashCode * 59) + this.ShippingStatus.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequestByIdentifier.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequestByIdentifier.cs new file mode 100644 index 000000000..c7516e082 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequestByIdentifier.cs @@ -0,0 +1,192 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanUpdateRequestByIdentifier + /// + [DataContract(Name = "InstallmentPlanUpdateRequestByIdentifier")] + public partial class InstallmentPlanUpdateRequestByIdentifier : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets ShippingStatus + /// + [DataMember(Name = "ShippingStatus", EmitDefaultValue = false)] + public ShippingStatus2? ShippingStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// refOrderNumber. + /// trackingNumber. + /// capture. + /// shippingStatus. + /// identifier. + public InstallmentPlanUpdateRequestByIdentifier(string refOrderNumber = default(string), string trackingNumber = default(string), bool capture = default(bool), ShippingStatus2? shippingStatus = default(ShippingStatus2?), IdentifierContract identifier = default(IdentifierContract)) + { + this.RefOrderNumber = refOrderNumber; + this.TrackingNumber = trackingNumber; + this.Capture = capture; + this.ShippingStatus = shippingStatus; + this.Identifier = identifier; + } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets TrackingNumber + /// + [DataMember(Name = "TrackingNumber", EmitDefaultValue = false)] + public string TrackingNumber { get; set; } + + /// + /// Gets or Sets Capture + /// + [DataMember(Name = "Capture", EmitDefaultValue = true)] + public bool Capture { get; set; } + + /// + /// Gets or Sets Identifier + /// + [DataMember(Name = "Identifier", EmitDefaultValue = false)] + public IdentifierContract Identifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanUpdateRequestByIdentifier {\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" TrackingNumber: ").Append(TrackingNumber).Append("\n"); + sb.Append(" Capture: ").Append(Capture).Append("\n"); + sb.Append(" ShippingStatus: ").Append(ShippingStatus).Append("\n"); + sb.Append(" Identifier: ").Append(Identifier).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanUpdateRequestByIdentifier); + } + + /// + /// Returns true if InstallmentPlanUpdateRequestByIdentifier instances are equal + /// + /// Instance of InstallmentPlanUpdateRequestByIdentifier to be compared + /// Boolean + public bool Equals(InstallmentPlanUpdateRequestByIdentifier input) + { + if (input == null) + { + return false; + } + return + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.TrackingNumber == input.TrackingNumber || + (this.TrackingNumber != null && + this.TrackingNumber.Equals(input.TrackingNumber)) + ) && + ( + this.Capture == input.Capture || + this.Capture.Equals(input.Capture) + ) && + ( + this.ShippingStatus == input.ShippingStatus || + this.ShippingStatus.Equals(input.ShippingStatus) + ) && + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + if (this.TrackingNumber != null) + { + hashCode = (hashCode * 59) + this.TrackingNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Capture.GetHashCode(); + hashCode = (hashCode * 59) + this.ShippingStatus.GetHashCode(); + if (this.Identifier != null) + { + hashCode = (hashCode * 59) + this.Identifier.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequestByIdentifierAllOf.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequestByIdentifierAllOf.cs new file mode 100644 index 000000000..ff7b6a9b2 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateRequestByIdentifierAllOf.cs @@ -0,0 +1,128 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanUpdateRequestByIdentifierAllOf + /// + [DataContract(Name = "InstallmentPlanUpdateRequestByIdentifier_allOf")] + public partial class InstallmentPlanUpdateRequestByIdentifierAllOf : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// identifier. + public InstallmentPlanUpdateRequestByIdentifierAllOf(IdentifierContract identifier = default(IdentifierContract)) + { + this.Identifier = identifier; + } + + /// + /// Gets or Sets Identifier + /// + [DataMember(Name = "Identifier", EmitDefaultValue = false)] + public IdentifierContract Identifier { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanUpdateRequestByIdentifierAllOf {\n"); + sb.Append(" Identifier: ").Append(Identifier).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanUpdateRequestByIdentifierAllOf); + } + + /// + /// Returns true if InstallmentPlanUpdateRequestByIdentifierAllOf instances are equal + /// + /// Instance of InstallmentPlanUpdateRequestByIdentifierAllOf to be compared + /// Boolean + public bool Equals(InstallmentPlanUpdateRequestByIdentifierAllOf input) + { + if (input == null) + { + return false; + } + return + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Identifier != null) + { + hashCode = (hashCode * 59) + this.Identifier.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateResponse.cs new file mode 100644 index 000000000..cf9546368 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentPlanUpdateResponse.cs @@ -0,0 +1,179 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentPlanUpdateResponse + /// + [DataContract(Name = "InstallmentPlanUpdateResponse")] + public partial class InstallmentPlanUpdateResponse : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "Status", IsRequired = true, EmitDefaultValue = true)] + public PlanStatus Status { get; set; } + + /// + /// Gets or Sets ShippingStatus + /// + [DataMember(Name = "ShippingStatus", IsRequired = true, EmitDefaultValue = true)] + public ShippingStatus ShippingStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InstallmentPlanUpdateResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// refOrderNumber. + /// installmentPlanNumber. + /// status (required). + /// shippingStatus (required). + public InstallmentPlanUpdateResponse(string refOrderNumber = default(string), string installmentPlanNumber = default(string), PlanStatus status = default(PlanStatus), ShippingStatus shippingStatus = default(ShippingStatus)) + { + this.Status = status; + this.ShippingStatus = shippingStatus; + this.RefOrderNumber = refOrderNumber; + this.InstallmentPlanNumber = installmentPlanNumber; + } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets InstallmentPlanNumber + /// + [DataMember(Name = "InstallmentPlanNumber", EmitDefaultValue = false)] + public string InstallmentPlanNumber { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentPlanUpdateResponse {\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" InstallmentPlanNumber: ").Append(InstallmentPlanNumber).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" ShippingStatus: ").Append(ShippingStatus).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentPlanUpdateResponse); + } + + /// + /// Returns true if InstallmentPlanUpdateResponse instances are equal + /// + /// Instance of InstallmentPlanUpdateResponse to be compared + /// Boolean + public bool Equals(InstallmentPlanUpdateResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.InstallmentPlanNumber == input.InstallmentPlanNumber || + (this.InstallmentPlanNumber != null && + this.InstallmentPlanNumber.Equals(input.InstallmentPlanNumber)) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.ShippingStatus == input.ShippingStatus || + this.ShippingStatus.Equals(input.ShippingStatus) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + if (this.InstallmentPlanNumber != null) + { + hashCode = (hashCode * 59) + this.InstallmentPlanNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + hashCode = (hashCode * 59) + this.ShippingStatus.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentStatus.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentStatus.cs new file mode 100644 index 000000000..f7d968d73 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentStatus.cs @@ -0,0 +1,54 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines InstallmentStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum InstallmentStatus + { + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 1, + + /// + /// Enum Processed for value: Processed + /// + [EnumMember(Value = "Processed")] + Processed = 2, + + /// + /// Enum Canceled for value: Canceled + /// + [EnumMember(Value = "Canceled")] + Canceled = 3 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentsEligibilityResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentsEligibilityResponse.cs new file mode 100644 index 000000000..1f55ead76 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/InstallmentsEligibilityResponse.cs @@ -0,0 +1,147 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// InstallmentsEligibilityResponse + /// + [DataContract(Name = "InstallmentsEligibilityResponse")] + public partial class InstallmentsEligibilityResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// installmentProvider. + /// paymentPlanOptions. + public InstallmentsEligibilityResponse(string installmentProvider = default(string), List paymentPlanOptions = default(List)) + { + this.InstallmentProvider = installmentProvider; + this.PaymentPlanOptions = paymentPlanOptions; + } + + /// + /// Gets or Sets InstallmentProvider + /// + [DataMember(Name = "InstallmentProvider", EmitDefaultValue = false)] + public string InstallmentProvider { get; set; } + + /// + /// Gets or Sets PaymentPlanOptions + /// + [DataMember(Name = "PaymentPlanOptions", EmitDefaultValue = false)] + public List PaymentPlanOptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InstallmentsEligibilityResponse {\n"); + sb.Append(" InstallmentProvider: ").Append(InstallmentProvider).Append("\n"); + sb.Append(" PaymentPlanOptions: ").Append(PaymentPlanOptions).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InstallmentsEligibilityResponse); + } + + /// + /// Returns true if InstallmentsEligibilityResponse instances are equal + /// + /// Instance of InstallmentsEligibilityResponse to be compared + /// Boolean + public bool Equals(InstallmentsEligibilityResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.InstallmentProvider == input.InstallmentProvider || + (this.InstallmentProvider != null && + this.InstallmentProvider.Equals(input.InstallmentProvider)) + ) && + ( + this.PaymentPlanOptions == input.PaymentPlanOptions || + this.PaymentPlanOptions != null && + input.PaymentPlanOptions != null && + this.PaymentPlanOptions.SequenceEqual(input.PaymentPlanOptions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InstallmentProvider != null) + { + hashCode = (hashCode * 59) + this.InstallmentProvider.GetHashCode(); + } + if (this.PaymentPlanOptions != null) + { + hashCode = (hashCode * 59) + this.PaymentPlanOptions.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/LinksData.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/LinksData.cs new file mode 100644 index 000000000..e266a28a8 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/LinksData.cs @@ -0,0 +1,182 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// LinksData + /// + [DataContract(Name = "LinksData")] + public partial class LinksData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// checkout. + /// learnMore. + /// termsConditions. + /// privacyPolicy. + public LinksData(string checkout = default(string), string learnMore = default(string), string termsConditions = default(string), string privacyPolicy = default(string)) + { + this.Checkout = checkout; + this.LearnMore = learnMore; + this.TermsConditions = termsConditions; + this.PrivacyPolicy = privacyPolicy; + } + + /// + /// Gets or Sets Checkout + /// + [DataMember(Name = "Checkout", EmitDefaultValue = false)] + public string Checkout { get; set; } + + /// + /// Gets or Sets LearnMore + /// + [DataMember(Name = "LearnMore", EmitDefaultValue = false)] + public string LearnMore { get; set; } + + /// + /// Gets or Sets TermsConditions + /// + [DataMember(Name = "TermsConditions", EmitDefaultValue = false)] + public string TermsConditions { get; set; } + + /// + /// Gets or Sets PrivacyPolicy + /// + [DataMember(Name = "PrivacyPolicy", EmitDefaultValue = false)] + public string PrivacyPolicy { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LinksData {\n"); + sb.Append(" Checkout: ").Append(Checkout).Append("\n"); + sb.Append(" LearnMore: ").Append(LearnMore).Append("\n"); + sb.Append(" TermsConditions: ").Append(TermsConditions).Append("\n"); + sb.Append(" PrivacyPolicy: ").Append(PrivacyPolicy).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinksData); + } + + /// + /// Returns true if LinksData instances are equal + /// + /// Instance of LinksData to be compared + /// Boolean + public bool Equals(LinksData input) + { + if (input == null) + { + return false; + } + return + ( + this.Checkout == input.Checkout || + (this.Checkout != null && + this.Checkout.Equals(input.Checkout)) + ) && + ( + this.LearnMore == input.LearnMore || + (this.LearnMore != null && + this.LearnMore.Equals(input.LearnMore)) + ) && + ( + this.TermsConditions == input.TermsConditions || + (this.TermsConditions != null && + this.TermsConditions.Equals(input.TermsConditions)) + ) && + ( + this.PrivacyPolicy == input.PrivacyPolicy || + (this.PrivacyPolicy != null && + this.PrivacyPolicy.Equals(input.PrivacyPolicy)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Checkout != null) + { + hashCode = (hashCode * 59) + this.Checkout.GetHashCode(); + } + if (this.LearnMore != null) + { + hashCode = (hashCode * 59) + this.LearnMore.GetHashCode(); + } + if (this.TermsConditions != null) + { + hashCode = (hashCode * 59) + this.TermsConditions.GetHashCode(); + } + if (this.PrivacyPolicy != null) + { + hashCode = (hashCode * 59) + this.PrivacyPolicy.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/LinksModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/LinksModel.cs new file mode 100644 index 000000000..0b3385385 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/LinksModel.cs @@ -0,0 +1,164 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// LinksModel + /// + [DataContract(Name = "LinksModel")] + public partial class LinksModel : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// privacyPolicyUrl. + /// termsAndConditionsUrl. + /// learnMoreUrl. + public LinksModel(string privacyPolicyUrl = default(string), string termsAndConditionsUrl = default(string), string learnMoreUrl = default(string)) + { + this.PrivacyPolicyUrl = privacyPolicyUrl; + this.TermsAndConditionsUrl = termsAndConditionsUrl; + this.LearnMoreUrl = learnMoreUrl; + } + + /// + /// Gets or Sets PrivacyPolicyUrl + /// + [DataMember(Name = "PrivacyPolicyUrl", EmitDefaultValue = false)] + public string PrivacyPolicyUrl { get; set; } + + /// + /// Gets or Sets TermsAndConditionsUrl + /// + [DataMember(Name = "TermsAndConditionsUrl", EmitDefaultValue = false)] + public string TermsAndConditionsUrl { get; set; } + + /// + /// Gets or Sets LearnMoreUrl + /// + [DataMember(Name = "LearnMoreUrl", EmitDefaultValue = false)] + public string LearnMoreUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LinksModel {\n"); + sb.Append(" PrivacyPolicyUrl: ").Append(PrivacyPolicyUrl).Append("\n"); + sb.Append(" TermsAndConditionsUrl: ").Append(TermsAndConditionsUrl).Append("\n"); + sb.Append(" LearnMoreUrl: ").Append(LearnMoreUrl).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinksModel); + } + + /// + /// Returns true if LinksModel instances are equal + /// + /// Instance of LinksModel to be compared + /// Boolean + public bool Equals(LinksModel input) + { + if (input == null) + { + return false; + } + return + ( + this.PrivacyPolicyUrl == input.PrivacyPolicyUrl || + (this.PrivacyPolicyUrl != null && + this.PrivacyPolicyUrl.Equals(input.PrivacyPolicyUrl)) + ) && + ( + this.TermsAndConditionsUrl == input.TermsAndConditionsUrl || + (this.TermsAndConditionsUrl != null && + this.TermsAndConditionsUrl.Equals(input.TermsAndConditionsUrl)) + ) && + ( + this.LearnMoreUrl == input.LearnMoreUrl || + (this.LearnMoreUrl != null && + this.LearnMoreUrl.Equals(input.LearnMoreUrl)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PrivacyPolicyUrl != null) + { + hashCode = (hashCode * 59) + this.PrivacyPolicyUrl.GetHashCode(); + } + if (this.TermsAndConditionsUrl != null) + { + hashCode = (hashCode * 59) + this.TermsAndConditionsUrl.GetHashCode(); + } + if (this.LearnMoreUrl != null) + { + hashCode = (hashCode * 59) + this.LearnMoreUrl.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/MockerShopperToken.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/MockerShopperToken.cs new file mode 100644 index 000000000..e27c9f857 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/MockerShopperToken.cs @@ -0,0 +1,146 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// MockerShopperToken + /// + [DataContract(Name = "MockerShopperToken")] + public partial class MockerShopperToken : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// token. + /// last4Digit. + public MockerShopperToken(string token = default(string), string last4Digit = default(string)) + { + this.Token = token; + this.Last4Digit = last4Digit; + } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "Token", EmitDefaultValue = false)] + public string Token { get; set; } + + /// + /// Gets or Sets Last4Digit + /// + [DataMember(Name = "Last4Digit", EmitDefaultValue = false)] + public string Last4Digit { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class MockerShopperToken {\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" Last4Digit: ").Append(Last4Digit).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MockerShopperToken); + } + + /// + /// Returns true if MockerShopperToken instances are equal + /// + /// Instance of MockerShopperToken to be compared + /// Boolean + public bool Equals(MockerShopperToken input) + { + if (input == null) + { + return false; + } + return + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ) && + ( + this.Last4Digit == input.Last4Digit || + (this.Last4Digit != null && + this.Last4Digit.Equals(input.Last4Digit)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Token != null) + { + hashCode = (hashCode * 59) + this.Token.GetHashCode(); + } + if (this.Last4Digit != null) + { + hashCode = (hashCode * 59) + this.Last4Digit.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentMethodModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentMethodModel.cs new file mode 100644 index 000000000..df1156801 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentMethodModel.cs @@ -0,0 +1,219 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// PaymentMethodModel + /// + [DataContract(Name = "PaymentMethodModel")] + public partial class PaymentMethodModel : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "Type", IsRequired = true, EmitDefaultValue = true)] + public PaymentMethodType Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PaymentMethodModel() { } + /// + /// Initializes a new instance of the class. + /// + /// type (required). + /// card. + /// token. + /// bluesnapVaultedShopperToken. + /// mockerShopperToken. + /// spreedlyToken. + public PaymentMethodModel(PaymentMethodType type = default(PaymentMethodType), CardData card = default(CardData), string token = default(string), BluesnapVaultedShopperToken bluesnapVaultedShopperToken = default(BluesnapVaultedShopperToken), MockerShopperToken mockerShopperToken = default(MockerShopperToken), SpreedlyToken spreedlyToken = default(SpreedlyToken)) + { + this.Type = type; + this.Card = card; + this.Token = token; + this.BluesnapVaultedShopperToken = bluesnapVaultedShopperToken; + this.MockerShopperToken = mockerShopperToken; + this.SpreedlyToken = spreedlyToken; + } + + /// + /// Gets or Sets Card + /// + [DataMember(Name = "Card", EmitDefaultValue = false)] + public CardData Card { get; set; } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "Token", EmitDefaultValue = false)] + public string Token { get; set; } + + /// + /// Gets or Sets BluesnapVaultedShopperToken + /// + [DataMember(Name = "BluesnapVaultedShopperToken", EmitDefaultValue = false)] + public BluesnapVaultedShopperToken BluesnapVaultedShopperToken { get; set; } + + /// + /// Gets or Sets MockerShopperToken + /// + [DataMember(Name = "MockerShopperToken", EmitDefaultValue = false)] + public MockerShopperToken MockerShopperToken { get; set; } + + /// + /// Gets or Sets SpreedlyToken + /// + [DataMember(Name = "SpreedlyToken", EmitDefaultValue = false)] + public SpreedlyToken SpreedlyToken { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PaymentMethodModel {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Card: ").Append(Card).Append("\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" BluesnapVaultedShopperToken: ").Append(BluesnapVaultedShopperToken).Append("\n"); + sb.Append(" MockerShopperToken: ").Append(MockerShopperToken).Append("\n"); + sb.Append(" SpreedlyToken: ").Append(SpreedlyToken).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentMethodModel); + } + + /// + /// Returns true if PaymentMethodModel instances are equal + /// + /// Instance of PaymentMethodModel to be compared + /// Boolean + public bool Equals(PaymentMethodModel input) + { + if (input == null) + { + return false; + } + return + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.Card == input.Card || + (this.Card != null && + this.Card.Equals(input.Card)) + ) && + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ) && + ( + this.BluesnapVaultedShopperToken == input.BluesnapVaultedShopperToken || + (this.BluesnapVaultedShopperToken != null && + this.BluesnapVaultedShopperToken.Equals(input.BluesnapVaultedShopperToken)) + ) && + ( + this.MockerShopperToken == input.MockerShopperToken || + (this.MockerShopperToken != null && + this.MockerShopperToken.Equals(input.MockerShopperToken)) + ) && + ( + this.SpreedlyToken == input.SpreedlyToken || + (this.SpreedlyToken != null && + this.SpreedlyToken.Equals(input.SpreedlyToken)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + if (this.Card != null) + { + hashCode = (hashCode * 59) + this.Card.GetHashCode(); + } + if (this.Token != null) + { + hashCode = (hashCode * 59) + this.Token.GetHashCode(); + } + if (this.BluesnapVaultedShopperToken != null) + { + hashCode = (hashCode * 59) + this.BluesnapVaultedShopperToken.GetHashCode(); + } + if (this.MockerShopperToken != null) + { + hashCode = (hashCode * 59) + this.MockerShopperToken.GetHashCode(); + } + if (this.SpreedlyToken != null) + { + hashCode = (hashCode * 59) + this.SpreedlyToken.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentMethodType.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentMethodType.cs new file mode 100644 index 000000000..d5c2a18f6 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentMethodType.cs @@ -0,0 +1,66 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines PaymentMethodType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentMethodType + { + /// + /// Enum Card for value: Card + /// + [EnumMember(Value = "Card")] + Card = 1, + + /// + /// Enum SplititToken for value: SplititToken + /// + [EnumMember(Value = "SplititToken")] + SplititToken = 2, + + /// + /// Enum BluesnapVaultedShopperToken for value: BluesnapVaultedShopperToken + /// + [EnumMember(Value = "BluesnapVaultedShopperToken")] + BluesnapVaultedShopperToken = 3, + + /// + /// Enum SplititMockerV2Token for value: SplititMockerV2Token + /// + [EnumMember(Value = "SplititMockerV2Token")] + SplititMockerV2Token = 4, + + /// + /// Enum SpreedlyToken for value: SpreedlyToken + /// + [EnumMember(Value = "SpreedlyToken")] + SpreedlyToken = 5 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentPlanOptionModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentPlanOptionModel.cs new file mode 100644 index 000000000..923aea676 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PaymentPlanOptionModel.cs @@ -0,0 +1,225 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// PaymentPlanOptionModel + /// + [DataContract(Name = "PaymentPlanOptionModel")] + public partial class PaymentPlanOptionModel : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PaymentPlanOptionModel() { } + /// + /// Initializes a new instance of the class. + /// + /// numberOfInstallments (required). + /// firstInstallmentAmount (required). + /// installmentAmount (required). + /// lastInstallmentAmount (required). + /// links. + /// termsAndConditionsBrief. + /// installmentFrequency. + public PaymentPlanOptionModel(int numberOfInstallments = default(int), double firstInstallmentAmount = default(double), double installmentAmount = default(double), double lastInstallmentAmount = default(double), LinksModel links = default(LinksModel), string termsAndConditionsBrief = default(string), string installmentFrequency = default(string)) + { + this.NumberOfInstallments = numberOfInstallments; + this.FirstInstallmentAmount = firstInstallmentAmount; + this.InstallmentAmount = installmentAmount; + this.LastInstallmentAmount = lastInstallmentAmount; + this.Links = links; + this.TermsAndConditionsBrief = termsAndConditionsBrief; + this.InstallmentFrequency = installmentFrequency; + } + + /// + /// Gets or Sets NumberOfInstallments + /// + [DataMember(Name = "NumberOfInstallments", IsRequired = true, EmitDefaultValue = true)] + public int NumberOfInstallments { get; set; } + + /// + /// Gets or Sets FirstInstallmentAmount + /// + [DataMember(Name = "FirstInstallmentAmount", IsRequired = true, EmitDefaultValue = true)] + public double FirstInstallmentAmount { get; set; } + + /// + /// Gets or Sets InstallmentAmount + /// + [DataMember(Name = "InstallmentAmount", IsRequired = true, EmitDefaultValue = true)] + public double InstallmentAmount { get; set; } + + /// + /// Gets or Sets LastInstallmentAmount + /// + [DataMember(Name = "LastInstallmentAmount", IsRequired = true, EmitDefaultValue = true)] + public double LastInstallmentAmount { get; set; } + + /// + /// Gets or Sets Links + /// + [DataMember(Name = "Links", EmitDefaultValue = false)] + public LinksModel Links { get; set; } + + /// + /// Gets or Sets TermsAndConditionsBrief + /// + [DataMember(Name = "TermsAndConditionsBrief", EmitDefaultValue = false)] + public string TermsAndConditionsBrief { get; set; } + + /// + /// Gets or Sets InstallmentFrequency + /// + [DataMember(Name = "InstallmentFrequency", EmitDefaultValue = false)] + public string InstallmentFrequency { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PaymentPlanOptionModel {\n"); + sb.Append(" NumberOfInstallments: ").Append(NumberOfInstallments).Append("\n"); + sb.Append(" FirstInstallmentAmount: ").Append(FirstInstallmentAmount).Append("\n"); + sb.Append(" InstallmentAmount: ").Append(InstallmentAmount).Append("\n"); + sb.Append(" LastInstallmentAmount: ").Append(LastInstallmentAmount).Append("\n"); + sb.Append(" Links: ").Append(Links).Append("\n"); + sb.Append(" TermsAndConditionsBrief: ").Append(TermsAndConditionsBrief).Append("\n"); + sb.Append(" InstallmentFrequency: ").Append(InstallmentFrequency).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentPlanOptionModel); + } + + /// + /// Returns true if PaymentPlanOptionModel instances are equal + /// + /// Instance of PaymentPlanOptionModel to be compared + /// Boolean + public bool Equals(PaymentPlanOptionModel input) + { + if (input == null) + { + return false; + } + return + ( + this.NumberOfInstallments == input.NumberOfInstallments || + this.NumberOfInstallments.Equals(input.NumberOfInstallments) + ) && + ( + this.FirstInstallmentAmount == input.FirstInstallmentAmount || + this.FirstInstallmentAmount.Equals(input.FirstInstallmentAmount) + ) && + ( + this.InstallmentAmount == input.InstallmentAmount || + this.InstallmentAmount.Equals(input.InstallmentAmount) + ) && + ( + this.LastInstallmentAmount == input.LastInstallmentAmount || + this.LastInstallmentAmount.Equals(input.LastInstallmentAmount) + ) && + ( + this.Links == input.Links || + (this.Links != null && + this.Links.Equals(input.Links)) + ) && + ( + this.TermsAndConditionsBrief == input.TermsAndConditionsBrief || + (this.TermsAndConditionsBrief != null && + this.TermsAndConditionsBrief.Equals(input.TermsAndConditionsBrief)) + ) && + ( + this.InstallmentFrequency == input.InstallmentFrequency || + (this.InstallmentFrequency != null && + this.InstallmentFrequency.Equals(input.InstallmentFrequency)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.NumberOfInstallments.GetHashCode(); + hashCode = (hashCode * 59) + this.FirstInstallmentAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.InstallmentAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.LastInstallmentAmount.GetHashCode(); + if (this.Links != null) + { + hashCode = (hashCode * 59) + this.Links.GetHashCode(); + } + if (this.TermsAndConditionsBrief != null) + { + hashCode = (hashCode * 59) + this.TermsAndConditionsBrief.GetHashCode(); + } + if (this.InstallmentFrequency != null) + { + hashCode = (hashCode * 59) + this.InstallmentFrequency.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanData.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanData.cs new file mode 100644 index 000000000..a3f023eb4 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanData.cs @@ -0,0 +1,299 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// PlanData + /// + [DataContract(Name = "PlanData")] + public partial class PlanData : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets PurchaseMethod + /// + [DataMember(Name = "PurchaseMethod", IsRequired = true, EmitDefaultValue = true)] + public PurchaseMethod PurchaseMethod { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PlanData() { } + /// + /// Initializes a new instance of the class. + /// + /// terminalId. + /// totalAmount (required). + /// firstInstallmentAmount. + /// currency. + /// numberOfInstallments (required). + /// purchaseMethod (required). + /// refOrderNumber. + /// allowedInstallmentOptions. + /// tags. + /// processingData. + /// firstInstallmentDate. + public PlanData(string terminalId = default(string), double totalAmount = default(double), double firstInstallmentAmount = default(double), string currency = default(string), int numberOfInstallments = default(int), PurchaseMethod purchaseMethod = default(PurchaseMethod), string refOrderNumber = default(string), List allowedInstallmentOptions = default(List), Dictionary tags = default(Dictionary), ProcessingData2 processingData = default(ProcessingData2), DateTime firstInstallmentDate = default(DateTime)) + { + this.TotalAmount = totalAmount; + this.NumberOfInstallments = numberOfInstallments; + this.PurchaseMethod = purchaseMethod; + this.TerminalId = terminalId; + this.FirstInstallmentAmount = firstInstallmentAmount; + this.Currency = currency; + this.RefOrderNumber = refOrderNumber; + this.AllowedInstallmentOptions = allowedInstallmentOptions; + this.Tags = tags; + this.ProcessingData = processingData; + this.FirstInstallmentDate = firstInstallmentDate; + } + + /// + /// Gets or Sets TerminalId + /// + [DataMember(Name = "TerminalId", EmitDefaultValue = false)] + public string TerminalId { get; set; } + + /// + /// Gets or Sets TotalAmount + /// + [DataMember(Name = "TotalAmount", IsRequired = true, EmitDefaultValue = true)] + public double TotalAmount { get; set; } + + /// + /// Gets or Sets FirstInstallmentAmount + /// + [DataMember(Name = "FirstInstallmentAmount", EmitDefaultValue = false)] + public double FirstInstallmentAmount { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name = "Currency", EmitDefaultValue = false)] + public string Currency { get; set; } + + /// + /// Gets or Sets NumberOfInstallments + /// + [DataMember(Name = "NumberOfInstallments", IsRequired = true, EmitDefaultValue = true)] + public int NumberOfInstallments { get; set; } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets AllowedInstallmentOptions + /// + [DataMember(Name = "AllowedInstallmentOptions", EmitDefaultValue = false)] + public List AllowedInstallmentOptions { get; set; } + + /// + /// Gets or Sets Tags + /// + [DataMember(Name = "Tags", EmitDefaultValue = false)] + public Dictionary Tags { get; set; } + + /// + /// Gets or Sets ProcessingData + /// + [DataMember(Name = "ProcessingData", EmitDefaultValue = false)] + public ProcessingData2 ProcessingData { get; set; } + + /// + /// Gets or Sets FirstInstallmentDate + /// + [DataMember(Name = "FirstInstallmentDate", EmitDefaultValue = false)] + public DateTime FirstInstallmentDate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PlanData {\n"); + sb.Append(" TerminalId: ").Append(TerminalId).Append("\n"); + sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); + sb.Append(" FirstInstallmentAmount: ").Append(FirstInstallmentAmount).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" NumberOfInstallments: ").Append(NumberOfInstallments).Append("\n"); + sb.Append(" PurchaseMethod: ").Append(PurchaseMethod).Append("\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" AllowedInstallmentOptions: ").Append(AllowedInstallmentOptions).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" ProcessingData: ").Append(ProcessingData).Append("\n"); + sb.Append(" FirstInstallmentDate: ").Append(FirstInstallmentDate).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PlanData); + } + + /// + /// Returns true if PlanData instances are equal + /// + /// Instance of PlanData to be compared + /// Boolean + public bool Equals(PlanData input) + { + if (input == null) + { + return false; + } + return + ( + this.TerminalId == input.TerminalId || + (this.TerminalId != null && + this.TerminalId.Equals(input.TerminalId)) + ) && + ( + this.TotalAmount == input.TotalAmount || + this.TotalAmount.Equals(input.TotalAmount) + ) && + ( + this.FirstInstallmentAmount == input.FirstInstallmentAmount || + this.FirstInstallmentAmount.Equals(input.FirstInstallmentAmount) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.NumberOfInstallments == input.NumberOfInstallments || + this.NumberOfInstallments.Equals(input.NumberOfInstallments) + ) && + ( + this.PurchaseMethod == input.PurchaseMethod || + this.PurchaseMethod.Equals(input.PurchaseMethod) + ) && + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.AllowedInstallmentOptions == input.AllowedInstallmentOptions || + this.AllowedInstallmentOptions != null && + input.AllowedInstallmentOptions != null && + this.AllowedInstallmentOptions.SequenceEqual(input.AllowedInstallmentOptions) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.ProcessingData == input.ProcessingData || + (this.ProcessingData != null && + this.ProcessingData.Equals(input.ProcessingData)) + ) && + ( + this.FirstInstallmentDate == input.FirstInstallmentDate || + (this.FirstInstallmentDate != null && + this.FirstInstallmentDate.Equals(input.FirstInstallmentDate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TerminalId != null) + { + hashCode = (hashCode * 59) + this.TerminalId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.FirstInstallmentAmount.GetHashCode(); + if (this.Currency != null) + { + hashCode = (hashCode * 59) + this.Currency.GetHashCode(); + } + hashCode = (hashCode * 59) + this.NumberOfInstallments.GetHashCode(); + hashCode = (hashCode * 59) + this.PurchaseMethod.GetHashCode(); + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + if (this.AllowedInstallmentOptions != null) + { + hashCode = (hashCode * 59) + this.AllowedInstallmentOptions.GetHashCode(); + } + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + if (this.ProcessingData != null) + { + hashCode = (hashCode * 59) + this.ProcessingData.GetHashCode(); + } + if (this.FirstInstallmentDate != null) + { + hashCode = (hashCode * 59) + this.FirstInstallmentDate.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanDataModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanDataModel.cs new file mode 100644 index 000000000..419fba556 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanDataModel.cs @@ -0,0 +1,262 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// PlanDataModel + /// + [DataContract(Name = "PlanDataModel")] + public partial class PlanDataModel : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets PurchaseMethod + /// + [DataMember(Name = "PurchaseMethod", IsRequired = true, EmitDefaultValue = true)] + public PurchaseMethod PurchaseMethod { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PlanDataModel() { } + /// + /// Initializes a new instance of the class. + /// + /// totalAmount (required). + /// currency. + /// numberOfInstallments. + /// terminalId. + /// purchaseMethod (required). + /// refOrderNumber. + /// extendedParams. + /// firstInstallmentAmount. + /// firstInstallmentDate. + public PlanDataModel(double totalAmount = default(double), string currency = default(string), int numberOfInstallments = default(int), string terminalId = default(string), PurchaseMethod purchaseMethod = default(PurchaseMethod), string refOrderNumber = default(string), Dictionary extendedParams = default(Dictionary), double firstInstallmentAmount = default(double), DateTime firstInstallmentDate = default(DateTime)) + { + this.TotalAmount = totalAmount; + this.PurchaseMethod = purchaseMethod; + this.Currency = currency; + this.NumberOfInstallments = numberOfInstallments; + this.TerminalId = terminalId; + this.RefOrderNumber = refOrderNumber; + this.ExtendedParams = extendedParams; + this.FirstInstallmentAmount = firstInstallmentAmount; + this.FirstInstallmentDate = firstInstallmentDate; + } + + /// + /// Gets or Sets TotalAmount + /// + [DataMember(Name = "TotalAmount", IsRequired = true, EmitDefaultValue = true)] + public double TotalAmount { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name = "Currency", EmitDefaultValue = false)] + public string Currency { get; set; } + + /// + /// Gets or Sets NumberOfInstallments + /// + [DataMember(Name = "NumberOfInstallments", EmitDefaultValue = false)] + public int NumberOfInstallments { get; set; } + + /// + /// Gets or Sets TerminalId + /// + [DataMember(Name = "TerminalId", EmitDefaultValue = false)] + public string TerminalId { get; set; } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets ExtendedParams + /// + [DataMember(Name = "ExtendedParams", EmitDefaultValue = false)] + public Dictionary ExtendedParams { get; set; } + + /// + /// Gets or Sets FirstInstallmentAmount + /// + [DataMember(Name = "FirstInstallmentAmount", EmitDefaultValue = false)] + public double FirstInstallmentAmount { get; set; } + + /// + /// Gets or Sets FirstInstallmentDate + /// + [DataMember(Name = "FirstInstallmentDate", EmitDefaultValue = false)] + public DateTime FirstInstallmentDate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PlanDataModel {\n"); + sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" NumberOfInstallments: ").Append(NumberOfInstallments).Append("\n"); + sb.Append(" TerminalId: ").Append(TerminalId).Append("\n"); + sb.Append(" PurchaseMethod: ").Append(PurchaseMethod).Append("\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" ExtendedParams: ").Append(ExtendedParams).Append("\n"); + sb.Append(" FirstInstallmentAmount: ").Append(FirstInstallmentAmount).Append("\n"); + sb.Append(" FirstInstallmentDate: ").Append(FirstInstallmentDate).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PlanDataModel); + } + + /// + /// Returns true if PlanDataModel instances are equal + /// + /// Instance of PlanDataModel to be compared + /// Boolean + public bool Equals(PlanDataModel input) + { + if (input == null) + { + return false; + } + return + ( + this.TotalAmount == input.TotalAmount || + this.TotalAmount.Equals(input.TotalAmount) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.NumberOfInstallments == input.NumberOfInstallments || + this.NumberOfInstallments.Equals(input.NumberOfInstallments) + ) && + ( + this.TerminalId == input.TerminalId || + (this.TerminalId != null && + this.TerminalId.Equals(input.TerminalId)) + ) && + ( + this.PurchaseMethod == input.PurchaseMethod || + this.PurchaseMethod.Equals(input.PurchaseMethod) + ) && + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.ExtendedParams == input.ExtendedParams || + this.ExtendedParams != null && + input.ExtendedParams != null && + this.ExtendedParams.SequenceEqual(input.ExtendedParams) + ) && + ( + this.FirstInstallmentAmount == input.FirstInstallmentAmount || + this.FirstInstallmentAmount.Equals(input.FirstInstallmentAmount) + ) && + ( + this.FirstInstallmentDate == input.FirstInstallmentDate || + (this.FirstInstallmentDate != null && + this.FirstInstallmentDate.Equals(input.FirstInstallmentDate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.TotalAmount.GetHashCode(); + if (this.Currency != null) + { + hashCode = (hashCode * 59) + this.Currency.GetHashCode(); + } + hashCode = (hashCode * 59) + this.NumberOfInstallments.GetHashCode(); + if (this.TerminalId != null) + { + hashCode = (hashCode * 59) + this.TerminalId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PurchaseMethod.GetHashCode(); + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + if (this.ExtendedParams != null) + { + hashCode = (hashCode * 59) + this.ExtendedParams.GetHashCode(); + } + hashCode = (hashCode * 59) + this.FirstInstallmentAmount.GetHashCode(); + if (this.FirstInstallmentDate != null) + { + hashCode = (hashCode * 59) + this.FirstInstallmentDate.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanErrorResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanErrorResponse.cs new file mode 100644 index 000000000..abfabe93f --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanErrorResponse.cs @@ -0,0 +1,164 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// PlanErrorResponse + /// + [DataContract(Name = "PlanErrorResponse")] + public partial class PlanErrorResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// traceId. + /// error. + /// installmentPlanNumber. + public PlanErrorResponse(string traceId = default(string), ErrorExtended error = default(ErrorExtended), string installmentPlanNumber = default(string)) + { + this.TraceId = traceId; + this.Error = error; + this.InstallmentPlanNumber = installmentPlanNumber; + } + + /// + /// Gets or Sets TraceId + /// + [DataMember(Name = "TraceId", EmitDefaultValue = false)] + public string TraceId { get; set; } + + /// + /// Gets or Sets Error + /// + [DataMember(Name = "Error", EmitDefaultValue = false)] + public ErrorExtended Error { get; set; } + + /// + /// Gets or Sets InstallmentPlanNumber + /// + [DataMember(Name = "InstallmentPlanNumber", EmitDefaultValue = false)] + public string InstallmentPlanNumber { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PlanErrorResponse {\n"); + sb.Append(" TraceId: ").Append(TraceId).Append("\n"); + sb.Append(" Error: ").Append(Error).Append("\n"); + sb.Append(" InstallmentPlanNumber: ").Append(InstallmentPlanNumber).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PlanErrorResponse); + } + + /// + /// Returns true if PlanErrorResponse instances are equal + /// + /// Instance of PlanErrorResponse to be compared + /// Boolean + public bool Equals(PlanErrorResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.TraceId == input.TraceId || + (this.TraceId != null && + this.TraceId.Equals(input.TraceId)) + ) && + ( + this.Error == input.Error || + (this.Error != null && + this.Error.Equals(input.Error)) + ) && + ( + this.InstallmentPlanNumber == input.InstallmentPlanNumber || + (this.InstallmentPlanNumber != null && + this.InstallmentPlanNumber.Equals(input.InstallmentPlanNumber)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TraceId != null) + { + hashCode = (hashCode * 59) + this.TraceId.GetHashCode(); + } + if (this.Error != null) + { + hashCode = (hashCode * 59) + this.Error.GetHashCode(); + } + if (this.InstallmentPlanNumber != null) + { + hashCode = (hashCode * 59) + this.InstallmentPlanNumber.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanErrorResponseAllOf.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanErrorResponseAllOf.cs new file mode 100644 index 000000000..0c6ff62aa --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanErrorResponseAllOf.cs @@ -0,0 +1,128 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// PlanErrorResponseAllOf + /// + [DataContract(Name = "PlanErrorResponse_allOf")] + public partial class PlanErrorResponseAllOf : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// installmentPlanNumber. + public PlanErrorResponseAllOf(string installmentPlanNumber = default(string)) + { + this.InstallmentPlanNumber = installmentPlanNumber; + } + + /// + /// Gets or Sets InstallmentPlanNumber + /// + [DataMember(Name = "InstallmentPlanNumber", EmitDefaultValue = false)] + public string InstallmentPlanNumber { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PlanErrorResponseAllOf {\n"); + sb.Append(" InstallmentPlanNumber: ").Append(InstallmentPlanNumber).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PlanErrorResponseAllOf); + } + + /// + /// Returns true if PlanErrorResponseAllOf instances are equal + /// + /// Instance of PlanErrorResponseAllOf to be compared + /// Boolean + public bool Equals(PlanErrorResponseAllOf input) + { + if (input == null) + { + return false; + } + return + ( + this.InstallmentPlanNumber == input.InstallmentPlanNumber || + (this.InstallmentPlanNumber != null && + this.InstallmentPlanNumber.Equals(input.InstallmentPlanNumber)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InstallmentPlanNumber != null) + { + hashCode = (hashCode * 59) + this.InstallmentPlanNumber.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanStatus.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanStatus.cs new file mode 100644 index 000000000..eb3fc3ebe --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PlanStatus.cs @@ -0,0 +1,66 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines PlanStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PlanStatus + { + /// + /// Enum Initialized for value: Initialized + /// + [EnumMember(Value = "Initialized")] + Initialized = 1, + + /// + /// Enum PendingCapture for value: PendingCapture + /// + [EnumMember(Value = "PendingCapture")] + PendingCapture = 2, + + /// + /// Enum Active for value: Active + /// + [EnumMember(Value = "Active")] + Active = 3, + + /// + /// Enum Cleared for value: Cleared + /// + [EnumMember(Value = "Cleared")] + Cleared = 4, + + /// + /// Enum Canceled for value: Canceled + /// + [EnumMember(Value = "Canceled")] + Canceled = 5 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ProcessingData.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ProcessingData.cs new file mode 100644 index 000000000..ab19e1827 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ProcessingData.cs @@ -0,0 +1,160 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// ProcessingData + /// + [DataContract(Name = "ProcessingData")] + public partial class ProcessingData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// attemptThreeDSecured. + /// softDescriptor. + /// threeDSData. + public ProcessingData(bool attemptThreeDSecured = default(bool), string softDescriptor = default(string), ThreeDSData threeDSData = default(ThreeDSData)) + { + this.AttemptThreeDSecured = attemptThreeDSecured; + this.SoftDescriptor = softDescriptor; + this.ThreeDSData = threeDSData; + } + + /// + /// Gets or Sets AttemptThreeDSecured + /// + [DataMember(Name = "AttemptThreeDSecured", EmitDefaultValue = true)] + public bool AttemptThreeDSecured { get; set; } + + /// + /// Gets or Sets SoftDescriptor + /// + [DataMember(Name = "SoftDescriptor", EmitDefaultValue = false)] + public string SoftDescriptor { get; set; } + + /// + /// Gets or Sets ThreeDSData + /// + [DataMember(Name = "ThreeDSData", EmitDefaultValue = false)] + public ThreeDSData ThreeDSData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ProcessingData {\n"); + sb.Append(" AttemptThreeDSecured: ").Append(AttemptThreeDSecured).Append("\n"); + sb.Append(" SoftDescriptor: ").Append(SoftDescriptor).Append("\n"); + sb.Append(" ThreeDSData: ").Append(ThreeDSData).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessingData); + } + + /// + /// Returns true if ProcessingData instances are equal + /// + /// Instance of ProcessingData to be compared + /// Boolean + public bool Equals(ProcessingData input) + { + if (input == null) + { + return false; + } + return + ( + this.AttemptThreeDSecured == input.AttemptThreeDSecured || + this.AttemptThreeDSecured.Equals(input.AttemptThreeDSecured) + ) && + ( + this.SoftDescriptor == input.SoftDescriptor || + (this.SoftDescriptor != null && + this.SoftDescriptor.Equals(input.SoftDescriptor)) + ) && + ( + this.ThreeDSData == input.ThreeDSData || + (this.ThreeDSData != null && + this.ThreeDSData.Equals(input.ThreeDSData)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.AttemptThreeDSecured.GetHashCode(); + if (this.SoftDescriptor != null) + { + hashCode = (hashCode * 59) + this.SoftDescriptor.GetHashCode(); + } + if (this.ThreeDSData != null) + { + hashCode = (hashCode * 59) + this.ThreeDSData.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ProcessingData2.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ProcessingData2.cs new file mode 100644 index 000000000..026b2e133 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ProcessingData2.cs @@ -0,0 +1,160 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// ProcessingData2 + /// + [DataContract(Name = "ProcessingData2")] + public partial class ProcessingData2 : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// attemptThreeDSecured. + /// softDescriptor. + /// threeDSData. + public ProcessingData2(bool attemptThreeDSecured = default(bool), string softDescriptor = default(string), ThreeDSData2 threeDSData = default(ThreeDSData2)) + { + this.AttemptThreeDSecured = attemptThreeDSecured; + this.SoftDescriptor = softDescriptor; + this.ThreeDSData = threeDSData; + } + + /// + /// Gets or Sets AttemptThreeDSecured + /// + [DataMember(Name = "AttemptThreeDSecured", EmitDefaultValue = true)] + public bool AttemptThreeDSecured { get; set; } + + /// + /// Gets or Sets SoftDescriptor + /// + [DataMember(Name = "SoftDescriptor", EmitDefaultValue = false)] + public string SoftDescriptor { get; set; } + + /// + /// Gets or Sets ThreeDSData + /// + [DataMember(Name = "ThreeDSData", EmitDefaultValue = false)] + public ThreeDSData2 ThreeDSData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ProcessingData2 {\n"); + sb.Append(" AttemptThreeDSecured: ").Append(AttemptThreeDSecured).Append("\n"); + sb.Append(" SoftDescriptor: ").Append(SoftDescriptor).Append("\n"); + sb.Append(" ThreeDSData: ").Append(ThreeDSData).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProcessingData2); + } + + /// + /// Returns true if ProcessingData2 instances are equal + /// + /// Instance of ProcessingData2 to be compared + /// Boolean + public bool Equals(ProcessingData2 input) + { + if (input == null) + { + return false; + } + return + ( + this.AttemptThreeDSecured == input.AttemptThreeDSecured || + this.AttemptThreeDSecured.Equals(input.AttemptThreeDSecured) + ) && + ( + this.SoftDescriptor == input.SoftDescriptor || + (this.SoftDescriptor != null && + this.SoftDescriptor.Equals(input.SoftDescriptor)) + ) && + ( + this.ThreeDSData == input.ThreeDSData || + (this.ThreeDSData != null && + this.ThreeDSData.Equals(input.ThreeDSData)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.AttemptThreeDSecured.GetHashCode(); + if (this.SoftDescriptor != null) + { + hashCode = (hashCode * 59) + this.SoftDescriptor.GetHashCode(); + } + if (this.ThreeDSData != null) + { + hashCode = (hashCode * 59) + this.ThreeDSData.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PurchaseMethod.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PurchaseMethod.cs new file mode 100644 index 000000000..a51fc95e1 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/PurchaseMethod.cs @@ -0,0 +1,54 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines PurchaseMethod + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PurchaseMethod + { + /// + /// Enum InStore for value: InStore + /// + [EnumMember(Value = "InStore")] + InStore = 1, + + /// + /// Enum PhoneOrder for value: PhoneOrder + /// + [EnumMember(Value = "PhoneOrder")] + PhoneOrder = 2, + + /// + /// Enum ECommerce for value: ECommerce + /// + [EnumMember(Value = "ECommerce")] + ECommerce = 3 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RedirectionEndpointsModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RedirectionEndpointsModel.cs new file mode 100644 index 000000000..64c9cdf98 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RedirectionEndpointsModel.cs @@ -0,0 +1,182 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// RedirectionEndpointsModel + /// + [DataContract(Name = "RedirectionEndpointsModel")] + public partial class RedirectionEndpointsModel : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// authorizeSucceeded. + /// succeeded. + /// authorizeFailed. + /// failed. + public RedirectionEndpointsModel(string authorizeSucceeded = default(string), string succeeded = default(string), string authorizeFailed = default(string), string failed = default(string)) + { + this.AuthorizeSucceeded = authorizeSucceeded; + this.Succeeded = succeeded; + this.AuthorizeFailed = authorizeFailed; + this.Failed = failed; + } + + /// + /// Gets or Sets AuthorizeSucceeded + /// + [DataMember(Name = "AuthorizeSucceeded", EmitDefaultValue = false)] + public string AuthorizeSucceeded { get; set; } + + /// + /// Gets or Sets Succeeded + /// + [DataMember(Name = "Succeeded", EmitDefaultValue = false)] + public string Succeeded { get; set; } + + /// + /// Gets or Sets AuthorizeFailed + /// + [DataMember(Name = "AuthorizeFailed", EmitDefaultValue = false)] + public string AuthorizeFailed { get; set; } + + /// + /// Gets or Sets Failed + /// + [DataMember(Name = "Failed", EmitDefaultValue = false)] + public string Failed { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RedirectionEndpointsModel {\n"); + sb.Append(" AuthorizeSucceeded: ").Append(AuthorizeSucceeded).Append("\n"); + sb.Append(" Succeeded: ").Append(Succeeded).Append("\n"); + sb.Append(" AuthorizeFailed: ").Append(AuthorizeFailed).Append("\n"); + sb.Append(" Failed: ").Append(Failed).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RedirectionEndpointsModel); + } + + /// + /// Returns true if RedirectionEndpointsModel instances are equal + /// + /// Instance of RedirectionEndpointsModel to be compared + /// Boolean + public bool Equals(RedirectionEndpointsModel input) + { + if (input == null) + { + return false; + } + return + ( + this.AuthorizeSucceeded == input.AuthorizeSucceeded || + (this.AuthorizeSucceeded != null && + this.AuthorizeSucceeded.Equals(input.AuthorizeSucceeded)) + ) && + ( + this.Succeeded == input.Succeeded || + (this.Succeeded != null && + this.Succeeded.Equals(input.Succeeded)) + ) && + ( + this.AuthorizeFailed == input.AuthorizeFailed || + (this.AuthorizeFailed != null && + this.AuthorizeFailed.Equals(input.AuthorizeFailed)) + ) && + ( + this.Failed == input.Failed || + (this.Failed != null && + this.Failed.Equals(input.Failed)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AuthorizeSucceeded != null) + { + hashCode = (hashCode * 59) + this.AuthorizeSucceeded.GetHashCode(); + } + if (this.Succeeded != null) + { + hashCode = (hashCode * 59) + this.Succeeded.GetHashCode(); + } + if (this.AuthorizeFailed != null) + { + hashCode = (hashCode * 59) + this.AuthorizeFailed.GetHashCode(); + } + if (this.Failed != null) + { + hashCode = (hashCode * 59) + this.Failed.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundModel.cs new file mode 100644 index 000000000..e7b765290 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundModel.cs @@ -0,0 +1,207 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// RefundModel + /// + [DataContract(Name = "RefundModel")] + public partial class RefundModel : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "Status", IsRequired = true, EmitDefaultValue = true)] + public RefundStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RefundModel() { } + /// + /// Initializes a new instance of the class. + /// + /// refundId. + /// submitDate (required). + /// totalAmount (required). + /// status (required). + /// nonCreditRefundAmount (required). + /// creditRefundAmount (required). + public RefundModel(string refundId = default(string), DateTime submitDate = default(DateTime), double totalAmount = default(double), RefundStatus status = default(RefundStatus), double nonCreditRefundAmount = default(double), double creditRefundAmount = default(double)) + { + this.SubmitDate = submitDate; + this.TotalAmount = totalAmount; + this.Status = status; + this.NonCreditRefundAmount = nonCreditRefundAmount; + this.CreditRefundAmount = creditRefundAmount; + this.RefundId = refundId; + } + + /// + /// Gets or Sets RefundId + /// + [DataMember(Name = "RefundId", EmitDefaultValue = false)] + public string RefundId { get; set; } + + /// + /// Gets or Sets SubmitDate + /// + [DataMember(Name = "SubmitDate", IsRequired = true, EmitDefaultValue = true)] + public DateTime SubmitDate { get; set; } + + /// + /// Gets or Sets TotalAmount + /// + [DataMember(Name = "TotalAmount", IsRequired = true, EmitDefaultValue = true)] + public double TotalAmount { get; set; } + + /// + /// Gets or Sets NonCreditRefundAmount + /// + [DataMember(Name = "NonCreditRefundAmount", IsRequired = true, EmitDefaultValue = true)] + public double NonCreditRefundAmount { get; set; } + + /// + /// Gets or Sets CreditRefundAmount + /// + [DataMember(Name = "CreditRefundAmount", IsRequired = true, EmitDefaultValue = true)] + public double CreditRefundAmount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefundModel {\n"); + sb.Append(" RefundId: ").Append(RefundId).Append("\n"); + sb.Append(" SubmitDate: ").Append(SubmitDate).Append("\n"); + sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" NonCreditRefundAmount: ").Append(NonCreditRefundAmount).Append("\n"); + sb.Append(" CreditRefundAmount: ").Append(CreditRefundAmount).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RefundModel); + } + + /// + /// Returns true if RefundModel instances are equal + /// + /// Instance of RefundModel to be compared + /// Boolean + public bool Equals(RefundModel input) + { + if (input == null) + { + return false; + } + return + ( + this.RefundId == input.RefundId || + (this.RefundId != null && + this.RefundId.Equals(input.RefundId)) + ) && + ( + this.SubmitDate == input.SubmitDate || + (this.SubmitDate != null && + this.SubmitDate.Equals(input.SubmitDate)) + ) && + ( + this.TotalAmount == input.TotalAmount || + this.TotalAmount.Equals(input.TotalAmount) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.NonCreditRefundAmount == input.NonCreditRefundAmount || + this.NonCreditRefundAmount.Equals(input.NonCreditRefundAmount) + ) && + ( + this.CreditRefundAmount == input.CreditRefundAmount || + this.CreditRefundAmount.Equals(input.CreditRefundAmount) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RefundId != null) + { + hashCode = (hashCode * 59) + this.RefundId.GetHashCode(); + } + if (this.SubmitDate != null) + { + hashCode = (hashCode * 59) + this.SubmitDate.GetHashCode(); + } + hashCode = (hashCode * 59) + this.TotalAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + hashCode = (hashCode * 59) + this.NonCreditRefundAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.CreditRefundAmount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundStatus.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundStatus.cs new file mode 100644 index 000000000..dc4ac0ece --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundStatus.cs @@ -0,0 +1,54 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines RefundStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum RefundStatus + { + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 1, + + /// + /// Enum Succeeded for value: Succeeded + /// + [EnumMember(Value = "Succeeded")] + Succeeded = 2, + + /// + /// Enum Failed for value: Failed + /// + [EnumMember(Value = "Failed")] + Failed = 3 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundStrategy.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundStrategy.cs new file mode 100644 index 000000000..d8e603fea --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundStrategy.cs @@ -0,0 +1,60 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines RefundStrategy + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum RefundStrategy + { + /// + /// Enum FutureInstallmentsFirst for value: FutureInstallmentsFirst + /// + [EnumMember(Value = "FutureInstallmentsFirst")] + FutureInstallmentsFirst = 1, + + /// + /// Enum FutureInstallmentsLast for value: FutureInstallmentsLast + /// + [EnumMember(Value = "FutureInstallmentsLast")] + FutureInstallmentsLast = 2, + + /// + /// Enum FutureInstallmentsNotAllowed for value: FutureInstallmentsNotAllowed + /// + [EnumMember(Value = "FutureInstallmentsNotAllowed")] + FutureInstallmentsNotAllowed = 3, + + /// + /// Enum ReduceFromLastInstallment for value: ReduceFromLastInstallment + /// + [EnumMember(Value = "ReduceFromLastInstallment")] + ReduceFromLastInstallment = 4 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundSummary.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundSummary.cs new file mode 100644 index 000000000..217f46090 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/RefundSummary.cs @@ -0,0 +1,166 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// RefundSummary + /// + [DataContract(Name = "RefundSummary")] + public partial class RefundSummary : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// totalAmount. + /// failedAmount. + /// succeededAmount. + /// pendingAmount. + public RefundSummary(double totalAmount = default(double), double failedAmount = default(double), double succeededAmount = default(double), double pendingAmount = default(double)) + { + this.TotalAmount = totalAmount; + this.FailedAmount = failedAmount; + this.SucceededAmount = succeededAmount; + this.PendingAmount = pendingAmount; + } + + /// + /// Gets or Sets TotalAmount + /// + [DataMember(Name = "TotalAmount", EmitDefaultValue = false)] + public double TotalAmount { get; set; } + + /// + /// Gets or Sets FailedAmount + /// + [DataMember(Name = "FailedAmount", EmitDefaultValue = false)] + public double FailedAmount { get; set; } + + /// + /// Gets or Sets SucceededAmount + /// + [DataMember(Name = "SucceededAmount", EmitDefaultValue = false)] + public double SucceededAmount { get; set; } + + /// + /// Gets or Sets PendingAmount + /// + [DataMember(Name = "PendingAmount", EmitDefaultValue = false)] + public double PendingAmount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class RefundSummary {\n"); + sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); + sb.Append(" FailedAmount: ").Append(FailedAmount).Append("\n"); + sb.Append(" SucceededAmount: ").Append(SucceededAmount).Append("\n"); + sb.Append(" PendingAmount: ").Append(PendingAmount).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RefundSummary); + } + + /// + /// Returns true if RefundSummary instances are equal + /// + /// Instance of RefundSummary to be compared + /// Boolean + public bool Equals(RefundSummary input) + { + if (input == null) + { + return false; + } + return + ( + this.TotalAmount == input.TotalAmount || + this.TotalAmount.Equals(input.TotalAmount) + ) && + ( + this.FailedAmount == input.FailedAmount || + this.FailedAmount.Equals(input.FailedAmount) + ) && + ( + this.SucceededAmount == input.SucceededAmount || + this.SucceededAmount.Equals(input.SucceededAmount) + ) && + ( + this.PendingAmount == input.PendingAmount || + this.PendingAmount.Equals(input.PendingAmount) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.TotalAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.FailedAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.SucceededAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.PendingAmount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/SearchInstallmentPlanResponseItem.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/SearchInstallmentPlanResponseItem.cs new file mode 100644 index 000000000..7eed2ab09 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/SearchInstallmentPlanResponseItem.cs @@ -0,0 +1,390 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// SearchInstallmentPlanResponseItem + /// + [DataContract(Name = "SearchInstallmentPlanResponseItem")] + public partial class SearchInstallmentPlanResponseItem : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets PurchaseMethod + /// + [DataMember(Name = "PurchaseMethod", EmitDefaultValue = false)] + public PurchaseMethod? PurchaseMethod { get; set; } + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "Status", IsRequired = true, EmitDefaultValue = true)] + public PlanStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SearchInstallmentPlanResponseItem() { } + /// + /// Initializes a new instance of the class. + /// + /// installmentPlanNumber. + /// dateCreated (required). + /// refOrderNumber. + /// purchaseMethod. + /// status (required). + /// currency. + /// originalAmount. + /// amount. + /// authorization. + /// shopper. + /// billingAddress. + /// paymentMethod. + /// extendedParams. + /// installments. + /// refunds. + /// links. + public SearchInstallmentPlanResponseItem(string installmentPlanNumber = default(string), DateTime dateCreated = default(DateTime), string refOrderNumber = default(string), PurchaseMethod? purchaseMethod = default(PurchaseMethod?), PlanStatus status = default(PlanStatus), string currency = default(string), double originalAmount = default(double), double amount = default(double), AuthorizationModel authorization = default(AuthorizationModel), ShopperData shopper = default(ShopperData), AddressData billingAddress = default(AddressData), PaymentMethodModel paymentMethod = default(PaymentMethodModel), Dictionary extendedParams = default(Dictionary), List installments = default(List), List refunds = default(List), LinksData links = default(LinksData)) + { + this.DateCreated = dateCreated; + this.Status = status; + this.InstallmentPlanNumber = installmentPlanNumber; + this.RefOrderNumber = refOrderNumber; + this.PurchaseMethod = purchaseMethod; + this.Currency = currency; + this.OriginalAmount = originalAmount; + this.Amount = amount; + this.Authorization = authorization; + this.Shopper = shopper; + this.BillingAddress = billingAddress; + this.PaymentMethod = paymentMethod; + this.ExtendedParams = extendedParams; + this.Installments = installments; + this.Refunds = refunds; + this.Links = links; + } + + /// + /// Gets or Sets InstallmentPlanNumber + /// + [DataMember(Name = "InstallmentPlanNumber", EmitDefaultValue = false)] + public string InstallmentPlanNumber { get; set; } + + /// + /// Gets or Sets DateCreated + /// + [DataMember(Name = "DateCreated", IsRequired = true, EmitDefaultValue = true)] + public DateTime DateCreated { get; set; } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets Currency + /// + [DataMember(Name = "Currency", EmitDefaultValue = false)] + public string Currency { get; set; } + + /// + /// Gets or Sets OriginalAmount + /// + [DataMember(Name = "OriginalAmount", EmitDefaultValue = false)] + public double OriginalAmount { get; set; } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name = "Amount", EmitDefaultValue = false)] + public double Amount { get; set; } + + /// + /// Gets or Sets Authorization + /// + [DataMember(Name = "Authorization", EmitDefaultValue = false)] + public AuthorizationModel Authorization { get; set; } + + /// + /// Gets or Sets Shopper + /// + [DataMember(Name = "Shopper", EmitDefaultValue = false)] + public ShopperData Shopper { get; set; } + + /// + /// Gets or Sets BillingAddress + /// + [DataMember(Name = "BillingAddress", EmitDefaultValue = false)] + public AddressData BillingAddress { get; set; } + + /// + /// Gets or Sets PaymentMethod + /// + [DataMember(Name = "PaymentMethod", EmitDefaultValue = false)] + public PaymentMethodModel PaymentMethod { get; set; } + + /// + /// Gets or Sets ExtendedParams + /// + [DataMember(Name = "ExtendedParams", EmitDefaultValue = false)] + public Dictionary ExtendedParams { get; set; } + + /// + /// Gets or Sets Installments + /// + [DataMember(Name = "Installments", EmitDefaultValue = false)] + public List Installments { get; set; } + + /// + /// Gets or Sets Refunds + /// + [DataMember(Name = "Refunds", EmitDefaultValue = false)] + public List Refunds { get; set; } + + /// + /// Gets or Sets Links + /// + [DataMember(Name = "Links", EmitDefaultValue = false)] + public LinksData Links { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SearchInstallmentPlanResponseItem {\n"); + sb.Append(" InstallmentPlanNumber: ").Append(InstallmentPlanNumber).Append("\n"); + sb.Append(" DateCreated: ").Append(DateCreated).Append("\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" PurchaseMethod: ").Append(PurchaseMethod).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" OriginalAmount: ").Append(OriginalAmount).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" Authorization: ").Append(Authorization).Append("\n"); + sb.Append(" Shopper: ").Append(Shopper).Append("\n"); + sb.Append(" BillingAddress: ").Append(BillingAddress).Append("\n"); + sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); + sb.Append(" ExtendedParams: ").Append(ExtendedParams).Append("\n"); + sb.Append(" Installments: ").Append(Installments).Append("\n"); + sb.Append(" Refunds: ").Append(Refunds).Append("\n"); + sb.Append(" Links: ").Append(Links).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SearchInstallmentPlanResponseItem); + } + + /// + /// Returns true if SearchInstallmentPlanResponseItem instances are equal + /// + /// Instance of SearchInstallmentPlanResponseItem to be compared + /// Boolean + public bool Equals(SearchInstallmentPlanResponseItem input) + { + if (input == null) + { + return false; + } + return + ( + this.InstallmentPlanNumber == input.InstallmentPlanNumber || + (this.InstallmentPlanNumber != null && + this.InstallmentPlanNumber.Equals(input.InstallmentPlanNumber)) + ) && + ( + this.DateCreated == input.DateCreated || + (this.DateCreated != null && + this.DateCreated.Equals(input.DateCreated)) + ) && + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.PurchaseMethod == input.PurchaseMethod || + this.PurchaseMethod.Equals(input.PurchaseMethod) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) + ) && + ( + this.OriginalAmount == input.OriginalAmount || + this.OriginalAmount.Equals(input.OriginalAmount) + ) && + ( + this.Amount == input.Amount || + this.Amount.Equals(input.Amount) + ) && + ( + this.Authorization == input.Authorization || + (this.Authorization != null && + this.Authorization.Equals(input.Authorization)) + ) && + ( + this.Shopper == input.Shopper || + (this.Shopper != null && + this.Shopper.Equals(input.Shopper)) + ) && + ( + this.BillingAddress == input.BillingAddress || + (this.BillingAddress != null && + this.BillingAddress.Equals(input.BillingAddress)) + ) && + ( + this.PaymentMethod == input.PaymentMethod || + (this.PaymentMethod != null && + this.PaymentMethod.Equals(input.PaymentMethod)) + ) && + ( + this.ExtendedParams == input.ExtendedParams || + this.ExtendedParams != null && + input.ExtendedParams != null && + this.ExtendedParams.SequenceEqual(input.ExtendedParams) + ) && + ( + this.Installments == input.Installments || + this.Installments != null && + input.Installments != null && + this.Installments.SequenceEqual(input.Installments) + ) && + ( + this.Refunds == input.Refunds || + this.Refunds != null && + input.Refunds != null && + this.Refunds.SequenceEqual(input.Refunds) + ) && + ( + this.Links == input.Links || + (this.Links != null && + this.Links.Equals(input.Links)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InstallmentPlanNumber != null) + { + hashCode = (hashCode * 59) + this.InstallmentPlanNumber.GetHashCode(); + } + if (this.DateCreated != null) + { + hashCode = (hashCode * 59) + this.DateCreated.GetHashCode(); + } + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PurchaseMethod.GetHashCode(); + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.Currency != null) + { + hashCode = (hashCode * 59) + this.Currency.GetHashCode(); + } + hashCode = (hashCode * 59) + this.OriginalAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.Amount.GetHashCode(); + if (this.Authorization != null) + { + hashCode = (hashCode * 59) + this.Authorization.GetHashCode(); + } + if (this.Shopper != null) + { + hashCode = (hashCode * 59) + this.Shopper.GetHashCode(); + } + if (this.BillingAddress != null) + { + hashCode = (hashCode * 59) + this.BillingAddress.GetHashCode(); + } + if (this.PaymentMethod != null) + { + hashCode = (hashCode * 59) + this.PaymentMethod.GetHashCode(); + } + if (this.ExtendedParams != null) + { + hashCode = (hashCode * 59) + this.ExtendedParams.GetHashCode(); + } + if (this.Installments != null) + { + hashCode = (hashCode * 59) + this.Installments.GetHashCode(); + } + if (this.Refunds != null) + { + hashCode = (hashCode * 59) + this.Refunds.GetHashCode(); + } + if (this.Links != null) + { + hashCode = (hashCode * 59) + this.Links.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShippingStatus.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShippingStatus.cs new file mode 100644 index 000000000..f032f8af7 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShippingStatus.cs @@ -0,0 +1,54 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines ShippingStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ShippingStatus + { + /// + /// Enum Pending for value: Pending + /// + [EnumMember(Value = "Pending")] + Pending = 1, + + /// + /// Enum Shipped for value: Shipped + /// + [EnumMember(Value = "Shipped")] + Shipped = 2, + + /// + /// Enum Delivered for value: Delivered + /// + [EnumMember(Value = "Delivered")] + Delivered = 3 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShippingStatus2.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShippingStatus2.cs new file mode 100644 index 000000000..203052b0d --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShippingStatus2.cs @@ -0,0 +1,48 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines ShippingStatus2 + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ShippingStatus2 + { + /// + /// Enum Shipped for value: Shipped + /// + [EnumMember(Value = "Shipped")] + Shipped = 1, + + /// + /// Enum Delivered for value: Delivered + /// + [EnumMember(Value = "Delivered")] + Delivered = 2 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShopperData.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShopperData.cs new file mode 100644 index 000000000..2054d8e09 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ShopperData.cs @@ -0,0 +1,182 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// ShopperData + /// + [DataContract(Name = "ShopperData")] + public partial class ShopperData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// fullName. + /// email. + /// phoneNumber. + /// culture. + public ShopperData(string fullName = default(string), string email = default(string), string phoneNumber = default(string), string culture = default(string)) + { + this.FullName = fullName; + this.Email = email; + this.PhoneNumber = phoneNumber; + this.Culture = culture; + } + + /// + /// Gets or Sets FullName + /// + [DataMember(Name = "FullName", EmitDefaultValue = false)] + public string FullName { get; set; } + + /// + /// Gets or Sets Email + /// + [DataMember(Name = "Email", EmitDefaultValue = false)] + public string Email { get; set; } + + /// + /// Gets or Sets PhoneNumber + /// + [DataMember(Name = "PhoneNumber", EmitDefaultValue = false)] + public string PhoneNumber { get; set; } + + /// + /// Gets or Sets Culture + /// + [DataMember(Name = "Culture", EmitDefaultValue = false)] + public string Culture { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ShopperData {\n"); + sb.Append(" FullName: ").Append(FullName).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" Culture: ").Append(Culture).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ShopperData); + } + + /// + /// Returns true if ShopperData instances are equal + /// + /// Instance of ShopperData to be compared + /// Boolean + public bool Equals(ShopperData input) + { + if (input == null) + { + return false; + } + return + ( + this.FullName == input.FullName || + (this.FullName != null && + this.FullName.Equals(input.FullName)) + ) && + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.Culture == input.Culture || + (this.Culture != null && + this.Culture.Equals(input.Culture)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FullName != null) + { + hashCode = (hashCode * 59) + this.FullName.GetHashCode(); + } + if (this.Email != null) + { + hashCode = (hashCode * 59) + this.Email.GetHashCode(); + } + if (this.PhoneNumber != null) + { + hashCode = (hashCode * 59) + this.PhoneNumber.GetHashCode(); + } + if (this.Culture != null) + { + hashCode = (hashCode * 59) + this.Culture.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/SpreedlyToken.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/SpreedlyToken.cs new file mode 100644 index 000000000..a759b57f7 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/SpreedlyToken.cs @@ -0,0 +1,146 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// SpreedlyToken + /// + [DataContract(Name = "SpreedlyToken")] + public partial class SpreedlyToken : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// token. + /// last4Digit. + public SpreedlyToken(string token = default(string), string last4Digit = default(string)) + { + this.Token = token; + this.Last4Digit = last4Digit; + } + + /// + /// Gets or Sets Token + /// + [DataMember(Name = "Token", EmitDefaultValue = false)] + public string Token { get; set; } + + /// + /// Gets or Sets Last4Digit + /// + [DataMember(Name = "Last4Digit", EmitDefaultValue = false)] + public string Last4Digit { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SpreedlyToken {\n"); + sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" Last4Digit: ").Append(Last4Digit).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SpreedlyToken); + } + + /// + /// Returns true if SpreedlyToken instances are equal + /// + /// Instance of SpreedlyToken to be compared + /// Boolean + public bool Equals(SpreedlyToken input) + { + if (input == null) + { + return false; + } + return + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ) && + ( + this.Last4Digit == input.Last4Digit || + (this.Last4Digit != null && + this.Last4Digit.Equals(input.Last4Digit)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Token != null) + { + hashCode = (hashCode * 59) + this.Token.GetHashCode(); + } + if (this.Last4Digit != null) + { + hashCode = (hashCode * 59) + this.Last4Digit.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/TestModes.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/TestModes.cs new file mode 100644 index 000000000..bd9b789e3 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/TestModes.cs @@ -0,0 +1,60 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// Defines TestModes + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TestModes + { + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 1, + + /// + /// Enum Regular for value: Regular + /// + [EnumMember(Value = "Regular")] + Regular = 2, + + /// + /// Enum Fast for value: Fast + /// + [EnumMember(Value = "Fast")] + Fast = 3, + + /// + /// Enum Automation for value: Automation + /// + [EnumMember(Value = "Automation")] + Automation = 4 + + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDSData.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDSData.cs new file mode 100644 index 000000000..7f44af536 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDSData.cs @@ -0,0 +1,218 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// ThreeDSData + /// + [DataContract(Name = "ThreeDSData")] + public partial class ThreeDSData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// eCI. + /// cAVV. + /// xID. + /// directoryServerTxnId. + /// threeDSVersion. + /// transactionId. + public ThreeDSData(string eCI = default(string), string cAVV = default(string), string xID = default(string), string directoryServerTxnId = default(string), string threeDSVersion = default(string), string transactionId = default(string)) + { + this.ECI = eCI; + this.CAVV = cAVV; + this.XID = xID; + this.DirectoryServerTxnId = directoryServerTxnId; + this.ThreeDSVersion = threeDSVersion; + this.TransactionId = transactionId; + } + + /// + /// Gets or Sets ECI + /// + [DataMember(Name = "ECI", EmitDefaultValue = false)] + public string ECI { get; set; } + + /// + /// Gets or Sets CAVV + /// + [DataMember(Name = "CAVV", EmitDefaultValue = false)] + public string CAVV { get; set; } + + /// + /// Gets or Sets XID + /// + [DataMember(Name = "XID", EmitDefaultValue = false)] + public string XID { get; set; } + + /// + /// Gets or Sets DirectoryServerTxnId + /// + [DataMember(Name = "DirectoryServerTxnId", EmitDefaultValue = false)] + public string DirectoryServerTxnId { get; set; } + + /// + /// Gets or Sets ThreeDSVersion + /// + [DataMember(Name = "ThreeDSVersion", EmitDefaultValue = false)] + public string ThreeDSVersion { get; set; } + + /// + /// Gets or Sets TransactionId + /// + [DataMember(Name = "TransactionId", EmitDefaultValue = false)] + public string TransactionId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ThreeDSData {\n"); + sb.Append(" ECI: ").Append(ECI).Append("\n"); + sb.Append(" CAVV: ").Append(CAVV).Append("\n"); + sb.Append(" XID: ").Append(XID).Append("\n"); + sb.Append(" DirectoryServerTxnId: ").Append(DirectoryServerTxnId).Append("\n"); + sb.Append(" ThreeDSVersion: ").Append(ThreeDSVersion).Append("\n"); + sb.Append(" TransactionId: ").Append(TransactionId).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ThreeDSData); + } + + /// + /// Returns true if ThreeDSData instances are equal + /// + /// Instance of ThreeDSData to be compared + /// Boolean + public bool Equals(ThreeDSData input) + { + if (input == null) + { + return false; + } + return + ( + this.ECI == input.ECI || + (this.ECI != null && + this.ECI.Equals(input.ECI)) + ) && + ( + this.CAVV == input.CAVV || + (this.CAVV != null && + this.CAVV.Equals(input.CAVV)) + ) && + ( + this.XID == input.XID || + (this.XID != null && + this.XID.Equals(input.XID)) + ) && + ( + this.DirectoryServerTxnId == input.DirectoryServerTxnId || + (this.DirectoryServerTxnId != null && + this.DirectoryServerTxnId.Equals(input.DirectoryServerTxnId)) + ) && + ( + this.ThreeDSVersion == input.ThreeDSVersion || + (this.ThreeDSVersion != null && + this.ThreeDSVersion.Equals(input.ThreeDSVersion)) + ) && + ( + this.TransactionId == input.TransactionId || + (this.TransactionId != null && + this.TransactionId.Equals(input.TransactionId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ECI != null) + { + hashCode = (hashCode * 59) + this.ECI.GetHashCode(); + } + if (this.CAVV != null) + { + hashCode = (hashCode * 59) + this.CAVV.GetHashCode(); + } + if (this.XID != null) + { + hashCode = (hashCode * 59) + this.XID.GetHashCode(); + } + if (this.DirectoryServerTxnId != null) + { + hashCode = (hashCode * 59) + this.DirectoryServerTxnId.GetHashCode(); + } + if (this.ThreeDSVersion != null) + { + hashCode = (hashCode * 59) + this.ThreeDSVersion.GetHashCode(); + } + if (this.TransactionId != null) + { + hashCode = (hashCode * 59) + this.TransactionId.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDSData2.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDSData2.cs new file mode 100644 index 000000000..429ae09dc --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDSData2.cs @@ -0,0 +1,218 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// ThreeDSData2 + /// + [DataContract(Name = "ThreeDSData2")] + public partial class ThreeDSData2 : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// eCI. + /// cAVV. + /// xID. + /// directoryServerTxnId. + /// threeDSVersion. + /// transactionId. + public ThreeDSData2(string eCI = default(string), string cAVV = default(string), string xID = default(string), string directoryServerTxnId = default(string), string threeDSVersion = default(string), string transactionId = default(string)) + { + this.ECI = eCI; + this.CAVV = cAVV; + this.XID = xID; + this.DirectoryServerTxnId = directoryServerTxnId; + this.ThreeDSVersion = threeDSVersion; + this.TransactionId = transactionId; + } + + /// + /// Gets or Sets ECI + /// + [DataMember(Name = "ECI", EmitDefaultValue = false)] + public string ECI { get; set; } + + /// + /// Gets or Sets CAVV + /// + [DataMember(Name = "CAVV", EmitDefaultValue = false)] + public string CAVV { get; set; } + + /// + /// Gets or Sets XID + /// + [DataMember(Name = "XID", EmitDefaultValue = false)] + public string XID { get; set; } + + /// + /// Gets or Sets DirectoryServerTxnId + /// + [DataMember(Name = "DirectoryServerTxnId", EmitDefaultValue = false)] + public string DirectoryServerTxnId { get; set; } + + /// + /// Gets or Sets ThreeDSVersion + /// + [DataMember(Name = "ThreeDSVersion", EmitDefaultValue = false)] + public string ThreeDSVersion { get; set; } + + /// + /// Gets or Sets TransactionId + /// + [DataMember(Name = "TransactionId", EmitDefaultValue = false)] + public string TransactionId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ThreeDSData2 {\n"); + sb.Append(" ECI: ").Append(ECI).Append("\n"); + sb.Append(" CAVV: ").Append(CAVV).Append("\n"); + sb.Append(" XID: ").Append(XID).Append("\n"); + sb.Append(" DirectoryServerTxnId: ").Append(DirectoryServerTxnId).Append("\n"); + sb.Append(" ThreeDSVersion: ").Append(ThreeDSVersion).Append("\n"); + sb.Append(" TransactionId: ").Append(TransactionId).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ThreeDSData2); + } + + /// + /// Returns true if ThreeDSData2 instances are equal + /// + /// Instance of ThreeDSData2 to be compared + /// Boolean + public bool Equals(ThreeDSData2 input) + { + if (input == null) + { + return false; + } + return + ( + this.ECI == input.ECI || + (this.ECI != null && + this.ECI.Equals(input.ECI)) + ) && + ( + this.CAVV == input.CAVV || + (this.CAVV != null && + this.CAVV.Equals(input.CAVV)) + ) && + ( + this.XID == input.XID || + (this.XID != null && + this.XID.Equals(input.XID)) + ) && + ( + this.DirectoryServerTxnId == input.DirectoryServerTxnId || + (this.DirectoryServerTxnId != null && + this.DirectoryServerTxnId.Equals(input.DirectoryServerTxnId)) + ) && + ( + this.ThreeDSVersion == input.ThreeDSVersion || + (this.ThreeDSVersion != null && + this.ThreeDSVersion.Equals(input.ThreeDSVersion)) + ) && + ( + this.TransactionId == input.TransactionId || + (this.TransactionId != null && + this.TransactionId.Equals(input.TransactionId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ECI != null) + { + hashCode = (hashCode * 59) + this.ECI.GetHashCode(); + } + if (this.CAVV != null) + { + hashCode = (hashCode * 59) + this.CAVV.GetHashCode(); + } + if (this.XID != null) + { + hashCode = (hashCode * 59) + this.XID.GetHashCode(); + } + if (this.DirectoryServerTxnId != null) + { + hashCode = (hashCode * 59) + this.DirectoryServerTxnId.GetHashCode(); + } + if (this.ThreeDSVersion != null) + { + hashCode = (hashCode * 59) + this.ThreeDSVersion.GetHashCode(); + } + if (this.TransactionId != null) + { + hashCode = (hashCode * 59) + this.TransactionId.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDsRedirectDataV3.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDsRedirectDataV3.cs new file mode 100644 index 000000000..3c5d6a4ce --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/ThreeDsRedirectDataV3.cs @@ -0,0 +1,165 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// ThreeDsRedirectDataV3 + /// + [DataContract(Name = "ThreeDsRedirectDataV3")] + public partial class ThreeDsRedirectDataV3 : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// url. + /// verb. + /// _params. + public ThreeDsRedirectDataV3(string url = default(string), string verb = default(string), Dictionary _params = default(Dictionary)) + { + this.Url = url; + this.Verb = verb; + this.Params = _params; + } + + /// + /// Gets or Sets Url + /// + [DataMember(Name = "Url", EmitDefaultValue = false)] + public string Url { get; set; } + + /// + /// Gets or Sets Verb + /// + [DataMember(Name = "Verb", EmitDefaultValue = false)] + public string Verb { get; set; } + + /// + /// Gets or Sets Params + /// + [DataMember(Name = "Params", EmitDefaultValue = false)] + public Dictionary Params { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ThreeDsRedirectDataV3 {\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); + sb.Append(" Verb: ").Append(Verb).Append("\n"); + sb.Append(" Params: ").Append(Params).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ThreeDsRedirectDataV3); + } + + /// + /// Returns true if ThreeDsRedirectDataV3 instances are equal + /// + /// Instance of ThreeDsRedirectDataV3 to be compared + /// Boolean + public bool Equals(ThreeDsRedirectDataV3 input) + { + if (input == null) + { + return false; + } + return + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ) && + ( + this.Verb == input.Verb || + (this.Verb != null && + this.Verb.Equals(input.Verb)) + ) && + ( + this.Params == input.Params || + this.Params != null && + input.Params != null && + this.Params.SequenceEqual(input.Params) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } + if (this.Verb != null) + { + hashCode = (hashCode * 59) + this.Verb.GetHashCode(); + } + if (this.Params != null) + { + hashCode = (hashCode * 59) + this.Params.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/UpdateOrderRequest.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/UpdateOrderRequest.cs new file mode 100644 index 000000000..91b146d29 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/UpdateOrderRequest.cs @@ -0,0 +1,174 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// UpdateOrderRequest + /// + [DataContract(Name = "UpdateOrderRequest")] + public partial class UpdateOrderRequest : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets ShippingStatus + /// + [DataMember(Name = "ShippingStatus", EmitDefaultValue = false)] + public ShippingStatus? ShippingStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// trackingNumber. + /// refOrderNumber. + /// shippingStatus. + /// capture. + public UpdateOrderRequest(string trackingNumber = default(string), string refOrderNumber = default(string), ShippingStatus? shippingStatus = default(ShippingStatus?), bool capture = default(bool)) + { + this.TrackingNumber = trackingNumber; + this.RefOrderNumber = refOrderNumber; + this.ShippingStatus = shippingStatus; + this.Capture = capture; + } + + /// + /// Gets or Sets TrackingNumber + /// + [DataMember(Name = "TrackingNumber", EmitDefaultValue = false)] + public string TrackingNumber { get; set; } + + /// + /// Gets or Sets RefOrderNumber + /// + [DataMember(Name = "RefOrderNumber", EmitDefaultValue = false)] + public string RefOrderNumber { get; set; } + + /// + /// Gets or Sets Capture + /// + [DataMember(Name = "Capture", EmitDefaultValue = true)] + public bool Capture { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UpdateOrderRequest {\n"); + sb.Append(" TrackingNumber: ").Append(TrackingNumber).Append("\n"); + sb.Append(" RefOrderNumber: ").Append(RefOrderNumber).Append("\n"); + sb.Append(" ShippingStatus: ").Append(ShippingStatus).Append("\n"); + sb.Append(" Capture: ").Append(Capture).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UpdateOrderRequest); + } + + /// + /// Returns true if UpdateOrderRequest instances are equal + /// + /// Instance of UpdateOrderRequest to be compared + /// Boolean + public bool Equals(UpdateOrderRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.TrackingNumber == input.TrackingNumber || + (this.TrackingNumber != null && + this.TrackingNumber.Equals(input.TrackingNumber)) + ) && + ( + this.RefOrderNumber == input.RefOrderNumber || + (this.RefOrderNumber != null && + this.RefOrderNumber.Equals(input.RefOrderNumber)) + ) && + ( + this.ShippingStatus == input.ShippingStatus || + this.ShippingStatus.Equals(input.ShippingStatus) + ) && + ( + this.Capture == input.Capture || + this.Capture.Equals(input.Capture) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TrackingNumber != null) + { + hashCode = (hashCode * 59) + this.TrackingNumber.GetHashCode(); + } + if (this.RefOrderNumber != null) + { + hashCode = (hashCode * 59) + this.RefOrderNumber.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ShippingStatus.GetHashCode(); + hashCode = (hashCode * 59) + this.Capture.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/UxSettingsModel.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/UxSettingsModel.cs new file mode 100644 index 000000000..1b5db39c9 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/UxSettingsModel.cs @@ -0,0 +1,129 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// UxSettingsModel + /// + [DataContract(Name = "UxSettingsModel")] + public partial class UxSettingsModel : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// displayedInstallmentOptions. + public UxSettingsModel(List displayedInstallmentOptions = default(List)) + { + this.DisplayedInstallmentOptions = displayedInstallmentOptions; + } + + /// + /// Gets or Sets DisplayedInstallmentOptions + /// + [DataMember(Name = "DisplayedInstallmentOptions", EmitDefaultValue = false)] + public List DisplayedInstallmentOptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UxSettingsModel {\n"); + sb.Append(" DisplayedInstallmentOptions: ").Append(DisplayedInstallmentOptions).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UxSettingsModel); + } + + /// + /// Returns true if UxSettingsModel instances are equal + /// + /// Instance of UxSettingsModel to be compared + /// Boolean + public bool Equals(UxSettingsModel input) + { + if (input == null) + { + return false; + } + return + ( + this.DisplayedInstallmentOptions == input.DisplayedInstallmentOptions || + this.DisplayedInstallmentOptions != null && + input.DisplayedInstallmentOptions != null && + this.DisplayedInstallmentOptions.SequenceEqual(input.DisplayedInstallmentOptions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DisplayedInstallmentOptions != null) + { + hashCode = (hashCode * 59) + this.DisplayedInstallmentOptions.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/VerifyAuthorizationResponse.cs b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/VerifyAuthorizationResponse.cs new file mode 100644 index 000000000..1e94b58a2 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/csharp/src/CsharpSplitit.Net/Model/VerifyAuthorizationResponse.cs @@ -0,0 +1,161 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = CsharpSplitit.Net.Client.OpenAPIDateConverter; + +namespace CsharpSplitit.Net.Model +{ + /// + /// VerifyAuthorizationResponse + /// + [DataContract(Name = "VerifyAuthorizationResponse")] + public partial class VerifyAuthorizationResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected VerifyAuthorizationResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// isAuthorized (required). + /// authorizationAmount. + /// authorization. + public VerifyAuthorizationResponse(bool isAuthorized = default(bool), double authorizationAmount = default(double), AuthorizationModel authorization = default(AuthorizationModel)) + { + this.IsAuthorized = isAuthorized; + this.AuthorizationAmount = authorizationAmount; + this.Authorization = authorization; + } + + /// + /// Gets or Sets IsAuthorized + /// + [DataMember(Name = "IsAuthorized", IsRequired = true, EmitDefaultValue = true)] + public bool IsAuthorized { get; set; } + + /// + /// Gets or Sets AuthorizationAmount + /// + [DataMember(Name = "AuthorizationAmount", EmitDefaultValue = false)] + public double AuthorizationAmount { get; set; } + + /// + /// Gets or Sets Authorization + /// + [DataMember(Name = "Authorization", EmitDefaultValue = false)] + public AuthorizationModel Authorization { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class VerifyAuthorizationResponse {\n"); + sb.Append(" IsAuthorized: ").Append(IsAuthorized).Append("\n"); + sb.Append(" AuthorizationAmount: ").Append(AuthorizationAmount).Append("\n"); + sb.Append(" Authorization: ").Append(Authorization).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as VerifyAuthorizationResponse); + } + + /// + /// Returns true if VerifyAuthorizationResponse instances are equal + /// + /// Instance of VerifyAuthorizationResponse to be compared + /// Boolean + public bool Equals(VerifyAuthorizationResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.IsAuthorized == input.IsAuthorized || + this.IsAuthorized.Equals(input.IsAuthorized) + ) && + ( + this.AuthorizationAmount == input.AuthorizationAmount || + this.AuthorizationAmount.Equals(input.AuthorizationAmount) + ) && + ( + this.Authorization == input.Authorization || + (this.Authorization != null && + this.Authorization.Equals(input.Authorization)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.IsAuthorized.GetHashCode(); + hashCode = (hashCode * 59) + this.AuthorizationAmount.GetHashCode(); + if (this.Authorization != null) + { + hashCode = (hashCode * 59) + this.Authorization.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/konfig.yaml b/generator/konfig-integration-tests/sdks/csharp-splitit/konfig.yaml new file mode 100644 index 000000000..474f273c5 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/konfig.yaml @@ -0,0 +1,19 @@ +# yaml-language-server: $schema=https://unpkg.com/konfig-lib@latest/konfig-yaml.schema.json + +outputDirectory: /tmp/csharp-splitit-sdks-out +specInputPath: swagger.json +specPath: swagger-fixed.json +fixConfig: + modify: + $.servers[0]: + url: https://web-api-v3.production.splitit.com +generators: + csharp: + version: 1.0.0 + outputDirectory: csharp + clientName: CsharpSplititClient + packageName: CsharpSplitit.Net + logoPath: ../../logo.png + git: + userId: konfig-dev + repoId: konfig/tree/main/csharp diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/swagger-fixed.json b/generator/konfig-integration-tests/sdks/csharp-splitit/swagger-fixed.json new file mode 100644 index 000000000..cd19fc7f7 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/swagger-fixed.json @@ -0,0 +1,3117 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "splitit-web-api-v3", + "description": "Splitit's Web API", + "version": "1.0.0" + }, + "servers": [ + { + "url": "https://web-api-v3.production.splitit.com" + } + ], + "tags": [ + { + "name": "InstallmentPlan" + } + ], + "paths": { + "/api/installmentplans/{installmentPlanNumber}": { + "get": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Get", + "security": [ + { + "oauth": [ + "api.v3" + ] + } + ], + "parameters": [ + { + "name": "installmentPlanNumber", + "in": "path", + "required": true, + "x-nullable": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "TouchPoint", + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "schema": { + "type": "string", + "default": "" + } + } + ], + "responses": { + "200": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanGetResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanGetResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanGetResponse" + } + } + } + }, + "401": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "403": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "404": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/installmentplans/search": { + "get": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Search", + "security": [ + { + "oauth": [ + "api.v3" + ] + } + ], + "parameters": [ + { + "name": "installmentPlanNumber", + "in": "query", + "x-nullable": true, + "schema": { + "type": "string" + } + }, + { + "name": "refOrderNumber", + "in": "query", + "x-nullable": true, + "schema": { + "type": "string" + } + }, + { + "name": "extendedParams", + "in": "query", + "x-nullable": true, + "schema": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "TouchPoint", + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "schema": { + "type": "string", + "default": "" + } + } + ], + "responses": { + "200": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanSearchResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanSearchResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanSearchResponse" + } + } + } + }, + "401": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "403": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "404": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/installmentplans/initiate": { + "post": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Post", + "security": [ + { + "oauth": [ + "api.v3" + ] + } + ], + "parameters": [ + { + "name": "X-Splitit-TestMode", + "x-originalName": "testMode", + "in": "header", + "x-schema": { + "$ref": "#/components/schemas/TestModes" + }, + "x-nullable": true, + "schema": { + "type": "string", + "enum": [ + "None", + "Regular", + "Fast", + "Automation" + ] + } + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "TouchPoint", + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "schema": { + "type": "string", + "default": "" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanInitiateRequest" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanInitiateRequest" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanInitiateRequest" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanInitiateRequest" + } + } + }, + "required": true, + "x-nullable": false + }, + "responses": { + "200": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/InitiatePlanResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InitiatePlanResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InitiatePlanResponse" + } + } + } + }, + "400": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/PlanErrorResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlanErrorResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/PlanErrorResponse" + } + } + } + }, + "401": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "403": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "404": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/installmentplans": { + "post": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Post2", + "security": [ + { + "oauth": [ + "api.v3" + ] + } + ], + "parameters": [ + { + "name": "X-Splitit-TestMode", + "x-originalName": "testMode", + "in": "header", + "x-schema": { + "$ref": "#/components/schemas/TestModes" + }, + "x-nullable": true, + "schema": { + "type": "string", + "enum": [ + "None", + "Regular", + "Fast", + "Automation" + ] + } + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "TouchPoint", + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "schema": { + "type": "string", + "default": "" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanCreateRequest" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanCreateRequest" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanCreateRequest" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanCreateRequest" + } + } + }, + "required": true, + "x-nullable": false + }, + "responses": { + "200": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanCreateResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanCreateResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanCreateResponse" + } + } + } + }, + "400": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/PlanErrorResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/PlanErrorResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/PlanErrorResponse" + } + } + } + }, + "401": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "403": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "404": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/installmentplans/{installmentPlanNumber}/verifyauthorization": { + "get": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_VerifyAuthorization", + "security": [ + { + "oauth": [ + "api.v3" + ] + } + ], + "parameters": [ + { + "name": "installmentPlanNumber", + "in": "path", + "required": true, + "x-nullable": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "TouchPoint", + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "schema": { + "type": "string", + "default": "" + } + } + ], + "responses": { + "200": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/VerifyAuthorizationResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/VerifyAuthorizationResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/VerifyAuthorizationResponse" + } + } + } + }, + "401": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "403": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "404": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/installmentplans/{installmentPlanNumber}/updateorder": { + "put": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_UpdateOrder", + "security": [ + { + "oauth": [ + "api.v3" + ] + } + ], + "parameters": [ + { + "name": "installmentPlanNumber", + "in": "path", + "required": true, + "x-nullable": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "TouchPoint", + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "schema": { + "type": "string", + "default": "" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrderRequest" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrderRequest" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrderRequest" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrderRequest" + } + } + }, + "required": true, + "x-nullable": false + }, + "responses": { + "200": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanUpdateResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanUpdateResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanUpdateResponse" + } + } + } + }, + "401": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "403": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "404": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/installmentplans/updateorder": { + "put": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_UpdateOrder2", + "security": [ + { + "oauth": [ + "api.v3" + ] + } + ], + "parameters": [ + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "TouchPoint", + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "schema": { + "type": "string", + "default": "" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanUpdateRequestByIdentifier" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanUpdateRequestByIdentifier" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanUpdateRequestByIdentifier" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanUpdateRequestByIdentifier" + } + } + }, + "required": true, + "x-nullable": false + }, + "responses": { + "200": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanUpdateResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanUpdateResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanUpdateResponse" + } + } + } + }, + "401": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "403": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "404": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/installmentplans/{installmentPlanNumber}/refund": { + "post": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Refund", + "security": [ + { + "oauth": [ + "api.v3" + ] + } + ], + "parameters": [ + { + "name": "installmentPlanNumber", + "in": "path", + "required": true, + "x-nullable": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "TouchPoint", + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "schema": { + "type": "string", + "default": "" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanRefundRequest" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanRefundRequest" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanRefundRequest" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanRefundRequest" + } + } + }, + "required": true, + "x-nullable": false + }, + "responses": { + "200": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanRefundResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanRefundResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanRefundResponse" + } + } + } + }, + "401": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "403": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "404": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/installmentplans/{installmentPlanNumber}/cancel": { + "post": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Cancel", + "security": [ + { + "oauth": [ + "api.v3" + ] + } + ], + "parameters": [ + { + "name": "installmentPlanNumber", + "in": "path", + "required": true, + "x-nullable": true, + "schema": { + "type": "string" + } + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "TouchPoint", + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "schema": { + "type": "string", + "default": "" + } + } + ], + "responses": { + "200": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanCancelResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanCancelResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentPlanCancelResponse" + } + } + } + }, + "401": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "403": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "404": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/installmentplans/check-eligibility": { + "post": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_CheckEligibility", + "security": [ + { + "oauth": [ + "api.v3" + ] + } + ], + "parameters": [ + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "TouchPoint", + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "schema": { + "type": "string", + "default": "" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/CheckInstallmentsEligibilityRequest" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/CheckInstallmentsEligibilityRequest" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/CheckInstallmentsEligibilityRequest" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/CheckInstallmentsEligibilityRequest" + } + } + }, + "required": true, + "x-nullable": false + }, + "responses": { + "200": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/InstallmentsEligibilityResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentsEligibilityResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/InstallmentsEligibilityResponse" + } + } + } + }, + "401": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "403": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "404": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "", + "x-nullable": false, + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "FailedResponse": { + "type": "object", + "properties": { + "TraceId": { + "type": "string" + }, + "Error": { + "$ref": "#/components/schemas/ErrorExtended" + } + } + }, + "ErrorExtended": { + "allOf": [ + { + "$ref": "#/components/schemas/Error" + }, + { + "type": "object", + "properties": { + "ExtraData": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + ] + }, + "Error": { + "type": "object", + "properties": { + "Code": { + "type": "string" + }, + "Message": { + "type": "string" + }, + "AdditionalInfo": { + "type": "string" + } + } + }, + "InstallmentPlanGetResponse": { + "type": "object", + "required": [ + "DateCreated", + "Status" + ], + "properties": { + "InstallmentPlanNumber": { + "type": "string" + }, + "DateCreated": { + "type": "string", + "format": "date-time" + }, + "RefOrderNumber": { + "type": "string" + }, + "PurchaseMethod": { + "$ref": "#/components/schemas/PurchaseMethod" + }, + "Status": { + "$ref": "#/components/schemas/PlanStatus" + }, + "Currency": { + "type": "string" + }, + "OriginalAmount": { + "type": "number", + "format": "decimal" + }, + "Amount": { + "type": "number", + "format": "decimal" + }, + "Authorization": { + "$ref": "#/components/schemas/AuthorizationModel" + }, + "Shopper": { + "$ref": "#/components/schemas/ShopperData" + }, + "BillingAddress": { + "$ref": "#/components/schemas/AddressData" + }, + "PaymentMethod": { + "$ref": "#/components/schemas/PaymentMethodModel" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Installments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Installment" + } + }, + "Refunds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RefundModel" + } + }, + "Links": { + "$ref": "#/components/schemas/LinksData" + } + } + }, + "PurchaseMethod": { + "description": "", + "type": "string", + "x-enumNames": [ + "InStore", + "PhoneOrder", + "ECommerce" + ], + "enum": [ + "InStore", + "PhoneOrder", + "ECommerce" + ] + }, + "PlanStatus": { + "description": "", + "type": "string", + "x-enumNames": [ + "Initialized", + "PendingCapture", + "Active", + "Cleared", + "Canceled" + ], + "enum": [ + "Initialized", + "PendingCapture", + "Active", + "Cleared", + "Canceled" + ] + }, + "AuthorizationModel": { + "type": "object", + "required": [ + "Status" + ], + "properties": { + "Status": { + "$ref": "#/components/schemas/GwAuthorizationStatus" + }, + "Date": { + "type": "string", + "format": "date-time" + }, + "SplititErrorResultCode": { + "type": "string" + }, + "GatewayTransactionID": { + "type": "string" + }, + "GatewayResultCode": { + "type": "string" + }, + "GatewayResultMessage": { + "type": "string" + }, + "ThreeDSRedirect": { + "$ref": "#/components/schemas/ThreeDsRedirectDataV3" + }, + "CAVV": { + "type": "string" + }, + "ECI": { + "type": "string" + }, + "GatewaySourceResponse": { + "type": "string" + } + } + }, + "GwAuthorizationStatus": { + "description": "", + "type": "string", + "x-enumNames": [ + "NA", + "Succeeded", + "Pending3DS", + "Failed" + ], + "enum": [ + "NA", + "Succeeded", + "Pending3DS", + "Failed" + ] + }, + "ThreeDsRedirectDataV3": { + "type": "object", + "properties": { + "Url": { + "type": "string" + }, + "Verb": { + "type": "string" + }, + "Params": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ShopperData": { + "type": "object", + "properties": { + "FullName": { + "type": "string" + }, + "Email": { + "type": "string" + }, + "PhoneNumber": { + "type": "string" + }, + "Culture": { + "type": "string" + } + } + }, + "AddressData": { + "type": "object", + "properties": { + "AddressLine": { + "type": "string" + }, + "AddressLine2": { + "type": "string" + }, + "City": { + "type": "string" + }, + "Country": { + "type": "string" + }, + "State": { + "type": "string" + }, + "Zip": { + "type": "string" + } + } + }, + "PaymentMethodModel": { + "type": "object", + "required": [ + "Type" + ], + "properties": { + "Type": { + "$ref": "#/components/schemas/PaymentMethodType" + }, + "Card": { + "$ref": "#/components/schemas/CardData" + }, + "Token": { + "type": "string" + }, + "BluesnapVaultedShopperToken": { + "$ref": "#/components/schemas/BluesnapVaultedShopperToken" + }, + "MockerShopperToken": { + "$ref": "#/components/schemas/MockerShopperToken" + }, + "SpreedlyToken": { + "$ref": "#/components/schemas/SpreedlyToken" + } + } + }, + "PaymentMethodType": { + "description": "", + "type": "string", + "x-enumNames": [ + "Card", + "SplititToken", + "BluesnapVaultedShopperToken", + "SplititMockerV2Token", + "SpreedlyToken" + ], + "enum": [ + "Card", + "SplititToken", + "BluesnapVaultedShopperToken", + "SplititMockerV2Token", + "SpreedlyToken" + ] + }, + "CardData": { + "type": "object", + "properties": { + "CardHolderFullName": { + "type": "string" + }, + "CardNumber": { + "type": "string" + }, + "CardExpYear": { + "type": "string" + }, + "CardExpMonth": { + "type": "string" + }, + "CardCvv": { + "type": "string" + }, + "CardBrand": { + "$ref": "#/components/schemas/CardBrand" + }, + "CardType": { + "$ref": "#/components/schemas/CardType" + } + } + }, + "CardBrand": { + "description": "", + "type": "string", + "x-enumNames": [ + "Mastercard", + "Visa", + "AmericanExpress", + "Maestro", + "JCB", + "CUP", + "UPI", + "Discover", + "Other" + ], + "enum": [ + "Mastercard", + "Visa", + "AmericanExpress", + "Maestro", + "JCB", + "CUP", + "UPI", + "Discover", + "Other" + ] + }, + "CardType": { + "description": "", + "type": "string", + "x-enumNames": [ + "Credit", + "Debit", + "Charge", + "Other", + "Prepaid", + "VisaDeferredDebit", + "NetworkOnly" + ], + "enum": [ + "Credit", + "Debit", + "Charge", + "Other", + "Prepaid", + "VisaDeferredDebit", + "NetworkOnly" + ] + }, + "BluesnapVaultedShopperToken": { + "allOf": [ + { + "$ref": "#/components/schemas/GatewayTokenData" + }, + { + "type": "object" + } + ] + }, + "GatewayTokenData": { + "type": "object", + "x-abstract": true, + "properties": { + "Token": { + "type": "string" + }, + "Last4Digit": { + "type": "string" + } + } + }, + "MockerShopperToken": { + "allOf": [ + { + "$ref": "#/components/schemas/GatewayTokenData" + }, + { + "type": "object" + } + ] + }, + "SpreedlyToken": { + "allOf": [ + { + "$ref": "#/components/schemas/GatewayTokenData" + }, + { + "type": "object" + } + ] + }, + "Installment": { + "type": "object", + "required": [ + "InstallmentNumber", + "Amount", + "Status" + ], + "properties": { + "InstallmentNumber": { + "type": "integer", + "format": "int32" + }, + "Amount": { + "type": "number", + "format": "decimal" + }, + "ProcessDateTime": { + "type": "string", + "format": "date-time" + }, + "Status": { + "$ref": "#/components/schemas/InstallmentStatus" + } + } + }, + "InstallmentStatus": { + "description": "", + "type": "string", + "x-enumNames": [ + "Pending", + "Processed", + "Canceled" + ], + "enum": [ + "Pending", + "Processed", + "Canceled" + ] + }, + "RefundModel": { + "type": "object", + "required": [ + "SubmitDate", + "TotalAmount", + "Status", + "NonCreditRefundAmount", + "CreditRefundAmount" + ], + "properties": { + "RefundId": { + "type": "string" + }, + "SubmitDate": { + "type": "string", + "format": "date-time" + }, + "TotalAmount": { + "type": "number", + "format": "decimal" + }, + "Status": { + "$ref": "#/components/schemas/RefundStatus" + }, + "NonCreditRefundAmount": { + "type": "number", + "format": "decimal" + }, + "CreditRefundAmount": { + "type": "number", + "format": "decimal" + } + } + }, + "RefundStatus": { + "description": "", + "type": "string", + "x-enumNames": [ + "Pending", + "Succeeded", + "Failed" + ], + "enum": [ + "Pending", + "Succeeded", + "Failed" + ] + }, + "LinksData": { + "type": "object", + "properties": { + "Checkout": { + "type": "string" + }, + "LearnMore": { + "type": "string" + }, + "TermsConditions": { + "type": "string" + }, + "PrivacyPolicy": { + "type": "string" + } + } + }, + "InstallmentPlanSearchResponse": { + "type": "object", + "properties": { + "PlanList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SearchInstallmentPlanResponseItem" + } + } + } + }, + "SearchInstallmentPlanResponseItem": { + "type": "object", + "required": [ + "DateCreated", + "Status" + ], + "properties": { + "InstallmentPlanNumber": { + "type": "string" + }, + "DateCreated": { + "type": "string", + "format": "date-time" + }, + "RefOrderNumber": { + "type": "string" + }, + "PurchaseMethod": { + "$ref": "#/components/schemas/PurchaseMethod" + }, + "Status": { + "$ref": "#/components/schemas/PlanStatus" + }, + "Currency": { + "type": "string" + }, + "OriginalAmount": { + "type": "number", + "format": "decimal" + }, + "Amount": { + "type": "number", + "format": "decimal" + }, + "Authorization": { + "$ref": "#/components/schemas/AuthorizationModel" + }, + "Shopper": { + "$ref": "#/components/schemas/ShopperData" + }, + "BillingAddress": { + "$ref": "#/components/schemas/AddressData" + }, + "PaymentMethod": { + "$ref": "#/components/schemas/PaymentMethodModel" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Installments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Installment" + } + }, + "Refunds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RefundModel" + } + }, + "Links": { + "$ref": "#/components/schemas/LinksData" + } + } + }, + "InitiatePlanResponse": { + "type": "object", + "required": [ + "Status" + ], + "properties": { + "InstallmentPlanNumber": { + "type": "string" + }, + "RefOrderNumber": { + "type": "string" + }, + "PurchaseMethod": { + "$ref": "#/components/schemas/PurchaseMethod" + }, + "Status": { + "$ref": "#/components/schemas/PlanStatus" + }, + "Currency": { + "type": "string" + }, + "Amount": { + "type": "number", + "format": "decimal" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Shopper": { + "$ref": "#/components/schemas/ShopperData" + }, + "BillingAddress": { + "$ref": "#/components/schemas/AddressData" + }, + "CheckoutUrl": { + "type": "string" + } + } + }, + "PlanErrorResponse": { + "allOf": [ + { + "$ref": "#/components/schemas/FailedResponse" + }, + { + "type": "object", + "properties": { + "InstallmentPlanNumber": { + "type": "string" + } + } + } + ] + }, + "InstallmentPlanInitiateRequest": { + "type": "object", + "required": [ + "AutoCapture" + ], + "properties": { + "AutoCapture": { + "type": "boolean" + }, + "Attempt3dSecure": { + "type": "boolean" + }, + "Shopper": { + "$ref": "#/components/schemas/ShopperData" + }, + "PlanData": { + "$ref": "#/components/schemas/PlanDataModel" + }, + "BillingAddress": { + "$ref": "#/components/schemas/AddressDataModel" + }, + "RedirectUrls": { + "$ref": "#/components/schemas/InitiateRedirectionEndpointsModel" + }, + "UxSettings": { + "$ref": "#/components/schemas/UxSettingsModel" + }, + "EventsEndpoints": { + "$ref": "#/components/schemas/EventsEndpointsModel" + }, + "ProcessingData": { + "$ref": "#/components/schemas/ProcessingData" + } + } + }, + "PlanDataModel": { + "type": "object", + "required": [ + "TotalAmount", + "PurchaseMethod" + ], + "properties": { + "TotalAmount": { + "type": "number", + "format": "decimal" + }, + "Currency": { + "type": "string" + }, + "NumberOfInstallments": { + "type": "integer", + "format": "int32" + }, + "TerminalId": { + "type": "string" + }, + "PurchaseMethod": { + "$ref": "#/components/schemas/PurchaseMethod" + }, + "RefOrderNumber": { + "type": "string" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "FirstInstallmentAmount": { + "type": "number", + "format": "decimal" + }, + "FirstInstallmentDate": { + "type": "string", + "format": "date-time" + } + } + }, + "AddressDataModel": { + "type": "object", + "properties": { + "AddressLine1": { + "type": "string" + }, + "AddressLine2": { + "type": "string" + }, + "City": { + "type": "string" + }, + "Country": { + "type": "string" + }, + "State": { + "type": "string" + }, + "Zip": { + "type": "string" + } + } + }, + "InitiateRedirectionEndpointsModel": { + "type": "object", + "properties": { + "Succeeded": { + "type": "string" + }, + "Failed": { + "type": "string" + }, + "Cancel": { + "type": "string" + } + } + }, + "UxSettingsModel": { + "type": "object", + "properties": { + "DisplayedInstallmentOptions": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + } + } + } + }, + "EventsEndpointsModel": { + "type": "object", + "properties": { + "CreateSucceeded": { + "type": "string" + } + } + }, + "ProcessingData": { + "type": "object", + "properties": { + "AttemptThreeDSecured": { + "type": "boolean" + }, + "SoftDescriptor": { + "type": "string" + }, + "ThreeDSData": { + "$ref": "#/components/schemas/ThreeDSData" + } + } + }, + "ThreeDSData": { + "type": "object", + "properties": { + "ECI": { + "type": "string" + }, + "CAVV": { + "type": "string" + }, + "XID": { + "type": "string" + }, + "DirectoryServerTxnId": { + "type": "string" + }, + "ThreeDSVersion": { + "type": "string" + }, + "TransactionId": { + "type": "string" + } + } + }, + "TestModes": { + "description": "", + "type": "string", + "x-enumNames": [ + "None", + "Regular", + "Fast", + "Automation" + ], + "enum": [ + "None", + "Regular", + "Fast", + "Automation" + ] + }, + "InstallmentPlanCreateResponse": { + "type": "object", + "required": [ + "DateCreated", + "Status" + ], + "properties": { + "InstallmentPlanNumber": { + "type": "string" + }, + "DateCreated": { + "type": "string", + "format": "date-time" + }, + "RefOrderNumber": { + "type": "string" + }, + "PurchaseMethod": { + "$ref": "#/components/schemas/PurchaseMethod" + }, + "Status": { + "$ref": "#/components/schemas/PlanStatus" + }, + "Currency": { + "type": "string" + }, + "OriginalAmount": { + "type": "number", + "format": "decimal" + }, + "Amount": { + "type": "number", + "format": "decimal" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Authorization": { + "$ref": "#/components/schemas/AuthorizationModel" + }, + "Shopper": { + "$ref": "#/components/schemas/ShopperData" + }, + "BillingAddress": { + "$ref": "#/components/schemas/AddressData" + }, + "PaymentMethod": { + "$ref": "#/components/schemas/PaymentMethodModel" + }, + "Installments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Installment" + } + }, + "Links": { + "$ref": "#/components/schemas/LinksData" + } + } + }, + "InstallmentPlanCreateRequest": { + "type": "object", + "required": [ + "AutoCapture", + "TermsAndConditionsAccepted" + ], + "properties": { + "AutoCapture": { + "type": "boolean" + }, + "Attempt3dSecure": { + "type": "boolean" + }, + "TermsAndConditionsAccepted": { + "type": "boolean" + }, + "Shopper": { + "$ref": "#/components/schemas/ShopperData" + }, + "PlanData": { + "$ref": "#/components/schemas/PlanDataModel" + }, + "BillingAddress": { + "$ref": "#/components/schemas/AddressDataModel" + }, + "PaymentMethod": { + "$ref": "#/components/schemas/PaymentMethodModel" + }, + "RedirectUrls": { + "$ref": "#/components/schemas/RedirectionEndpointsModel" + }, + "ProcessingData": { + "$ref": "#/components/schemas/ProcessingData" + }, + "EventsEndpoints": { + "$ref": "#/components/schemas/EventsEndpointsModel" + } + } + }, + "RedirectionEndpointsModel": { + "type": "object", + "properties": { + "AuthorizeSucceeded": { + "type": "string", + "x-deprecated": true, + "x-deprecatedMessage": "Please use Succeeded property" + }, + "Succeeded": { + "type": "string" + }, + "AuthorizeFailed": { + "type": "string", + "x-deprecated": true, + "x-deprecatedMessage": "Please use Failed property" + }, + "Failed": { + "type": "string" + } + } + }, + "VerifyAuthorizationResponse": { + "type": "object", + "required": [ + "IsAuthorized" + ], + "properties": { + "IsAuthorized": { + "type": "boolean" + }, + "AuthorizationAmount": { + "type": "number", + "format": "decimal" + }, + "Authorization": { + "$ref": "#/components/schemas/AuthorizationModel" + } + } + }, + "InstallmentPlanUpdateResponse": { + "type": "object", + "required": [ + "Status", + "ShippingStatus" + ], + "properties": { + "RefOrderNumber": { + "type": "string" + }, + "InstallmentPlanNumber": { + "type": "string" + }, + "Status": { + "$ref": "#/components/schemas/PlanStatus" + }, + "ShippingStatus": { + "$ref": "#/components/schemas/ShippingStatus" + } + } + }, + "ShippingStatus": { + "description": "", + "type": "string", + "x-enumNames": [ + "Pending", + "Shipped", + "Delivered" + ], + "enum": [ + "Pending", + "Shipped", + "Delivered" + ] + }, + "UpdateOrderRequest": { + "type": "object", + "properties": { + "TrackingNumber": { + "type": "string" + }, + "RefOrderNumber": { + "type": "string" + }, + "ShippingStatus": { + "$ref": "#/components/schemas/ShippingStatus" + }, + "Capture": { + "type": "boolean" + } + } + }, + "InstallmentPlanUpdateRequestByIdentifier": { + "allOf": [ + { + "$ref": "#/components/schemas/InstallmentPlanUpdateRequest" + }, + { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/components/schemas/IdentifierContract" + } + } + } + ] + }, + "IdentifierContract": { + "type": "object", + "properties": { + "RefOrderNumber": { + "type": "string" + }, + "InstallmentPlanNumber": { + "type": "string" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "InstallmentPlanUpdateRequest": { + "type": "object", + "properties": { + "RefOrderNumber": { + "type": "string" + }, + "TrackingNumber": { + "type": "string" + }, + "Capture": { + "type": "boolean" + }, + "ShippingStatus": { + "$ref": "#/components/schemas/ShippingStatus2" + } + } + }, + "ShippingStatus2": { + "description": "", + "type": "string", + "x-enumNames": [ + "Shipped", + "Delivered" + ], + "enum": [ + "Shipped", + "Delivered" + ] + }, + "InstallmentPlanRefundResponse": { + "type": "object", + "properties": { + "RefundId": { + "type": "string" + }, + "InstallmentPlanNumber": { + "type": "string" + }, + "Currency": { + "type": "string" + }, + "NonCreditRefundAmount": { + "type": "number", + "format": "decimal" + }, + "CreditRefundAmount": { + "type": "number", + "format": "decimal" + }, + "Summary": { + "$ref": "#/components/schemas/RefundSummary" + } + } + }, + "RefundSummary": { + "type": "object", + "properties": { + "TotalAmount": { + "type": "number", + "format": "decimal" + }, + "FailedAmount": { + "type": "number", + "format": "decimal" + }, + "SucceededAmount": { + "type": "number", + "format": "decimal" + }, + "PendingAmount": { + "type": "number", + "format": "decimal" + } + } + }, + "InstallmentPlanRefundRequest": { + "type": "object", + "required": [ + "Amount" + ], + "properties": { + "Amount": { + "type": "number", + "format": "decimal" + }, + "RefundStrategy": { + "$ref": "#/components/schemas/RefundStrategy" + } + } + }, + "RefundStrategy": { + "description": "", + "type": "string", + "x-enumNames": [ + "FutureInstallmentsFirst", + "FutureInstallmentsLast", + "FutureInstallmentsNotAllowed", + "ReduceFromLastInstallment" + ], + "enum": [ + "FutureInstallmentsFirst", + "FutureInstallmentsLast", + "FutureInstallmentsNotAllowed", + "ReduceFromLastInstallment" + ] + }, + "InstallmentPlanCancelResponse": { + "type": "object", + "properties": { + "InstallmentPlanNumber": { + "type": "string" + } + } + }, + "InstallmentsEligibilityResponse": { + "type": "object", + "properties": { + "InstallmentProvider": { + "type": "string" + }, + "PaymentPlanOptions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PaymentPlanOptionModel" + } + } + } + }, + "PaymentPlanOptionModel": { + "type": "object", + "required": [ + "NumberOfInstallments", + "FirstInstallmentAmount", + "InstallmentAmount", + "LastInstallmentAmount" + ], + "properties": { + "NumberOfInstallments": { + "type": "integer", + "format": "int32" + }, + "FirstInstallmentAmount": { + "type": "number", + "format": "decimal" + }, + "InstallmentAmount": { + "type": "number", + "format": "decimal" + }, + "LastInstallmentAmount": { + "type": "number", + "format": "decimal" + }, + "Links": { + "$ref": "#/components/schemas/LinksModel" + }, + "TermsAndConditionsBrief": { + "type": "string" + }, + "InstallmentFrequency": { + "type": "string" + } + } + }, + "LinksModel": { + "type": "object", + "properties": { + "PrivacyPolicyUrl": { + "type": "string" + }, + "TermsAndConditionsUrl": { + "type": "string" + }, + "LearnMoreUrl": { + "type": "string" + } + } + }, + "CheckInstallmentsEligibilityRequest": { + "type": "object", + "properties": { + "PlanData": { + "$ref": "#/components/schemas/PlanData" + }, + "CardDetails": { + "$ref": "#/components/schemas/CardData" + }, + "BillingAddress": { + "$ref": "#/components/schemas/AddressData" + } + } + }, + "PlanData": { + "type": "object", + "required": [ + "TotalAmount", + "NumberOfInstallments", + "PurchaseMethod" + ], + "properties": { + "TerminalId": { + "type": "string" + }, + "TotalAmount": { + "type": "number", + "format": "decimal" + }, + "FirstInstallmentAmount": { + "type": "number", + "format": "decimal" + }, + "Currency": { + "type": "string" + }, + "NumberOfInstallments": { + "type": "integer", + "format": "int32" + }, + "PurchaseMethod": { + "$ref": "#/components/schemas/PurchaseMethod" + }, + "RefOrderNumber": { + "type": "string" + }, + "AllowedInstallmentOptions": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + } + }, + "Tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "ProcessingData": { + "$ref": "#/components/schemas/ProcessingData2" + }, + "FirstInstallmentDate": { + "type": "string", + "format": "date-time" + } + } + }, + "ProcessingData2": { + "type": "object", + "properties": { + "AttemptThreeDSecured": { + "type": "boolean" + }, + "SoftDescriptor": { + "type": "string" + }, + "ThreeDSData": { + "$ref": "#/components/schemas/ThreeDSData2" + } + } + }, + "ThreeDSData2": { + "type": "object", + "properties": { + "ECI": { + "type": "string" + }, + "CAVV": { + "type": "string" + }, + "XID": { + "type": "string" + }, + "DirectoryServerTxnId": { + "type": "string" + }, + "ThreeDSVersion": { + "type": "string" + }, + "TransactionId": { + "type": "string" + } + } + } + }, + "securitySchemes": { + "oauth": { + "type": "oauth2", + "flows": { + "clientCredentials": { + "tokenUrl": "https://id.production.splitit.com/connect/token", + "scopes": { + "api.v3": "" + } + } + } + } + } + }, + "x-generator": "NSwag v13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v13.0.0.0))" +} \ No newline at end of file diff --git a/generator/konfig-integration-tests/sdks/csharp-splitit/swagger.json b/generator/konfig-integration-tests/sdks/csharp-splitit/swagger.json new file mode 100644 index 000000000..168c21592 --- /dev/null +++ b/generator/konfig-integration-tests/sdks/csharp-splitit/swagger.json @@ -0,0 +1,2316 @@ +{ + "x-generator": "NSwag v13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v13.0.0.0))", + "swagger": "2.0", + "info": { + "title": "splitit-web-api-v3", + "version": "1.0.0" + }, + "host": "web-api-v3.production.splitit.com", + "schemes": [ + "https" + ], + "produces": [ + "text/plain", + "application/json", + "text/json" + ], + "paths": { + "/api/installmentplans/{installmentPlanNumber}": { + "get": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Get", + "parameters": [ + { + "type": "string", + "name": "installmentPlanNumber", + "in": "path", + "required": true, + "x-nullable": true + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer token", + "schema": { + "type": "string" + }, + "default": "Bearer " + }, + { + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "description": "TouchPoint", + "schema": { + "type": "string" + }, + "default": "" + } + ], + "responses": { + "200": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/InstallmentPlanGetResponse" + } + }, + "401": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "403": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "404": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "500": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + } + } + } + }, + "/api/installmentplans/search": { + "get": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Search", + "parameters": [ + { + "type": "string", + "name": "installmentPlanNumber", + "in": "query", + "x-nullable": true + }, + { + "type": "string", + "name": "refOrderNumber", + "in": "query", + "x-nullable": true + }, + { + "type": "object", + "name": "extendedParams", + "in": "query", + "x-nullable": true, + "additionalProperties": { + "type": "string" + } + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer token", + "schema": { + "type": "string" + }, + "default": "Bearer " + }, + { + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "description": "TouchPoint", + "schema": { + "type": "string" + }, + "default": "" + } + ], + "responses": { + "200": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/InstallmentPlanSearchResponse" + } + }, + "401": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "403": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "404": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "500": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + } + } + } + }, + "/api/installmentplans/initiate": { + "post": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Post", + "consumes": [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + ], + "parameters": [ + { + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InstallmentPlanInitiateRequest" + }, + "x-nullable": false + }, + { + "type": "string", + "name": "X-Splitit-TestMode", + "x-originalName": "testMode", + "in": "header", + "x-schema": { + "$ref": "#/definitions/TestModes" + }, + "x-nullable": true, + "enum": [ + "None", + "Regular", + "Fast", + "Automation" + ] + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer token", + "schema": { + "type": "string" + }, + "default": "Bearer " + }, + { + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "description": "TouchPoint", + "schema": { + "type": "string" + }, + "default": "" + } + ], + "responses": { + "200": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/InitiatePlanResponse" + } + }, + "400": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/PlanErrorResponse" + } + }, + "401": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "403": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "404": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "500": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + } + } + } + }, + "/api/installmentplans": { + "post": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Post2", + "consumes": [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + ], + "parameters": [ + { + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InstallmentPlanCreateRequest" + }, + "x-nullable": false + }, + { + "type": "string", + "name": "X-Splitit-TestMode", + "x-originalName": "testMode", + "in": "header", + "x-schema": { + "$ref": "#/definitions/TestModes" + }, + "x-nullable": true, + "enum": [ + "None", + "Regular", + "Fast", + "Automation" + ] + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer token", + "schema": { + "type": "string" + }, + "default": "Bearer " + }, + { + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "description": "TouchPoint", + "schema": { + "type": "string" + }, + "default": "" + } + ], + "responses": { + "200": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/InstallmentPlanCreateResponse" + } + }, + "400": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/PlanErrorResponse" + } + }, + "401": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "403": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "404": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "500": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + } + } + } + }, + "/api/installmentplans/{installmentPlanNumber}/verifyauthorization": { + "get": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_VerifyAuthorization", + "parameters": [ + { + "type": "string", + "name": "installmentPlanNumber", + "in": "path", + "required": true, + "x-nullable": true + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer token", + "schema": { + "type": "string" + }, + "default": "Bearer " + }, + { + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "description": "TouchPoint", + "schema": { + "type": "string" + }, + "default": "" + } + ], + "responses": { + "200": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/VerifyAuthorizationResponse" + } + }, + "401": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "403": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "404": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "500": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + } + } + } + }, + "/api/installmentplans/{installmentPlanNumber}/updateorder": { + "put": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_UpdateOrder", + "consumes": [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + ], + "parameters": [ + { + "type": "string", + "name": "installmentPlanNumber", + "in": "path", + "required": true, + "x-nullable": true + }, + { + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateOrderRequest" + }, + "x-nullable": false + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer token", + "schema": { + "type": "string" + }, + "default": "Bearer " + }, + { + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "description": "TouchPoint", + "schema": { + "type": "string" + }, + "default": "" + } + ], + "responses": { + "200": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/InstallmentPlanUpdateResponse" + } + }, + "401": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "403": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "404": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "500": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + } + } + } + }, + "/api/installmentplans/updateorder": { + "put": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_UpdateOrder2", + "consumes": [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + ], + "parameters": [ + { + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InstallmentPlanUpdateRequestByIdentifier" + }, + "x-nullable": false + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer token", + "schema": { + "type": "string" + }, + "default": "Bearer " + }, + { + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "description": "TouchPoint", + "schema": { + "type": "string" + }, + "default": "" + } + ], + "responses": { + "200": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/InstallmentPlanUpdateResponse" + } + }, + "401": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "403": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "404": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "500": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + } + } + } + }, + "/api/installmentplans/{installmentPlanNumber}/refund": { + "post": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Refund", + "consumes": [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + ], + "parameters": [ + { + "type": "string", + "name": "installmentPlanNumber", + "in": "path", + "required": true, + "x-nullable": true + }, + { + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/InstallmentPlanRefundRequest" + }, + "x-nullable": false + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer token", + "schema": { + "type": "string" + }, + "default": "Bearer " + }, + { + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "description": "TouchPoint", + "schema": { + "type": "string" + }, + "default": "" + } + ], + "responses": { + "200": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/InstallmentPlanRefundResponse" + } + }, + "401": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "403": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "404": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "500": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + } + } + } + }, + "/api/installmentplans/{installmentPlanNumber}/cancel": { + "post": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_Cancel", + "parameters": [ + { + "type": "string", + "name": "installmentPlanNumber", + "in": "path", + "required": true, + "x-nullable": true + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer token", + "schema": { + "type": "string" + }, + "default": "Bearer " + }, + { + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "description": "TouchPoint", + "schema": { + "type": "string" + }, + "default": "" + } + ], + "responses": { + "200": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/InstallmentPlanCancelResponse" + } + }, + "401": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "403": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "404": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "500": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + } + } + } + }, + "/api/installmentplans/check-eligibility": { + "post": { + "tags": [ + "InstallmentPlan" + ], + "operationId": "InstallmentPlan_CheckEligibility", + "consumes": [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json" + ], + "parameters": [ + { + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckInstallmentsEligibilityRequest" + }, + "x-nullable": false + }, + { + "name": "X-Splitit-IdempotencyKey", + "in": "header", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Authorization", + "in": "header", + "required": true, + "description": "Bearer token", + "schema": { + "type": "string" + }, + "default": "Bearer " + }, + { + "name": "X-Splitit-TouchPoint", + "in": "header", + "required": true, + "description": "TouchPoint", + "schema": { + "type": "string" + }, + "default": "" + } + ], + "responses": { + "200": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/InstallmentsEligibilityResponse" + } + }, + "401": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "403": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "404": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + }, + "500": { + "x-nullable": false, + "description": "", + "schema": { + "$ref": "#/definitions/FailedResponse" + } + } + } + } + } + }, + "definitions": { + "FailedResponse": { + "type": "object", + "properties": { + "TraceId": { + "type": "string" + }, + "Error": { + "$ref": "#/definitions/ErrorExtended" + } + } + }, + "ErrorExtended": { + "allOf": [ + { + "$ref": "#/definitions/Error" + }, + { + "type": "object", + "properties": { + "ExtraData": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + ] + }, + "Error": { + "type": "object", + "properties": { + "Code": { + "type": "string" + }, + "Message": { + "type": "string" + }, + "AdditionalInfo": { + "type": "string" + } + } + }, + "InstallmentPlanGetResponse": { + "type": "object", + "required": [ + "DateCreated", + "Status" + ], + "properties": { + "InstallmentPlanNumber": { + "type": "string" + }, + "DateCreated": { + "type": "string", + "format": "date-time" + }, + "RefOrderNumber": { + "type": "string" + }, + "PurchaseMethod": { + "$ref": "#/definitions/PurchaseMethod" + }, + "Status": { + "$ref": "#/definitions/PlanStatus" + }, + "Currency": { + "type": "string" + }, + "OriginalAmount": { + "type": "number", + "format": "decimal" + }, + "Amount": { + "type": "number", + "format": "decimal" + }, + "Authorization": { + "$ref": "#/definitions/AuthorizationModel" + }, + "Shopper": { + "$ref": "#/definitions/ShopperData" + }, + "BillingAddress": { + "$ref": "#/definitions/AddressData" + }, + "PaymentMethod": { + "$ref": "#/definitions/PaymentMethodModel" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Installments": { + "type": "array", + "items": { + "$ref": "#/definitions/Installment" + } + }, + "Refunds": { + "type": "array", + "items": { + "$ref": "#/definitions/RefundModel" + } + }, + "Links": { + "$ref": "#/definitions/LinksData" + } + } + }, + "PurchaseMethod": { + "type": "string", + "description": "", + "x-enumNames": [ + "InStore", + "PhoneOrder", + "ECommerce" + ], + "enum": [ + "InStore", + "PhoneOrder", + "ECommerce" + ] + }, + "PlanStatus": { + "type": "string", + "description": "", + "x-enumNames": [ + "Initialized", + "PendingCapture", + "Active", + "Cleared", + "Canceled" + ], + "enum": [ + "Initialized", + "PendingCapture", + "Active", + "Cleared", + "Canceled" + ] + }, + "AuthorizationModel": { + "type": "object", + "required": [ + "Status" + ], + "properties": { + "Status": { + "$ref": "#/definitions/GwAuthorizationStatus" + }, + "Date": { + "type": "string", + "format": "date-time" + }, + "SplititErrorResultCode": { + "type": "string" + }, + "GatewayTransactionID": { + "type": "string" + }, + "GatewayResultCode": { + "type": "string" + }, + "GatewayResultMessage": { + "type": "string" + }, + "ThreeDSRedirect": { + "$ref": "#/definitions/ThreeDsRedirectDataV3" + }, + "CAVV": { + "type": "string" + }, + "ECI": { + "type": "string" + }, + "GatewaySourceResponse": { + "type": "string" + } + } + }, + "GwAuthorizationStatus": { + "type": "string", + "description": "", + "x-enumNames": [ + "NA", + "Succeeded", + "Pending3DS", + "Failed" + ], + "enum": [ + "NA", + "Succeeded", + "Pending3DS", + "Failed" + ] + }, + "ThreeDsRedirectDataV3": { + "type": "object", + "properties": { + "Url": { + "type": "string" + }, + "Verb": { + "type": "string" + }, + "Params": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ShopperData": { + "type": "object", + "properties": { + "FullName": { + "type": "string" + }, + "Email": { + "type": "string" + }, + "PhoneNumber": { + "type": "string" + }, + "Culture": { + "type": "string" + } + } + }, + "AddressData": { + "type": "object", + "properties": { + "AddressLine": { + "type": "string" + }, + "AddressLine2": { + "type": "string" + }, + "City": { + "type": "string" + }, + "Country": { + "type": "string" + }, + "State": { + "type": "string" + }, + "Zip": { + "type": "string" + } + } + }, + "PaymentMethodModel": { + "type": "object", + "required": [ + "Type" + ], + "properties": { + "Type": { + "$ref": "#/definitions/PaymentMethodType" + }, + "Card": { + "$ref": "#/definitions/CardData" + }, + "Token": { + "type": "string" + }, + "BluesnapVaultedShopperToken": { + "$ref": "#/definitions/BluesnapVaultedShopperToken" + }, + "MockerShopperToken": { + "$ref": "#/definitions/MockerShopperToken" + }, + "SpreedlyToken": { + "$ref": "#/definitions/SpreedlyToken" + } + } + }, + "PaymentMethodType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Card", + "SplititToken", + "BluesnapVaultedShopperToken", + "SplititMockerV2Token", + "SpreedlyToken" + ], + "enum": [ + "Card", + "SplititToken", + "BluesnapVaultedShopperToken", + "SplititMockerV2Token", + "SpreedlyToken" + ] + }, + "CardData": { + "type": "object", + "properties": { + "CardHolderFullName": { + "type": "string" + }, + "CardNumber": { + "type": "string" + }, + "CardExpYear": { + "type": "string" + }, + "CardExpMonth": { + "type": "string" + }, + "CardCvv": { + "type": "string" + }, + "CardBrand": { + "$ref": "#/definitions/CardBrand" + }, + "CardType": { + "$ref": "#/definitions/CardType" + } + } + }, + "CardBrand": { + "type": "string", + "description": "", + "x-enumNames": [ + "Mastercard", + "Visa", + "AmericanExpress", + "Maestro", + "JCB", + "CUP", + "UPI", + "Discover", + "Other" + ], + "enum": [ + "Mastercard", + "Visa", + "AmericanExpress", + "Maestro", + "JCB", + "CUP", + "UPI", + "Discover", + "Other" + ] + }, + "CardType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Credit", + "Debit", + "Charge", + "Other", + "Prepaid", + "VisaDeferredDebit", + "NetworkOnly" + ], + "enum": [ + "Credit", + "Debit", + "Charge", + "Other", + "Prepaid", + "VisaDeferredDebit", + "NetworkOnly" + ] + }, + "BluesnapVaultedShopperToken": { + "allOf": [ + { + "$ref": "#/definitions/GatewayTokenData" + }, + { + "type": "object" + } + ] + }, + "GatewayTokenData": { + "type": "object", + "x-abstract": true, + "properties": { + "Token": { + "type": "string" + }, + "Last4Digit": { + "type": "string" + } + } + }, + "MockerShopperToken": { + "allOf": [ + { + "$ref": "#/definitions/GatewayTokenData" + }, + { + "type": "object" + } + ] + }, + "SpreedlyToken": { + "allOf": [ + { + "$ref": "#/definitions/GatewayTokenData" + }, + { + "type": "object" + } + ] + }, + "Installment": { + "type": "object", + "required": [ + "InstallmentNumber", + "Amount", + "Status" + ], + "properties": { + "InstallmentNumber": { + "type": "integer", + "format": "int32" + }, + "Amount": { + "type": "number", + "format": "decimal" + }, + "ProcessDateTime": { + "type": "string", + "format": "date-time" + }, + "Status": { + "$ref": "#/definitions/InstallmentStatus" + } + } + }, + "InstallmentStatus": { + "type": "string", + "description": "", + "x-enumNames": [ + "Pending", + "Processed", + "Canceled" + ], + "enum": [ + "Pending", + "Processed", + "Canceled" + ] + }, + "RefundModel": { + "type": "object", + "required": [ + "SubmitDate", + "TotalAmount", + "Status", + "NonCreditRefundAmount", + "CreditRefundAmount" + ], + "properties": { + "RefundId": { + "type": "string" + }, + "SubmitDate": { + "type": "string", + "format": "date-time" + }, + "TotalAmount": { + "type": "number", + "format": "decimal" + }, + "Status": { + "$ref": "#/definitions/RefundStatus" + }, + "NonCreditRefundAmount": { + "type": "number", + "format": "decimal" + }, + "CreditRefundAmount": { + "type": "number", + "format": "decimal" + } + } + }, + "RefundStatus": { + "type": "string", + "description": "", + "x-enumNames": [ + "Pending", + "Succeeded", + "Failed" + ], + "enum": [ + "Pending", + "Succeeded", + "Failed" + ] + }, + "LinksData": { + "type": "object", + "properties": { + "Checkout": { + "type": "string" + }, + "LearnMore": { + "type": "string" + }, + "TermsConditions": { + "type": "string" + }, + "PrivacyPolicy": { + "type": "string" + } + } + }, + "InstallmentPlanSearchResponse": { + "type": "object", + "properties": { + "PlanList": { + "type": "array", + "items": { + "$ref": "#/definitions/SearchInstallmentPlanResponseItem" + } + } + } + }, + "SearchInstallmentPlanResponseItem": { + "type": "object", + "required": [ + "DateCreated", + "Status" + ], + "properties": { + "InstallmentPlanNumber": { + "type": "string" + }, + "DateCreated": { + "type": "string", + "format": "date-time" + }, + "RefOrderNumber": { + "type": "string" + }, + "PurchaseMethod": { + "$ref": "#/definitions/PurchaseMethod" + }, + "Status": { + "$ref": "#/definitions/PlanStatus" + }, + "Currency": { + "type": "string" + }, + "OriginalAmount": { + "type": "number", + "format": "decimal" + }, + "Amount": { + "type": "number", + "format": "decimal" + }, + "Authorization": { + "$ref": "#/definitions/AuthorizationModel" + }, + "Shopper": { + "$ref": "#/definitions/ShopperData" + }, + "BillingAddress": { + "$ref": "#/definitions/AddressData" + }, + "PaymentMethod": { + "$ref": "#/definitions/PaymentMethodModel" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Installments": { + "type": "array", + "items": { + "$ref": "#/definitions/Installment" + } + }, + "Refunds": { + "type": "array", + "items": { + "$ref": "#/definitions/RefundModel" + } + }, + "Links": { + "$ref": "#/definitions/LinksData" + } + } + }, + "InitiatePlanResponse": { + "type": "object", + "required": [ + "Status" + ], + "properties": { + "InstallmentPlanNumber": { + "type": "string" + }, + "RefOrderNumber": { + "type": "string" + }, + "PurchaseMethod": { + "$ref": "#/definitions/PurchaseMethod" + }, + "Status": { + "$ref": "#/definitions/PlanStatus" + }, + "Currency": { + "type": "string" + }, + "Amount": { + "type": "number", + "format": "decimal" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Shopper": { + "$ref": "#/definitions/ShopperData" + }, + "BillingAddress": { + "$ref": "#/definitions/AddressData" + }, + "CheckoutUrl": { + "type": "string" + } + } + }, + "PlanErrorResponse": { + "allOf": [ + { + "$ref": "#/definitions/FailedResponse" + }, + { + "type": "object", + "properties": { + "InstallmentPlanNumber": { + "type": "string" + } + } + } + ] + }, + "InstallmentPlanInitiateRequest": { + "type": "object", + "required": [ + "AutoCapture" + ], + "properties": { + "AutoCapture": { + "type": "boolean" + }, + "Attempt3dSecure": { + "type": "boolean" + }, + "Shopper": { + "$ref": "#/definitions/ShopperData" + }, + "PlanData": { + "$ref": "#/definitions/PlanDataModel" + }, + "BillingAddress": { + "$ref": "#/definitions/AddressDataModel" + }, + "RedirectUrls": { + "$ref": "#/definitions/InitiateRedirectionEndpointsModel" + }, + "UxSettings": { + "$ref": "#/definitions/UxSettingsModel" + }, + "EventsEndpoints": { + "$ref": "#/definitions/EventsEndpointsModel" + }, + "ProcessingData": { + "$ref": "#/definitions/ProcessingData" + } + } + }, + "PlanDataModel": { + "type": "object", + "required": [ + "TotalAmount", + "PurchaseMethod" + ], + "properties": { + "TotalAmount": { + "type": "number", + "format": "decimal" + }, + "Currency": { + "type": "string" + }, + "NumberOfInstallments": { + "type": "integer", + "format": "int32" + }, + "TerminalId": { + "type": "string" + }, + "PurchaseMethod": { + "$ref": "#/definitions/PurchaseMethod" + }, + "RefOrderNumber": { + "type": "string" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "FirstInstallmentAmount": { + "type": "number", + "format": "decimal" + }, + "FirstInstallmentDate": { + "type": "string", + "format": "date-time" + } + } + }, + "AddressDataModel": { + "type": "object", + "properties": { + "AddressLine1": { + "type": "string" + }, + "AddressLine2": { + "type": "string" + }, + "City": { + "type": "string" + }, + "Country": { + "type": "string" + }, + "State": { + "type": "string" + }, + "Zip": { + "type": "string" + } + } + }, + "InitiateRedirectionEndpointsModel": { + "type": "object", + "properties": { + "Succeeded": { + "type": "string" + }, + "Failed": { + "type": "string" + }, + "Cancel": { + "type": "string" + } + } + }, + "UxSettingsModel": { + "type": "object", + "properties": { + "DisplayedInstallmentOptions": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + } + } + } + }, + "EventsEndpointsModel": { + "type": "object", + "properties": { + "CreateSucceeded": { + "type": "string" + } + } + }, + "ProcessingData": { + "type": "object", + "properties": { + "AttemptThreeDSecured": { + "type": "boolean" + }, + "SoftDescriptor": { + "type": "string" + }, + "ThreeDSData": { + "$ref": "#/definitions/ThreeDSData" + } + } + }, + "ThreeDSData": { + "type": "object", + "properties": { + "ECI": { + "type": "string" + }, + "CAVV": { + "type": "string" + }, + "XID": { + "type": "string" + }, + "DirectoryServerTxnId": { + "type": "string" + }, + "ThreeDSVersion": { + "type": "string" + }, + "TransactionId": { + "type": "string" + } + } + }, + "TestModes": { + "type": "string", + "description": "", + "x-enumNames": [ + "None", + "Regular", + "Fast", + "Automation" + ], + "enum": [ + "None", + "Regular", + "Fast", + "Automation" + ] + }, + "InstallmentPlanCreateResponse": { + "type": "object", + "required": [ + "DateCreated", + "Status" + ], + "properties": { + "InstallmentPlanNumber": { + "type": "string" + }, + "DateCreated": { + "type": "string", + "format": "date-time" + }, + "RefOrderNumber": { + "type": "string" + }, + "PurchaseMethod": { + "$ref": "#/definitions/PurchaseMethod" + }, + "Status": { + "$ref": "#/definitions/PlanStatus" + }, + "Currency": { + "type": "string" + }, + "OriginalAmount": { + "type": "number", + "format": "decimal" + }, + "Amount": { + "type": "number", + "format": "decimal" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "Authorization": { + "$ref": "#/definitions/AuthorizationModel" + }, + "Shopper": { + "$ref": "#/definitions/ShopperData" + }, + "BillingAddress": { + "$ref": "#/definitions/AddressData" + }, + "PaymentMethod": { + "$ref": "#/definitions/PaymentMethodModel" + }, + "Installments": { + "type": "array", + "items": { + "$ref": "#/definitions/Installment" + } + }, + "Links": { + "$ref": "#/definitions/LinksData" + } + } + }, + "InstallmentPlanCreateRequest": { + "type": "object", + "required": [ + "AutoCapture", + "TermsAndConditionsAccepted" + ], + "properties": { + "AutoCapture": { + "type": "boolean" + }, + "Attempt3dSecure": { + "type": "boolean" + }, + "TermsAndConditionsAccepted": { + "type": "boolean" + }, + "Shopper": { + "$ref": "#/definitions/ShopperData" + }, + "PlanData": { + "$ref": "#/definitions/PlanDataModel" + }, + "BillingAddress": { + "$ref": "#/definitions/AddressDataModel" + }, + "PaymentMethod": { + "$ref": "#/definitions/PaymentMethodModel" + }, + "RedirectUrls": { + "$ref": "#/definitions/RedirectionEndpointsModel" + }, + "ProcessingData": { + "$ref": "#/definitions/ProcessingData" + }, + "EventsEndpoints": { + "$ref": "#/definitions/EventsEndpointsModel" + } + } + }, + "RedirectionEndpointsModel": { + "type": "object", + "properties": { + "AuthorizeSucceeded": { + "type": "string", + "x-deprecated": true, + "x-deprecatedMessage": "Please use Succeeded property" + }, + "Succeeded": { + "type": "string" + }, + "AuthorizeFailed": { + "type": "string", + "x-deprecated": true, + "x-deprecatedMessage": "Please use Failed property" + }, + "Failed": { + "type": "string" + } + } + }, + "VerifyAuthorizationResponse": { + "type": "object", + "required": [ + "IsAuthorized" + ], + "properties": { + "IsAuthorized": { + "type": "boolean" + }, + "AuthorizationAmount": { + "type": "number", + "format": "decimal" + }, + "Authorization": { + "$ref": "#/definitions/AuthorizationModel" + } + } + }, + "InstallmentPlanUpdateResponse": { + "type": "object", + "required": [ + "Status", + "ShippingStatus" + ], + "properties": { + "RefOrderNumber": { + "type": "string" + }, + "InstallmentPlanNumber": { + "type": "string" + }, + "Status": { + "$ref": "#/definitions/PlanStatus" + }, + "ShippingStatus": { + "$ref": "#/definitions/ShippingStatus" + } + } + }, + "ShippingStatus": { + "type": "string", + "description": "", + "x-enumNames": [ + "Pending", + "Shipped", + "Delivered" + ], + "enum": [ + "Pending", + "Shipped", + "Delivered" + ] + }, + "UpdateOrderRequest": { + "type": "object", + "properties": { + "TrackingNumber": { + "type": "string" + }, + "RefOrderNumber": { + "type": "string" + }, + "ShippingStatus": { + "$ref": "#/definitions/ShippingStatus" + }, + "Capture": { + "type": "boolean" + } + } + }, + "InstallmentPlanUpdateRequestByIdentifier": { + "allOf": [ + { + "$ref": "#/definitions/InstallmentPlanUpdateRequest" + }, + { + "type": "object", + "properties": { + "Identifier": { + "$ref": "#/definitions/IdentifierContract" + } + } + } + ] + }, + "IdentifierContract": { + "type": "object", + "properties": { + "RefOrderNumber": { + "type": "string" + }, + "InstallmentPlanNumber": { + "type": "string" + }, + "ExtendedParams": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "InstallmentPlanUpdateRequest": { + "type": "object", + "properties": { + "RefOrderNumber": { + "type": "string" + }, + "TrackingNumber": { + "type": "string" + }, + "Capture": { + "type": "boolean" + }, + "ShippingStatus": { + "$ref": "#/definitions/ShippingStatus2" + } + } + }, + "ShippingStatus2": { + "type": "string", + "description": "", + "x-enumNames": [ + "Shipped", + "Delivered" + ], + "enum": [ + "Shipped", + "Delivered" + ] + }, + "InstallmentPlanRefundResponse": { + "type": "object", + "properties": { + "RefundId": { + "type": "string" + }, + "InstallmentPlanNumber": { + "type": "string" + }, + "Currency": { + "type": "string" + }, + "NonCreditRefundAmount": { + "type": "number", + "format": "decimal" + }, + "CreditRefundAmount": { + "type": "number", + "format": "decimal" + }, + "Summary": { + "$ref": "#/definitions/RefundSummary" + } + } + }, + "RefundSummary": { + "type": "object", + "properties": { + "TotalAmount": { + "type": "number", + "format": "decimal" + }, + "FailedAmount": { + "type": "number", + "format": "decimal" + }, + "SucceededAmount": { + "type": "number", + "format": "decimal" + }, + "PendingAmount": { + "type": "number", + "format": "decimal" + } + } + }, + "InstallmentPlanRefundRequest": { + "type": "object", + "required": [ + "Amount" + ], + "properties": { + "Amount": { + "type": "number", + "format": "decimal" + }, + "RefundStrategy": { + "$ref": "#/definitions/RefundStrategy" + } + } + }, + "RefundStrategy": { + "type": "string", + "description": "", + "x-enumNames": [ + "FutureInstallmentsFirst", + "FutureInstallmentsLast", + "FutureInstallmentsNotAllowed", + "ReduceFromLastInstallment" + ], + "enum": [ + "FutureInstallmentsFirst", + "FutureInstallmentsLast", + "FutureInstallmentsNotAllowed", + "ReduceFromLastInstallment" + ] + }, + "InstallmentPlanCancelResponse": { + "type": "object", + "properties": { + "InstallmentPlanNumber": { + "type": "string" + } + } + }, + "InstallmentsEligibilityResponse": { + "type": "object", + "properties": { + "InstallmentProvider": { + "type": "string" + }, + "PaymentPlanOptions": { + "type": "array", + "items": { + "$ref": "#/definitions/PaymentPlanOptionModel" + } + } + } + }, + "PaymentPlanOptionModel": { + "type": "object", + "required": [ + "NumberOfInstallments", + "FirstInstallmentAmount", + "InstallmentAmount", + "LastInstallmentAmount" + ], + "properties": { + "NumberOfInstallments": { + "type": "integer", + "format": "int32" + }, + "FirstInstallmentAmount": { + "type": "number", + "format": "decimal" + }, + "InstallmentAmount": { + "type": "number", + "format": "decimal" + }, + "LastInstallmentAmount": { + "type": "number", + "format": "decimal" + }, + "Links": { + "$ref": "#/definitions/LinksModel" + }, + "TermsAndConditionsBrief": { + "type": "string" + }, + "InstallmentFrequency": { + "type": "string" + } + } + }, + "LinksModel": { + "type": "object", + "properties": { + "PrivacyPolicyUrl": { + "type": "string" + }, + "TermsAndConditionsUrl": { + "type": "string" + }, + "LearnMoreUrl": { + "type": "string" + } + } + }, + "CheckInstallmentsEligibilityRequest": { + "type": "object", + "properties": { + "PlanData": { + "$ref": "#/definitions/PlanData" + }, + "CardDetails": { + "$ref": "#/definitions/CardData" + }, + "BillingAddress": { + "$ref": "#/definitions/AddressData" + } + } + }, + "PlanData": { + "type": "object", + "required": [ + "TotalAmount", + "NumberOfInstallments", + "PurchaseMethod" + ], + "properties": { + "TerminalId": { + "type": "string" + }, + "TotalAmount": { + "type": "number", + "format": "decimal" + }, + "FirstInstallmentAmount": { + "type": "number", + "format": "decimal" + }, + "Currency": { + "type": "string" + }, + "NumberOfInstallments": { + "type": "integer", + "format": "int32" + }, + "PurchaseMethod": { + "$ref": "#/definitions/PurchaseMethod" + }, + "RefOrderNumber": { + "type": "string" + }, + "AllowedInstallmentOptions": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + } + }, + "Tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "ProcessingData": { + "$ref": "#/definitions/ProcessingData2" + }, + "FirstInstallmentDate": { + "type": "string", + "format": "date-time" + } + } + }, + "ProcessingData2": { + "type": "object", + "properties": { + "AttemptThreeDSecured": { + "type": "boolean" + }, + "SoftDescriptor": { + "type": "string" + }, + "ThreeDSData": { + "$ref": "#/definitions/ThreeDSData2" + } + } + }, + "ThreeDSData2": { + "type": "object", + "properties": { + "ECI": { + "type": "string" + }, + "CAVV": { + "type": "string" + }, + "XID": { + "type": "string" + }, + "DirectoryServerTxnId": { + "type": "string" + }, + "ThreeDSVersion": { + "type": "string" + }, + "TransactionId": { + "type": "string" + } + } + } + } +} \ No newline at end of file diff --git a/generator/konfig-integration-tests/tests/__snapshots__/csharp-body-with-object-field.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/csharp-body-with-object-field.test.ts.snap deleted file mode 100644 index 1170cdcc3..000000000 --- a/generator/konfig-integration-tests/tests/__snapshots__/csharp-body-with-object-field.test.ts.snap +++ /dev/null @@ -1,115 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`csharp-body-with-object-field 1`] = ` -"# CsharpBodyWithObjectField.Net - C# - -[![NuGet](https://img.shields.io/badge/NuGet-1.0.0-blue.svg)](https://www.nuget.org/packages/CsharpBodyWithObjectField.Net/1.0.0) -[![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](http://example.com/support) - -A simple API based for testing csharp-body-with-object-field. - -## Frameworks supported -- .NET Core >=1.0 -- .NET Framework >=4.6 -- Mono/Xamarin >=vNext - -## Installation - -Using the [.NET Core command-line interface (CLI) tools][dotnet-core-cli-tools]: - -\`\`\`sh -dotnet add package CsharpBodyWithObjectField.Net -\`\`\` - -Using the [NuGet Command Line Interface (CLI)][nuget-cli]: - -\`\`\`sh -nuget install CsharpBodyWithObjectField.Net -\`\`\` - -Using the [Package Manager Console][package-manager-console]: - -\`\`\`powershell -Install-Package CsharpBodyWithObjectField.Net -\`\`\` - -From within Visual Studio: - -1. Open the Solution Explorer. -2. Right-click on a project within your solution. -3. Click on *Manage NuGet Packages...* -4. Click on the *Browse* tab and search for \\"CsharpBodyWithObjectField.Net\\". -5. Click on the \\"CsharpBodyWithObjectField.Net\\" package, select the appropriate version in the - right-tab and click *Install*. - -## Getting Started - -\`\`\`csharp -using System; -using System.Collections.Generic; -using System.Diagnostics; -using CsharpBodyWithObjectField.Net.Client; -using CsharpBodyWithObjectField.Net.Model; - -namespace Example -{ - public class FetchExample - { - public static void Main() - { - CsharpBodyWithObjectFieldClient client = new CsharpBodyWithObjectFieldClient(); - // Configure API key authorization: ApiKeyAuth - client.SetApiKey(\\"YOUR_API_KEY\\"); - - - try - { - // Fetches a JSON value based on input parameter - Object result = client.Test.Fetch(); - Console.WriteLine(result); - } - catch (ApiException e) - { - Console.WriteLine(\\"Exception when calling TestApi.Fetch: \\" + e.Message); - Console.WriteLine(\\"Status Code: \\"+ e.ErrorCode); - Console.WriteLine(e.StackTrace); - } - catch (ClientException e) - { - Console.WriteLine(e.Response.StatusCode); - Console.WriteLine(e.Response.RawContent); - Console.WriteLine(e.InnerException); - } - } - } -} -\`\`\` - -## Documentation for API Endpoints - -All URIs are relative to *https://csharp-body-with-object-field.konfigthis.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*TestApi* | [**Fetch**](docs/TestApi.md#fetch) | **GET** /simple-endpoint | Fetches a JSON value based on input parameter - - -## Documentation for Models - - - -## Dependencies - -- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later -- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1 or later -- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later -- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later - -## Author -This C# package is automatically generated by [Konfig](https://konfigthis.com) - -[dotnet-core-cli-tools]: https://docs.microsoft.com/en-us/dotnet/core/tools/ -[nuget-cli]: https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference -[package-manager-console]: https://docs.microsoft.com/en-us/nuget/tools/package-manager-console -" -`; diff --git a/generator/konfig-integration-tests/tests/__snapshots__/csharp-splitit.test.ts.snap b/generator/konfig-integration-tests/tests/__snapshots__/csharp-splitit.test.ts.snap new file mode 100644 index 000000000..27899e247 --- /dev/null +++ b/generator/konfig-integration-tests/tests/__snapshots__/csharp-splitit.test.ts.snap @@ -0,0 +1,190 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`csharp-splitit 1`] = ` +"# CsharpSplitit.Net - C# + +[![NuGet](https://img.shields.io/badge/NuGet-1.0.0-blue.svg)](https://www.nuget.org/packages/CsharpSplitit.Net/1.0.0) + +Splitit's Web API + +## Frameworks supported +- .NET Core >=1.0 +- .NET Framework >=4.6 +- Mono/Xamarin >=vNext + +## Installation + +Using the [.NET Core command-line interface (CLI) tools][dotnet-core-cli-tools]: + +\`\`\`sh +dotnet add package CsharpSplitit.Net +\`\`\` + +Using the [NuGet Command Line Interface (CLI)][nuget-cli]: + +\`\`\`sh +nuget install CsharpSplitit.Net +\`\`\` + +Using the [Package Manager Console][package-manager-console]: + +\`\`\`powershell +Install-Package CsharpSplitit.Net +\`\`\` + +From within Visual Studio: + +1. Open the Solution Explorer. +2. Right-click on a project within your solution. +3. Click on *Manage NuGet Packages...* +4. Click on the *Browse* tab and search for \\"CsharpSplitit.Net\\". +5. Click on the \\"CsharpSplitit.Net\\" package, select the appropriate version in the + right-tab and click *Install*. + +## Getting Started + +\`\`\`csharp +using System; +using System.Collections.Generic; +using System.Diagnostics; +using CsharpSplitit.Net.Client; +using CsharpSplitit.Net.Model; + +namespace Example +{ + public class CancelExample + { + public static void Main() + { + CsharpSplititClient client = new CsharpSplititClient(); + // Configure OAuth2 credentials for \\"application\\" OAuth flow + client.SetOAuthClientId(System.Environment.GetEnvironmentVariable(\\"CLIENT_ID\\")); + client.SetOAuthClientSecret(System.Environment.GetEnvironmentVariable(\\"CLIENT_SECRET\\")); + + var installmentPlanNumber = \\"installmentPlanNumber_example\\"; + var xSplititIdempotencyKey = \\"xSplititIdempotencyKey_example\\"; + var xSplititTouchPoint = \\"\\"; // TouchPoint (default to \\"\\") + + try + { + InstallmentPlanCancelResponse result = client.InstallmentPlan.Cancel(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint); + Console.WriteLine(result); + } + catch (ApiException e) + { + Console.WriteLine(\\"Exception when calling InstallmentPlanApi.Cancel: \\" + e.Message); + Console.WriteLine(\\"Status Code: \\"+ e.ErrorCode); + Console.WriteLine(e.StackTrace); + } + catch (ClientException e) + { + Console.WriteLine(e.Response.StatusCode); + Console.WriteLine(e.Response.RawContent); + Console.WriteLine(e.InnerException); + } + } + } +} +\`\`\` + +## Documentation for API Endpoints + +All URIs are relative to *https://web-api-v3.production.splitit.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*InstallmentPlanApi* | [**Cancel**](docs/InstallmentPlanApi.md#cancel) | **POST** /api/installmentplans/{installmentPlanNumber}/cancel | +*InstallmentPlanApi* | [**CheckEligibility**](docs/InstallmentPlanApi.md#checkeligibility) | **POST** /api/installmentplans/check-eligibility | +*InstallmentPlanApi* | [**Get**](docs/InstallmentPlanApi.md#get) | **GET** /api/installmentplans/{installmentPlanNumber} | +*InstallmentPlanApi* | [**Post**](docs/InstallmentPlanApi.md#post) | **POST** /api/installmentplans/initiate | +*InstallmentPlanApi* | [**Post2**](docs/InstallmentPlanApi.md#post2) | **POST** /api/installmentplans | +*InstallmentPlanApi* | [**Refund**](docs/InstallmentPlanApi.md#refund) | **POST** /api/installmentplans/{installmentPlanNumber}/refund | +*InstallmentPlanApi* | [**Search**](docs/InstallmentPlanApi.md#search) | **GET** /api/installmentplans/search | +*InstallmentPlanApi* | [**UpdateOrder**](docs/InstallmentPlanApi.md#updateorder) | **PUT** /api/installmentplans/{installmentPlanNumber}/updateorder | +*InstallmentPlanApi* | [**UpdateOrder2**](docs/InstallmentPlanApi.md#updateorder2) | **PUT** /api/installmentplans/updateorder | +*InstallmentPlanApi* | [**VerifyAuthorization**](docs/InstallmentPlanApi.md#verifyauthorization) | **GET** /api/installmentplans/{installmentPlanNumber}/verifyauthorization | + + +## Documentation for Models + + - [AddressData](docs/AddressData.md) + - [AddressDataModel](docs/AddressDataModel.md) + - [AuthorizationModel](docs/AuthorizationModel.md) + - [BluesnapVaultedShopperToken](docs/BluesnapVaultedShopperToken.md) + - [CardBrand](docs/CardBrand.md) + - [CardData](docs/CardData.md) + - [CardType](docs/CardType.md) + - [CheckInstallmentsEligibilityRequest](docs/CheckInstallmentsEligibilityRequest.md) + - [Error](docs/Error.md) + - [ErrorExtended](docs/ErrorExtended.md) + - [ErrorExtendedAllOf](docs/ErrorExtendedAllOf.md) + - [EventsEndpointsModel](docs/EventsEndpointsModel.md) + - [FailedResponse](docs/FailedResponse.md) + - [GatewayTokenData](docs/GatewayTokenData.md) + - [GwAuthorizationStatus](docs/GwAuthorizationStatus.md) + - [IdentifierContract](docs/IdentifierContract.md) + - [InitiatePlanResponse](docs/InitiatePlanResponse.md) + - [InitiateRedirectionEndpointsModel](docs/InitiateRedirectionEndpointsModel.md) + - [Installment](docs/Installment.md) + - [InstallmentPlanCancelResponse](docs/InstallmentPlanCancelResponse.md) + - [InstallmentPlanCreateRequest](docs/InstallmentPlanCreateRequest.md) + - [InstallmentPlanCreateResponse](docs/InstallmentPlanCreateResponse.md) + - [InstallmentPlanGetResponse](docs/InstallmentPlanGetResponse.md) + - [InstallmentPlanInitiateRequest](docs/InstallmentPlanInitiateRequest.md) + - [InstallmentPlanRefundRequest](docs/InstallmentPlanRefundRequest.md) + - [InstallmentPlanRefundResponse](docs/InstallmentPlanRefundResponse.md) + - [InstallmentPlanSearchResponse](docs/InstallmentPlanSearchResponse.md) + - [InstallmentPlanUpdateRequest](docs/InstallmentPlanUpdateRequest.md) + - [InstallmentPlanUpdateRequestByIdentifier](docs/InstallmentPlanUpdateRequestByIdentifier.md) + - [InstallmentPlanUpdateRequestByIdentifierAllOf](docs/InstallmentPlanUpdateRequestByIdentifierAllOf.md) + - [InstallmentPlanUpdateResponse](docs/InstallmentPlanUpdateResponse.md) + - [InstallmentStatus](docs/InstallmentStatus.md) + - [InstallmentsEligibilityResponse](docs/InstallmentsEligibilityResponse.md) + - [LinksData](docs/LinksData.md) + - [LinksModel](docs/LinksModel.md) + - [MockerShopperToken](docs/MockerShopperToken.md) + - [PaymentMethodModel](docs/PaymentMethodModel.md) + - [PaymentMethodType](docs/PaymentMethodType.md) + - [PaymentPlanOptionModel](docs/PaymentPlanOptionModel.md) + - [PlanData](docs/PlanData.md) + - [PlanDataModel](docs/PlanDataModel.md) + - [PlanErrorResponse](docs/PlanErrorResponse.md) + - [PlanErrorResponseAllOf](docs/PlanErrorResponseAllOf.md) + - [PlanStatus](docs/PlanStatus.md) + - [ProcessingData](docs/ProcessingData.md) + - [ProcessingData2](docs/ProcessingData2.md) + - [PurchaseMethod](docs/PurchaseMethod.md) + - [RedirectionEndpointsModel](docs/RedirectionEndpointsModel.md) + - [RefundModel](docs/RefundModel.md) + - [RefundStatus](docs/RefundStatus.md) + - [RefundStrategy](docs/RefundStrategy.md) + - [RefundSummary](docs/RefundSummary.md) + - [SearchInstallmentPlanResponseItem](docs/SearchInstallmentPlanResponseItem.md) + - [ShippingStatus](docs/ShippingStatus.md) + - [ShippingStatus2](docs/ShippingStatus2.md) + - [ShopperData](docs/ShopperData.md) + - [SpreedlyToken](docs/SpreedlyToken.md) + - [TestModes](docs/TestModes.md) + - [ThreeDSData](docs/ThreeDSData.md) + - [ThreeDSData2](docs/ThreeDSData2.md) + - [ThreeDsRedirectDataV3](docs/ThreeDsRedirectDataV3.md) + - [UpdateOrderRequest](docs/UpdateOrderRequest.md) + - [UxSettingsModel](docs/UxSettingsModel.md) + - [VerifyAuthorizationResponse](docs/VerifyAuthorizationResponse.md) + + +## Dependencies + +- [RestSharp](https://www.nuget.org/packages/RestSharp) - 106.13.0 or later +- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1 or later +- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.8.0 or later +- [System.ComponentModel.Annotations](https://www.nuget.org/packages/System.ComponentModel.Annotations) - 5.0.0 or later + +## Author +This C# package is automatically generated by [Konfig](https://konfigthis.com) + +[dotnet-core-cli-tools]: https://docs.microsoft.com/en-us/dotnet/core/tools/ +[nuget-cli]: https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference +[package-manager-console]: https://docs.microsoft.com/en-us/nuget/tools/package-manager-console +" +`; diff --git a/generator/konfig-integration-tests/tests/csharp-body-with-object-field.test.ts b/generator/konfig-integration-tests/tests/csharp-body-with-object-field.test.ts deleted file mode 100644 index 85376dca7..000000000 --- a/generator/konfig-integration-tests/tests/csharp-body-with-object-field.test.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { e2e } from "../util"; -import { test } from "vitest"; - -test("csharp-body-with-object-field", async () => { - await e2e(4006); -}); diff --git a/generator/konfig-integration-tests/tests/csharp-splitit.test.ts b/generator/konfig-integration-tests/tests/csharp-splitit.test.ts new file mode 100644 index 000000000..b71d345b5 --- /dev/null +++ b/generator/konfig-integration-tests/tests/csharp-splitit.test.ts @@ -0,0 +1,6 @@ +import { e2e } from "../util"; +import { test } from "vitest"; + +test("csharp-splitit", async () => { + await e2e(4008); +}); \ No newline at end of file