@origincloud/billing 0.0.0-stage → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,25 @@
1
- # Temporary Holding Version
1
+ # @origincloud/billing
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The client of Origin Cloud's billing service: billing accounts and the projects
4
+ they pay for, payment methods, cost and usage, spend limits and the price list.
5
+ Part of the [Origin Cloud SDK for
6
+ TypeScript](https://github.com/origincloudhq/sdk-typescript), generated from the
7
+ API definitions in [origincloudhq/api](https://github.com/origincloudhq/api).
8
+
9
+ ```ts
10
+ import { Client } from "@origincloud/core";
11
+ import { BillingAccountClient } from "@origincloud/billing/v1beta1";
12
+
13
+ const billingAccounts = new BillingAccountClient(new Client());
14
+ ```
15
+
16
+ | Import | API |
17
+ |---|---|
18
+ | `@origincloud/billing/v1beta1` | Billing accounts and the projects they pay for, payment methods, cost and usage, spend limits and the price list |
19
+
20
+ `v1beta1` is a preview version and may change in incompatible ways, like the API
21
+ itself. See the [repository's
22
+ README](https://github.com/origincloudhq/sdk-typescript#readme) for credentials
23
+ and behaviour.
24
+
25
+ Apache License 2.0.
@@ -0,0 +1,387 @@
1
+ import { type CallOptions, type Client, type Empty, type Service } from "@origincloud/core";
2
+ /**
3
+ * Calls BillingAccountService.
4
+ *
5
+ * Billing accounts, which project each one pays for, and how they are paid.
6
+ */
7
+ export declare class BillingAccountClient {
8
+ /**
9
+ * The endpoint the client sends its calls to, which also serves the
10
+ * operations its methods answer with.
11
+ */
12
+ readonly service: Service;
13
+ /** A client of BillingAccountService that sends its calls through `client`. */
14
+ constructor(client: Client);
15
+ /**
16
+ * Returns a billing account. Needs `admin.billing_account.get` on the
17
+ * organization.
18
+ */
19
+ getBillingAccount(request: GetBillingAccountRequest, options?: CallOptions): Promise<BillingAccount>;
20
+ /**
21
+ * Lists an organization's billing accounts, oldest first. Needs
22
+ * `admin.billing_account.list` on the organization.
23
+ */
24
+ listBillingAccounts(request: ListBillingAccountsRequest, options?: CallOptions): Promise<ListBillingAccountsResponse>;
25
+ /**
26
+ * Iterates over everything listBillingAccounts lists from the request's page on,
27
+ * fetching the next page as the loop reaches it. A page that fails ends
28
+ * the iteration with its error.
29
+ */
30
+ allBillingAccounts(request: ListBillingAccountsRequest, options?: CallOptions): AsyncGenerator<BillingAccount, void, undefined>;
31
+ /**
32
+ * Creates a billing account with its profile: `displayName`,
33
+ * `billingAddress`, `invoiceEmail` and `contactPerson` are required,
34
+ * and `vatId` too for a billing address outside Germany. The account
35
+ * has no payment method yet: until one is verified, the projects linked
36
+ * to it can't create billable resources. Creating it grants nobody a
37
+ * role: whoever can create billing accounts can use it. Needs
38
+ * `admin.billing_account.create` on the organization.
39
+ */
40
+ createBillingAccount(request: CreateBillingAccountRequest, options?: CallOptions): Promise<BillingAccount>;
41
+ /**
42
+ * Changes a billing account's `displayName` or its profile. The profile
43
+ * fields named in `updateMask` are replaced and the others kept; once
44
+ * the update is applied, the account must have a whole profile
45
+ * (`billingAddress`, `invoiceEmail`, `contactPerson`, and `vatId`
46
+ * for a billing address outside Germany), or the update is refused. Needs
47
+ * `admin.billing_account.update` on the organization.
48
+ */
49
+ updateBillingAccount(request: UpdateBillingAccountRequest, options?: CallOptions): Promise<BillingAccount>;
50
+ /**
51
+ * Deletes a billing account. Refused as a `CONFLICT` for the
52
+ * organization's default billing account, while a project is linked to
53
+ * the account (link it to another account first), and while the account
54
+ * has a spend limit (remove it first). Needs
55
+ * `admin.billing_account.delete` on the organization.
56
+ */
57
+ deleteBillingAccount(request: DeleteBillingAccountRequest, options?: CallOptions): Promise<Empty>;
58
+ /**
59
+ * Starts adding a payment method to a billing account, and returns the
60
+ * payment provider's page to open in a browser: the payment details are
61
+ * entered there and never pass through this API. Once that page is done,
62
+ * call ConfirmPaymentMethodSetup. Starting again replaces a setup that
63
+ * wasn't confirmed. Refused as `INVALID_ARGUMENT` for an account whose
64
+ * `paymentMethod.state` is `NOT_REQUIRED`. Needs
65
+ * `admin.billing_account.update` on the organization.
66
+ */
67
+ startPaymentMethodSetup(request: StartPaymentMethodSetupRequest, options?: CallOptions): Promise<StartPaymentMethodSetupResponse>;
68
+ /**
69
+ * Completes the setup StartPaymentMethodSetup started, once its page is
70
+ * done: the payment provider is asked whether it finished, and only a
71
+ * finished setup is recorded. The account's `paymentMethod` is then
72
+ * `VERIFIED`, replacing any earlier one, and its projects can create
73
+ * billable resources. An unfinished or abandoned setup is refused as
74
+ * `INVALID_ARGUMENT` and changes nothing: finish the page, or start
75
+ * again. So is an account with no setup started, which includes a
76
+ * repeat of a confirmation that succeeded: read the account to see
77
+ * whether it did. Needs `admin.billing_account.update` on the
78
+ * organization.
79
+ */
80
+ confirmPaymentMethodSetup(request: ConfirmPaymentMethodSetupRequest, options?: CallOptions): Promise<BillingAccount>;
81
+ /**
82
+ * Returns which billing account pays for a project. Needs
83
+ * `admin.project.get` on the project.
84
+ */
85
+ getProjectBillingInfo(request: GetProjectBillingInfoRequest, options?: CallOptions): Promise<ProjectBillingInfo>;
86
+ /**
87
+ * Links a project to another billing account of its organization, which
88
+ * pays for its usage from then on; what it used before stays charged to
89
+ * the account it was linked to then. A project is always linked to one
90
+ * account, so there is nothing to unlink. Needs `admin.project.attach`
91
+ * on the project, which is separate from access to billing accounts.
92
+ */
93
+ updateProjectBillingInfo(request: UpdateProjectBillingInfoRequest, options?: CallOptions): Promise<ProjectBillingInfo>;
94
+ /**
95
+ * Lists the projects a billing account pays for, oldest first. Needs
96
+ * `admin.billing_account.get` on the organization.
97
+ */
98
+ listProjectBillingInfo(request: ListProjectBillingInfoRequest, options?: CallOptions): Promise<ListProjectBillingInfoResponse>;
99
+ /**
100
+ * Iterates over everything listProjectBillingInfo lists from the request's page on,
101
+ * fetching the next page as the loop reaches it. A page that fails ends
102
+ * the iteration with its error.
103
+ */
104
+ allProjectBillingInfos(request: ListProjectBillingInfoRequest, options?: CallOptions): AsyncGenerator<ProjectBillingInfo, void, undefined>;
105
+ /** Returns a country a billing address may be in. */
106
+ getBillingCountry(request: GetBillingCountryRequest, options?: CallOptions): Promise<BillingCountry>;
107
+ /**
108
+ * Lists the countries a billing address may be in, in the order a form
109
+ * shows them, and whether each needs a VAT id.
110
+ */
111
+ listBillingCountries(request: ListBillingCountriesRequest, options?: CallOptions): Promise<ListBillingCountriesResponse>;
112
+ /**
113
+ * Iterates over everything listBillingCountries lists from the request's page on,
114
+ * fetching the next page as the loop reaches it. A page that fails ends
115
+ * the iteration with its error.
116
+ */
117
+ allBillingCountries(request: ListBillingCountriesRequest, options?: CallOptions): AsyncGenerator<BillingCountry, void, undefined>;
118
+ }
119
+ /**
120
+ * An organization's billing account: who invoices are issued to, and how
121
+ * its projects' usage is paid.
122
+ */
123
+ export interface BillingAccount {
124
+ /** The billing account's resource name. */
125
+ name?: string;
126
+ /**
127
+ * The billing account's URN, the identifier access policies and the audit
128
+ * log use.
129
+ */
130
+ urn?: string;
131
+ /**
132
+ * The name the console and spend-limit alerts show. Not empty. An
133
+ * organization's default account is called `default` until it is
134
+ * renamed.
135
+ */
136
+ displayName?: string;
137
+ /**
138
+ * Whether this is the organization's default billing account: the one
139
+ * its new projects are linked to. Every organization has exactly one,
140
+ * and it can't be deleted.
141
+ */
142
+ defaultAccount?: boolean;
143
+ /**
144
+ * The postal address invoices are issued to. Required to create an
145
+ * account; unset only on an organization's default account until its
146
+ * profile is set.
147
+ */
148
+ billingAddress?: BillingAddress;
149
+ /**
150
+ * Where invoices are sent. Required to create an account; empty only on
151
+ * an organization's default account until its profile is set.
152
+ */
153
+ invoiceEmail?: string;
154
+ /**
155
+ * The VAT identification number invoices name; empty for none. Required
156
+ * for a billing address outside Germany.
157
+ */
158
+ vatId?: string;
159
+ /**
160
+ * Who invoices are addressed to. Required to create an account; empty
161
+ * only on an organization's default account until its profile is set.
162
+ */
163
+ contactPerson?: string;
164
+ /** How the account is paid. */
165
+ paymentMethod?: PaymentMethod;
166
+ /** When the billing account was created. */
167
+ createTime?: string;
168
+ /**
169
+ * The principal that created the billing account, such as `user:<id>` or
170
+ * `service_account:<id>`.
171
+ */
172
+ creator?: string;
173
+ }
174
+ /** A postal address invoices are issued to. Every field is required. */
175
+ export interface BillingAddress {
176
+ /** The street and house number. */
177
+ street?: string;
178
+ /** The city. */
179
+ city?: string;
180
+ /** The postal code. */
181
+ postalCode?: string;
182
+ /**
183
+ * The country, as the ISO 3166-1 alpha-2 code of one of the countries
184
+ * ListBillingCountries lists, such as `DE`.
185
+ */
186
+ regionCode?: string;
187
+ }
188
+ /**
189
+ * How a billing account is paid. Only the payment method's kind and the
190
+ * last digits of a card are shown; the payment details themselves stay
191
+ * with the payment provider.
192
+ */
193
+ export interface PaymentMethod {
194
+ /** Whether the account can pay for usage. */
195
+ state?: PaymentMethod_State;
196
+ /**
197
+ * The verified card's brand, such as `visa`; empty while no payment
198
+ * method is verified, and for one that isn't a card.
199
+ */
200
+ cardBrand?: string;
201
+ /**
202
+ * The verified card's last four digits; empty while no payment method is
203
+ * verified, and for one that isn't a card.
204
+ */
205
+ cardLast4?: string;
206
+ }
207
+ /** Whether the account can pay for usage. */
208
+ export declare const PaymentMethod_State: {
209
+ /** Not set. */
210
+ readonly STATE_UNSPECIFIED: "STATE_UNSPECIFIED";
211
+ /**
212
+ * No verified payment method: the projects linked to the account can't
213
+ * create billable resources until one is added with
214
+ * StartPaymentMethodSetup and ConfirmPaymentMethodSetup.
215
+ */
216
+ readonly MISSING: "MISSING";
217
+ /** A payment method is verified, and billable resources can be created. */
218
+ readonly VERIFIED: "VERIFIED";
219
+ /**
220
+ * The account is invoiced by arrangement with the platform's operator:
221
+ * it needs no payment method, and the setup methods are refused.
222
+ */
223
+ readonly NOT_REQUIRED: "NOT_REQUIRED";
224
+ };
225
+ /** Whether the account can pay for usage. */
226
+ export type PaymentMethod_State = (typeof PaymentMethod_State)[keyof typeof PaymentMethod_State];
227
+ /** Which billing account pays for a project. */
228
+ export interface ProjectBillingInfo {
229
+ /** The billing info's resource name, `projects/{project}/billingInfo`. */
230
+ name?: string;
231
+ /**
232
+ * The billing account that pays for the project's usage, one of its
233
+ * organization's.
234
+ */
235
+ billingAccount?: string;
236
+ }
237
+ /** A country a billing address may be in. */
238
+ export interface BillingCountry {
239
+ /** The country's resource name, `billingCountries/{code}`. */
240
+ name?: string;
241
+ /**
242
+ * The ISO 3166-1 alpha-2 code a billing address names it by, such as
243
+ * `DE`.
244
+ */
245
+ regionCode?: string;
246
+ /** The country's name in English. */
247
+ displayName?: string;
248
+ /**
249
+ * Whether a billing account with an address in this country needs a
250
+ * `vatId`. Customers in every country but Germany are invoiced without
251
+ * VAT, as businesses under the reverse-charge rule, which needs one.
252
+ */
253
+ vatIdRequired?: boolean;
254
+ }
255
+ /** The request for GetBillingAccount. */
256
+ export interface GetBillingAccountRequest {
257
+ /** The billing account to return. */
258
+ name?: string;
259
+ }
260
+ /** The request for ListBillingAccounts. */
261
+ export interface ListBillingAccountsRequest {
262
+ /**
263
+ * The organization whose billing accounts to list,
264
+ * `organizations/{organization}`.
265
+ */
266
+ parent?: string;
267
+ /**
268
+ * The most billing accounts to return; the server clamps it, and 0 means
269
+ * its default.
270
+ */
271
+ pageSize?: number;
272
+ /** A previous response's `nextPageToken`, for the page after it. */
273
+ pageToken?: string;
274
+ }
275
+ /** The response for ListBillingAccounts. */
276
+ export interface ListBillingAccountsResponse {
277
+ /** The billing accounts on this page. */
278
+ billingAccounts?: BillingAccount[];
279
+ /** The token for the next page; empty on the last one. */
280
+ nextPageToken?: string;
281
+ }
282
+ /** The request for CreateBillingAccount. */
283
+ export interface CreateBillingAccountRequest {
284
+ /**
285
+ * The organization to create the billing account in,
286
+ * `organizations/{organization}`.
287
+ */
288
+ parent?: string;
289
+ /** The billing account to create: its `displayName` and profile. */
290
+ billingAccount?: BillingAccount;
291
+ /**
292
+ * A UUID; a repeat with the same id returns the billing account the first
293
+ * request created instead of creating a second one.
294
+ */
295
+ requestId?: string;
296
+ }
297
+ /** The request for UpdateBillingAccount. */
298
+ export interface UpdateBillingAccountRequest {
299
+ /** The billing account, by its name, with the fields to change. */
300
+ billingAccount?: BillingAccount;
301
+ /**
302
+ * The fields to change: `displayName`, `billingAddress`,
303
+ * `invoiceEmail`, `vatId` and `contactPerson`. `*` is every one of
304
+ * them.
305
+ */
306
+ updateMask?: string;
307
+ }
308
+ /** The request for DeleteBillingAccount. */
309
+ export interface DeleteBillingAccountRequest {
310
+ /** The billing account to delete. */
311
+ name?: string;
312
+ }
313
+ /** The request for StartPaymentMethodSetup. */
314
+ export interface StartPaymentMethodSetupRequest {
315
+ /** The billing account to add a payment method to. */
316
+ name?: string;
317
+ }
318
+ /** The response for StartPaymentMethodSetup. */
319
+ export interface StartPaymentMethodSetupResponse {
320
+ /**
321
+ * The payment provider's page to open in a browser, where the payment
322
+ * details are entered. It returns to the console when done.
323
+ */
324
+ redirectUri?: string;
325
+ }
326
+ /** The request for ConfirmPaymentMethodSetup. */
327
+ export interface ConfirmPaymentMethodSetupRequest {
328
+ /** The billing account whose setup to complete. */
329
+ name?: string;
330
+ }
331
+ /** The request for GetProjectBillingInfo. */
332
+ export interface GetProjectBillingInfoRequest {
333
+ /** The billing info to return, `projects/{project}/billingInfo`. */
334
+ name?: string;
335
+ }
336
+ /** The request for UpdateProjectBillingInfo. */
337
+ export interface UpdateProjectBillingInfoRequest {
338
+ /** The billing info, by its name, with the billing account to link. */
339
+ projectBillingInfo?: ProjectBillingInfo;
340
+ /** The fields to change: `billingAccount`. `*` is the same. */
341
+ updateMask?: string;
342
+ }
343
+ /** The request for ListProjectBillingInfo. */
344
+ export interface ListProjectBillingInfoRequest {
345
+ /** The billing account whose projects to list. */
346
+ name?: string;
347
+ /**
348
+ * The most projects to return; the server clamps it, and 0 means its
349
+ * default.
350
+ */
351
+ pageSize?: number;
352
+ /** A previous response's `nextPageToken`, for the page after it. */
353
+ pageToken?: string;
354
+ }
355
+ /** The response for ListProjectBillingInfo. */
356
+ export interface ListProjectBillingInfoResponse {
357
+ /** The billing info of each project on this page. */
358
+ projectBillingInfos?: ProjectBillingInfo[];
359
+ /** The token for the next page; empty on the last one. */
360
+ nextPageToken?: string;
361
+ }
362
+ /** The request for GetBillingCountry. */
363
+ export interface GetBillingCountryRequest {
364
+ /**
365
+ * The country to return, `billingCountries/{code}`, such as
366
+ * `billingCountries/DE`.
367
+ */
368
+ name?: string;
369
+ }
370
+ /** The request for ListBillingCountries. */
371
+ export interface ListBillingCountriesRequest {
372
+ /**
373
+ * The most countries to return; the server clamps it, and 0 means its
374
+ * default.
375
+ */
376
+ pageSize?: number;
377
+ /** A previous response's `nextPageToken`, for the page after it. */
378
+ pageToken?: string;
379
+ }
380
+ /** The response for ListBillingCountries. */
381
+ export interface ListBillingCountriesResponse {
382
+ /** The countries on this page. */
383
+ billingCountries?: BillingCountry[];
384
+ /** The token for the next page; empty on the last one. */
385
+ nextPageToken?: string;
386
+ }
387
+ //# sourceMappingURL=billing_account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing_account.d.ts","sourceRoot":"","sources":["../../src/v1beta1/billing_account.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,OAAO,EAIb,MAAM,mBAAmB,CAAC;AAE3B;;;;GAIG;AACH,qBAAa,oBAAoB;IAC/B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,+EAA+E;gBACnE,MAAM,EAAE,MAAM;IAI1B;;;OAGG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC;IAa1G;;;OAGG;IACG,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,EA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