Skip to content

Commit

Permalink
add python and typescript integration tests for splitit
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiechayes committed Nov 7, 2023
1 parent 63d9477 commit 3e58e18
Show file tree
Hide file tree
Showing 724 changed files with 51,464 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 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
specInputPath: ../swagger.json
specPath: ../swagger-fixed.json
fixConfig:
modify:
$.servers[0]:
Expand All @@ -13,7 +13,7 @@ generators:
outputDirectory: csharp
clientName: CsharpSplititClient
packageName: CsharpSplitit.Net
logoPath: ../../logo.png
logoPath: ../../../logo.png
git:
userId: konfig-dev
repoId: konfig/tree/main/csharp
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2023- Konfig, Inc. (https://konfigthis.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# konfig

|Language|Version|Package Manager|Documentation|Source|
|-|-|-|-|-|
|Python|2.6.1|[PyPI](https://pypi.org/project/splitit-web-python-sdk/2.6.1)|[Documentation](https://github.com/konfig-dev/konfig/tree/main/csharp/README.md)|[Source](https://github.com/konfig-dev/konfig/tree/main/csharp)|
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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:
python:
version: 2.6.1
responseTypeVersion: '1'
packageName: python_splitit_client
projectName: splitit-web-python-sdk
outputDirectory: python
clientName: PythonSplitit
setSkipSerializationToTrueByDefault: true
git:
userId: konfig-dev
repoId: konfig/tree/main/csharp

Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
dev-requirements.txt.log

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
venv/
.venv/
.python-version
.pytest_cache

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

#Ipython Notebook
.ipynb_checkpoints

# PyCharm files
.idea
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"python.testing.pytestArgs": [],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.formatting.provider": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2023- Konfig, Inc. (https://konfigthis.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit 3e58e18

Please sign in to comment.