-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPublicUpdateQRCodeRequest.ts
More file actions
97 lines (86 loc) · 2.98 KB
/
Copy pathPublicUpdateQRCodeRequest.ts
File metadata and controls
97 lines (86 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* tslint:disable */
/* eslint-disable */
/**
* Bitly API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 4.0.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 { mapValues } from '../runtime';
import type { QRCodeCustomizationsPublic } from './QRCodeCustomizationsPublic';
import {
QRCodeCustomizationsPublicFromJSON,
QRCodeCustomizationsPublicFromJSONTyped,
QRCodeCustomizationsPublicToJSON,
QRCodeCustomizationsPublicToJSONTyped,
} from './QRCodeCustomizationsPublic';
/**
* Customization and content values for a QR code created through the public API
* @export
* @interface PublicUpdateQRCodeRequest
*/
export interface PublicUpdateQRCodeRequest {
/**
*
* @type {string}
* @memberof PublicUpdateQRCodeRequest
*/
title?: string;
/**
*
* @type {QRCodeCustomizationsPublic}
* @memberof PublicUpdateQRCodeRequest
*/
render_customizations?: QRCodeCustomizationsPublic;
/**
* A boolean representing if the QR code has been archived
* @type {boolean}
* @memberof PublicUpdateQRCodeRequest
*/
archived?: boolean;
/**
* Coming soon
* @type {string}
* @memberof PublicUpdateQRCodeRequest
*/
expiration_at?: string;
}
/**
* Check if a given object implements the PublicUpdateQRCodeRequest interface.
*/
export function instanceOfPublicUpdateQRCodeRequest(value: object): value is PublicUpdateQRCodeRequest {
return true;
}
export function PublicUpdateQRCodeRequestFromJSON(json: any): PublicUpdateQRCodeRequest {
return PublicUpdateQRCodeRequestFromJSONTyped(json, false);
}
export function PublicUpdateQRCodeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicUpdateQRCodeRequest {
if (json == null) {
return json;
}
return {
'title': json['title'] == null ? undefined : json['title'],
'render_customizations': json['render_customizations'] == null ? undefined : QRCodeCustomizationsPublicFromJSON(json['render_customizations']),
'archived': json['archived'] == null ? undefined : json['archived'],
'expiration_at': json['expiration_at'] == null ? undefined : json['expiration_at'],
};
}
export function PublicUpdateQRCodeRequestToJSON(json: any): PublicUpdateQRCodeRequest {
return PublicUpdateQRCodeRequestToJSONTyped(json, false);
}
export function PublicUpdateQRCodeRequestToJSONTyped(value?: PublicUpdateQRCodeRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'title': value['title'],
'render_customizations': QRCodeCustomizationsPublicToJSON(value['render_customizations']),
'archived': value['archived'],
'expiration_at': value['expiration_at'],
};
}