public FedExShippingGatewayProvider(IGatewayProviderService gatewayProviderService, IGatewayProviderSettings gatewayProvider, IRuntimeCacheProvider runtimeCacheProvider) : base(gatewayProviderService, gatewayProvider, runtimeCacheProvider) { _settings = new FedExProcessorSettings(); _runtimeCache = runtimeCacheProvider; }
/// <summary> /// Saves the processor settings to an extended data collection /// </summary> /// <param name="extendedData">The <see cref="ExtendedDataCollection"/></param> /// <param name="processorSettings">The <see cref="FedExProcessorSettings"/> to be serialized and saved</param> public static void SaveProcessorSettings(this ExtendedDataCollection extendedData, FedExProcessorSettings processorSettings) { var settingsJson = JsonConvert.SerializeObject(processorSettings); extendedData.SetValue(Constants.ExtendedDataKeys.ProcessorSettings, settingsJson); }
public FedExShippingProcessor(FedExProcessorSettings settings) { _settings = settings; }