combine_interface.d.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. interface Ih5Info {
  2. type: string;
  3. app_name: string;
  4. app_url?: string;
  5. bundle_id?: string;
  6. package_name?: string;
  7. }
  8. interface IsceneInfoNative {
  9. device_id?: string;
  10. payer_client_ip: string;
  11. }
  12. interface IsceneInfoH5 {
  13. payer_client_ip: string;
  14. device_id: string;
  15. h5_info: Ih5Info;
  16. }
  17. interface Iamount {
  18. total_amount: number;
  19. currency: string;
  20. }
  21. interface IsettleInfo {
  22. profit_sharing?: boolean;
  23. subsidy_amount?: number;
  24. }
  25. interface IsubOrders {
  26. mchid: string;
  27. attach: string;
  28. amount: Iamount;
  29. out_trade_no: string;
  30. sub_mchid?: string;
  31. description: string;
  32. settle_info?: IsettleInfo;
  33. }
  34. interface IcombinePayerInfo {
  35. openid: string;
  36. }
  37. export interface IcombineH5 {
  38. combine_out_trade_no: string;
  39. scene_info: IsceneInfoH5;
  40. time_start?: string;
  41. time_expire?: string;
  42. notify_url: string;
  43. sub_orders: IsubOrders[];
  44. }
  45. export interface IcombineNative {
  46. combine_out_trade_no: string;
  47. scene_info: IsceneInfoNative;
  48. time_start?: string;
  49. time_expire?: string;
  50. notify_url: string;
  51. sub_orders: IsubOrders[];
  52. }
  53. export interface IcombineApp {
  54. combine_out_trade_no: string;
  55. scene_info: IsceneInfoNative;
  56. time_start?: string;
  57. time_expire?: string;
  58. notify_url: string;
  59. sub_orders: IsubOrders[];
  60. combine_payer_info?: IcombinePayerInfo;
  61. }
  62. export interface IcombineJsapi {
  63. combine_out_trade_no: string;
  64. scene_info: IsceneInfoNative;
  65. time_start?: string;
  66. time_expire?: string;
  67. notify_url: string;
  68. sub_orders: IsubOrders[];
  69. combine_payer_info: IcombinePayerInfo;
  70. }
  71. export interface IcloseSubOrders {
  72. mchid: string;
  73. out_trade_no: string;
  74. sub_mchid?: string;
  75. }
  76. export {};