UNPKG

wallee

Version:
31 lines (30 loc) 1.39 kB
/** * Check if a given object implements the PaymentAppCompletionConfiguration interface. */ export function instanceOfPaymentAppCompletionConfiguration(value) { return true; } export function PaymentAppCompletionConfigurationFromJSON(json) { return PaymentAppCompletionConfigurationFromJSONTyped(json, false); } export function PaymentAppCompletionConfigurationFromJSONTyped(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 PaymentAppCompletionConfigurationToJSON(json) { return PaymentAppCompletionConfigurationToJSONTyped(json, false); } export function PaymentAppCompletionConfigurationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }