UNPKG

wallee

Version:
29 lines (28 loc) 1.1 kB
/** * Check if a given object implements the PaymentAppRefundConfiguration interface. */ export function instanceOfPaymentAppRefundConfiguration(value) { return true; } export function PaymentAppRefundConfigurationFromJSON(json) { return PaymentAppRefundConfigurationFromJSONTyped(json, false); } export function PaymentAppRefundConfigurationFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'refundTimeoutInMinutes': json['refundTimeoutInMinutes'] == null ? undefined : json['refundTimeoutInMinutes'], 'multipleRefundsSupported': json['multipleRefundsSupported'] == null ? undefined : json['multipleRefundsSupported'], 'refundEndpoint': json['refundEndpoint'] == null ? undefined : json['refundEndpoint'], }; } export function PaymentAppRefundConfigurationToJSON(json) { return PaymentAppRefundConfigurationToJSONTyped(json, false); } export function PaymentAppRefundConfigurationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }