Skip to content

Commit 37d575e

Browse files
jarrettscottandrewshie-sentry
authored andcommitted
feat(billing): Add Seer to CheckoutAPIData (#91775)
Closes: https://linear.app/getsentry/issue/BIL-529/add-seer-to-the-checkout-request-on-form-submit Adds the Seer boolean flag from the form data into the checkout request
1 parent a5862f3 commit 37d575e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

static/gsApp/views/amCheckout/types.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export type CheckoutAPIData = BaseCheckoutData & {
3737
reservedSpans?: number;
3838
reservedTransactions?: number;
3939
reservedUptime?: number;
40+
seer?: boolean;
4041
};
4142

4243
export type StepProps = {

static/gsApp/views/amCheckout/utils.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,9 @@ export function getCheckoutAPIData({
479479
referrer: referrer || 'billing',
480480
...(previewToken && {previewToken}),
481481
...(paymentIntent && {paymentIntent}),
482+
...(formData.seerEnabled && {
483+
seer: formData.seerEnabled,
484+
}),
482485
};
483486

484487
if (formData.applyNow) {

0 commit comments

Comments
 (0)