-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* invoices update * openapi * use api for invoices
- Loading branch information
Showing
10 changed files
with
484 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Schematic API | ||
* Schematic API | ||
* | ||
* The version of the OpenAPI document: 0.1 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { mapValues } from "../runtime"; | ||
/** | ||
* Input parameters | ||
* @export | ||
* @interface ListInvoicesParams | ||
*/ | ||
export interface ListInvoicesParams { | ||
/** | ||
* Page limit (default 100) | ||
* @type {number} | ||
* @memberof ListInvoicesParams | ||
*/ | ||
limit?: number; | ||
/** | ||
* Page offset (default 0) | ||
* @type {number} | ||
* @memberof ListInvoicesParams | ||
*/ | ||
offset?: number; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the ListInvoicesParams interface. | ||
*/ | ||
export function instanceOfListInvoicesParams( | ||
value: object, | ||
): value is ListInvoicesParams { | ||
return true; | ||
} | ||
|
||
export function ListInvoicesParamsFromJSON(json: any): ListInvoicesParams { | ||
return ListInvoicesParamsFromJSONTyped(json, false); | ||
} | ||
|
||
export function ListInvoicesParamsFromJSONTyped( | ||
json: any, | ||
ignoreDiscriminator: boolean, | ||
): ListInvoicesParams { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
limit: json["limit"] == null ? undefined : json["limit"], | ||
offset: json["offset"] == null ? undefined : json["offset"], | ||
}; | ||
} | ||
|
||
export function ListInvoicesParamsToJSON( | ||
value?: ListInvoicesParams | null, | ||
): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
limit: value["limit"], | ||
offset: value["offset"], | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Schematic API | ||
* Schematic API | ||
* | ||
* The version of the OpenAPI document: 0.1 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { mapValues } from "../runtime"; | ||
import type { ListInvoicesParams } from "./ListInvoicesParams"; | ||
import { | ||
ListInvoicesParamsFromJSON, | ||
ListInvoicesParamsFromJSONTyped, | ||
ListInvoicesParamsToJSON, | ||
} from "./ListInvoicesParams"; | ||
import type { InvoiceResponseData } from "./InvoiceResponseData"; | ||
import { | ||
InvoiceResponseDataFromJSON, | ||
InvoiceResponseDataFromJSONTyped, | ||
InvoiceResponseDataToJSON, | ||
} from "./InvoiceResponseData"; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface ListInvoicesResponse | ||
*/ | ||
export interface ListInvoicesResponse { | ||
/** | ||
* The returned resources | ||
* @type {Array<InvoiceResponseData>} | ||
* @memberof ListInvoicesResponse | ||
*/ | ||
data: Array<InvoiceResponseData>; | ||
/** | ||
* | ||
* @type {ListInvoicesParams} | ||
* @memberof ListInvoicesResponse | ||
*/ | ||
params: ListInvoicesParams; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the ListInvoicesResponse interface. | ||
*/ | ||
export function instanceOfListInvoicesResponse( | ||
value: object, | ||
): value is ListInvoicesResponse { | ||
if (!("data" in value) || value["data"] === undefined) return false; | ||
if (!("params" in value) || value["params"] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function ListInvoicesResponseFromJSON(json: any): ListInvoicesResponse { | ||
return ListInvoicesResponseFromJSONTyped(json, false); | ||
} | ||
|
||
export function ListInvoicesResponseFromJSONTyped( | ||
json: any, | ||
ignoreDiscriminator: boolean, | ||
): ListInvoicesResponse { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
data: (json["data"] as Array<any>).map(InvoiceResponseDataFromJSON), | ||
params: ListInvoicesParamsFromJSON(json["params"]), | ||
}; | ||
} | ||
|
||
export function ListInvoicesResponseToJSON( | ||
value?: ListInvoicesResponse | null, | ||
): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
data: (value["data"] as Array<any>).map(InvoiceResponseDataToJSON), | ||
params: ListInvoicesParamsToJSON(value["params"]), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.