fix(billing): do not show auto-renewal banner on aws marketplace onboarding page for private offers

This commit is contained in:
Thomas
2025-10-23 13:33:47 +02:00
committed by GitHub
parent e38f55530b
commit f1ca06f2ea
3 changed files with 27 additions and 16 deletions

View File

@@ -47,12 +47,14 @@ const AwsMarketplaceCreateNewOrg = ({ onboardingInfo }: Props) => {
return (
<>
{onboardingInfo && !onboardingInfo.aws_contract_auto_renewal && (
<AwsMarketplaceAutoRenewalWarning
awsContractEndDate={onboardingInfo.aws_contract_end_date}
awsContractSettingsUrl={onboardingInfo.aws_contract_settings_url}
/>
)}
{onboardingInfo &&
!onboardingInfo.aws_contract_auto_renewal &&
!onboardingInfo.aws_contract_is_private_offer && (
<AwsMarketplaceAutoRenewalWarning
awsContractEndDate={onboardingInfo.aws_contract_end_date}
awsContractSettingsUrl={onboardingInfo.aws_contract_settings_url}
/>
)}
<ScaffoldSection>
<ScaffoldSectionDetail className="text-base">
<p>
@@ -62,8 +64,11 @@ const AwsMarketplaceCreateNewOrg = ({ onboardingInfo }: Props) => {
</p>
<p>
You can read more on billing through AWS in our {''}
{/*TODO(thomas): Update docs link once the new docs exist*/}
<Link href={`${DOCS_URL}/guides/platform`} target="_blank" className="underline">
<Link
href={`${DOCS_URL}/guides/platform/aws-marketplace`}
target="_blank"
className="underline"
>
Billing Docs.
</Link>
</p>

View File

@@ -118,12 +118,14 @@ export const AwsMarketplaceLinkExistingOrg = ({
return (
<>
{onboardingInfo && !onboardingInfo.aws_contract_auto_renewal && (
<AwsMarketplaceAutoRenewalWarning
awsContractEndDate={onboardingInfo.aws_contract_end_date}
awsContractSettingsUrl={onboardingInfo.aws_contract_settings_url}
/>
)}
{onboardingInfo &&
!onboardingInfo.aws_contract_auto_renewal &&
!onboardingInfo.aws_contract_is_private_offer && (
<AwsMarketplaceAutoRenewalWarning
awsContractEndDate={onboardingInfo.aws_contract_end_date}
awsContractSettingsUrl={onboardingInfo.aws_contract_settings_url}
/>
)}
<ScaffoldSection>
<ScaffoldSectionDetail className="text-base">
<>
@@ -136,8 +138,11 @@ export const AwsMarketplaceLinkExistingOrg = ({
<p>
You can read more on billing through AWS in our {''}
{/*TODO(thomas): Update docs link once the new docs exist*/}
<Link href={`${DOCS_URL}/guides/platform`} target="_blank" className="underline">
<Link
href={`${DOCS_URL}/guides/platform/aws-marketplace`}
target="_blank"
className="underline"
>
Billing Docs.
</Link>
</p>

View File

@@ -4679,6 +4679,7 @@ export interface components {
CloudMarketplaceOnboardingInfoResponse: {
aws_contract_auto_renewal: boolean
aws_contract_end_date: string
aws_contract_is_private_offer: boolean
aws_contract_settings_url: string
aws_contract_start_date: string
organization_linking_eligibility: {