cloudflare/cloudflare-typescript

Public

mirrored fromhttps://github.com/cloudflare/cloudflare-typescriptAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v4.4.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/resources/billing/profiles.ts

114lines · modecode

1// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
3import { APIResource } from '../../resource';
4import * as Core from '../../core';
5
6export class Profiles extends APIResource {
7 /**
8 * Gets the current billing profile for the account.
9 *
10 * @deprecated
11 */
12 get(params: ProfileGetParams, options?: Core.RequestOptions): Core.APIPromise<ProfileGetResponse> {
13 const { account_id } = params;
14 return (
15 this._client.get(`/accounts/${account_id}/billing/profile`, options) as Core.APIPromise<{
16 result: ProfileGetResponse;
17 }>
18 )._thenUnwrap((obj) => obj.result);
19 }
20}
21
22export interface ProfileGetResponse {
23 /**
24 * Billing item identifier tag.
25 */
26 id?: string;
27
28 account_type?: string;
29
30 address?: string;
31
32 address2?: string;
33
34 balance?: string;
35
36 card_expiry_month?: number;
37
38 card_expiry_year?: number;
39
40 card_number?: string;
41
42 city?: string;
43
44 company?: string;
45
46 country?: string;
47
48 created_on?: string;
49
50 device_data?: string;
51
52 edited_on?: string;
53
54 enterprise_billing_email?: string;
55
56 enterprise_primary_email?: string;
57
58 first_name?: string;
59
60 is_partner?: boolean;
61
62 last_name?: string;
63
64 next_bill_date?: string;
65
66 payment_address?: string;
67
68 payment_address2?: string;
69
70 payment_city?: string;
71
72 payment_country?: string;
73
74 payment_email?: string;
75
76 payment_first_name?: string;
77
78 payment_gateway?: string;
79
80 payment_last_name?: string;
81
82 payment_nonce?: string;
83
84 payment_state?: string;
85
86 payment_zipcode?: string;
87
88 primary_email?: string;
89
90 state?: string;
91
92 tax_id_type?: string;
93
94 telephone?: string;
95
96 use_legacy?: boolean;
97
98 validation_code?: string;
99
100 vat?: string;
101
102 zipcode?: string;
103}
104
105export interface ProfileGetParams {
106 /**
107 * Identifier
108 */
109 account_id: string;
110}
111
112export declare namespace Profiles {
113 export { type ProfileGetResponse as ProfileGetResponse, type ProfileGetParams as ProfileGetParams };
114}
115