Browse Source
Merge branch 'main' into Task/remove-deprecated-public-stripe-key
pull/6124/head
Thomas Kaul
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with
17 additions and
13 deletions
-
CHANGELOG.md
-
apps/api/src/app/subscription/subscription.service.ts
-
libs/ui/src/lib/fire-calculator/fire-calculator.component.stories.ts
-
libs/ui/src/lib/fire-calculator/fire-calculator.component.ts
-
package-lock.json
-
package.json
|
|
|
@ -9,7 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Initialized the input properties in the _FIRE_ calculator |
|
|
|
- Removed the deprecated public _Stripe_ key |
|
|
|
- Upgraded `stripe` from version `18.5.0` to `20.1.0` |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ export class SubscriptionService { |
|
|
|
this.stripe = new Stripe( |
|
|
|
this.configurationService.get('STRIPE_SECRET_KEY'), |
|
|
|
{ |
|
|
|
apiVersion: '2025-08-27.basil' |
|
|
|
apiVersion: '2025-12-15.clover' |
|
|
|
} |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
@ -44,8 +44,10 @@ type Story = StoryObj<GfFireCalculatorComponent>; |
|
|
|
|
|
|
|
export const Simple: Story = { |
|
|
|
args: { |
|
|
|
annualInterestRate: 5, |
|
|
|
currency: 'USD', |
|
|
|
fireWealth: 50000, |
|
|
|
locale: locale |
|
|
|
locale: locale, |
|
|
|
savingsRate: 1000 |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
@ -77,16 +77,16 @@ import { FireCalculatorService } from './fire-calculator.service'; |
|
|
|
templateUrl: './fire-calculator.component.html' |
|
|
|
}) |
|
|
|
export class GfFireCalculatorComponent implements OnChanges, OnDestroy { |
|
|
|
@Input() annualInterestRate: number; |
|
|
|
@Input() annualInterestRate = 0; |
|
|
|
@Input() colorScheme: ColorScheme; |
|
|
|
@Input() currency: string; |
|
|
|
@Input() deviceType: string; |
|
|
|
@Input() fireWealth: number; |
|
|
|
@Input() fireWealth = 0; |
|
|
|
@Input() hasPermissionToUpdateUserSettings: boolean; |
|
|
|
@Input() locale = getLocale(); |
|
|
|
@Input() projectedTotalAmount: number; |
|
|
|
@Input() projectedTotalAmount = 0; |
|
|
|
@Input() retirementDate: Date; |
|
|
|
@Input() savingsRate: number; |
|
|
|
@Input() savingsRate = 0; |
|
|
|
|
|
|
|
@Output() annualInterestRateChanged = new EventEmitter<number>(); |
|
|
|
@Output() calculationCompleted = |
|
|
|
|
|
|
|
@ -84,7 +84,7 @@ |
|
|
|
"passport-openidconnect": "0.1.2", |
|
|
|
"reflect-metadata": "0.2.2", |
|
|
|
"rxjs": "7.8.1", |
|
|
|
"stripe": "18.5.0", |
|
|
|
"stripe": "20.1.0", |
|
|
|
"svgmap": "2.14.0", |
|
|
|
"tablemark": "4.1.0", |
|
|
|
"twitter-api-v2": "1.27.0", |
|
|
|
@ -31464,18 +31464,18 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
"node_modules/stripe": { |
|
|
|
"version": "18.5.0", |
|
|
|
"resolved": "https://registry.npmjs.org/stripe/-/stripe-18.5.0.tgz", |
|
|
|
"integrity": "sha512-Hp+wFiEQtCB0LlNgcFh5uVyKznpDjzyUZ+CNVEf+I3fhlYvh7rZruIg+jOwzJRCpy0ZTPMjlzm7J2/M2N6d+DA==", |
|
|
|
"version": "20.1.0", |
|
|
|
"resolved": "https://registry.npmjs.org/stripe/-/stripe-20.1.0.tgz", |
|
|
|
"integrity": "sha512-o1VNRuMkY76ZCq92U3EH3/XHm/WHp7AerpzDs4Zyo8uE5mFL4QUcv/2SudWsSnhBSp4moO2+ZoGCZ7mT8crPmQ==", |
|
|
|
"license": "MIT", |
|
|
|
"dependencies": { |
|
|
|
"qs": "^6.11.0" |
|
|
|
}, |
|
|
|
"engines": { |
|
|
|
"node": ">=12.*" |
|
|
|
"node": ">=16" |
|
|
|
}, |
|
|
|
"peerDependencies": { |
|
|
|
"@types/node": ">=12.x.x" |
|
|
|
"@types/node": ">=16" |
|
|
|
}, |
|
|
|
"peerDependenciesMeta": { |
|
|
|
"@types/node": { |
|
|
|
|
|
|
|
@ -128,7 +128,7 @@ |
|
|
|
"passport-openidconnect": "0.1.2", |
|
|
|
"reflect-metadata": "0.2.2", |
|
|
|
"rxjs": "7.8.1", |
|
|
|
"stripe": "18.5.0", |
|
|
|
"stripe": "20.1.0", |
|
|
|
"svgmap": "2.14.0", |
|
|
|
"tablemark": "4.1.0", |
|
|
|
"twitter-api-v2": "1.27.0", |
|
|
|
|