mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: clean up the style of public payment page.
This commit is contained in:
@@ -31,8 +31,8 @@ export class CreateStripeAccountService {
|
||||
const stripeAccountId = stripeAccount.id;
|
||||
|
||||
const parsedStripeAccountDTO = {
|
||||
...stripeAccountDTO,
|
||||
name: 'Stripe',
|
||||
...stripeAccountDTO,
|
||||
};
|
||||
// Stores the details of the Stripe account.
|
||||
await PaymentIntegration.query().insert({
|
||||
|
||||
@@ -9,7 +9,7 @@ export class StripePaymentApplication {
|
||||
private createStripeAccountService: CreateStripeAccountService;
|
||||
|
||||
@Inject()
|
||||
private createSaleInvoiceCheckoutSessionService: CreateInvoiceCheckoutSession;
|
||||
private createInvoiceCheckoutSessionService: CreateInvoiceCheckoutSession;
|
||||
|
||||
/**
|
||||
* Creates a new Stripe account for Bigcapital.
|
||||
@@ -18,7 +18,7 @@ export class StripePaymentApplication {
|
||||
*/
|
||||
public createStripeAccount(
|
||||
tenantId: number,
|
||||
createStripeAccountDTO: CreateStripeAccountDTO
|
||||
createStripeAccountDTO: CreateStripeAccountDTO = {}
|
||||
) {
|
||||
return this.createStripeAccountService.createStripeAccount(
|
||||
tenantId,
|
||||
@@ -36,7 +36,7 @@ export class StripePaymentApplication {
|
||||
tenantId: number,
|
||||
paymentLinkId: number
|
||||
): Promise<StripeInvoiceCheckoutSessionPOJO> {
|
||||
return this.createSaleInvoiceCheckoutSessionService.createInvoiceCheckoutSession(
|
||||
return this.createInvoiceCheckoutSessionService.createInvoiceCheckoutSession(
|
||||
tenantId,
|
||||
paymentLinkId
|
||||
);
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
|
||||
export interface CreateStripeAccountDTO {
|
||||
name: string;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user