12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using Com.Alipay.Model;
- using System;
- using System.Collections.Generic;
- using System.Web;
- // using System.Web.Script.Serialization;
- namespace Com.Alipay.Domain
- {
- /// <summary>
- /// AlipayTradePayContentBuilder 的摘要说明
- /// </summary>
- public class AlipayTradePayContentBuilder : JsonBuilder
- {
- public string out_trade_no {get;set;}
- public string seller_id {get;set;}
- public string total_amount { get; set; }
- public string discountable_amount { get; set; }
- public string undiscountable_amount { get; set; }
- public string subject { get; set; }
- public string body { get; set; }
- public List<GoodsInfo> goods_detail{get;set;}
- public string operator_id { get; set; }
- public string store_id { get; set; }
- public string terminal_id { get; set; }
- public ExtendParams extend_params;
- public string timeout_express { get; set; }
- public AlipayTradePayContentBuilder()
- {
- this.scene = "bar_code";
- }
- public string scene { get; set; }
- public string auth_code { get; set; }
- public override bool Validate()
- {
- if (String.IsNullOrEmpty(scene))
- {
- throw new NullReferenceException("scene should not be NULL!");
- }
- if (String.IsNullOrEmpty(auth_code))
- {
- throw new NullReferenceException("auth_code should not be NULL!");
- }
- return true;
- }
- }
- }
|