Skip to content

Commit

Permalink
v3.0.0 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-zielinski authored Sep 18, 2024
1 parent 090ad70 commit d26565b
Show file tree
Hide file tree
Showing 1,934 changed files with 208,405 additions and 1,183 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VOUCHERIFY_HOST=https://api.voucherify.io
X_APP_ID=
X_APP_TOKEN=
16 changes: 14 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
venv/
.venv/
.python-version
.pytest_cache

# Translations
*.mo
Expand All @@ -61,5 +65,13 @@ target/
#Ipython Notebook
.ipynb_checkpoints

# Jetbrains work directory
.idea
#Other
/.github/
/.openapi-generator/
/test/
/.gitlab-ci.yml
/.openapi-generator-ignore
/.travis.yml
/git_push.sh
/.env
/.idea
34 changes: 34 additions & 0 deletions DEPRECATED_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Deprecated changelog

- **2022-04-06** - `2.2.2`
- Added `client.vouchers.releaseValidationSession` method
- Added `client.redemptions.redeemStackable` method
- Added `client.validations.validateStackable` method
- **2021-05-26** - `2.2.1`
- Upload new version to pypi.org. No changes compared to `2.2.0`
- **2021-05-20** - `2.2.0`
- Added `client.validations*` member
- Added method `validateVoucher` to `client.validations`
- Changed default timeout from 500 minutes to 3 minutes. Made timeout configurable
- Bugfix: Fixed raising exception when response json contains property "error"
- **2019-06-19** - `2.1.0` Added support for custom API endpoint, that allows to connect to projects created in specific Voucherify region.
- **2018-01-20** - `2.0.0`
- Moved vouchers related methods to `client.vouchers.*` namespace
- Moved redemptions related methods to `client.redemptions.*` namespace
- Moved distributions related methods to `client.distributions.*` namespace
- Renamed `client.customer.*` to `client.customers.*`
- Removed outdated `client.distributions.publish(campaignName)` method interface
- Fixed utils methods to accept vouchers with `None` gift
- **2016-12-02** - `1.4.2` - Support gift vouchers in utils
- **2016-10-04** - `1.4.1` - Publish update
- **2016-07-18** - `1.4.0` - Voucher code pattern
- **2016-07-18** - `1.3.0` - Update voucher
- **2016-06-23** - `1.2.1` - Gift vouchers
- **2016-06-16** - `1.2.0` - Unified naming convention
- **2016-06-16** - `1.1.0` - Added customer methods
- **2016-06-08** - `1.0.0` - Release version
- **2016-05-31** - `0.1.0` - First version:
- Authentication
- Voucher informations: *get*, *usage*
- Voucher operations: *use*
- Utils
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Use an official Python runtime as a parent image
FROM python:3.8

# Set the working directory in the container
WORKDIR /app

# Copy only the requirements files first to leverage Docker caching
COPY requirements.txt test-requirements.txt ./

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir -r test-requirements.txt

# Set up a volume to store data
VOLUME /app/data

# Copy the rest of the application code
COPY . .

# Run the application
CMD ["python", "./__tests__/main.py"]
344 changes: 344 additions & 0 deletions ENDPOINTS-COVERAGE.md

Large diffs are not rendered by default.

Loading

0 comments on commit d26565b

Please sign in to comment.