Skip to content

Commit 8b677fb

Browse files
[ISSUE-28] Updated create promotion with missing request fields (#29)
1 parent 572c70d commit 8b677fb

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "xendit-python"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
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/"
55
authors = ["Adyaksa Wisanggeni <[email protected]>"]
66
license = "MIT"

xendit/models/creditcard/credit_card.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ def create_promotion(
430430
discount_percent=None,
431431
discount_amount=None,
432432
currency=None,
433+
max_discount_amount=None,
434+
min_original_amount=None,
433435
x_idempotency_key=None,
434436
for_user_id=None,
435437
x_api_version=None,
@@ -447,6 +449,8 @@ def create_promotion(
447449
- **channel_code (str)
448450
- **discount_percent (float)
449451
- **discount_amount (float)
452+
- **max_discount_amount (float)
453+
- **min_original_amount (float)
450454
- **currency (str)
451455
- **x_idempotency_key (str)
452456
- **for_user_id (str)

xendit/models/creditcard/credit_card_promotion.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class CreditCardPromotion(BaseModel):
1919
- currency (str)
2020
- start_time (str)
2121
- end_time (str)
22+
- min_original_amount (float)
23+
- max_discount_amount (float)
2224
"""
2325

2426
id: str
@@ -34,3 +36,5 @@ class CreditCardPromotion(BaseModel):
3436
currency: str
3537
start_time: str
3638
end_time: str
39+
min_original_amount: float
40+
max_discount_amount: float

0 commit comments

Comments
 (0)