Skip to content

Commit

Permalink
fix: working readme example to reflect the correct order in CartItem …
Browse files Browse the repository at this point in the history
…positional arguments (#19)

- Converted the positional arguments to keyword arguments so the order doesn't matter.
- With the changed function arguments, the example should work .
  • Loading branch information
byteofprash authored Mar 22, 2023
1 parent 002b211 commit a35a4af
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,16 @@ customer_session = talon_one.NewCustomerSessionV2(
"PROFILE_ID"
)
customer_session.cart_items = [
talon_one.CartItem("Red Spring Blouse", "rdbs-1111", 1, 49, "Shirts"),
talon_one.CartItem("Denim Trousers", "dtr-2222", 1, 74, "Trousers"),
talon_one.CartItem(name="Red Spring Blouse",
sku="rdbs-1111",
quantity=1,
price=49,
category="Shirts"),
talon_one.CartItem(name="Denim Trousers",
sku="dtr-2222",
quantity=1,
price=74,
category="Trousers"),
]
customer_session.coupon_codes = [
"Cool_Stuff"
Expand Down

0 comments on commit a35a4af

Please sign in to comment.