Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaFomina committed Jan 11, 2025
1 parent 98c6cf5 commit ba17aa0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/api/plans/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const QUERY_PLANS = `
monthlyCharge
monthlyChargeCurrency
eventsLimit
paymentFrequency
}
}
`;
3 changes: 2 additions & 1 deletion src/components/modals/PaymentDetailsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ export default Vue.extend({
* New plan
*/
plan(): Plan {
console.log(this.$store.getters.getPlanById(this.tariffPlanId))
return this.$store.getters.getPlanById(this.tariffPlanId);
},
Expand Down Expand Up @@ -571,7 +572,7 @@ export default Vue.extend({
checksum: data.checksum,
};
const interval = this.plan.paymentFrequency === 'daily' ? 'Day' : 'Month';
const interval = this.workspace.isDebug ? 'Day' : 'Month';
if (this.isRecurrent) {
paymentData.cloudPayments = {
Expand Down
6 changes: 0 additions & 6 deletions src/types/plan.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,4 @@ export interface Plan {
* Is plan default
*/
isDefault?: boolean;

/**
* How often to charge payment for the plan.
* Monthly by default.
*/
paymentFrequency?: 'monthly' | 'daily'
}
3 changes: 3 additions & 0 deletions src/types/workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export interface Workspace {
* Returns from CloudPayments
*/
subscriptionId?: string;

/** True if workspace is used for debugging */
isDebug?: boolean;
}

/**
Expand Down

0 comments on commit ba17aa0

Please sign in to comment.