@scaleway/sdk-billing 2.20.3 → 2.21.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/dist/v2/api.gen.js +32 -8
- package/package.json +1 -1
package/dist/v2/api.gen.js
CHANGED
|
@@ -25,14 +25,20 @@ var API$1 = class extends API {
|
|
|
25
25
|
}, unmarshalBudget);
|
|
26
26
|
this.createBudget = (request, options) => this.client.fetch({
|
|
27
27
|
body: JSON.stringify(marshalCreateBudgetRequest(request, this.client.settings)),
|
|
28
|
-
headers:
|
|
28
|
+
headers: {
|
|
29
|
+
...jsonContentHeaders,
|
|
30
|
+
...options?.headers
|
|
31
|
+
},
|
|
29
32
|
method: "POST",
|
|
30
33
|
path: `/billing/v2/budgets`,
|
|
31
34
|
signal: options?.signal
|
|
32
35
|
}, unmarshalBudget);
|
|
33
36
|
this.updateBudget = (request, options) => this.client.fetch({
|
|
34
37
|
body: JSON.stringify(marshalUpdateBudgetRequest(request, this.client.settings)),
|
|
35
|
-
headers:
|
|
38
|
+
headers: {
|
|
39
|
+
...jsonContentHeaders,
|
|
40
|
+
...options?.headers
|
|
41
|
+
},
|
|
36
42
|
method: "PATCH",
|
|
37
43
|
path: `/billing/v2/budgets/${validatePathParam("budgetId", request.budgetId)}`,
|
|
38
44
|
signal: options?.signal
|
|
@@ -44,14 +50,20 @@ var API$1 = class extends API {
|
|
|
44
50
|
});
|
|
45
51
|
this.createBudgetAlert = (request, options) => this.client.fetch({
|
|
46
52
|
body: JSON.stringify(marshalCreateBudgetAlertRequest(request, this.client.settings)),
|
|
47
|
-
headers:
|
|
53
|
+
headers: {
|
|
54
|
+
...jsonContentHeaders,
|
|
55
|
+
...options?.headers
|
|
56
|
+
},
|
|
48
57
|
method: "POST",
|
|
49
58
|
path: `/billing/v2/budget-alerts`,
|
|
50
59
|
signal: options?.signal
|
|
51
60
|
}, unmarshalBudgetAlert);
|
|
52
61
|
this.updateBudgetAlert = (request, options) => this.client.fetch({
|
|
53
62
|
body: JSON.stringify(marshalUpdateBudgetAlertRequest(request, this.client.settings)),
|
|
54
|
-
headers:
|
|
63
|
+
headers: {
|
|
64
|
+
...jsonContentHeaders,
|
|
65
|
+
...options?.headers
|
|
66
|
+
},
|
|
55
67
|
method: "PATCH",
|
|
56
68
|
path: `/billing/v2/budget-alerts/${validatePathParam("budgetAlertId", request.budgetAlertId)}`,
|
|
57
69
|
signal: options?.signal
|
|
@@ -63,14 +75,20 @@ var API$1 = class extends API {
|
|
|
63
75
|
});
|
|
64
76
|
this.createBudgetAlertNotification = (request, options) => this.client.fetch({
|
|
65
77
|
body: JSON.stringify(marshalCreateBudgetAlertNotificationRequest(request, this.client.settings)),
|
|
66
|
-
headers:
|
|
78
|
+
headers: {
|
|
79
|
+
...jsonContentHeaders,
|
|
80
|
+
...options?.headers
|
|
81
|
+
},
|
|
67
82
|
method: "POST",
|
|
68
83
|
path: `/billing/v2/budget-alert-notifications`,
|
|
69
84
|
signal: options?.signal
|
|
70
85
|
}, unmarshalBudgetAlertNotification);
|
|
71
86
|
this.updateBudgetAlertNotification = (request, options) => this.client.fetch({
|
|
72
87
|
body: JSON.stringify(marshalUpdateBudgetAlertNotificationRequest(request, this.client.settings)),
|
|
73
|
-
headers:
|
|
88
|
+
headers: {
|
|
89
|
+
...jsonContentHeaders,
|
|
90
|
+
...options?.headers
|
|
91
|
+
},
|
|
74
92
|
method: "PATCH",
|
|
75
93
|
path: `/billing/v2/budget-alert-notifications/${validatePathParam("budgetAlertNotificationId", request.budgetAlertNotificationId)}`,
|
|
76
94
|
signal: options?.signal
|
|
@@ -104,14 +122,20 @@ var ElectronicBillingAPI = class extends API {
|
|
|
104
122
|
}, unmarshalElectronicAddress);
|
|
105
123
|
this.createElectronicAddress = (request, options) => this.client.fetch({
|
|
106
124
|
body: JSON.stringify(marshalElectronicBillingApiCreateElectronicAddressRequest(request, this.client.settings)),
|
|
107
|
-
headers:
|
|
125
|
+
headers: {
|
|
126
|
+
...jsonContentHeaders,
|
|
127
|
+
...options?.headers
|
|
128
|
+
},
|
|
108
129
|
method: "POST",
|
|
109
130
|
path: `/billing/v2/electronic-address`,
|
|
110
131
|
signal: options?.signal
|
|
111
132
|
}, unmarshalElectronicAddress);
|
|
112
133
|
this.updateElectronicAddress = (request, options) => this.client.fetch({
|
|
113
134
|
body: JSON.stringify(marshalElectronicBillingApiUpdateElectronicAddressRequest(request, this.client.settings)),
|
|
114
|
-
headers:
|
|
135
|
+
headers: {
|
|
136
|
+
...jsonContentHeaders,
|
|
137
|
+
...options?.headers
|
|
138
|
+
},
|
|
115
139
|
method: "PATCH",
|
|
116
140
|
path: `/billing/v2/electronic-address/${validatePathParam("electronicAddressId", request.electronicAddressId)}`,
|
|
117
141
|
signal: options?.signal
|