197 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			Dart
		
	
	
	
			
		
		
	
	
			197 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			Dart
		
	
	
	
| // This is a generated file - do not edit.
 | |
| //
 | |
| // Generated from wechat.proto.
 | |
| 
 | |
| // @dart = 3.3
 | |
| 
 | |
| // ignore_for_file: annotate_overrides, camel_case_types, comment_references
 | |
| // ignore_for_file: constant_identifier_names
 | |
| // ignore_for_file: curly_braces_in_flow_control_structures
 | |
| // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
 | |
| // ignore_for_file: non_constant_identifier_names
 | |
| 
 | |
| import 'dart:async' as $async;
 | |
| import 'dart:core' as $core;
 | |
| 
 | |
| import 'package:grpc/service_api.dart' as $grpc;
 | |
| import 'package:protobuf/protobuf.dart' as $pb;
 | |
| 
 | |
| import 'wechat.pb.dart' as $0;
 | |
| 
 | |
| export 'wechat.pb.dart';
 | |
| 
 | |
| @$pb.GrpcServiceName('wallet.Wechat')
 | |
| class WechatClient extends $grpc.Client {
 | |
|   /// The hostname for this service.
 | |
|   static const $core.String defaultHost = '';
 | |
| 
 | |
|   /// OAuth scopes needed for the client.
 | |
|   static const $core.List<$core.String> oauthScopes = [
 | |
|     '',
 | |
|   ];
 | |
| 
 | |
|   WechatClient(super.channel, {super.options, super.interceptors});
 | |
| 
 | |
|   /// 微信JSAPI下单
 | |
|   $grpc.ResponseFuture<$0.WxpayJSAPIPreOrderReply> jsapiPreOrder(
 | |
|     $0.WxpayJSAPIPreOrderRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$jsapiPreOrder, request, options: options);
 | |
|   }
 | |
| 
 | |
|   /// 微信APP支付下单
 | |
|   $grpc.ResponseFuture<$0.WxpayAppPreOrderReply> appPreOrder(
 | |
|     $0.WxpayAppPreOrderRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$appPreOrder, request, options: options);
 | |
|   }
 | |
| 
 | |
|   /// 微信native二维码支付下单
 | |
|   $grpc.ResponseFuture<$0.WxpayNativePreOrderReply> nativePreOrder(
 | |
|     $0.WxpayNativePreOrderRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$nativePreOrder, request, options: options);
 | |
|   }
 | |
| 
 | |
|   /// 微信转账到零钱
 | |
|   $grpc.ResponseFuture<$0.WxpayTransferReply> transfer(
 | |
|     $0.WxpayTransferRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$transfer, request, options: options);
 | |
|   }
 | |
| 
 | |
|   /// 微信支付回调
 | |
|   $grpc.ResponseFuture<$0.CallBackReply> wxCallback(
 | |
|     $0.WxCallBackRequest request, {
 | |
|     $grpc.CallOptions? options,
 | |
|   }) {
 | |
|     return $createUnaryCall(_$wxCallback, request, options: options);
 | |
|   }
 | |
| 
 | |
|   // method descriptors
 | |
| 
 | |
|   static final _$jsapiPreOrder = $grpc.ClientMethod<
 | |
|           $0.WxpayJSAPIPreOrderRequest, $0.WxpayJSAPIPreOrderReply>(
 | |
|       '/wallet.Wechat/JsapiPreOrder',
 | |
|       ($0.WxpayJSAPIPreOrderRequest value) => value.writeToBuffer(),
 | |
|       $0.WxpayJSAPIPreOrderReply.fromBuffer);
 | |
|   static final _$appPreOrder =
 | |
|       $grpc.ClientMethod<$0.WxpayAppPreOrderRequest, $0.WxpayAppPreOrderReply>(
 | |
|           '/wallet.Wechat/AppPreOrder',
 | |
|           ($0.WxpayAppPreOrderRequest value) => value.writeToBuffer(),
 | |
|           $0.WxpayAppPreOrderReply.fromBuffer);
 | |
|   static final _$nativePreOrder = $grpc.ClientMethod<
 | |
|           $0.WxpayNativePreOrderRequest, $0.WxpayNativePreOrderReply>(
 | |
|       '/wallet.Wechat/NativePreOrder',
 | |
|       ($0.WxpayNativePreOrderRequest value) => value.writeToBuffer(),
 | |
|       $0.WxpayNativePreOrderReply.fromBuffer);
 | |
|   static final _$transfer =
 | |
|       $grpc.ClientMethod<$0.WxpayTransferRequest, $0.WxpayTransferReply>(
 | |
|           '/wallet.Wechat/Transfer',
 | |
|           ($0.WxpayTransferRequest value) => value.writeToBuffer(),
 | |
|           $0.WxpayTransferReply.fromBuffer);
 | |
|   static final _$wxCallback =
 | |
