1244 lines
50 KiB
TypeScript
1244 lines
50 KiB
TypeScript
/**
|
|
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
* compiler version: 0.0.0
|
|
* source: payment.proto
|
|
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
import * as dependency_1 from "./blocks";
|
|
import * as pb_1 from "google-protobuf";
|
|
import * as grpc_1 from "@grpc/grpc-js";
|
|
export namespace wallet {
|
|
export class WayRequest extends pb_1.Message {
|
|
#one_of_decls: number[][] = [];
|
|
constructor(data?: any[] | {
|
|
platform?: string;
|
|
}) {
|
|
super();
|
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
if ("platform" in data && data.platform != undefined) {
|
|
this.platform = data.platform;
|
|
}
|
|
}
|
|
}
|
|
get platform() {
|
|
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
}
|
|
set platform(value: string) {
|
|
pb_1.Message.setField(this, 1, value);
|
|
}
|
|
static fromObject(data: {
|
|
platform?: string;
|
|
}): WayRequest {
|
|
const message = new WayRequest({});
|
|
if (data.platform != null) {
|
|
message.platform = data.platform;
|
|
}
|
|
return message;
|
|
}
|
|
toObject() {
|
|
const data: {
|
|
platform?: string;
|
|
} = {};
|
|
if (this.platform != null) {
|
|
data.platform = this.platform;
|
|
}
|
|
return data;
|
|
}
|
|
serialize(): Uint8Array;
|
|
serialize(w: pb_1.BinaryWriter): void;
|
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
const writer = w || new pb_1.BinaryWriter();
|
|
if (this.platform.length)
|
|
writer.writeString(1, this.platform);
|
|
if (!w)
|
|
return writer.getResultBuffer();
|
|
}
|
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WayRequest {
|
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WayRequest();
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup())
|
|
break;
|
|
switch (reader.getFieldNumber()) {
|
|
case 1:
|
|
message.platform = reader.readString();
|
|
break;
|
|
default: reader.skipField();
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
serializeBinary(): Uint8Array {
|
|
return this.serialize();
|
|
}
|
|
static deserializeBinary(bytes: Uint8Array): WayRequest {
|
|
return WayRequest.deserialize(bytes);
|
|
}
|
|
}
|
|
export class WayReply extends pb_1.Message {
|
|
#one_of_decls: number[][] = [];
|
|
constructor(data?: any[] | {
|
|
way?: WayItem[];
|
|
}) {
|
|
super();
|
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
|
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
if ("way" in data && data.way != undefined) {
|
|
this.way = data.way;
|
|
}
|
|
}
|
|
}
|
|
get way() {
|
|
return pb_1.Message.getRepeatedWrapperField(this, WayItem, 1) as WayItem[];
|
|
}
|
|
set way(value: WayItem[]) {
|
|
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
|
}
|
|
static fromObject(data: {
|
|
way?: ReturnType<typeof WayItem.prototype.toObject>[];
|
|
}): WayReply {
|
|
const message = new WayReply({});
|
|
if (data.way != null) {
|
|
message.way = data.way.map(item => WayItem.fromObject(item));
|
|
}
|
|
return message;
|
|
}
|
|
toObject() {
|
|
const data: {
|
|
way?: ReturnType<typeof WayItem.prototype.toObject>[];
|
|
} = {};
|
|
if (this.way != null) {
|
|
data.way = this.way.map((item: WayItem) => item.toObject());
|
|
}
|
|
return data;
|
|
}
|
|
serialize(): Uint8Array;
|
|
serialize(w: pb_1.BinaryWriter): void;
|
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
const writer = w || new pb_1.BinaryWriter();
|
|
if (this.way.length)
|
|
writer.writeRepeatedMessage(1, this.way, (item: WayItem) => item.serialize(writer));
|
|
if (!w)
|
|
return writer.getResultBuffer();
|
|
}
|
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WayReply {
|
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WayReply();
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup())
|
|
break;
|
|
switch (reader.getFieldNumber()) {
|
|
case 1:
|
|
reader.readMessage(message.way, () => pb_1.Message.addToRepeatedWrapperField(message, 1, WayItem.deserialize(reader), WayItem));
|
|
break;
|
|
default: reader.skipField();
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
serializeBinary(): Uint8Array {
|
|
return this.serialize();
|
|
}
|
|
static deserializeBinary(bytes: Uint8Array): WayReply {
|
|
return WayReply.deserialize(bytes);
|
|
}
|
|
}
|
|
export class WayItem extends pb_1.Message {
|
|
#one_of_decls: number[][] = [];
|
|
constructor(data?: any[] | {
|
|
ident?: string;
|
|
title?: string;
|
|
intro?: string;
|
|
args?: string;
|
|
}) {
|
|
super();
|
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
if ("ident" in data && data.ident != undefined) {
|
|
this.ident = data.ident;
|
|
}
|
|
if ("title" in data && data.title != undefined) {
|
|
this.title = data.title;
|
|
}
|
|
if ("intro" in data && data.intro != undefined) {
|
|
this.intro = data.intro;
|
|
}
|
|
if ("args" in data && data.args != undefined) {
|
|
this.args = data.args;
|
|
}
|
|
}
|
|
}
|
|
get ident() {
|
|
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
}
|
|
set ident(value: string) {
|
|
pb_1.Message.setField(this, 1, value);
|
|
}
|
|
get title() {
|
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
}
|
|
set title(value: string) {
|
|
pb_1.Message.setField(this, 2, value);
|
|
}
|
|
get intro() {
|
|
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
}
|
|
set intro(value: string) {
|
|
pb_1.Message.setField(this, 3, value);
|
|
}
|
|
get args() {
|
|
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
}
|
|
set args(value: string) {
|
|
pb_1.Message.setField(this, 4, value);
|
|
}
|
|
static fromObject(data: {
|
|
ident?: string;
|
|
title?: string;
|
|
intro?: string;
|
|
args?: string;
|
|
}): WayItem {
|
|
const message = new WayItem({});
|
|
if (data.ident != null) {
|
|
message.ident = data.ident;
|
|
}
|
|
if (data.title != null) {
|
|
message.title = data.title;
|
|
}
|
|
if (data.intro != null) {
|
|
message.intro = data.intro;
|
|
}
|
|
if (data.args != null) {
|
|
message.args = data.args;
|
|
}
|
|
return message;
|
|
}
|
|
toObject() {
|
|
const data: {
|
|
ident?: string;
|
|
title?: string;
|
|
intro?: string;
|
|
args?: string;
|
|
} = {};
|
|
if (this.ident != null) {
|
|
data.ident = this.ident;
|
|
}
|
|
if (this.title != null) {
|
|
data.title = this.title;
|
|
}
|
|
if (this.intro != null) {
|
|
data.intro = this.intro;
|
|
}
|
|
if (this.args != null) {
|
|
data.args = this.args;
|
|
}
|
|
return data;
|
|
}
|
|
serialize(): Uint8Array;
|
|
serialize(w: pb_1.BinaryWriter): void;
|
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
const writer = w || new pb_1.BinaryWriter();
|
|
if (this.ident.length)
|
|
writer.writeString(1, this.ident);
|
|
if (this.title.length)
|
|
writer.writeString(2, this.title);
|
|
if (this.intro.length)
|
|
writer.writeString(3, this.intro);
|
|
if (this.args.length)
|
|
writer.writeString(4, this.args);
|
|
if (!w)
|
|
return writer.getResultBuffer();
|
|
}
|
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WayItem {
|
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WayItem();
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup())
|
|
break;
|
|
switch (reader.getFieldNumber()) {
|
|
case 1:
|
|
message.ident = reader.readString();
|
|
break;
|
|
case 2:
|
|
message.title = reader.readString();
|
|
break;
|
|
case 3:
|
|
message.intro = reader.readString();
|
|
break;
|
|
case 4:
|
|
message.args = reader.readString();
|
|
break;
|
|
default: reader.skipField();
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
serializeBinary(): Uint8Array {
|
|
return this.serialize();
|
|
}
|
|
static deserializeBinary(bytes: Uint8Array): WayItem {
|
|
return WayItem.deserialize(bytes);
|
|
}
|
|
}
|
|
export class PaymentItem extends pb_1.Message {
|
|
#one_of_decls: number[][] = [];
|
|
constructor(data?: any[] | {
|
|
order_no?: string;
|
|
trade_no?: string;
|
|
type?: number;
|
|
pay_channel?: number;
|
|
pay_type?: string;
|
|
amount?: number;
|
|
args?: string;
|
|
status?: number;
|
|
}) {
|
|
super();
|
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
if ("order_no" in data && data.order_no != undefined) {
|
|
this.order_no = data.order_no;
|
|
}
|
|
if ("trade_no" in data && data.trade_no != undefined) {
|
|
this.trade_no = data.trade_no;
|
|
}
|
|
if ("type" in data && data.type != undefined) {
|
|
this.type = data.type;
|
|
}
|
|
if ("pay_channel" in data && data.pay_channel != undefined) {
|
|
this.pay_channel = data.pay_channel;
|
|
}
|
|
if ("pay_type" in data && data.pay_type != undefined) {
|
|
this.pay_type = data.pay_type;
|
|
}
|
|
if ("amount" in data && data.amount != undefined) {
|
|
this.amount = data.amount;
|
|
}
|
|
if ("args" in data && data.args != undefined) {
|
|
this.args = data.args;
|
|
}
|
|
if ("status" in data && data.status != undefined) {
|
|
this.status = data.status;
|
|
}
|
|
}
|
|
}
|
|
get order_no() {
|
|
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
}
|
|
set order_no(value: string) {
|
|
pb_1.Message.setField(this, 1, value);
|
|
}
|
|
get trade_no() {
|
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
}
|
|
set trade_no(value: string) {
|
|
pb_1.Message.setField(this, 2, value);
|
|
}
|
|
get type() {
|
|
return pb_1.Message.getFieldWithDefault(this, 3, 0) as number;
|
|
}
|
|
set type(value: number) {
|
|
pb_1.Message.setField(this, 3, value);
|
|
}
|
|
get pay_channel() {
|
|
return pb_1.Message.getFieldWithDefault(this, 4, 0) as number;
|
|
}
|
|
set pay_channel(value: number) {
|
|
pb_1.Message.setField(this, 4, value);
|
|
}
|
|
get pay_type() {
|
|
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
}
|
|
set pay_type(value: string) {
|
|
pb_1.Message.setField(this, 5, value);
|
|
}
|
|
get amount() {
|
|
return pb_1.Message.getFieldWithDefault(this, 6, 0) as number;
|
|
}
|
|
set amount(value: number) {
|
|
pb_1.Message.setField(this, 6, value);
|
|
}
|
|
get args() {
|
|
return pb_1.Message.getFieldWithDefault(this, 7, "") as string;
|
|
}
|
|
set args(value: string) {
|
|
pb_1.Message.setField(this, 7, value);
|
|
}
|
|
get status() {
|
|
return pb_1.Message.getFieldWithDefault(this, 8, 0) as number;
|
|
}
|
|
set status(value: number) {
|
|
pb_1.Message.setField(this, 8, value);
|
|
}
|
|
static fromObject(data: {
|
|
order_no?: string;
|
|
trade_no?: string;
|
|
type?: number;
|
|
pay_channel?: number;
|
|
pay_type?: string;
|
|
amount?: number;
|
|
args?: string;
|
|
status?: number;
|
|
}): PaymentItem {
|
|
const message = new PaymentItem({});
|
|
if (data.order_no != null) {
|
|
message.order_no = data.order_no;
|
|
}
|
|
if (data.trade_no != null) {
|
|
message.trade_no = data.trade_no;
|
|
}
|
|
if (data.type != null) {
|
|
message.type = data.type;
|
|
}
|
|
if (data.pay_channel != null) {
|
|
message.pay_channel = data.pay_channel;
|
|
}
|
|
if (data.pay_type != null) {
|
|
message.pay_type = data.pay_type;
|
|
}
|
|
if (data.amount != null) {
|
|
message.amount = data.amount;
|
|
}
|
|
if (data.args != null) {
|
|
message.args = data.args;
|
|
}
|
|
if (data.status != null) {
|
|
message.status = data.status;
|
|
}
|
|
return message;
|
|
}
|
|
toObject() {
|
|
const data: {
|
|
order_no?: string;
|
|
trade_no?: string;
|
|
type?: number;
|
|
pay_channel?: number;
|
|
pay_type?: string;
|
|
amount?: number;
|
|
args?: string;
|
|
status?: number;
|
|
} = {};
|
|
if (this.order_no != null) {
|
|
data.order_no = this.order_no;
|
|
}
|
|
if (this.trade_no != null) {
|
|
data.trade_no = this.trade_no;
|
|
}
|
|
if (this.type != null) {
|
|
data.type = this.type;
|
|
}
|
|
if (this.pay_channel != null) {
|
|
data.pay_channel = this.pay_channel;
|
|
}
|
|
if (this.pay_type != null) {
|
|
data.pay_type = this.pay_type;
|
|
}
|
|
if (this.amount != null) {
|
|
data.amount = this.amount;
|
|
}
|
|
if (this.args != null) {
|
|
data.args = this.args;
|
|
}
|
|
if (this.status != null) {
|
|
data.status = this.status;
|
|
}
|
|
return data;
|
|
}
|
|
serialize(): Uint8Array;
|
|
serialize(w: pb_1.BinaryWriter): void;
|
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
const writer = w || new pb_1.BinaryWriter();
|
|
if (this.order_no.length)
|
|
writer.writeString(1, this.order_no);
|
|
if (this.trade_no.length)
|
|
writer.writeString(2, this.trade_no);
|
|
if (this.type != 0)
|
|
writer.writeInt32(3, this.type);
|
|
if (this.pay_channel != 0)
|
|
writer.writeInt32(4, this.pay_channel);
|
|
if (this.pay_type.length)
|
|
writer.writeString(5, this.pay_type);
|
|
if (this.amount != 0)
|
|
writer.writeInt64(6, this.amount);
|
|
if (this.args.length)
|
|
writer.writeString(7, this.args);
|
|
if (this.status != 0)
|
|
writer.writeInt32(8, this.status);
|
|
if (!w)
|
|
return writer.getResultBuffer();
|
|
}
|
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PaymentItem {
|
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PaymentItem();
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup())
|
|
break;
|
|
switch (reader.getFieldNumber()) {
|
|
case 1:
|
|
message.order_no = reader.readString();
|
|
break;
|
|
case 2:
|
|
message.trade_no = reader.readString();
|
|
break;
|
|
case 3:
|
|
message.type = reader.readInt32();
|
|
break;
|
|
case 4:
|
|
message.pay_channel = reader.readInt32();
|
|
break;
|
|
case 5:
|
|
message.pay_type = reader.readString();
|
|
break;
|
|
case 6:
|
|
message.amount = reader.readInt64();
|
|
break;
|
|
case 7:
|
|
message.args = reader.readString();
|
|
break;
|
|
case 8:
|
|
message.status = reader.readInt32();
|
|
break;
|
|
default: reader.skipField();
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
serializeBinary(): Uint8Array {
|
|
return this.serialize();
|
|
}
|
|
static deserializeBinary(bytes: Uint8Array): PaymentItem {
|
|
return PaymentItem.deserialize(bytes);
|
|
}
|
|
}
|
|
export class ChargeRequest extends pb_1.Message {
|
|
#one_of_decls: number[][] = [];
|
|
constructor(data?: any[] | {
|
|
amount?: number;
|
|
remark?: string;
|
|
pay_channel?: number;
|
|
pay_type?: string;
|
|
desc?: string;
|
|
open_id?: string;
|
|
}) {
|
|
super();
|
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
if ("amount" in data && data.amount != undefined) {
|
|
this.amount = data.amount;
|
|
}
|
|
if ("remark" in data && data.remark != undefined) {
|
|
this.remark = data.remark;
|
|
}
|
|
if ("pay_channel" in data && data.pay_channel != undefined) {
|
|
this.pay_channel = data.pay_channel;
|
|
}
|
|
if ("pay_type" in data && data.pay_type != undefined) {
|
|
this.pay_type = data.pay_type;
|
|
}
|
|
if ("desc" in data && data.desc != undefined) {
|
|
this.desc = data.desc;
|
|
}
|
|
if ("open_id" in data && data.open_id != undefined) {
|
|
this.open_id = data.open_id;
|
|
}
|
|
}
|
|
}
|
|
get amount() {
|
|
return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
|
|
}
|
|
set amount(value: number) {
|
|
pb_1.Message.setField(this, 1, value);
|
|
}
|
|
get remark() {
|
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
}
|
|
set remark(value: string) {
|
|
pb_1.Message.setField(this, 2, value);
|
|
}
|
|
get pay_channel() {
|
|
return pb_1.Message.getFieldWithDefault(this, 3, 0) as number;
|
|
}
|
|
set pay_channel(value: number) {
|
|
pb_1.Message.setField(this, 3, value);
|
|
}
|
|
get pay_type() {
|
|
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
}
|
|
set pay_type(value: string) {
|
|
pb_1.Message.setField(this, 4, value);
|
|
}
|
|
get desc() {
|
|
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
}
|
|
set desc(value: string) {
|
|
pb_1.Message.setField(this, 5, value);
|
|
}
|
|
get open_id() {
|
|
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
|
|
}
|
|
set open_id(value: string) {
|
|
pb_1.Message.setField(this, 6, value);
|
|
}
|
|
static fromObject(data: {
|
|
amount?: number;
|
|
remark?: string;
|
|
pay_channel?: number;
|
|
pay_type?: string;
|
|
desc?: string;
|
|
open_id?: string;
|
|
}): ChargeRequest {
|
|
const message = new ChargeRequest({});
|
|
if (data.amount != null) {
|
|
message.amount = data.amount;
|
|
}
|
|
if (data.remark != null) {
|
|
message.remark = data.remark;
|
|
}
|
|
if (data.pay_channel != null) {
|
|
message.pay_channel = data.pay_channel;
|
|
}
|
|
if (data.pay_type != null) {
|
|
message.pay_type = data.pay_type;
|
|
}
|
|
if (data.desc != null) {
|
|
message.desc = data.desc;
|
|
}
|
|
if (data.open_id != null) {
|
|
message.open_id = data.open_id;
|
|
}
|
|
return message;
|
|
}
|
|
toObject() {
|
|
const data: {
|
|
amount?: number;
|
|
remark?: string;
|
|
pay_channel?: number;
|
|
pay_type?: string;
|
|
desc?: string;
|
|
open_id?: string;
|
|
} = {};
|
|
if (this.amount != null) {
|
|
data.amount = this.amount;
|
|
}
|
|
if (this.remark != null) {
|
|
data.remark = this.remark;
|
|
}
|
|
if (this.pay_channel != null) {
|
|
data.pay_channel = this.pay_channel;
|
|
}
|
|
if (this.pay_type != null) {
|
|
data.pay_type = this.pay_type;
|
|
}
|
|
if (this.desc != null) {
|
|
data.desc = this.desc;
|
|
}
|
|
if (this.open_id != null) {
|
|
data.open_id = this.open_id;
|
|
}
|
|
return data;
|
|
}
|
|
serialize(): Uint8Array;
|
|
serialize(w: pb_1.BinaryWriter): void;
|
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
const writer = w || new pb_1.BinaryWriter();
|
|
if (this.amount != 0)
|
|
writer.writeInt64(1, this.amount);
|
|
if (this.remark.length)
|
|
writer.writeString(2, this.remark);
|
|
if (this.pay_channel != 0)
|
|
writer.writeInt32(3, this.pay_channel);
|
|
if (this.pay_type.length)
|
|
writer.writeString(4, this.pay_type);
|
|
if (this.desc.length)
|
|
writer.writeString(5, this.desc);
|
|
if (this.open_id.length)
|
|
writer.writeString(6, this.open_id);
|
|
if (!w)
|
|
return writer.getResultBuffer();
|
|
}
|
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ChargeRequest {
|
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ChargeRequest();
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup())
|
|
break;
|
|
switch (reader.getFieldNumber()) {
|
|
case 1:
|
|
message.amount = reader.readInt64();
|
|
break;
|
|
case 2:
|
|
message.remark = reader.readString();
|
|
break;
|
|
case 3:
|
|
message.pay_channel = reader.readInt32();
|
|
break;
|
|
case 4:
|
|
message.pay_type = reader.readString();
|
|
break;
|
|
case 5:
|
|
message.desc = reader.readString();
|
|
break;
|
|
case 6:
|
|
message.open_id = reader.readString();
|
|
break;
|
|
default: reader.skipField();
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
serializeBinary(): Uint8Array {
|
|
return this.serialize();
|
|
}
|
|
static deserializeBinary(bytes: Uint8Array): ChargeRequest {
|
|
return ChargeRequest.deserialize(bytes);
|
|
}
|
|
}
|
|
export class OrderRequest extends pb_1.Message {
|
|
#one_of_decls: number[][] = [];
|
|
constructor(data?: any[] | {
|
|
order_no?: string;
|
|
pay_channel?: number;
|
|
pay_type?: string;
|
|
password?: string;
|
|
args?: string;
|
|
desc?: string;
|
|
open_id?: string;
|
|
}) {
|
|
super();
|
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
if ("order_no" in data && data.order_no != undefined) {
|
|
this.order_no = data.order_no;
|
|
}
|
|
if ("pay_channel" in data && data.pay_channel != undefined) {
|
|
this.pay_channel = data.pay_channel;
|
|
}
|
|
if ("pay_type" in data && data.pay_type != undefined) {
|
|
this.pay_type = data.pay_type;
|
|
}
|
|
if ("password" in data && data.password != undefined) {
|
|
this.password = data.password;
|
|
}
|
|
if ("args" in data && data.args != undefined) {
|
|
this.args = data.args;
|
|
}
|
|
if ("desc" in data && data.desc != undefined) {
|
|
this.desc = data.desc;
|
|
}
|
|
if ("open_id" in data && data.open_id != undefined) {
|
|
this.open_id = data.open_id;
|
|
}
|
|
}
|
|
}
|
|
get order_no() {
|
|
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
}
|
|
set order_no(value: string) {
|
|
pb_1.Message.setField(this, 1, value);
|
|
}
|
|
get pay_channel() {
|
|
return pb_1.Message.getFieldWithDefault(this, 2, 0) as number;
|
|
}
|
|
set pay_channel(value: number) {
|
|
pb_1.Message.setField(this, 2, value);
|
|
}
|
|
get pay_type() {
|
|
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
}
|
|
set pay_type(value: string) {
|
|
pb_1.Message.setField(this, 3, value);
|
|
}
|
|
get password() {
|
|
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
}
|
|
set password(value: string) {
|
|
pb_1.Message.setField(this, 4, value);
|
|
}
|
|
get args() {
|
|
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
}
|
|
set args(value: string) {
|
|
pb_1.Message.setField(this, 5, value);
|
|
}
|
|
get desc() {
|
|
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
|
|
}
|
|
set desc(value: string) {
|
|
pb_1.Message.setField(this, 6, value);
|
|
}
|
|
get open_id() {
|
|
return pb_1.Message.getFieldWithDefault(this, 7, "") as string;
|
|
}
|
|
set open_id(value: string) {
|
|
pb_1.Message.setField(this, 7, value);
|
|
}
|
|
static fromObject(data: {
|
|
order_no?: string;
|
|
pay_channel?: number;
|
|
pay_type?: string;
|
|
password?: string;
|
|
args?: string;
|
|
desc?: string;
|
|
open_id?: string;
|
|
}): OrderRequest {
|
|
const message = new OrderRequest({});
|
|
if (data.order_no != null) {
|
|
message.order_no = data.order_no;
|
|
}
|
|
if (data.pay_channel != null) {
|
|
message.pay_channel = data.pay_channel;
|
|
}
|
|
if (data.pay_type != null) {
|
|
message.pay_type = data.pay_type;
|
|
}
|
|
if (data.password != null) {
|
|
message.password = data.password;
|
|
}
|
|
if (data.args != null) {
|
|
message.args = data.args;
|
|
}
|
|
if (data.desc != null) {
|
|
message.desc = data.desc;
|
|
}
|
|
if (data.open_id != null) {
|
|
message.open_id = data.open_id;
|
|
}
|
|
return message;
|
|
}
|
|
toObject() {
|
|
const data: {
|
|
order_no?: string;
|
|
pay_channel?: number;
|
|
pay_type?: string;
|
|
password?: string;
|
|
args?: string;
|
|
desc?: string;
|
|
open_id?: string;
|
|
} = {};
|
|
if (this.order_no != null) {
|
|
data.order_no = this.order_no;
|
|
}
|
|
if (this.pay_channel != null) {
|
|
data.pay_channel = this.pay_channel;
|
|
}
|
|
if (this.pay_type != null) {
|
|
data.pay_type = this.pay_type;
|
|
}
|
|
if (this.password != null) {
|
|
data.password = this.password;
|
|
}
|
|
if (this.args != null) {
|
|
data.args = this.args;
|
|
}
|
|
if (this.desc != null) {
|
|
data.desc = this.desc;
|
|
}
|
|
if (this.open_id != null) {
|
|
data.open_id = this.open_id;
|
|
}
|
|
return data;
|
|
}
|
|
serialize(): Uint8Array;
|
|
serialize(w: pb_1.BinaryWriter): void;
|
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
const writer = w || new pb_1.BinaryWriter();
|
|
if (this.order_no.length)
|
|
writer.writeString(1, this.order_no);
|
|
if (this.pay_channel != 0)
|
|
writer.writeInt32(2, this.pay_channel);
|
|
if (this.pay_type.length)
|
|
writer.writeString(3, this.pay_type);
|
|
if (this.password.length)
|
|
writer.writeString(4, this.password);
|
|
if (this.args.length)
|
|
writer.writeString(5, this.args);
|
|
if (this.desc.length)
|
|
writer.writeString(6, this.desc);
|
|
if (this.open_id.length)
|
|
writer.writeString(7, this.open_id);
|
|
if (!w)
|
|
return writer.getResultBuffer();
|
|
}
|
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): OrderRequest {
|
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new OrderRequest();
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup())
|
|
break;
|
|
switch (reader.getFieldNumber()) {
|
|
case 1:
|
|
message.order_no = reader.readString();
|
|
break;
|
|
case 2:
|
|
message.pay_channel = reader.readInt32();
|
|
break;
|
|
case 3:
|
|
message.pay_type = reader.readString();
|
|
break;
|
|
case 4:
|
|
message.password = reader.readString();
|
|
break;
|
|
case 5:
|
|
message.args = reader.readString();
|
|
break;
|
|
case 6:
|
|
message.desc = reader.readString();
|
|
break;
|
|
case 7:
|
|
message.open_id = reader.readString();
|
|
break;
|
|
default: reader.skipField();
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
serializeBinary(): Uint8Array {
|
|
return this.serialize();
|
|
}
|
|
static deserializeBinary(bytes: Uint8Array): OrderRequest {
|
|
return OrderRequest.deserialize(bytes);
|
|
}
|
|
}
|
|
export class CallbackRequest extends pb_1.Message {
|
|
#one_of_decls: number[][] = [];
|
|
constructor(data?: any[] | {
|
|
id?: number;
|
|
identity?: string;
|
|
callback_status?: boolean;
|
|
callback_msg?: string;
|
|
}) {
|
|
super();
|
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
if ("id" in data && data.id != undefined) {
|
|
this.id = data.id;
|
|
}
|
|
if ("identity" in data && data.identity != undefined) {
|
|
this.identity = data.identity;
|
|
}
|
|
if ("callback_status" in data && data.callback_status != undefined) {
|
|
this.callback_status = data.callback_status;
|
|
}
|
|
if ("callback_msg" in data && data.callback_msg != undefined) {
|
|
this.callback_msg = data.callback_msg;
|
|
}
|
|
}
|
|
}
|
|
get id() {
|
|
return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
|
|
}
|
|
set id(value: number) {
|
|
pb_1.Message.setField(this, 1, value);
|
|
}
|
|
get identity() {
|
|
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
}
|
|
set identity(value: string) {
|
|
pb_1.Message.setField(this, 2, value);
|
|
}
|
|
get callback_status() {
|
|
return pb_1.Message.getFieldWithDefault(this, 3, false) as boolean;
|
|
}
|
|
set callback_status(value: boolean) {
|
|
pb_1.Message.setField(this, 3, value);
|
|
}
|
|
get callback_msg() {
|
|
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
}
|
|
set callback_msg(value: string) {
|
|
pb_1.Message.setField(this, 4, value);
|
|
}
|
|
static fromObject(data: {
|
|
id?: number;
|
|
identity?: string;
|
|
callback_status?: boolean;
|
|
callback_msg?: string;
|
|
}): CallbackRequest {
|
|
const message = new CallbackRequest({});
|
|
if (data.id != null) {
|
|
message.id = data.id;
|
|
}
|
|
if (data.identity != null) {
|
|
message.identity = data.identity;
|
|
}
|
|
if (data.callback_status != null) {
|
|
message.callback_status = data.callback_status;
|
|
}
|
|
if (data.callback_msg != null) {
|
|
message.callback_msg = data.callback_msg;
|
|
}
|
|
return message;
|
|
}
|
|
toObject() {
|
|
const data: {
|
|
id?: number;
|
|
identity?: string;
|
|
callback_status?: boolean;
|
|
callback_msg?: string;
|
|
} = {};
|
|
if (this.id != null) {
|
|
data.id = this.id;
|
|
}
|
|
if (this.identity != null) {
|
|
data.identity = this.identity;
|
|
}
|
|
if (this.callback_status != null) {
|
|
data.callback_status = this.callback_status;
|
|
}
|
|
if (this.callback_msg != null) {
|
|
data.callback_msg = this.callback_msg;
|
|
}
|
|
return data;
|
|
}
|
|
serialize(): Uint8Array;
|
|
serialize(w: pb_1.BinaryWriter): void;
|
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
const writer = w || new pb_1.BinaryWriter();
|
|
if (this.id != 0)
|
|
writer.writeInt64(1, this.id);
|
|
if (this.identity.length)
|
|
writer.writeString(2, this.identity);
|
|
if (this.callback_status != false)
|
|
writer.writeBool(3, this.callback_status);
|
|
if (this.callback_msg.length)
|
|
writer.writeString(4, this.callback_msg);
|
|
if (!w)
|
|
return writer.getResultBuffer();
|
|
}
|
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CallbackRequest {
|
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CallbackRequest();
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup())
|
|
break;
|
|
switch (reader.getFieldNumber()) {
|
|
case 1:
|
|
message.id = reader.readInt64();
|
|
break;
|
|
case 2:
|
|
message.identity = reader.readString();
|
|
break;
|
|
case 3:
|
|
message.callback_status = reader.readBool();
|
|
break;
|
|
case 4:
|
|
message.callback_msg = reader.readString();
|
|
break;
|
|
default: reader.skipField();
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
serializeBinary(): Uint8Array {
|
|
return this.serialize();
|
|
}
|
|
static deserializeBinary(bytes: Uint8Array): CallbackRequest {
|
|
return CallbackRequest.deserialize(bytes);
|
|
}
|
|
}
|
|
export class PaymentReply extends pb_1.Message {
|
|
#one_of_decls: number[][] = [];
|
|
constructor(data?: any[] | {
|
|
code?: number;
|
|
result?: Map<string, string>;
|
|
}) {
|
|
super();
|
|
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
if (!Array.isArray(data) && typeof data == "object") {
|
|
if ("code" in data && data.code != undefined) {
|
|
this.code = data.code;
|
|
}
|
|
if ("result" in data && data.result != undefined) {
|
|
this.result = data.result;
|
|
}
|
|
}
|
|
if (!this.result)
|
|
this.result = new Map();
|
|
}
|
|
get code() {
|
|
return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
|
|
}
|
|
set code(value: number) {
|
|
pb_1.Message.setField(this, 1, value);
|
|
}
|
|
get result() {
|
|
return pb_1.Message.getField(this, 2) as any as Map<string, string>;
|
|
}
|
|
set result(value: Map<string, string>) {
|
|
pb_1.Message.setField(this, 2, value as any);
|
|
}
|
|
static fromObject(data: {
|
|
code?: number;
|
|
result?: {
|
|
[key: string]: string;
|
|
};
|
|
}): PaymentReply {
|
|
const message = new PaymentReply({});
|
|
if (data.code != null) {
|
|
message.code = data.code;
|
|
}
|
|
if (typeof data.result == "object") {
|
|
message.result = new Map(Object.entries(data.result));
|
|
}
|
|
return message;
|
|
}
|
|
toObject() {
|
|
const data: {
|
|
code?: number;
|
|
result?: {
|
|
[key: string]: string;
|
|
};
|
|
} = {};
|
|
if (this.code != null) {
|
|
data.code = this.code;
|
|
}
|
|
if (this.result != null) {
|
|
data.result = (Object.fromEntries)(this.result);
|
|
}
|
|
return data;
|
|
}
|
|
serialize(): Uint8Array;
|
|
serialize(w: pb_1.BinaryWriter): void;
|
|
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
const writer = w || new pb_1.BinaryWriter();
|
|
if (this.code != 0)
|
|
writer.writeInt64(1, this.code);
|
|
for (const [key, value] of this.result) {
|
|
writer.writeMessage(2, this.result, () => {
|
|
writer.writeString(1, key);
|
|
writer.writeString(2, value);
|
|
});
|
|
}
|
|
if (!w)
|
|
return writer.getResultBuffer();
|
|
}
|
|
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PaymentReply {
|
|
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PaymentReply();
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup())
|
|
break;
|
|
switch (reader.getFieldNumber()) {
|
|
case 1:
|
|
message.code = reader.readInt64();
|
|
break;
|
|
case 2:
|
|
reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.result as any, reader, reader.readString, reader.readString));
|
|
break;
|
|
default: reader.skipField();
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
serializeBinary(): Uint8Array {
|
|
return this.serialize();
|
|
}
|
|
static deserializeBinary(bytes: Uint8Array): PaymentReply {
|
|
return PaymentReply.deserialize(bytes);
|
|
}
|
|
}
|
|
interface GrpcUnaryServiceInterface<P, R> {
|
|
(message: P, metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
(message: P, metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
(message: P, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
(message: P, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
}
|
|
interface GrpcStreamServiceInterface<P, R> {
|
|
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream<R>;
|
|
(message: P, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream<R>;
|
|
}
|
|
interface GrpWritableServiceInterface<P, R> {
|
|
(metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
(metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
(options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
(callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
}
|
|
interface GrpcChunkServiceInterface<P, R> {
|
|
(metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream<P, R>;
|
|
(options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream<P, R>;
|
|
}
|
|
interface GrpcPromiseServiceInterface<P, R> {
|
|
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
|
|
(message: P, options?: grpc_1.CallOptions): Promise<R>;
|
|
}
|
|
export abstract class UnimplementedPaymentService {
|
|
static definition = {
|
|
Hello: {
|
|
path: "/wallet.Payment/Hello",
|
|
requestStream: false,
|
|
responseStream: false,
|
|
requestSerialize: (message: dependency_1.wallet.Empty) => Buffer.from(message.serialize()),
|
|
requestDeserialize: (bytes: Buffer) => dependency_1.wallet.Empty.deserialize(new Uint8Array(bytes)),
|
|
responseSerialize: (message: PaymentReply) => Buffer.from(message.serialize()),
|
|
responseDeserialize: (bytes: Buffer) => PaymentReply.deserialize(new Uint8Array(bytes))
|
|
},
|
|
Way: {
|
|
path: "/wallet.Payment/Way",
|
|
requestStream: false,
|
|
responseStream: false,
|
|
requestSerialize: (message: WayRequest) => Buffer.from(message.serialize()),
|
|
requestDeserialize: (bytes: Buffer) => WayRequest.deserialize(new Uint8Array(bytes)),
|
|
responseSerialize: (message: WayReply) => Buffer.from(message.serialize()),
|
|
responseDeserialize: (bytes: Buffer) => WayReply.deserialize(new Uint8Array(bytes))
|
|
},
|
|
Get: {
|
|
path: "/wallet.Payment/Get",
|
|
requestStream: false,
|
|
responseStream: false,
|
|
requestSerialize: (message: dependency_1.wallet.IdentRequest) => Buffer.from(message.serialize()),
|
|
requestDeserialize: (bytes: Buffer) => dependency_1.wallet.IdentRequest.deserialize(new Uint8Array(bytes)),
|
|
responseSerialize: (message: PaymentItem) => Buffer.from(message.serialize()),
|
|
responseDeserialize: (bytes: Buffer) => PaymentItem.deserialize(new Uint8Array(bytes))
|
|
},
|
|
ByOrder: {
|
|
path: "/wallet.Payment/ByOrder",
|
|
requestStream: false,
|
|
responseStream: false,
|
|
requestSerialize: (message: OrderRequest) => Buffer.from(message.serialize()),
|
|
requestDeserialize: (bytes: Buffer) => OrderRequest.deserialize(new Uint8Array(bytes)),
|
|
responseSerialize: (message: PaymentReply) => Buffer.from(message.serialize()),
|
|
responseDeserialize: (bytes: Buffer) => PaymentReply.deserialize(new Uint8Array(bytes))
|
|
},
|
|
ByCharge: {
|
|
path: "/wallet.Payment/ByCharge",
|
|
requestStream: false,
|
|
responseStream: false,
|
|
requestSerialize: (message: ChargeRequest) => Buffer.from(message.serialize()),
|
|
requestDeserialize: (bytes: Buffer) => ChargeRequest.deserialize(new Uint8Array(bytes)),
|
|
responseSerialize: (message: PaymentReply) => Buffer.from(message.serialize()),
|
|
responseDeserialize: (bytes: Buffer) => PaymentReply.deserialize(new Uint8Array(bytes))
|
|
},
|
|
Callback: {
|
|
path: "/wallet.Payment/Callback",
|
|
requestStream: false,
|
|
responseStream: false,
|
|
requestSerialize: (message: CallbackRequest) => Buffer.from(message.serialize()),
|
|
requestDeserialize: (bytes: Buffer) => CallbackRequest.deserialize(new Uint8Array(bytes)),
|
|
responseSerialize: (message: dependency_1.wallet.StatusReply) => Buffer.from(message.serialize()),
|
|
responseDeserialize: (bytes: Buffer) => dependency_1.wallet.StatusReply.deserialize(new Uint8Array(bytes))
|
|
}
|
|
};
|
|
[method: string]: grpc_1.UntypedHandleCall;
|
|
abstract Hello(call: grpc_1.ServerUnaryCall<dependency_1.wallet.Empty, PaymentReply>, callback: grpc_1.sendUnaryData<PaymentReply>): void;
|
|
abstract Way(call: grpc_1.ServerUnaryCall<WayRequest, WayReply>, callback: grpc_1.sendUnaryData<WayReply>): void;
|
|
abstract Get(call: grpc_1.ServerUnaryCall<dependency_1.wallet.IdentRequest, PaymentItem>, callback: grpc_1.sendUnaryData<PaymentItem>): void;
|
|
abstract ByOrder(call: grpc_1.ServerUnaryCall<OrderRequest, PaymentReply>, callback: grpc_1.sendUnaryData<PaymentReply>): void;
|
|
abstract ByCharge(call: grpc_1.ServerUnaryCall<ChargeRequest, PaymentReply>, callback: grpc_1.sendUnaryData<PaymentReply>): void;
|
|
abstract Callback(call: grpc_1.ServerUnaryCall<CallbackRequest, dependency_1.wallet.StatusReply>, callback: grpc_1.sendUnaryData<dependency_1.wallet.StatusReply>): void;
|
|
}
|
|
export class PaymentClient extends grpc_1.makeGenericClientConstructor(UnimplementedPaymentService.definition, "Payment", {}) {
|
|
constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>) {
|
|
super(address, credentials, options);
|
|
}
|
|
Hello: GrpcUnaryServiceInterface<dependency_1.wallet.Empty, PaymentReply> = (message: dependency_1.wallet.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<PaymentReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<PaymentReply>, callback?: grpc_1.requestCallback<PaymentReply>): grpc_1.ClientUnaryCall => {
|
|
return super.Hello(message, metadata, options, callback);
|
|
};
|
|
Way: GrpcUnaryServiceInterface<WayRequest, WayReply> = (message: WayRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<WayReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<WayReply>, callback?: grpc_1.requestCallback<WayReply>): grpc_1.ClientUnaryCall => {
|
|
return super.Way(message, metadata, options, callback);
|
|
};
|
|
Get: GrpcUnaryServiceInterface<dependency_1.wallet.IdentRequest, PaymentItem> = (message: dependency_1.wallet.IdentRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<PaymentItem>, options?: grpc_1.CallOptions | grpc_1.requestCallback<PaymentItem>, callback?: grpc_1.requestCallback<PaymentItem>): grpc_1.ClientUnaryCall => {
|
|
return super.Get(message, metadata, options, callback);
|
|
};
|
|
ByOrder: GrpcUnaryServiceInterface<OrderRequest, PaymentReply> = (message: OrderRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<PaymentReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<PaymentReply>, callback?: grpc_1.requestCallback<PaymentReply>): grpc_1.ClientUnaryCall => {
|
|
return super.ByOrder(message, metadata, options, callback);
|
|
};
|
|
ByCharge: GrpcUnaryServiceInterface<ChargeRequest, PaymentReply> = (message: ChargeRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<PaymentReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<PaymentReply>, callback?: grpc_1.requestCallback<PaymentReply>): grpc_1.ClientUnaryCall => {
|
|
return super.ByCharge(message, metadata, options, callback);
|
|
};
|
|
Callback: GrpcUnaryServiceInterface<CallbackRequest, dependency_1.wallet.StatusReply> = (message: CallbackRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.wallet.StatusReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.wallet.StatusReply>, callback?: grpc_1.requestCallback<dependency_1.wallet.StatusReply>): grpc_1.ClientUnaryCall => {
|
|
return super.Callback(message, metadata, options, callback);
|
|
};
|
|
}
|
|
}
|