Skip to content

Commit ecac45b

Browse files
committed
Generate BinLookup
1 parent 0bef5d3 commit ecac45b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/services/binLookup/binLookupApi.ts

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

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

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

5656
/**
@@ -63,14 +63,14 @@ export class BinLookupApi extends Service {
6363
const endpoint = `${this.baseUrl}/getCostEstimate`;
6464
const resource = new Resource(this, endpoint);
6565

66-
const request: CostEstimateRequest = ObjectSerializer.serialize(costEstimateRequest, "CostEstimateRequest", "");
66+
const request: CostEstimateRequest = ObjectSerializer.serialize(costEstimateRequest, "CostEstimateRequest");
6767
const response = await getJsonResponse<CostEstimateRequest, CostEstimateResponse>(
6868
resource,
6969
request,
7070
{ ...requestOptions, method: "POST" }
7171
);
7272

73-
return ObjectSerializer.deserialize(response, "CostEstimateResponse", "");
73+
return ObjectSerializer.deserialize(response, "CostEstimateResponse");
7474
}
7575

7676
}

src/typings/binLookup/objectSerializer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ export class ObjectSerializer {
154154
*
155155
* @param data - The value to serialize.
156156
* @param type - The expected type name as a string.
157-
* @param format - Format hint (e.g. "date" or "date-time").
157+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
158158
* @returns A JSON-compatible representation of `data`.
159159
*/
160-
public static serialize(data: any, type: string, format: string): any {
160+
public static serialize(data: any, type: string, format: string = ""): any {
161161
if (data == undefined) {
162162
return data;
163163
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
@@ -234,10 +234,10 @@ export class ObjectSerializer {
234234
*
235235
* @param data - The raw input to deserialize.
236236
* @param type - The expected type name as a string.
237-
* @param format - Format hint (e.g. "date" or "date-time").
237+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
238238
* @returns A deserialized instance or value of `data`.
239239
*/
240-
public static deserialize(data: any, type: string, format: string): any {
240+
public static deserialize(data: any, type: string, format: string = ""): any {
241241
// polymorphism may change the actual type.
242242
type = ObjectSerializer.findCorrectType(data, type);
243243
if (data == undefined) {

0 commit comments

Comments
 (0)