Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/publish/netlify/api/services/PaymentMethodService.ts
6467 views
1
/* istanbul ignore file */
2
/* tslint:disable */
3
/* eslint-disable */
4
import type { CancelablePromise } from "../core/CancelablePromise.ts";
5
import type { BaseHttpRequest } from "../core/BaseHttpRequest.ts";
6
7
export class PaymentMethodService {
8
constructor(public readonly httpRequest: BaseHttpRequest) {}
9
10
/**
11
* @returns any OK
12
* @throws ApiError
13
*/
14
public listPaymentMethodsForUser(): CancelablePromise<
15
Array<{
16
id?: string;
17
method_name?: string;
18
type?: string;
19
state?: string;
20
data?: {
21
card_type?: string;
22
last4?: string;
23
email?: string;
24
};
25
created_at?: string;
26
updated_at?: string;
27
}>
28
> {
29
return this.httpRequest.request({
30
method: "GET",
31
url: "/billing/payment_methods",
32
});
33
}
34
}
35
36