166 lines
5.7 KiB
Dart
166 lines
5.7 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from alipay.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 'alipay.pb.dart' as $0;
|
|
|
|
export 'alipay.pb.dart';
|
|
|
|
@$pb.GrpcServiceName('wallet.Alipay')
|
|
class AlipayClient 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 = [
|
|
'',
|
|
];
|
|
|
|
AlipayClient(super.channel, {super.options, super.interceptors});
|
|
|
|
/// 支付宝wap支付
|
|
$grpc.ResponseFuture<$0.AlipayTradeWapPayReply> wapPay(
|
|
$0.AlipayTradeWapPayRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$wapPay, request, options: options);
|
|
}
|
|
|
|
/// 支付宝电脑网站支付
|
|
$grpc.ResponseFuture<$0.AlipayTradePagePayReply> pagePay(
|
|
$0.AlipayTradePagePayRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$pagePay, request, options: options);
|
|
}
|
|
|
|
/// 支付宝APP支付
|
|
$grpc.ResponseFuture<$0.AlipayTradeAppPayReply> appPay(
|
|
$0.AlipayTradeAppPayRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$appPay, request, options: options);
|
|
}
|
|
|
|
/// 支付宝转账到个人支付宝账户
|
|
$grpc.ResponseFuture<$0.AlipayUniTransferReply> transfer(
|
|
$0.AlipayUniTransferRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$transfer, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$wapPay = $grpc.ClientMethod<$0.AlipayTradeWapPayRequest,
|
|
$0.AlipayTradeWapPayReply>(
|
|
'/wallet.Alipay/WapPay',
|
|
($0.AlipayTradeWapPayRequest value) => value.writeToBuffer(),
|
|
$0.AlipayTradeWapPayReply.fromBuffer);
|
|
static final _$pagePay = $grpc.ClientMethod<$0.AlipayTradePagePayRequest,
|
|
$0.AlipayTradePagePayReply>(
|
|
'/wallet.Alipay/PagePay',
|
|
($0.AlipayTradePagePayRequest value) => value.writeToBuffer(),
|
|
$0.AlipayTradePagePayReply.fromBuffer);
|
|
static final _$appPay = $grpc.ClientMethod<$0.AlipayTradeAppPayRequest,
|
|
$0.AlipayTradeAppPayReply>(
|
|
'/wallet.Alipay/AppPay',
|
|
($0.AlipayTradeAppPayRequest value) => value.writeToBuffer(),
|
|
$0.AlipayTradeAppPayReply.fromBuffer);
|
|
static final _$transfer = $grpc.ClientMethod<$0.AlipayUniTransferRequest,
|
|
$0.AlipayUniTransferReply>(
|
|
'/wallet.Alipay/Transfer',
|
|
($0.AlipayUniTransferRequest value) => value.writeToBuffer(),
|
|
$0.AlipayUniTransferReply.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('wallet.Alipay')
|
|
abstract class AlipayServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'wallet.Alipay';
|
|
|
|
AlipayServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.AlipayTradeWapPayRequest,
|
|
$0.AlipayTradeWapPayReply>(
|
|
'WapPay',
|
|
wapPay_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) =>
|
|
$0.AlipayTradeWapPayRequest.fromBuffer(value),
|
|
($0.AlipayTradeWapPayReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.AlipayTradePagePayRequest,
|
|
$0.AlipayTradePagePayReply>(
|
|
'PagePay',
|
|
pagePay_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) =>
|
|
$0.AlipayTradePagePayRequest.fromBuffer(value),
|
|
($0.AlipayTradePagePayReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.AlipayTradeAppPayRequest,
|
|
$0.AlipayTradeAppPayReply>(
|
|
'AppPay',
|
|
appPay_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) =>
|
|
$0.AlipayTradeAppPayRequest.fromBuffer(value),
|
|
($0.AlipayTradeAppPayReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.AlipayUniTransferRequest,
|
|
$0.AlipayUniTransferReply>(
|
|
'Transfer',
|
|
transfer_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) =>
|
|
$0.AlipayUniTransferRequest.fromBuffer(value),
|
|
($0.AlipayUniTransferReply value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.AlipayTradeWapPayReply> wapPay_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.AlipayTradeWapPayRequest> $request) async {
|
|
return wapPay($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.AlipayTradeWapPayReply> wapPay(
|
|
$grpc.ServiceCall call, $0.AlipayTradeWapPayRequest request);
|
|
|
|
$async.Future<$0.AlipayTradePagePayReply> pagePay_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.AlipayTradePagePayRequest> $request) async {
|
|
return pagePay($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.AlipayTradePagePayReply> pagePay(
|
|
$grpc.ServiceCall call, $0.AlipayTradePagePayRequest request);
|
|
|
|
$async.Future<$0.AlipayTradeAppPayReply> appPay_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.AlipayTradeAppPayRequest> $request) async {
|
|
return appPay($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.AlipayTradeAppPayReply> appPay(
|
|
$grpc.ServiceCall call, $0.AlipayTradeAppPayRequest request);
|
|
|
|
$async.Future<$0.AlipayUniTransferReply> transfer_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$0.AlipayUniTransferRequest> $request) async {
|
|
return transfer($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.AlipayUniTransferReply> transfer(
|
|
$grpc.ServiceCall call, $0.AlipayUniTransferRequest request);
|
|
}
|