-
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.
- Loading branch information
Showing
8 changed files
with
232 additions
and
9 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,83 @@ | ||
/* 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 { SetupIntentResponseData } from "./SetupIntentResponseData"; | ||
import { | ||
SetupIntentResponseDataFromJSON, | ||
SetupIntentResponseDataFromJSONTyped, | ||
SetupIntentResponseDataToJSON, | ||
} from "./SetupIntentResponseData"; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface GetSetupIntentResponse | ||
*/ | ||
export interface GetSetupIntentResponse { | ||
/** | ||
* | ||
* @type {SetupIntentResponseData} | ||
* @memberof GetSetupIntentResponse | ||
*/ | ||
data: SetupIntentResponseData; | ||
/** | ||
* Input parameters | ||
* @type {object} | ||
* @memberof GetSetupIntentResponse | ||
*/ | ||
params: object; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the GetSetupIntentResponse interface. | ||
*/ | ||
export function instanceOfGetSetupIntentResponse( | ||
value: object, | ||
): value is GetSetupIntentResponse { | ||
if (!("data" in value) || value["data"] === undefined) return false; | ||
if (!("params" in value) || value["params"] === undefined) return false; | ||
return true; | ||
} | ||
|
||
export function GetSetupIntentResponseFromJSON( | ||
json: any, | ||
): GetSetupIntentResponse { | ||
return GetSetupIntentResponseFromJSONTyped(json, false); | ||
} | ||
|
||
export function GetSetupIntentResponseFromJSONTyped( | ||
json: any, | ||
ignoreDiscriminator: boolean, | ||
): GetSetupIntentResponse { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
data: SetupIntentResponseDataFromJSON(json["data"]), | ||
params: json["params"], | ||
}; | ||
} | ||
|
||
export function GetSetupIntentResponseToJSON( | ||
value?: GetSetupIntentResponse | null, | ||
): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
data: SetupIntentResponseDataToJSON(value["data"]), | ||
params: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* 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"; | ||
/** | ||
* The returned resource | ||
* @export | ||
* @interface SetupIntentResponseData | ||
*/ | ||
export interface SetupIntentResponseData { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof SetupIntentResponseData | ||
*/ | ||
publishableKey: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof SetupIntentResponseData | ||
*/ | ||
setupIntentClientSecret?: string | null; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the SetupIntentResponseData interface. | ||
*/ | ||
export function instanceOfSetupIntentResponseData( | ||
value: object, | ||
): value is SetupIntentResponseData { | ||
if (!("publishableKey" in value) || value["publishableKey"] === undefined) | ||
return false; | ||
return true; | ||
} | ||
|
||
export function SetupIntentResponseDataFromJSON( | ||
json: any, | ||
): SetupIntentResponseData { | ||
return SetupIntentResponseDataFromJSONTyped(json, false); | ||
} | ||
|
||
export function SetupIntentResponseDataFromJSONTyped( | ||
json: any, | ||
ignoreDiscriminator: boolean, | ||
): SetupIntentResponseData { | ||
if (json == null) { | ||
return json; | ||
} | ||
return { | ||
publishableKey: json["publishable_key"], | ||
setupIntentClientSecret: | ||
json["setup_intent_client_secret"] == null | ||
? undefined | ||
: json["setup_intent_client_secret"], | ||
}; | ||
} | ||
|
||
export function SetupIntentResponseDataToJSON( | ||
value?: SetupIntentResponseData | null, | ||
): any { | ||
if (value == null) { | ||
return value; | ||
} | ||
return { | ||
publishable_key: value["publishableKey"], | ||
setup_intent_client_secret: value["setupIntentClientSecret"], | ||
}; | ||
} |
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