wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.79 kB
JavaScript
/**
* Check if a given object implements the PaymentAppCompletionConfigurationCreate interface.
*/
export function instanceOfPaymentAppCompletionConfigurationCreate(value) {
return true;
}
export function PaymentAppCompletionConfigurationCreateFromJSON(json) {
return PaymentAppCompletionConfigurationCreateFromJSONTyped(json, false);
}
export function PaymentAppCompletionConfigurationCreateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'multipleCompletionsSupported': json['multipleCompletionsSupported'] == null ? undefined : json['multipleCompletionsSupported'],
'maximalCompletionDelayInDays': json['maximalCompletionDelayInDays'] == null ? undefined : json['maximalCompletionDelayInDays'],
'completionEndpoint': json['completionEndpoint'] == null ? undefined : json['completionEndpoint'],
'completionTimeoutInMinutes': json['completionTimeoutInMinutes'] == null ? undefined : json['completionTimeoutInMinutes'],
'voidEndpoint': json['voidEndpoint'] == null ? undefined : json['voidEndpoint'],
};
}
export function PaymentAppCompletionConfigurationCreateToJSON(json) {
return PaymentAppCompletionConfigurationCreateToJSONTyped(json, false);
}
export function PaymentAppCompletionConfigurationCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'multipleCompletionsSupported': value['multipleCompletionsSupported'],
'maximalCompletionDelayInDays': value['maximalCompletionDelayInDays'],
'completionEndpoint': value['completionEndpoint'],
'completionTimeoutInMinutes': value['completionTimeoutInMinutes'],
'voidEndpoint': value['voidEndpoint'],
};
}