|       $grpc.ClientMethod<$0.WxCallBackRequest, $0.CallBackReply>(
 | |
|           '/wallet.Wechat/WxCallback',
 | |
|           ($0.WxCallBackRequest value) => value.writeToBuffer(),
 | |
|           $0.CallBackReply.fromBuffer);
 | |
| }
 | |
| 
 | |
| @$pb.GrpcServiceName('wallet.Wechat')
 | |
| abstract class WechatServiceBase extends $grpc.Service {
 | |
|   $core.String get $name => 'wallet.Wechat';
 | |
| 
 | |
|   WechatServiceBase() {
 | |
|     $addMethod($grpc.ServiceMethod<$0.WxpayJSAPIPreOrderRequest,
 | |
|             $0.WxpayJSAPIPreOrderReply>(
 | |
|         'JsapiPreOrder',
 | |
|         jsapiPreOrder_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) =>
 | |
|             $0.WxpayJSAPIPreOrderRequest.fromBuffer(value),
 | |
|         ($0.WxpayJSAPIPreOrderReply value) => value.writeToBuffer()));
 | |
|     $addMethod($grpc.ServiceMethod<$0.WxpayAppPreOrderRequest,
 | |
|             $0.WxpayAppPreOrderReply>(
 | |
|         'AppPreOrder',
 | |
|         appPreOrder_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) =>
 | |
|             $0.WxpayAppPreOrderRequest.fromBuffer(value),
 | |
|         ($0.WxpayAppPreOrderReply value) => value.writeToBuffer()));
 | |
|     $addMethod($grpc.ServiceMethod<$0.WxpayNativePreOrderRequest,
 | |
|             $0.WxpayNativePreOrderReply>(
 | |
|         'NativePreOrder',
 | |
|         nativePreOrder_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) =>
 | |
|             $0.WxpayNativePreOrderRequest.fromBuffer(value),
 | |
|         ($0.WxpayNativePreOrderReply value) => value.writeToBuffer()));
 | |
|     $addMethod(
 | |
|         $grpc.ServiceMethod<$0.WxpayTransferRequest, $0.WxpayTransferReply>(
 | |
|             'Transfer',
 | |
|             transfer_Pre,
 | |
|             false,
 | |
|             false,
 | |
|             ($core.List<$core.int> value) =>
 | |
|                 $0.WxpayTransferRequest.fromBuffer(value),
 | |
|             ($0.WxpayTransferReply value) => value.writeToBuffer()));
 | |
|     $addMethod($grpc.ServiceMethod<$0.WxCallBackRequest, $0.CallBackReply>(
 | |
|         'WxCallback',
 | |
|         wxCallback_Pre,
 | |
|         false,
 | |
|         false,
 | |
|         ($core.List<$core.int> value) => $0.WxCallBackRequest.fromBuffer(value),
 | |
|         ($0.CallBackReply value) => value.writeToBuffer()));
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.WxpayJSAPIPreOrderReply> jsapiPreOrder_Pre(
 | |
|       $grpc.ServiceCall $call,
 | |
|       $async.Future<$0.WxpayJSAPIPreOrderRequest> $request) async {
 | |
|     return jsapiPreOrder($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.WxpayJSAPIPreOrderReply> jsapiPreOrder(
 | |
|       $grpc.ServiceCall call, $0.WxpayJSAPIPreOrderRequest request);
 | |
| 
 | |
|   $async.Future<$0.WxpayAppPreOrderReply> appPreOrder_Pre(
 | |
|       $grpc.ServiceCall $call,
 | |
|       $async.Future<$0.WxpayAppPreOrderRequest> $request) async {
 | |
|     return appPreOrder($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.WxpayAppPreOrderReply> appPreOrder(
 | |
|       $grpc.ServiceCall call, $0.WxpayAppPreOrderRequest request);
 | |
| 
 | |
|   $async.Future<$0.WxpayNativePreOrderReply> nativePreOrder_Pre(
 | |
|       $grpc.ServiceCall $call,
 | |
|       $async.Future<$0.WxpayNativePreOrderRequest> $request) async {
 | |
|     return nativePreOrder($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.WxpayNativePreOrderReply> nativePreOrder(
 | |
|       $grpc.ServiceCall call, $0.WxpayNativePreOrderRequest request);
 | |
| 
 | |
|   $async.Future<$0.WxpayTransferReply> transfer_Pre($grpc.ServiceCall $call,
 | |
|       $async.Future<$0.WxpayTransferRequest> $request) async {
 | |
|     return transfer($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.WxpayTransferReply> transfer(
 | |
|       $grpc.ServiceCall call, $0.WxpayTransferRequest request);
 | |
| 
 | |
|   $async.Future<$0.CallBackReply> wxCallback_Pre($grpc.ServiceCall $call,
 | |
|       $async.Future<$0.WxCallBackRequest> $request) async {
 | |
|     return wxCallback($call, await $request);
 | |
|   }
 | |
| 
 | |
|   $async.Future<$0.CallBackReply> wxCallback(
 | |
|       $grpc.ServiceCall call, $0.WxCallBackRequest request);
 | |
| }
 |