类 PlaceOrderBuilder

java.lang.Object
net.linksfield.cube.partnersdk.sdk.modules.orders.PlaceOrderBuilder

public class PlaceOrderBuilder
extends Object
  • 方法详细资料

    • addItem

      public PlaceOrderBuilder addItem​(String id, int quantity, int price)
      Add a product that needs to be ordered
      参数:
      sku - Product code
      quantity - Quantity ordered
      price - Unit price
      返回:
      this
    • accounting

      public PlaceOrderBuilder accounting​(String currency, int payChannel)
      Add accounting information
      参数:
      currency - Currency code IOS | Enum: CNY
      payChannel - Enum: 1 - Postpaid billing
      返回:
      this
    • accounting

      public PlaceOrderBuilder accounting​(String currency, int payChannel, String couponId)
      Add accounting information
      参数:
      currency - Currency code IOS | Enum: CNY
      payChannel - Enum: 1 - Postpaid billing
      couponId - Coupon code
      返回:
      this
    • accounting

      public PlaceOrderBuilder accounting​(String currency, int payChannel, String couponId, Integer discount)
      Add accounting information
      参数:
      currency - Currency code IOS | Enum: CNY
      payChannel - Enum: 1 - Postpaid billing
      couponId - Coupon code
      discount - Discount | Example: 6% = 6
      返回:
      this
    • extra

      public PlaceOrderBuilder extra​(String po, String remark)
      Additional customer data
      参数:
      po - Customer system serial number
      remark - Remark
      返回:
      this
    • address

      public PlaceOrderBuilder address​(String country, String province, String city, String district, String town, String detail, String zip, String specialInstructions)
      Add shipping address information
      参数:
      country - Country
      province - Province
      city - City
      district - District
      town - Town
      detail - Full address
      zip - Zip code
      specialInstructions - Logistics extensions
      返回:
      this
    • address

      public PlaceOrderBuilder address​(String country, String province, String city, String detail)
      Add shipping address information
      参数:
      country - Country
      province - Province
      city - City
      detail - Full address
      返回:
      this
    • consignee

      public PlaceOrderBuilder consignee​(String name, String mobileNo)
      Add consignee information
      参数:
      name - Name or nickname
      mobileNo - Mobile phone number
      返回:
      this
    • consignee

      public PlaceOrderBuilder consignee​(String name, String telArea, String telCode, String mobileNo, String mobileArea, String email)
      Add consignee information
      参数:
      name - Name or nickname
      telArea - Telephone area code
      telCode - Landline phone number
      mobileNo - Mobile phone number
      mobileArea - Phone number country code
      email - Email
      返回:
      this
    • build

      public PlaceOrder build()