Skip to content

Commit 92ac391

Browse files
Merge pull request Expensify#84510 from TaduJR/feat-Make-Cancel-Subscription-Option-More-Visible-and-Accessible
feat: Make Cancel Subscription Option More Visible and Accessible
2 parents 620eeaa + 4992e25 commit 92ac391

28 files changed

Lines changed: 366 additions & 201 deletions

File tree

src/CONST/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9562,7 +9562,7 @@ const CONST = {
95629562
AUTHENTICATE_PAYMENT: 'SettingsSubscription-AuthenticatePayment',
95639563
VIEW_PAYMENT_HISTORY: 'SettingsSubscription-ViewPaymentHistory',
95649564
REQUEST_REFUND: 'SettingsSubscription-RequestRefund',
9565-
REQUEST_EARLY_CANCELLATION: 'SettingsSubscription-RequestEarlyCancellation',
9565+
CANCEL_SUBSCRIPTION: 'SettingsSubscription-CancelSubscription',
95669566
},
95679567
SETTINGS_HELP: {
95689568
CONCIERGE_CHAT: 'SettingsHelp-ConciergeChat',

src/ONYXKEYS.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,8 +969,8 @@ const ONYXKEYS = {
969969
PERSONAL_BANK_ACCOUNT_FORM_DRAFT: 'personalBankAccountDraft',
970970
DISABLE_AUTO_RENEW_SURVEY_FORM: 'disableAutoRenewSurveyForm',
971971
DISABLE_AUTO_RENEW_SURVEY_FORM_DRAFT: 'disableAutoRenewSurveyFormDraft',
972-
REQUEST_EARLY_CANCELLATION_FORM: 'requestEarlyCancellationForm',
973-
REQUEST_EARLY_CANCELLATION_FORM_DRAFT: 'requestEarlyCancellationFormDraft',
972+
CANCEL_SUBSCRIPTION_FORM: 'cancelSubscriptionForm',
973+
CANCEL_SUBSCRIPTION_FORM_DRAFT: 'cancelSubscriptionFormDraft',
974974
EXIT_SURVEY_RESPONSE_FORM: 'exitSurveyResponseForm',
975975
EXIT_SURVEY_RESPONSE_FORM_DRAFT: 'exitSurveyResponseFormDraft',
976976
WALLET_ADDITIONAL_DETAILS: 'walletAdditionalDetails',
@@ -1140,7 +1140,7 @@ type OnyxFormValuesMapping = {
11401140
[ONYXKEYS.FORMS.NEW_TASK_FORM]: FormTypes.NewTaskForm;
11411141
[ONYXKEYS.FORMS.EDIT_TASK_FORM]: FormTypes.EditTaskForm;
11421142
[ONYXKEYS.FORMS.DISABLE_AUTO_RENEW_SURVEY_FORM]: FormTypes.FeedbackSurveyForm;
1143-
[ONYXKEYS.FORMS.REQUEST_EARLY_CANCELLATION_FORM]: FormTypes.FeedbackSurveyForm;
1143+
[ONYXKEYS.FORMS.CANCEL_SUBSCRIPTION_FORM]: FormTypes.FeedbackSurveyForm;
11441144
[ONYXKEYS.FORMS.EXIT_SURVEY_RESPONSE_FORM]: FormTypes.ExitSurveyResponseForm;
11451145
[ONYXKEYS.FORMS.MONEY_REQUEST_DESCRIPTION_FORM]: FormTypes.MoneyRequestDescriptionForm;
11461146
[ONYXKEYS.FORMS.MONEY_REQUEST_MERCHANT_FORM]: FormTypes.MoneyRequestMerchantForm;

src/ROUTES.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ const ROUTES = {
598598
SETTINGS_SUBSCRIPTION_CHANGE_BILLING_CURRENCY: 'settings/subscription/change-billing-currency',
599599
SETTINGS_SUBSCRIPTION_CHANGE_PAYMENT_CURRENCY: 'settings/subscription/add-payment-card/change-payment-currency',
600600
SETTINGS_SUBSCRIPTION_DISABLE_AUTO_RENEW_SURVEY: 'settings/subscription/disable-auto-renew-survey',
601-
SETTINGS_SUBSCRIPTION_REQUEST_EARLY_CANCELLATION: 'settings/subscription/request-early-cancellation-survey',
601+
SETTINGS_SUBSCRIPTION_CANCEL_SUBSCRIPTION: 'settings/subscription/cancel-subscription-survey',
602602
SETTINGS_SUBSCRIPTION_DOWNGRADE_BLOCKED: {
603603
route: 'settings/subscription/downgrade-blocked',
604604

src/SCREENS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ const SCREENS = {
260260
DISABLE_AUTO_RENEW_SURVEY: 'Settings_Subscription_DisableAutoRenewSurvey',
261261
CHANGE_BILLING_CURRENCY: 'Settings_Subscription_Change_Billing_Currency',
262262
CHANGE_PAYMENT_CURRENCY: 'Settings_Subscription_Change_Payment_Currency',
263-
REQUEST_EARLY_CANCELLATION: 'Settings_Subscription_RequestEarlyCancellation',
263+
CANCEL_SUBSCRIPTION: 'Settings_Subscription_CancelSubscription',
264264
SUBSCRIPTION_DOWNGRADE_BLOCKED: 'Settings_Subscription_DowngradeBlocked',
265265
},
266266
},

src/components/FeedbackSurvey.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import TextInput from './TextInput';
2121

2222
type FeedbackSurveyProps = {
2323
/** A unique Onyx key identifying the form */
24-
formID: typeof ONYXKEYS.FORMS.DISABLE_AUTO_RENEW_SURVEY_FORM | typeof ONYXKEYS.FORMS.REQUEST_EARLY_CANCELLATION_FORM;
24+
formID: typeof ONYXKEYS.FORMS.DISABLE_AUTO_RENEW_SURVEY_FORM | typeof ONYXKEYS.FORMS.CANCEL_SUBSCRIPTION_FORM;
2525

2626
/** Title of the survey */
2727
title: string;

src/languages/de.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8738,9 +8738,9 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc
87388738
collectBillingDescription: 'Collect-Arbeitsbereiche werden monatlich pro Mitglied ohne jährliche Verpflichtung abgerechnet.',
87398739
pricing: 'Preise',
87408740
},
8741-
requestEarlyCancellation: {
8742-
title: 'Frühzeitige Kündigung anfordern',
8743-
subtitle: 'Was ist der Hauptgrund, warum du eine vorzeitige Kündigung beantragst?',
8741+
cancelSubscription: {
8742+
title: 'Abonnement kündigen',
8743+
subtitle: 'Was ist der Hauptgrund, warum du dein Abonnement kündigst?',
87448744
subscriptionCanceled: {
87458745
title: 'Abonnement gekündigt',
87468746
subtitle: 'Dein Jahresabonnement wurde gekündigt.',
@@ -8753,7 +8753,7 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc
87538753
subtitle:
87548754
'Danke, dass du uns mitgeteilt hast, dass du dein Abonnement kündigen möchtest. Wir prüfen deine Anfrage und melden uns in Kürze über deinen Chat mit <concierge-link>Concierge</concierge-link>.',
87558755
},
8756-
acknowledgement: `Mit dem Antrag auf vorzeitige Kündigung erkenne ich an und stimme zu, dass Expensify gemäß den Expensify-<a href=${CONST.OLD_DOT_PUBLIC_URLS.TERMS_URL}>Nutzungsbedingungen</a> oder einer sonstigen anwendbaren Servicevereinbarung zwischen mir und Expensify nicht verpflichtet ist, einem solchen Antrag stattzugeben, und dass Expensify das alleinige Ermessen in Bezug auf die Genehmigung eines solchen Antrags behält.`,
8756+
acknowledgement: `Mit dem Antrag auf Kündigung erkenne ich an und stimme zu, dass Expensify gemäß den Expensify-<a href=${CONST.OLD_DOT_PUBLIC_URLS.TERMS_URL}>Nutzungsbedingungen</a> oder einer sonstigen anwendbaren Servicevereinbarung zwischen mir und Expensify nicht verpflichtet ist, einem solchen Antrag stattzugeben, und dass Expensify das alleinige Ermessen in Bezug auf die Genehmigung eines solchen Antrags behält.`,
87578757
},
87588758
},
87598759
feedbackSurvey: {

src/languages/en.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8720,9 +8720,9 @@ const translations = {
87208720
collectBillingDescription: 'Collect workspaces are billed monthly per member, with no annual commitment.',
87218721
pricing: 'Pricing',
87228722
},
8723-
requestEarlyCancellation: {
8724-
title: 'Request early cancellation',
8725-
subtitle: 'What’s the main reason you’re requesting early cancellation?',
8723+
cancelSubscription: {
8724+
title: 'Cancel subscription',
8725+
subtitle: 'What’s the main reason you’re canceling your subscription?',
87268726
subscriptionCanceled: {
87278727
title: 'Subscription canceled',
87288728
subtitle: 'Your annual subscription has been canceled.',
@@ -8735,7 +8735,7 @@ const translations = {
87358735
subtitle:
87368736
'Thanks for letting us know you’re interested in canceling your subscription. We’re reviewing your request and will be in touch soon via your chat with <concierge-link>Concierge</concierge-link>.',
87378737
},
8738-
acknowledgement: `By requesting early cancellation, I acknowledge and agree that Expensify has no obligation to grant such request under the Expensify <a href=${CONST.OLD_DOT_PUBLIC_URLS.TERMS_URL}>Terms of Service</a> or other applicable services agreement between me and Expensify and that Expensify retains sole discretion with regard to granting any such request.`,
8738+
acknowledgement: `By requesting cancellation, I acknowledge and agree that Expensify has no obligation to grant such request under the Expensify <a href=${CONST.OLD_DOT_PUBLIC_URLS.TERMS_URL}>Terms of Service</a> or other applicable services agreement between me and Expensify and that Expensify retains sole discretion with regard to granting any such request.`,
87398739
},
87408740
},
87418741
feedbackSurvey: {

src/languages/es.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8944,9 +8944,9 @@ ${amount} para ${merchant} - ${date}`,
89448944
collectBillingDescription: 'Los espacios de trabajo del plan Collect se facturan mensualmente por miembro, sin compromiso anual.',
89458945
pricing: 'Precios',
89468946
},
8947-
requestEarlyCancellation: {
8948-
title: 'Solicitar cancelación anticipada',
8949-
subtitle: '¿Cuál es la razón principal por la que solicitas la cancelación anticipada?',
8947+
cancelSubscription: {
8948+
title: 'Cancelar suscripción',
8949+
subtitle: '¿Cuál es la razón principal por la que solicitas cancelar tu suscripción?',
89508950
subscriptionCanceled: {
89518951
title: 'Suscripción cancelada',
89528952
subtitle: 'Tu suscripción anual ha sido cancelada.',
@@ -8959,7 +8959,7 @@ ${amount} para ${merchant} - ${date}`,
89598959
subtitle:
89608960
'Gracias por hacernos saber que deseas cancelar tu suscripción. Estamos revisando tu solicitud y nos comunicaremos contigo en breve a través de tu chat con <concierge-link>Concierge</concierge-link>.',
89618961
},
8962-
acknowledgement: `Al solicitar la cancelación anticipada, reconozco y acepto que Expensify no tiene ninguna obligación de conceder dicha solicitud en virtud de las <a href=${CONST.OLD_DOT_PUBLIC_URLS.TERMS_URL}>Condiciones de Servicio</a> de Expensify u otro acuerdo de servicios aplicable entre Expensify y yo, y que Expensify se reserva el derecho exclusivo a conceder dicha solicitud.`,
8962+
acknowledgement: `Al solicitar la cancelación, reconozco y acepto que Expensify no tiene ninguna obligación de conceder dicha solicitud en virtud de las <a href=${CONST.OLD_DOT_PUBLIC_URLS.TERMS_URL}>Condiciones de Servicio</a> de Expensify u otro acuerdo de servicios aplicable entre Expensify y yo, y que Expensify se reserva el derecho exclusivo a conceder dicha solicitud.`,
89638963
},
89648964
},
89658965
feedbackSurvey: {

src/languages/fr.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8759,9 +8759,9 @@ Ajoutez davantage de règles de dépenses pour protéger la trésorerie de l’e
87598759
collectBillingDescription: 'Les espaces de travail Collect sont facturés mensuellement par membre, sans engagement annuel.',
87608760
pricing: 'Tarification',
87618761
},
8762-
requestEarlyCancellation: {
8763-
title: 'Demander une résiliation anticipée',
8764-
subtitle: 'Quelle est la principale raison pour laquelle vous demandez une résiliation anticipée ?',
8762+
cancelSubscription: {
8763+
title: "Annuler l'abonnement",
8764+
subtitle: 'Quelle est la principale raison pour laquelle vous souhaitez résilier votre abonnement ?',
87658765
subscriptionCanceled: {
87668766
title: 'Abonnement annulé',
87678767
subtitle: 'Votre abonnement annuel a été annulé.',
@@ -8774,7 +8774,7 @@ Ajoutez davantage de règles de dépenses pour protéger la trésorerie de l’e
87748774
subtitle:
87758775
'Merci de nous avoir informés que vous souhaitez résilier votre abonnement. Nous examinons votre demande et nous vous contacterons bientôt via votre discussion avec <concierge-link>Concierge</concierge-link>.',
87768776
},
8777-
acknowledgement: `En demandant une résiliation anticipée, je reconnais et j’accepte qu’Expensify n’a aucune obligation d’accéder à une telle demande en vertu des <a href=${CONST.OLD_DOT_PUBLIC_URLS.TERMS_URL}>Conditions d’utilisation</a> d’Expensify ou de tout autre contrat de services applicable entre Expensify et moi, et qu’Expensify conserve toute latitude quant à l’acceptation ou non de cette demande.`,
8777+
acknowledgement: `En demandant une résiliation, je reconnais et j’accepte qu’Expensify n’a aucune obligation d’accéder à une telle demande en vertu des <a href=${CONST.OLD_DOT_PUBLIC_URLS.TERMS_URL}>Conditions d’utilisation</a> d’Expensify ou de tout autre contrat de services applicable entre Expensify et moi, et qu’Expensify conserve toute latitude quant à l’acceptation ou non de cette demande.`,
87788778
},
87798779
},
87808780
feedbackSurvey: {

src/languages/it.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8726,9 +8726,9 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`,
87268726
collectBillingDescription: 'Gli spazi di lavoro Collect vengono fatturati mensilmente per membro, senza impegno annuale.',
87278727
pricing: 'Prezzi',
87288728
},
8729-
requestEarlyCancellation: {
8730-
title: 'Richiedi annullamento anticipato',
8731-
subtitle: 'Qual è il motivo principale per cui stai richiedendo l’annullamento anticipato?',
8729+
cancelSubscription: {
8730+
title: 'Annulla abbonamento',
8731+
subtitle: 'Qual è il motivo principale per cui vuoi annullare il tuo abbonamento?',
87328732
subscriptionCanceled: {
87338733
title: 'Abbonamento annullato',
87348734
subtitle: 'Il tuo abbonamento annuale è stato annullato.',
@@ -8741,7 +8741,7 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`,
87418741
subtitle:
87428742
'Grazie per averci informato che sei interessato/a a disdire il tuo abbonamento. Stiamo esaminando la tua richiesta e ti contatteremo presto tramite la tua chat con <concierge-link>Concierge</concierge-link>.',
87438743
},
8744-
acknowledgement: `Richiedendo la cancellazione anticipata, riconosco e accetto che Expensify non ha alcun obbligo di concedere tale richiesta ai sensi dei <a href=${CONST.OLD_DOT_PUBLIC_URLS.TERMS_URL}>Termini di servizio</a> di Expensify o di altri contratti di servizio applicabili tra me ed Expensify e che Expensify mantiene esclusiva discrezionalità in merito alla concessione di qualsiasi tale richiesta.`,
8744+
acknowledgement: `Richiedendo la cancellazione, riconosco e accetto che Expensify non ha alcun obbligo di concedere tale richiesta ai sensi dei <a href=${CONST.OLD_DOT_PUBLIC_URLS.TERMS_URL}>Termini di servizio</a> di Expensify o di altri contratti di servizio applicabili tra me ed Expensify e che Expensify mantiene esclusiva discrezionalità in merito alla concessione di qualsiasi tale richiesta.`,
87458745
},
87468746
},
87478747
feedbackSurvey: {

0 commit comments

Comments
 (0)