Skip to content

Commit 020d916

Browse files
committed
Generate BalanceControl
1 parent 9ef4ccd commit 020d916

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/services/balanceControl/balanceControlApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ export class BalanceControlApi extends Service {
4343
const endpoint = `${this.baseUrl}/balanceTransfer`;
4444
const resource = new Resource(this, endpoint);
4545

46-
const request: BalanceTransferRequest = ObjectSerializer.serialize(balanceTransferRequest, "BalanceTransferRequest", "");
46+
const request: BalanceTransferRequest = ObjectSerializer.serialize(balanceTransferRequest, "BalanceTransferRequest");
4747
const response = await getJsonResponse<BalanceTransferRequest, BalanceTransferResponse>(
4848
resource,
4949
request,
5050
{ ...requestOptions, method: "POST" }
5151
);
5252

53-
return ObjectSerializer.deserialize(response, "BalanceTransferResponse", "");
53+
return ObjectSerializer.deserialize(response, "BalanceTransferResponse");
5454
}
5555

5656
}

src/typings/balanceControl/objectSerializer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ export class ObjectSerializer {
134134
*
135135
* @param data - The value to serialize.
136136
* @param type - The expected type name as a string.
137-
* @param format - Format hint (e.g. "date" or "date-time").
137+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
138138
* @returns A JSON-compatible representation of `data`.
139139
*/
140-
public static serialize(data: any, type: string, format: string): any {
140+
public static serialize(data: any, type: string, format: string = ""): any {
141141
if (data == undefined) {
142142
return data;
143143
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
@@ -214,10 +214,10 @@ export class ObjectSerializer {
214214
*
215215
* @param data - The raw input to deserialize.
216216
* @param type - The expected type name as a string.
217-
* @param format - Format hint (e.g. "date" or "date-time").
217+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
218218
* @returns A deserialized instance or value of `data`.
219219
*/
220-
public static deserialize(data: any, type: string, format: string): any {
220+
public static deserialize(data: any, type: string, format: string = ""): any {
221221
// polymorphism may change the actual type.
222222
type = ObjectSerializer.findCorrectType(data, type);
223223
if (data == undefined) {

0 commit comments

Comments
 (0)