Skip to content

Commit

Permalink
[ISSUE-28] Updated create promotion with missing request fields (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie authored Mar 4, 2021
1 parent 572c70d commit 8b677fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "xendit-python"
version = "0.1.0"
version = "0.1.1"
description = "Xendit REST API Client for Python - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services https://xendit.github.io/apireference/"
authors = ["Adyaksa Wisanggeni <[email protected]>"]
license = "MIT"
Expand Down
4 changes: 4 additions & 0 deletions xendit/models/creditcard/credit_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ def create_promotion(
discount_percent=None,
discount_amount=None,
currency=None,
max_discount_amount=None,
min_original_amount=None,
x_idempotency_key=None,
for_user_id=None,
x_api_version=None,
Expand All @@ -447,6 +449,8 @@ def create_promotion(
- **channel_code (str)
- **discount_percent (float)
- **discount_amount (float)
- **max_discount_amount (float)
- **min_original_amount (float)
- **currency (str)
- **x_idempotency_key (str)
- **for_user_id (str)
Expand Down
4 changes: 4 additions & 0 deletions xendit/models/creditcard/credit_card_promotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class CreditCardPromotion(BaseModel):
- currency (str)
- start_time (str)
- end_time (str)
- min_original_amount (float)
- max_discount_amount (float)
"""

id: str
Expand All @@ -34,3 +36,5 @@ class CreditCardPromotion(BaseModel):
currency: str
start_time: str
end_time: str
min_original_amount: float
max_discount_amount: float

0 comments on commit 8b677fb

Please sign in to comment.