예제 #1
0
            public override IEnumerable <KeyValuePair <string, string> > GetFields(IJsonParser jsonParser)
            {
                yield return(new KeyValuePair <string, string>("device_info", device_info));

                yield return(new KeyValuePair <string, string>("body", body));

                yield return(new KeyValuePair <string, string>("detail", detail?.goods_detail?.Length > 0 ? jsonParser.ToString(detail) : null));

                yield return(new KeyValuePair <string, string>("attach", attach));

                yield return(new KeyValuePair <string, string>("out_trade_no", out_trade_no));

                yield return(new KeyValuePair <string, string>("fee_type", fee_type.Code));

                yield return(new KeyValuePair <string, string>("total_fee", total_fee.ToString("D")));

                yield return(new KeyValuePair <string, string>("spbill_create_ip", spbill_create_ip));

                yield return(new KeyValuePair <string, string>("time_start", time_start.ToString("yyyy-MM-dd")));

                yield return(new KeyValuePair <string, string>("time_expire", time_expire.ToString("yyyy-MM-dd")));

                yield return(new KeyValuePair <string, string>("goods_tag", goods_tag));

                yield return(new KeyValuePair <string, string>("notify_url", notify_url));

                yield return(new KeyValuePair <string, string>("trade_type", trade_type.ToString("g")));

                yield return(new KeyValuePair <string, string>("product_id", product_id));

                yield return(new KeyValuePair <string, string>("limit_pay", limit_pay?.ToString("g")));

                yield return(new KeyValuePair <string, string>("openid", openid));

                yield return(new KeyValuePair <string, string>("sub_openid", sub_openid));
            }
예제 #2
0
            public override IEnumerable <KeyValuePair <string, string> > GetFields(IJsonParser jsonParser)
            {
                yield return(new KeyValuePair <string, string>("device_info", device_info));

                yield return(new KeyValuePair <string, string>("body", body));

                yield return(new KeyValuePair <string, string>("detail", detail?.goods_detail?.Length > 0 ? jsonParser.ToString(detail) : null));

                yield return(new KeyValuePair <string, string>("attach", attach));

                yield return(new KeyValuePair <string, string>("out_trade_no", out_trade_no));

                yield return(new KeyValuePair <string, string>("fee_type", fee_type.Code));

                yield return(new KeyValuePair <string, string>("total_fee", total_fee.ToString("D")));

                yield return(new KeyValuePair <string, string>("spbill_create_ip", spbill_create_ip));

                yield return(new KeyValuePair <string, string>("goods_tag", goods_tag));

                yield return(new KeyValuePair <string, string>("auth_code", auth_code));
            }