Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add livemode as a field in ThinEvent #1890

Merged
merged 3 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
helenye-stripe marked this conversation as resolved.
Show resolved Hide resolved
+ " \"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"
helenye-stripe marked this conversation as resolved.
Show resolved Hide resolved
+ " \"created\": \"2022-02-15T00:27:45.330Z\"\n"
+ "}";

Expand Down
Loading