Skip to content

Commit

Permalink
fix: add missing prefix for CheckoutSessionItemId
Browse files Browse the repository at this point in the history
This prefix can be seen in the example data here:
https://stripe.com/docs/api/checkout/sessions/line_items
  • Loading branch information
eric-seppanen committed Mar 4, 2023
1 parent 8643cb3 commit c6bdb57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def_id!(CardId, "card_");
def_id!(CardTokenId, "tok_");
def_id!(ChargeId, "ch_" | "py_"); // TODO: Understand (and then document) why "py_" is a valid charge id
def_id!(CheckoutSessionId, "cs_");
def_id!(CheckoutSessionItemId: String); // TODO: Figure out what prefix this id has
def_id!(CheckoutSessionItemId, "li_");
def_id!(ConnectCollectionTransferId, "connct_");
def_id!(CouponId: String); // N.B. A coupon id can be user-provided so can be any arbitrary string
def_id!(CustomerId, "cus_");
Expand Down

0 comments on commit c6bdb57

Please sign in to comment.