UNPKG

wallee

Version:
40 lines (39 loc) 1.77 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfExpressCheckoutShippingOption = instanceOfExpressCheckoutShippingOption; exports.ExpressCheckoutShippingOptionFromJSON = ExpressCheckoutShippingOptionFromJSON; exports.ExpressCheckoutShippingOptionFromJSONTyped = ExpressCheckoutShippingOptionFromJSONTyped; exports.ExpressCheckoutShippingOptionToJSON = ExpressCheckoutShippingOptionToJSON; exports.ExpressCheckoutShippingOptionToJSONTyped = ExpressCheckoutShippingOptionToJSONTyped; /** * Check if a given object implements the ExpressCheckoutShippingOption interface. */ function instanceOfExpressCheckoutShippingOption(value) { return true; } function ExpressCheckoutShippingOptionFromJSON(json) { return ExpressCheckoutShippingOptionFromJSONTyped(json, false); } function ExpressCheckoutShippingOptionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'amount': json['amount'] == null ? undefined : json['amount'], 'description': json['description'] == null ? undefined : json['description'], 'currency': json['currency'] == null ? undefined : json['currency'], 'id': json['id'] == null ? undefined : json['id'], 'label': json['label'] == null ? undefined : json['label'], 'taxAmount': json['taxAmount'] == null ? undefined : json['taxAmount'], 'selected': json['selected'] == null ? undefined : json['selected'], }; } function ExpressCheckoutShippingOptionToJSON(json) { return ExpressCheckoutShippingOptionToJSONTyped(json, false); } function ExpressCheckoutShippingOptionToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }