-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to 2.1.1 for issuance_type and disclaimers (#88)
- Loading branch information
Showing
7 changed files
with
101 additions
and
4 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,61 @@ | ||
/** | ||
* Patch API V2 | ||
* The core API used to integrate with Patch's service | ||
* | ||
* Contact: [email protected] | ||
*/ | ||
|
||
import ApiClient from '../ApiClient'; | ||
|
||
class Disclaimer { | ||
constructor(header, severity) { | ||
Disclaimer.initialize(this, header, severity); | ||
} | ||
|
||
static initialize(obj, header, severity) { | ||
obj['header'] = header; | ||
obj['severity'] = severity; | ||
} | ||
|
||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new Disclaimer(); | ||
|
||
if (data.hasOwnProperty('body')) { | ||
obj['body'] = ApiClient.convertToType(data['body'], 'String'); | ||
} | ||
|
||
if (data.hasOwnProperty('header')) { | ||
obj['header'] = ApiClient.convertToType(data['header'], 'String'); | ||
} | ||
|
||
if (data.hasOwnProperty('severity')) { | ||
obj['severity'] = ApiClient.convertToType(data['severity'], 'String'); | ||
} | ||
|
||
if (data.hasOwnProperty('link_text')) { | ||
obj['link_text'] = ApiClient.convertToType(data['link_text'], 'String'); | ||
} | ||
|
||
if (data.hasOwnProperty('link_destination')) { | ||
obj['link_destination'] = ApiClient.convertToType( | ||
data['link_destination'], | ||
'String' | ||
); | ||
} | ||
} | ||
return obj; | ||
} | ||
} | ||
|
||
Disclaimer.prototype['body'] = undefined; | ||
|
||
Disclaimer.prototype['header'] = undefined; | ||
|
||
Disclaimer.prototype['severity'] = undefined; | ||
|
||
Disclaimer.prototype['link_text'] = undefined; | ||
|
||
Disclaimer.prototype['link_destination'] = undefined; | ||
|
||
export default Disclaimer; |
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