wallee
Version:
TypeScript/JavaScript client for wallee
33 lines (32 loc) • 1.34 kB
JavaScript
/**
* Check if a given object implements the PaymentAppRefundConfigurationCreate interface.
*/
export function instanceOfPaymentAppRefundConfigurationCreate(value) {
return true;
}
export function PaymentAppRefundConfigurationCreateFromJSON(json) {
return PaymentAppRefundConfigurationCreateFromJSONTyped(json, false);
}
export function PaymentAppRefundConfigurationCreateFromJSONTyped(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 PaymentAppRefundConfigurationCreateToJSON(json) {
return PaymentAppRefundConfigurationCreateToJSONTyped(json, false);
}
export function PaymentAppRefundConfigurationCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'refundTimeoutInMinutes': value['refundTimeoutInMinutes'],
'multipleRefundsSupported': value['multipleRefundsSupported'],
'refundEndpoint': value['refundEndpoint'],
};
}