developer:soap-1.4:methods:addproduct

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
developer:soap-1.4:methods:addproduct [2010/08/17 12:52]
irina
developer:soap-1.4:methods:addproduct [2010/09/07 12:10] (current)
irina
Line 80: Line 80:
  
 <code vb> <code vb>
 +Dim product As usaepay.Product = New usaepay.Product
 +        product.ProductID = "​0-13-508011-8"​
 +        product.SKU = "​135080118"​
 +        product.UPC = "​9780135080115"​
 +        product.Category = "​Books:​Math"​
  
 +        Dim inventory(0 To 1) As usaepay.ProductInventory
 +        inventory(0) = New usaepay.ProductInventory()
 +        inventory(0).InventoryLocation = "Los angeles"​
 +        inventory(0).QtyOnHand = "​10"​
 +        inventory(0).QtyOnOrder = "​5"​
 +        inventory(0).DateAvailable = "​2010-08-20"​
 +
 +        product.Inventory = inventory
 +
 +        Dim priceTier(0 To 1) As usaepay.PriceTier
 +        priceTier(0) = New usaepay.PriceTier()
 +        priceTier(0).Qty = "​2"​
 +        priceTier(0).Price = "​100"​
 +
 +        product.PriceTiers = priceTier
 +
 +        product.TaxClass = "​your_tax_class"​
 +        product.Enabled = True
 +        product.Name = "​Elementary Differential Equations"​
 +        product.Description = "​Rainville,​ Bedient and Bedient (Eight Edition)"​
 +        product.Weight = 1.0
 +        product.ShipWeight = 1.1
 +        product.Price = 112.0
 +        product.ListPrice = 128.0
 +        product.WholesalePrice = 100.0
 +        product.DateAvailable = "​2010-08-01"​
 +        product.Manufacturer = "​Prentice Hail"
 +        product.MinQuantity = "​0"​
 +
 +        Dim refNum As String
 +
 +        refNum = client.addProduct(token,​ product)
 +        MsgBox(refNum)
 </​code>​ </​code>​
  
developer/soap-1.4/methods/addproduct.txt ยท Last modified: 2010/09/07 12:10 by irina

Page Tools