Skip to content

Commit

Permalink
feat(subscription-service): add stripe integration in subscription se…
Browse files Browse the repository at this point in the history
…rvice (#55)

## Description
add stripe integration in subscription service.

Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Intermediate change (work in progress)

## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration

- [ ] Test A
- [ ] Test B

## Checklist:

- [ ] Performed a self-review of my own code
- [ ] npm test passes on your machine
- [ ] New tests added or existing tests modified to cover all changes
- [ ] Code conforms with the style guide
- [ ] API Documentation in code was updated
- [ ] Any dependent changes have been merged and published in downstream
modules
  • Loading branch information
Tyagi-Sunny authored Dec 13, 2024
1 parent c2f9875 commit c3b4889
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {model, Model, property} from '@loopback/repository';
import {AnyObject, model, Model, property} from '@loopback/repository';

@model({
name: 'payment_source_dto',
Expand All @@ -19,7 +19,6 @@ export class PaymentSourceDto extends Model {
@property({
type: 'object',
name: 'card',
required: true,
jsonSchema: {
type: 'object',
properties: {
Expand All @@ -38,8 +37,12 @@ export class PaymentSourceDto extends Model {
],
},
})
card: ICard;
card?: ICard;

@property({
type: 'object',
})
options?: AnyObject;
constructor(data?: Partial<PaymentSourceDto>) {
super(data);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export class LeadAuthenticator {
PermissionKey.DeleteBillingCustomer,
PermissionKey.DeleteBillingPaymentSource,
PermissionKey.DeleteBillingInvoice,
PermissionKey.CreateTenantConfig,
PermissionKey.ViewTenantConfig,
PermissionKey.DeleteTenantConfig,
PermissionKey.UpdateTenantConfig,
]);
const randomKey = this.cryptoHelperService.generateRandomString(
+process.env.LEAD_KEY_LENGTH!,
Expand Down

0 comments on commit c3b4889

Please sign in to comment.