internal static Refund CreateRefund(int transactionId) { var result = new Refund { PartnerID = "P123", DeviceID = "D1234", RefundDetails = new RefundDetails() { TotalAmount = 100, InvoiceNumber = "Inv 21540", InvoiceDescription = "Individual Invoice Description", InvoiceReference = "513456", CurrencyCode = "AUD", OriginalTransactionID = transactionId }, Customer = CreateCustomer(), ShippingDetails = new ShippingDetails() { ShippingMethod = ShippingMethod.NextDay, FirstName = "John", LastName = "Smith", Phone = "09 889 0986", ShippingAddress = new Address() { Street1 = "Level 5", Street2 = "369 Queen Street", City = "Sydney", State = "NSW", Country = "au", PostalCode = "2000" } }, LineItems = new List <LineItem>() { new LineItem() { SKU = "12345678901234567890", Description = "Item Description 1", Quantity = 1, UnitCost = 400, Tax = 100, Total = 500 }, new LineItem() { SKU = "123456789012", Description = "Item Description 2", Quantity = 1, UnitCost = 400, Tax = 100, Total = 500 } }, Options = new List <string>() { "Option1", "Option2" } }; result.Customer.CardDetails = new CardDetails() { ExpiryMonth = "12", ExpiryYear = "25" }; return(result); }
internal static Refund CreateRefund(int transactionId) { var result = new Refund { PartnerID = "P123", DeviceID = "D1234", RefundDetails = new RefundDetails() { TotalAmount = 100, InvoiceNumber = "Inv 21540", InvoiceDescription = "Individual Invoice Description", InvoiceReference = "513456", CurrencyCode = "AUD", OriginalTransactionID = transactionId }, Customer = CreateCustomer(), ShippingDetails = new ShippingDetails() { ShippingMethod = ShippingMethod.NextDay, FirstName = "John", LastName = "Smith", Phone = "09 889 0986", ShippingAddress = new Address() { Street1 = "Level 5", Street2 = "369 Queen Street", City = "Sydney", State = "NSW", Country = "au", PostalCode = "2000" } }, LineItems = new List<LineItem>() { new LineItem() { SKU = "12345678901234567890", Description = "Item Description 1", Quantity = 1, UnitCost = 400, Tax = 100, Total = 500 }, new LineItem() { SKU = "123456789012", Description = "Item Description 2", Quantity = 1, UnitCost = 400, Tax = 100, Total = 500 } }, Options = new List<string>() { "Option1", "Option2" } }; result.Customer.CardDetails = new CardDetails() { ExpiryMonth = "12", ExpiryYear = "25" }; return result; }