We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8030e31 commit 2043cd7Copy full SHA for 2043cd7
resources/statements.ts
@@ -18,12 +18,13 @@ export class Statments extends BaseResource {
18
return this.httpGet<UnitResponse<Statement[]>>("", { params: parameters })
19
}
20
21
- public get(statementId: string, customerId?: string): Promise<string> {
+ public get(statementId: string, customerId?: string, isPDF = false): Promise<string> {
22
const parameters = {
23
...(customerId && { "filter[customerId]": customerId })
24
25
26
- return this.httpGet<string>(`/${statementId}/html`, {params: parameters})
+ const url = isPDF ? `/${statementId}/pdf` : `/${statementId}/html`
27
+ return this.httpGet<string>(url, {params: parameters})
28
29
30
0 commit comments