Skip to content

Commit

Permalink
Add livemode as a field in ThinEvent (#1890)
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe authored Oct 3, 2024
1 parent 935709f commit 577ccd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/com/stripe/model/ThinEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,19 @@ public class ThinEvent {
@SerializedName("created")
public Instant created;

/** Livemode indicates if the event is from a production(true) or test(false) account. */
@SerializedName("livemode")
public Boolean livemode;

/** [Optional] Authentication context needed to fetch the event or related object. */
@SerializedName("context")
public String context;

/** [Optional] Object containing the reference to API resource relevant to the event. */
@SerializedName("related_object")
public ThinEventRelatedObject relatedObject;

/** [Optional] Reason for the event. */
@SerializedName("reason")
public com.stripe.model.v2.Event.Reason reason;
}
2 changes: 2 additions & 0 deletions src/test/java/com/stripe/StripeClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public void failsWebhookVerification()
+ " \"id\": \"evt_234\",\n"
+ " \"object\": \"event\",\n"
+ " \"type\": \"financial_account.balance.opened\",\n"
+ " \"livemode\": false,\n"
+ " \"created\": \"2022-02-15T00:27:45.330Z\",\n"
+ " \"context\": \"context 123\",\n"
+ " \"related_object\": {\n"
Expand All @@ -166,6 +167,7 @@ public void failsWebhookVerification()
+ " \"id\": \"evt_234\",\n"
+ " \"object\": \"event\",\n"
+ " \"type\": \"financial_account.balance.opened\",\n"
+ " \"livemode\": false,\n"
+ " \"created\": \"2022-02-15T00:27:45.330Z\"\n"
+ "}";

Expand Down

0 comments on commit 577ccd3

Please sign in to comment.