-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated update by SDK Generator version:3.3.0 commit:2aee95e
- Loading branch information
1 parent
d4f3223
commit e8585d7
Showing
6 changed files
with
119 additions
and
0 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
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,36 @@ | ||
# Apideck.OrdersSort | ||
|
||
### Description | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
`by` | **string** | The field on which to sort the Orders | [optional] | ||
`direction` | [**SortDirection**](SortDirection.md) | | [optional] | ||
|
||
|
||
|
||
|
||
|
||
<a name="OrdersSortBy"></a> | ||
## Enum: OrdersSort.by | ||
|
||
|
||
* `created_at` (value: `'created_at'`) | ||
|
||
* `updated_at` (value: `'updated_at'`) | ||
|
||
* `name` (value: `'name'`) | ||
|
||
|
||
|
||
|
||
## Referenced Types: | ||
|
||
* [`SortDirection`](SortDirection.md) | ||
|
||
--- | ||
|
||
[[Back to top]](#) [[Back to API list]](../../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../../README.md) | ||
|
||
|
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,73 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Apideck | ||
* The Apideck OpenAPI Spec: SDK Optimized | ||
* | ||
* The version of the OpenAPI document: 10.4.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists } from '../runtime' | ||
import { SortDirection, SortDirectionFromJSON, SortDirectionToJSON } from './SortDirection' | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface OrdersSort | ||
*/ | ||
export interface OrdersSort { | ||
/** | ||
* The field on which to sort the Orders | ||
* @type {string} | ||
* @memberof OrdersSort | ||
*/ | ||
by?: OrdersSortBy | ||
/** | ||
* | ||
* @type {SortDirection} | ||
* @memberof OrdersSort | ||
*/ | ||
direction?: SortDirection | ||
} | ||
|
||
/** | ||
* @export | ||
* @enum {string} | ||
*/ | ||
export enum OrdersSortBy { | ||
created_at = 'created_at', | ||
updated_at = 'updated_at', | ||
name = 'name' | ||
} | ||
|
||
export function OrdersSortFromJSON(json: any): OrdersSort { | ||
return OrdersSortFromJSONTyped(json, false) | ||
} | ||
|
||
export function OrdersSortFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrdersSort { | ||
if (json === undefined || json === null) { | ||
return json | ||
} | ||
return { | ||
by: !exists(json, 'by') ? undefined : json['by'], | ||
direction: !exists(json, 'direction') ? undefined : SortDirectionFromJSON(json['direction']) | ||
} | ||
} | ||
|
||
export function OrdersSortToJSON(value?: OrdersSort | null): any { | ||
if (value === undefined) { | ||
return undefined | ||
} | ||
if (value === null) { | ||
return null | ||
} | ||
return { | ||
by: value.by, | ||
direction: SortDirectionToJSON(value.direction) | ||
} | ||
} |
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