feat: Pdf template address

This commit is contained in:
Ahmed Bouhuolia
2024-09-29 13:43:09 +02:00
parent 9b63c176cd
commit be2049ca6e
9 changed files with 122 additions and 169 deletions

View File

@@ -63,6 +63,14 @@ interface GetInvoicePaymentLinkAddressResponse {
phone: string;
}
interface GetInvoicePaymentLinkOrganizationRes {
address: Record<string, GetInvoicePaymentLinkAddressResponse>;
name: string;
primaryColor: string;
logoUri: string;
addressTextFormatted: string;
}
export interface GetInvoicePaymentLinkResponse {
dueAmount: number;
dueAmountFormatted: string;
@@ -97,16 +105,7 @@ export interface GetInvoicePaymentLinkResponse {
taxRateAmountFormatted: string;
taxRateCode: string;
}>;
organization: Record<
string,
{
address: Record<string, GetInvoicePaymentLinkAddressResponse>;
name: string;
primaryColor: string;
logoUri: string;
addressTextFormatted: string;
}
>;
organization: GetInvoicePaymentLinkOrganizationRes;
hasStripePaymentMethod: boolean;
isReceivable: boolean;
}