├── .gitignore ├── Dockerfile ├── Order System.postman_collection.json ├── Package.resolved ├── Package.swift ├── Public └── .gitkeep ├── README.md ├── Sources ├── App │ ├── Configuration │ │ ├── OrderService.swift │ │ ├── ProductManager.swift │ │ ├── app.swift │ │ ├── boot.swift │ │ ├── commands.swift │ │ ├── configure.swift │ │ ├── databases.swift │ │ ├── migrations.swift │ │ └── routes.swift │ ├── Content │ │ ├── AccountSettingContent.swift │ │ ├── AddressContent.swift │ │ ├── ItemContent.swift │ │ ├── OrderContent.swift │ │ └── PaymentGenerationContent.swift │ ├── Controllers │ │ ├── .gitkeep │ │ ├── AccountSettingController.swift │ │ └── OrderController.swift │ ├── Models │ │ ├── .gitkeep │ │ ├── Account.swift │ │ ├── AccountSetting.swift │ │ ├── Address.swift │ │ ├── Item.swift │ │ ├── Order+Payment.swift │ │ ├── Order+PaymentStatus.swift │ │ ├── Order+Status.swift │ │ ├── Order.swift │ │ ├── Product.swift │ │ └── User.swift │ ├── Payment │ │ ├── Cash.swift │ │ ├── Currency.swift │ │ ├── Order+PaymentRepresentable.swift │ │ ├── PayPal.swift │ │ ├── Stripe.swift │ │ └── Tax.swift │ ├── Routes │ │ └── VersionedCollection.swift │ └── Utilities │ │ ├── Container+DatabaseConnectable.swift │ │ └── Optionals.swift └── Run │ └── main.swift ├── Tests ├── .gitkeep ├── AppTests │ ├── AppTests.swift │ ├── Application+Testable.swift │ ├── Content │ │ └── ProductTests.swift │ ├── Models │ │ ├── UserStatusTests.swift │ │ └── UserTests.swift │ ├── Payment │ │ └── CashPaymentTests.swift │ └── Utilities │ │ └── CombinableTests.swift └── LinuxMain.swift ├── circle.yml └── cloud.yml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Dockerfile -------------------------------------------------------------------------------- /Order System.postman_collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Order System.postman_collection.json -------------------------------------------------------------------------------- /Package.resolved: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Package.resolved -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Package.swift -------------------------------------------------------------------------------- /Public/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/README.md -------------------------------------------------------------------------------- /Sources/App/Configuration/OrderService.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Configuration/OrderService.swift -------------------------------------------------------------------------------- /Sources/App/Configuration/ProductManager.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Configuration/ProductManager.swift -------------------------------------------------------------------------------- /Sources/App/Configuration/app.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Configuration/app.swift -------------------------------------------------------------------------------- /Sources/App/Configuration/boot.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Configuration/boot.swift -------------------------------------------------------------------------------- /Sources/App/Configuration/commands.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Configuration/commands.swift -------------------------------------------------------------------------------- /Sources/App/Configuration/configure.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Configuration/configure.swift -------------------------------------------------------------------------------- /Sources/App/Configuration/databases.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Configuration/databases.swift -------------------------------------------------------------------------------- /Sources/App/Configuration/migrations.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Configuration/migrations.swift -------------------------------------------------------------------------------- /Sources/App/Configuration/routes.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Configuration/routes.swift -------------------------------------------------------------------------------- /Sources/App/Content/AccountSettingContent.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Content/AccountSettingContent.swift -------------------------------------------------------------------------------- /Sources/App/Content/AddressContent.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Content/AddressContent.swift -------------------------------------------------------------------------------- /Sources/App/Content/ItemContent.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Content/ItemContent.swift -------------------------------------------------------------------------------- /Sources/App/Content/OrderContent.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Content/OrderContent.swift -------------------------------------------------------------------------------- /Sources/App/Content/PaymentGenerationContent.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Content/PaymentGenerationContent.swift -------------------------------------------------------------------------------- /Sources/App/Controllers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Sources/App/Controllers/AccountSettingController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Controllers/AccountSettingController.swift -------------------------------------------------------------------------------- /Sources/App/Controllers/OrderController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Controllers/OrderController.swift -------------------------------------------------------------------------------- /Sources/App/Models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Sources/App/Models/Account.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Models/Account.swift -------------------------------------------------------------------------------- /Sources/App/Models/AccountSetting.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Models/AccountSetting.swift -------------------------------------------------------------------------------- /Sources/App/Models/Address.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Models/Address.swift -------------------------------------------------------------------------------- /Sources/App/Models/Item.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Models/Item.swift -------------------------------------------------------------------------------- /Sources/App/Models/Order+Payment.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Models/Order+Payment.swift -------------------------------------------------------------------------------- /Sources/App/Models/Order+PaymentStatus.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Models/Order+PaymentStatus.swift -------------------------------------------------------------------------------- /Sources/App/Models/Order+Status.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Models/Order+Status.swift -------------------------------------------------------------------------------- /Sources/App/Models/Order.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Models/Order.swift -------------------------------------------------------------------------------- /Sources/App/Models/Product.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Models/Product.swift -------------------------------------------------------------------------------- /Sources/App/Models/User.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Models/User.swift -------------------------------------------------------------------------------- /Sources/App/Payment/Cash.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Payment/Cash.swift -------------------------------------------------------------------------------- /Sources/App/Payment/Currency.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Payment/Currency.swift -------------------------------------------------------------------------------- /Sources/App/Payment/Order+PaymentRepresentable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Payment/Order+PaymentRepresentable.swift -------------------------------------------------------------------------------- /Sources/App/Payment/PayPal.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Payment/PayPal.swift -------------------------------------------------------------------------------- /Sources/App/Payment/Stripe.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Payment/Stripe.swift -------------------------------------------------------------------------------- /Sources/App/Payment/Tax.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Payment/Tax.swift -------------------------------------------------------------------------------- /Sources/App/Routes/VersionedCollection.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Routes/VersionedCollection.swift -------------------------------------------------------------------------------- /Sources/App/Utilities/Container+DatabaseConnectable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Utilities/Container+DatabaseConnectable.swift -------------------------------------------------------------------------------- /Sources/App/Utilities/Optionals.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Sources/App/Utilities/Optionals.swift -------------------------------------------------------------------------------- /Sources/Run/main.swift: -------------------------------------------------------------------------------- 1 | import App 2 | 3 | try app(.detect()).run() 4 | -------------------------------------------------------------------------------- /Tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tests/AppTests/AppTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Tests/AppTests/AppTests.swift -------------------------------------------------------------------------------- /Tests/AppTests/Application+Testable.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Tests/AppTests/Application+Testable.swift -------------------------------------------------------------------------------- /Tests/AppTests/Content/ProductTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Tests/AppTests/Content/ProductTests.swift -------------------------------------------------------------------------------- /Tests/AppTests/Models/UserStatusTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Tests/AppTests/Models/UserStatusTests.swift -------------------------------------------------------------------------------- /Tests/AppTests/Models/UserTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Tests/AppTests/Models/UserTests.swift -------------------------------------------------------------------------------- /Tests/AppTests/Payment/CashPaymentTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Tests/AppTests/Payment/CashPaymentTests.swift -------------------------------------------------------------------------------- /Tests/AppTests/Utilities/CombinableTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/Tests/AppTests/Utilities/CombinableTests.swift -------------------------------------------------------------------------------- /Tests/LinuxMain.swift: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /circle.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/circle.yml -------------------------------------------------------------------------------- /cloud.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SwiftCommerce/OrderSystem/HEAD/cloud.yml --------------------------------------------------------------------------------