/// <summary> /// Creates a new order request. /// </summary> /// <param name="merchantSettings">The settings and endpoints for this order to return on</param> /// <param name="cart">A cart object containing the order rows</param> /// <param name="locale">The locale for this order request.</param> /// <param name="currency">The currency for this orer request.</param> /// <param name="countryCode">The country code for this order request</param> /// <param name="clientOrderNumber">A order number to represent the order in the sending system. Can be updated in a ValidateCallbackResponse.</param> /// <param name="presetValues">Unknown. TODO</param> public Order( MerchantSettings merchantSettings, Cart cart, string locale, string currency, string countryCode, string clientOrderNumber, List <PresetValue> presetValues ) { MerchantSettings = merchantSettings; Cart = cart; Locale = locale; Currency = currency; CountryCode = countryCode; ClientOrderNumber = clientOrderNumber; PresetValues = presetValues; }
public Data( MerchantSettings merchantSettings, Cart cart, Gui gui, Customer customer, Address shippingAddress, Address billingAddress, string customerReference, string locale, string currency, string countryCode, string clientOrderNumber, List <PresetValue> presetValues, long orderId, CheckoutOrderStatus?status, string emailAddress, string phoneNumber, PaymentType?paymentType, bool?sveaWillBuyOrder) { MerchantSettings = merchantSettings; Cart = cart; Gui = gui; Customer = customer; ShippingAddress = shippingAddress; BillingAddress = billingAddress; CustomerReference = customerReference; Locale = locale; Currency = currency; CountryCode = countryCode; ClientOrderNumber = clientOrderNumber; PresetValues = presetValues; OrderId = orderId; Status = status; EmailAddress = emailAddress; PhoneNumber = phoneNumber; PaymentType = paymentType; SveaWillBuyOrder = sveaWillBuyOrder; }